{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brixsignage-com/json-schema/brixsignage-com-cross-space-share-schema.json",
  "title": "CrossSpaceShare",
  "description": "Content a parent workspace shares with a child workspace.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brixsignage-com-cross-space-shares-api-openapi.yml#/components/schemas/CrossSpaceShare",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "sourceSpaceId": {
      "type": "string",
      "description": "The workspace that shares."
    },
    "targetSpaceId": {
      "type": "string",
      "description": "The child workspace that receives."
    },
    "contentKind": {
      "type": "string",
      "description": "`playlist`, `schedule`, `layout`, `creative`, `media`, …"
    },
    "contentId": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "enum": [
        "linked",
        "snapshot"
      ],
      "description": "Always `linked` for a new share: the child plays the parent's current version."
    },
    "lockLevel": {
      "type": "string",
      "enum": [
        "playlist",
        "items",
        "both"
      ],
      "description": "What the child cannot change."
    },
    "lockedItemIds": {
      "type": "string",
      "description": "A JSON-ENCODED array of item ids (the stored column), not an array."
    },
    "grantedBy": {
      "type": "string",
      "description": "The user who shared it; `system` for an API key."
    },
    "grantedAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    },
    "createdAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    },
    "updatedAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    },
    "deletedAt": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO-8601 timestamp (UTC)."
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "sourceSpaceId",
    "targetSpaceId",
    "contentKind",
    "contentId",
    "mode",
    "lockLevel",
    "lockedItemIds",
    "grantedBy",
    "grantedAt",
    "createdAt",
    "updatedAt",
    "deletedAt"
  ]
}