{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carboncuretechnologies/json-schema/carboncuretechnologies-my-ccasset-schema.json",
  "title": "MyCCAsset",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carboncuretechnologies-mycc-accounts-api-openapi.yml#/components/schemas/MyCCAsset",
  "required": [
    "name"
  ],
  "type": "object",
  "properties": {
    "name": {
      "minLength": 1,
      "type": "string"
    },
    "fileExtension": {
      "type": [
        "string",
        "null"
      ]
    },
    "sizeBytes": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "myCCAssetId": {
      "type": "integer",
      "format": "int32"
    },
    "mongoId": {
      "type": [
        "string",
        "null"
      ]
    },
    "path": {
      "type": [
        "string",
        "null"
      ]
    },
    "assetType": {
      "$ref": "#/$defs/AssetType"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "link": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastUpdatedTimestamp": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "thumbnailLink": {
      "type": [
        "string",
        "null"
      ]
    },
    "isKeyResource": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "thumbnailS3BucketPath": {
      "type": [
        "string",
        "null"
      ]
    },
    "hasThumbnail": {
      "type": "boolean",
      "readOnly": true
    },
    "myCCAccountId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "myCCAccountName": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "isHidden": {
      "type": "boolean"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AssetType": {
      "enum": [
        "File",
        "Folder",
        "ExternalLink",
        "Icon"
      ],
      "type": "string"
    }
  }
}