{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cueframe-ai/json-schema/cueframe-ai-builtin-component-resolve-response-schema.json",
  "title": "BuiltinComponentResolveResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cueframe-ai-components-api-openapi.yml#/components/schemas/BuiltinComponentResolveResponse",
  "type": "object",
  "properties": {
    "card": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "identity": {
              "type": "object",
              "properties": {
                "scope": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "builtin"
                        },
                        "collection": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "collection"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-local"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "workspaceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "workspaceId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-hosted"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "deploymentId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "deploymentId"
                      ],
                      "additionalProperties": false
                    }
                  ],
                  "type": "object"
                },
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "revision": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                }
              },
              "required": [
                "scope",
                "id",
                "revision"
              ],
              "additionalProperties": false
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "description": {
              "type": "string"
            },
            "category": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "presentation": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "number",
                  "const": 1
                },
                "representativeTimeSeconds": {
                  "type": "number",
                  "minimum": 0
                }
              },
              "required": [
                "version",
                "representativeTimeSeconds"
              ],
              "additionalProperties": false
            },
            "showcase": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "number",
                  "const": 1
                },
                "presentationKey": {
                  "type": "string",
                  "minLength": 1
                },
                "fixtureIdentity": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "rendererIdentity": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "video": {
                  "type": "object",
                  "properties": {
                    "file": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "byteLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "width": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "height": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "fps": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "durationInFrames": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "file",
                    "sha256",
                    "byteLength",
                    "width",
                    "height",
                    "fps",
                    "durationInFrames"
                  ],
                  "additionalProperties": false
                },
                "poster": {
                  "type": "object",
                  "properties": {
                    "file": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "byteLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "frame": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "file",
                    "sha256",
                    "byteLength",
                    "frame"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "version",
                "presentationKey",
                "fixtureIdentity",
                "rendererIdentity",
                "video",
                "poster"
              ],
              "additionalProperties": false
            },
            "preview": {
              "type": "object",
              "properties": {
                "identity": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "unproven",
                    "verified"
                  ]
                }
              },
              "required": [
                "identity",
                "status"
              ],
              "additionalProperties": false
            },
            "kind": {
              "type": "string",
              "const": "definition"
            },
            "source": {
              "type": "object",
              "properties": {
                "scope": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "builtin"
                        },
                        "collection": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "collection"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-local"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "workspaceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "workspaceId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-hosted"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "deploymentId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "deploymentId"
                      ],
                      "additionalProperties": false
                    }
                  ],
                  "type": "object"
                },
                "componentId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "sourceVersionId": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "sourceVersion": {
                  "anyOf": [
                    {
                      "type": "number",
                      "const": 3
                    },
                    {
                      "type": "number",
                      "const": 4
                    }
                  ]
                }
              },
              "required": [
                "scope",
                "componentId",
                "sourceVersionId",
                "sourceVersion"
              ],
              "additionalProperties": false
            },
            "declaration": {
              "type": "object",
              "properties": {
                "state": {
                  "type": "string",
                  "const": "v3"
                },
                "capabilities": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "clip"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "cut-transition"
                          },
                          "protocol": {
                            "type": "string",
                            "const": "per-child"
                          }
                        },
                        "required": [
                          "kind",
                          "protocol"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "content-slots"
                          },
                          "slots": {
                            "minItems": 1,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "min": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "max": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "ownership": {
                                  "type": "string",
                                  "enum": [
                                    "reference",
                                    "exclusive"
                                  ]
                                },
                                "sizing": {
                                  "type": "string",
                                  "enum": [
                                    "canvas",
                                    "container"
                                  ]
                                }
                              },
                              "required": [
                                "name",
                                "min",
                                "max",
                                "ownership",
                                "sizing"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "kind",
                          "slots"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "clip-wrapper"
                          },
                          "ordering": {
                            "type": "string",
                            "enum": [
                              "any",
                              "innermost"
                            ]
                          },
                          "acceptsWrappedTargets": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "kind",
                          "ordering",
                          "acceptsWrappedTargets"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "global-wrapper"
                          },
                          "scope": {
                            "type": "string",
                            "const": "media-lanes"
                          },
                          "ordering": {
                            "type": "string",
                            "enum": [
                              "any",
                              "innermost"
                            ]
                          },
                          "acceptsWrappedTargets": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "kind",
                          "scope",
                          "ordering",
                          "acceptsWrappedTargets"
                        ],
                        "additionalProperties": false
                      }
                    ],
                    "type": "object"
                  }
                },
                "timing": {
                  "type": "object",
                  "properties": {
                    "defaultDuration": {
                      "type": "object",
                      "properties": {
                        "frames": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "fps": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "frames",
                        "fps"
                      ],
                      "additionalProperties": false
                    },
                    "minDurationSec": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "maxDurationSec": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  },
                  "required": [
                    "defaultDuration"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "state",
                "capabilities",
                "timing"
              ],
              "additionalProperties": false
            },
            "origin": {
              "type": "string",
              "enum": [
                "server-native",
                "customer-owned"
              ]
            }
          },
          "required": [
            "identity",
            "name",
            "description",
            "category",
            "kind",
            "source",
            "declaration",
            "origin"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "identity": {
              "type": "object",
              "properties": {
                "scope": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "builtin"
                        },
                        "collection": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "collection"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-local"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "workspaceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "workspaceId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-hosted"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "deploymentId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "deploymentId"
                      ],
                      "additionalProperties": false
                    }
                  ],
                  "type": "object"
                },
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "revision": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                }
              },
              "required": [
                "scope",
                "id",
                "revision"
              ],
              "additionalProperties": false
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "description": {
              "type": "string"
            },
            "category": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "presentation": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "number",
                  "const": 1
                },
                "representativeTimeSeconds": {
                  "type": "number",
                  "minimum": 0
                }
              },
              "required": [
                "version",
                "representativeTimeSeconds"
              ],
              "additionalProperties": false
            },
            "showcase": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "number",
                  "const": 1
                },
                "presentationKey": {
                  "type": "string",
                  "minLength": 1
                },
                "fixtureIdentity": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "rendererIdentity": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "video": {
                  "type": "object",
                  "properties": {
                    "file": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "byteLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "width": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "height": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "fps": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "durationInFrames": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "file",
                    "sha256",
                    "byteLength",
                    "width",
                    "height",
                    "fps",
                    "durationInFrames"
                  ],
                  "additionalProperties": false
                },
                "poster": {
                  "type": "object",
                  "properties": {
                    "file": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "byteLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "frame": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "file",
                    "sha256",
                    "byteLength",
                    "frame"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "version",
                "presentationKey",
                "fixtureIdentity",
                "rendererIdentity",
                "video",
                "poster"
              ],
              "additionalProperties": false
            },
            "preview": {
              "type": "object",
              "properties": {
                "identity": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "unproven",
                    "verified"
                  ]
                }
              },
              "required": [
                "identity",
                "status"
              ],
              "additionalProperties": false
            },
            "kind": {
              "type": "string",
              "const": "preset"
            },
            "definition": {
              "type": "object",
              "properties": {
                "scope": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "builtin"
                        },
                        "collection": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "collection"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-local"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "workspaceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "workspaceId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-hosted"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "deploymentId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "deploymentId"
                      ],
                      "additionalProperties": false
                    }
                  ],
                  "type": "object"
                },
                "componentId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "sourceVersionId": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "sourceVersion": {
                  "anyOf": [
                    {
                      "type": "number",
                      "const": 3
                    },
                    {
                      "type": "number",
                      "const": 4
                    }
                  ]
                }
              },
              "required": [
                "scope",
                "componentId",
                "sourceVersionId",
                "sourceVersion"
              ],
              "additionalProperties": false
            },
            "presetVersionId": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "historicalDocument": {
              "type": "object",
              "properties": {
                "scope": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "builtin"
                        },
                        "collection": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "collection"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-local"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "workspaceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "workspaceId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-hosted"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "deploymentId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "deploymentId"
                      ],
                      "additionalProperties": false
                    }
                  ],
                  "type": "object"
                },
                "documentId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "documentSha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                }
              },
              "required": [
                "scope",
                "documentId",
                "documentSha256"
              ],
              "additionalProperties": false
            },
            "equivalence": {
              "type": "string",
              "enum": [
                "unproven",
                "verified"
              ]
            }
          },
          "required": [
            "identity",
            "name",
            "description",
            "category",
            "kind",
            "definition",
            "presetVersionId",
            "historicalDocument",
            "equivalence"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "identity": {
              "type": "object",
              "properties": {
                "scope": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "builtin"
                        },
                        "collection": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "collection"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-local"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "workspaceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "workspaceId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-hosted"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "deploymentId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "deploymentId"
                      ],
                      "additionalProperties": false
                    }
                  ],
                  "type": "object"
                },
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "revision": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                }
              },
              "required": [
                "scope",
                "id",
                "revision"
              ],
              "additionalProperties": false
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "description": {
              "type": "string"
            },
            "category": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "presentation": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "number",
                  "const": 1
                },
                "representativeTimeSeconds": {
                  "type": "number",
                  "minimum": 0
                }
              },
              "required": [
                "version",
                "representativeTimeSeconds"
              ],
              "additionalProperties": false
            },
            "showcase": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "number",
                  "const": 1
                },
                "presentationKey": {
                  "type": "string",
                  "minLength": 1
                },
                "fixtureIdentity": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "rendererIdentity": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "video": {
                  "type": "object",
                  "properties": {
                    "file": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "byteLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "width": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "height": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "fps": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "durationInFrames": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "file",
                    "sha256",
                    "byteLength",
                    "width",
                    "height",
                    "fps",
                    "durationInFrames"
                  ],
                  "additionalProperties": false
                },
                "poster": {
                  "type": "object",
                  "properties": {
                    "file": {
                      "type": "string",
                      "minLength": 1
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "byteLength": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "frame": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "file",
                    "sha256",
                    "byteLength",
                    "frame"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "version",
                "presentationKey",
                "fixtureIdentity",
                "rendererIdentity",
                "video",
                "poster"
              ],
              "additionalProperties": false
            },
            "preview": {
              "type": "object",
              "properties": {
                "identity": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "unproven",
                    "verified"
                  ]
                }
              },
              "required": [
                "identity",
                "status"
              ],
              "additionalProperties": false
            },
            "kind": {
              "type": "string",
              "const": "recipe"
            },
            "document": {
              "type": "object",
              "properties": {
                "scope": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "builtin"
                        },
                        "collection": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "collection"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-local"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "workspaceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "workspaceId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "org-hosted"
                        },
                        "orgId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "deploymentId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "kind",
                        "orgId",
                        "deploymentId"
                      ],
                      "additionalProperties": false
                    }
                  ],
                  "type": "object"
                },
                "documentId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "documentSha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                }
              },
              "required": [
                "scope",
                "documentId",
                "documentSha256"
              ],
              "additionalProperties": false
            },
            "placementCount": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "memberSources": {
              "minItems": 1,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "scope": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "builtin"
                          },
                          "collection": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          }
                        },
                        "required": [
                          "kind",
                          "collection"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "org-local"
                          },
                          "orgId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "workspaceId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          }
                        },
                        "required": [
                          "kind",
                          "orgId",
                          "workspaceId"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "org-hosted"
                          },
                          "orgId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "deploymentId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          }
                        },
                        "required": [
                          "kind",
                          "orgId",
                          "deploymentId"
                        ],
                        "additionalProperties": false
                      }
                    ],
                    "type": "object"
                  },
                  "componentId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "sourceVersionId": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "sourceVersion": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 3
                      },
                      {
                        "type": "number",
                        "const": 4
                      }
                    ]
                  }
                },
                "required": [
                  "scope",
                  "componentId",
                  "sourceVersionId",
                  "sourceVersion"
                ],
                "additionalProperties": false
              }
            },
            "equivalence": {
              "type": "string",
              "enum": [
                "unproven",
                "verified"
              ]
            }
          },
          "required": [
            "identity",
            "name",
            "description",
            "category",
            "kind",
            "document",
            "placementCount",
            "memberSources",
            "equivalence"
          ],
          "additionalProperties": false
        }
      ],
      "type": "object"
    },
    "previewMedia": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "const": "available"
            },
            "posterUrl": {
              "type": "string",
              "format": "uri"
            },
            "videoUrl": {
              "type": "string",
              "format": "uri"
            }
          },
          "required": [
            "status",
            "posterUrl",
            "videoUrl"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "const": "unavailable"
            },
            "reason": {
              "type": "string",
              "enum": [
                "showcase_missing",
                "showcase_stale",
                "base_unconfigured",
                "invalid_media"
              ]
            }
          },
          "required": [
            "status",
            "reason"
          ],
          "additionalProperties": false
        }
      ],
      "type": "object"
    },
    "document": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "documentText": {
      "type": "string"
    },
    "documentSha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "source": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "preset": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "card"
  ],
  "additionalProperties": false
}