{
  "openapi": "3.1.1",
  "info": {
    "title": "PublicDomainMusic | v1",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://openscorearchive.project-pioneer.com/"
    }
  ],
  "paths": {
    "/api/v1": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/music/workflow": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/music/resolve": {
      "post": {
        "tags": [
          "ArchiveApi"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MusicResolveInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MusicResolveInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MusicResolveInputModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/music/contributions/schema": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/schema+json": { }
            }
          }
        }
      }
    },
    "/api/v1/music/contributions/template": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/music/contributions": {
      "post": {
        "tags": [
          "ArchiveApi"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MusicContributionInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MusicContributionInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MusicContributionInputModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted"
          }
        }
      }
    },
    "/api/v1/music/contributions/{trackingCode}": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "parameters": [
          {
            "name": "trackingCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/works": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "genre",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "composer",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "instrument",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "style",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/instruments": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/profiles": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "renderReady",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/profiles/{slug}": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/profiles/{slug}/definition": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": { }
            }
          }
        }
      }
    },
    "/api/v1/works/{slug}": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/works/{slug}/index.md": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/markdown": { }
            }
          }
        }
      }
    },
    "/api/v1/correction-reports": {
      "post": {
        "tags": [
          "ArchiveApi"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CorrectionReportInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CorrectionReportInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CorrectionReportInputModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted"
          }
        }
      }
    },
    "/api/v1/correction-reports/{trackingCode}": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "parameters": [
          {
            "name": "trackingCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "tags": [
          "ArchiveApi"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": { }
            }
          }
        }
      }
    },
    "/api/v1/library/imports": {
      "post": {
        "tags": [
          "MusicLibraryApi"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MusicLibraryImportInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MusicLibraryImportInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MusicLibraryImportInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/library/imports/{id}": {
      "get": {
        "tags": [
          "MusicLibraryApi"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/library/imports/{importId}/files/{fileId}": {
      "put": {
        "tags": [
          "MusicLibraryApi"
        ],
        "parameters": [
          {
            "name": "importId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/library/imports/{id}/commit": {
      "post": {
        "tags": [
          "MusicLibraryApi"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/library/tracks": {
      "get": {
        "tags": [
          "MusicLibraryApi"
        ],
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "collection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "genre",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "intendedUse",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/library/tracks/{stableKey}": {
      "get": {
        "tags": [
          "MusicLibraryApi"
        ],
        "parameters": [
          {
            "name": "stableKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/library/tracks/{stableKey}/publish": {
      "post": {
        "tags": [
          "MusicLibraryApi"
        ],
        "parameters": [
          {
            "name": "stableKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/library/files/{id}": {
      "get": {
        "tags": [
          "MusicLibraryApi"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ChannelContextInputModel": {
        "required": [
          "channelKey",
          "intendedRole"
        ],
        "type": "object",
        "properties": {
          "channelKey": {
            "maxLength": 100,
            "type": "string"
          },
          "displayName": {
            "maxLength": 160,
            "type": [
              "null",
              "string"
            ]
          },
          "audioProfile": {
            "maxLength": 120,
            "type": [
              "null",
              "string"
            ]
          },
          "musicAllowed": {
            "type": "boolean"
          },
          "intendedRole": {
            "pattern": "^(music-bed|music-lead|music-ambient|music-sleep-lead|intro|outro|short-form)$",
            "type": "string"
          },
          "narrationPresent": {
            "type": "boolean"
          },
          "usageNotes": {
            "maxLength": 600,
            "type": [
              "null",
              "string"
            ]
          }
        },
        "additionalProperties": false
      },
      "ContributionArrangementInputModel": {
        "required": [
          "renderingProfileSlugs"
        ],
        "type": "object",
        "properties": {
          "title": {
            "maxLength": 160,
            "type": [
              "null",
              "string"
            ]
          },
          "style": {
            "maxLength": 80,
            "type": [
              "null",
              "string"
            ]
          },
          "instrumentation": {
            "maxLength": 220,
            "type": [
              "null",
              "string"
            ]
          },
          "duration": {
            "maxLength": 20,
            "type": [
              "null",
              "string"
            ]
          },
          "intendedRole": {
            "maxLength": 100,
            "type": [
              "null",
              "string"
            ]
          },
          "renderingProfileSlugs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "ContributionAssetInputModel": {
        "required": [
          "kind",
          "title",
          "sourcePageUrl",
          "rightsStatus",
          "reviewState"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "pattern": "^(score-image|score-pdf|musicxml|mxl|midi|mp3|wav|video|artwork|manifest|source-page)$",
            "type": "string"
          },
          "title": {
            "maxLength": 180,
            "type": "string"
          },
          "downloadUrl": {
            "maxLength": 1000,
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "sourcePageUrl": {
            "maxLength": 1000,
            "type": "string",
            "format": "uri"
          },
          "sha256": {
            "maxLength": 64,
            "pattern": "^[A-Fa-f0-9]{64}$",
            "type": [
              "null",
              "string"
            ]
          },
          "mediaType": {
            "maxLength": 120,
            "type": [
              "null",
              "string"
            ]
          },
          "rightsStatus": {
            "maxLength": 80,
            "type": "string"
          },
          "license": {
            "maxLength": 160,
            "type": [
              "null",
              "string"
            ]
          },
          "attribution": {
            "maxLength": 500,
            "type": [
              "null",
              "string"
            ]
          },
          "reviewState": {
            "pattern": "^(pending|technical-pass|manual-review-pending|human-reviewed|human-listening-approved)$",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ContributionTargetInputModel": {
        "type": "object",
        "properties": {
          "workSlug": {
            "maxLength": 160,
            "type": [
              "null",
              "string"
            ]
          },
          "assetType": {
            "maxLength": 40,
            "type": [
              "null",
              "string"
            ]
          },
          "assetId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "baseSha256": {
            "maxLength": 64,
            "type": [
              "null",
              "string"
            ]
          }
        },
        "additionalProperties": false
      },
      "ContributionWorkInputModel": {
        "type": "object",
        "properties": {
          "title": {
            "maxLength": 200,
            "type": [
              "null",
              "string"
            ]
          },
          "originalTitle": {
            "maxLength": 200,
            "type": [
              "null",
              "string"
            ]
          },
          "composer": {
            "maxLength": 160,
            "type": [
              "null",
              "string"
            ]
          },
          "period": {
            "maxLength": 80,
            "type": [
              "null",
              "string"
            ]
          },
          "genre": {
            "maxLength": 80,
            "type": [
              "null",
              "string"
            ]
          },
          "year": {
            "maxLength": 40,
            "type": [
              "null",
              "string"
            ]
          },
          "workNumber": {
            "maxLength": 80,
            "type": [
              "null",
              "string"
            ]
          },
          "summary": {
            "maxLength": 300,
            "type": [
              "null",
              "string"
            ]
          }
        },
        "additionalProperties": false
      },
      "ContributorIdentityInputModel": {
        "required": [
          "name",
          "kind"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "type": "string"
          },
          "kind": {
            "pattern": "^(Human|AiAssisted|AutomatedAgent)$",
            "type": "string"
          },
          "agentName": {
            "maxLength": 100,
            "type": [
              "null",
              "string"
            ]
          },
          "agentVersion": {
            "maxLength": 80,
            "type": [
              "null",
              "string"
            ]
          },
          "contact": {
            "maxLength": 200,
            "type": [
              "null",
              "string"
            ]
          }
        },
        "additionalProperties": false
      },
      "CorrectionReportInputModel": {
        "required": [
          "targetType",
          "fieldName",
          "proposedValue",
          "rationale",
          "reporterName",
          "reporterKind"
        ],
        "type": "object",
        "properties": {
          "workSlug": {
            "maxLength": 160,
            "type": [
              "null",
              "string"
            ]
          },
          "targetType": {
            "maxLength": 32,
            "type": "string"
          },
          "targetId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fieldName": {
            "maxLength": 80,
            "type": "string"
          },
          "currentValue": {
            "maxLength": 2000,
            "type": [
              "null",
              "string"
            ]
          },
          "proposedValue": {
            "maxLength": 4000,
            "type": "string"
          },
          "rationale": {
            "maxLength": 2000,
            "type": "string"
          },
          "evidenceUrl": {
            "maxLength": 1000,
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "reporterName": {
            "maxLength": 100,
            "type": "string"
          },
          "reporterKind": {
            "maxLength": 32,
            "pattern": "^(Human|AiAssisted|AutomatedAgent)$",
            "type": "string"
          }
        }
      },
      "JsonElement": { },
      "MusicContributionInputModel": {
        "required": [
          "schemaVersion",
          "operation",
          "idempotencyKey",
          "submittedBy",
          "rights",
          "assets",
          "quality",
          "changeSummary"
        ],
        "type": "object",
        "properties": {
          "schemaVersion": {
            "pattern": "^osa\\.music-contribution\\.v1$",
            "type": "string"
          },
          "operation": {
            "pattern": "^(new-work|metadata-revision|source-score|score-revision|arrangement|performance|rendering-profile)$",
            "type": "string"
          },
          "idempotencyKey": {
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{7,119}$",
            "type": "string"
          },
          "submittedBy": {
            "$ref": "#/components/schemas/ContributorIdentityInputModel"
          },
          "channel": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ChannelContextInputModel"
              }
            ]
          },
          "target": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ContributionTargetInputModel"
              }
            ]
          },
          "work": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ContributionWorkInputModel"
              }
            ]
          },
          "rights": {
            "$ref": "#/components/schemas/RightsDeclarationInputModel"
          },
          "assets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContributionAssetInputModel"
            }
          },
          "arrangement": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ContributionArrangementInputModel"
              }
            ]
          },
          "reproducibility": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ReproducibilityInputModel"
              }
            ]
          },
          "quality": {
            "$ref": "#/components/schemas/QualityDeclarationInputModel"
          },
          "changeSummary": {
            "maxLength": 2000,
            "type": "string"
          },
          "rationale": {
            "maxLength": 2000,
            "type": [
              "null",
              "string"
            ]
          }
        },
        "additionalProperties": false
      },
      "MusicLibraryFileInput": {
        "required": [
          "kind",
          "fileName",
          "originalRelativePath",
          "contentType",
          "byteLength",
          "sha256",
          "downloadPolicy",
          "metadata"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "originalRelativePath": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          },
          "byteLength": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "sha256": {
            "type": "string"
          },
          "downloadPolicy": {
            "type": "string"
          },
          "metadata": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ]
          }
        }
      },
      "MusicLibraryImportInput": {
        "required": [
          "idempotencyKey",
          "track",
          "files"
        ],
        "type": "object",
        "properties": {
          "idempotencyKey": {
            "type": "string"
          },
          "track": {
            "$ref": "#/components/schemas/MusicLibraryTrackInput"
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MusicLibraryFileInput"
            }
          }
        }
      },
      "MusicLibraryTrackInput": {
        "required": [
          "stableKey",
          "title",
          "collection",
          "composer",
          "genre",
          "sourceType",
          "rightsStatus",
          "license",
          "attribution",
          "description",
          "tags",
          "intendedUses",
          "channelKeys",
          "rightsEvidence",
          "reproducibility",
          "quality",
          "reviewStatus",
          "visibility",
          "durationSeconds",
          "bpm",
          "musicalKey",
          "sourceCreatedAtUtc"
        ],
        "type": "object",
        "properties": {
          "stableKey": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "collection": {
            "type": "string"
          },
          "composer": {
            "type": [
              "null",
              "string"
            ]
          },
          "genre": {
            "type": [
              "null",
              "string"
            ]
          },
          "sourceType": {
            "type": "string"
          },
          "rightsStatus": {
            "type": "string"
          },
          "license": {
            "type": "string"
          },
          "attribution": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "tags": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "intendedUses": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "channelKeys": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "rightsEvidence": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ]
          },
          "reproducibility": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ]
          },
          "quality": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ]
          },
          "reviewStatus": {
            "type": "string"
          },
          "visibility": {
            "type": "string"
          },
          "durationSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "bpm": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "musicalKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "sourceCreatedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "MusicRequirementsInputModel": {
        "required": [
          "requiredFormats"
        ],
        "type": "object",
        "properties": {
          "style": {
            "maxLength": 80,
            "type": [
              "null",
              "string"
            ]
          },
          "instrumentation": {
            "maxLength": 220,
            "type": [
              "null",
              "string"
            ]
          },
          "mood": {
            "maxLength": 120,
            "type": [
              "null",
              "string"
            ]
          },
          "targetDurationSeconds": {
            "maximum": 14400,
            "minimum": 1,
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "requireMusicXml": {
            "type": "boolean"
          },
          "requireApprovedRenderingProfile": {
            "type": "boolean"
          },
          "requiredFormats": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "MusicResolveInputModel": {
        "required": [
          "channel",
          "requirements"
        ],
        "type": "object",
        "properties": {
          "workSlug": {
            "maxLength": 160,
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "maxLength": 200,
            "type": [
              "null",
              "string"
            ]
          },
          "composer": {
            "maxLength": 160,
            "type": [
              "null",
              "string"
            ]
          },
          "channel": {
            "$ref": "#/components/schemas/ChannelContextInputModel"
          },
          "requirements": {
            "$ref": "#/components/schemas/MusicRequirementsInputModel"
          }
        },
        "additionalProperties": false
      },
      "QualityDeclarationInputModel": {
        "type": "object",
        "properties": {
          "technicalValidationPassed": {
            "type": "boolean"
          },
          "humanListeningApproved": {
            "type": "boolean"
          },
          "technicalChecks": {
            "maxLength": 2000,
            "type": [
              "null",
              "string"
            ]
          },
          "listeningNotes": {
            "maxLength": 2000,
            "type": [
              "null",
              "string"
            ]
          }
        },
        "additionalProperties": false
      },
      "ReproducibilityInputModel": {
        "required": [
          "inputSha256"
        ],
        "type": "object",
        "properties": {
          "engine": {
            "maxLength": 100,
            "type": [
              "null",
              "string"
            ]
          },
          "model": {
            "maxLength": 160,
            "type": [
              "null",
              "string"
            ]
          },
          "seed": {
            "maxLength": 100,
            "type": [
              "null",
              "string"
            ]
          },
          "prompt": {
            "maxLength": 4000,
            "type": [
              "null",
              "string"
            ]
          },
          "negativePrompt": {
            "maxLength": 2000,
            "type": [
              "null",
              "string"
            ]
          },
          "command": {
            "maxLength": 4000,
            "type": [
              "null",
              "string"
            ]
          },
          "manifestUrl": {
            "maxLength": 1000,
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "inputSha256": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "RightsDeclarationInputModel": {
        "required": [
          "compositionStatus",
          "territory",
          "evidenceUrls"
        ],
        "type": "object",
        "properties": {
          "compositionStatus": {
            "pattern": "^(public-domain|permission-documented|not-applicable|unknown)$",
            "type": "string"
          },
          "editionStatus": {
            "pattern": "^(public-domain|licensed|original-contribution|not-applicable|unknown)$",
            "type": "string"
          },
          "recordingStatus": {
            "pattern": "^(public-domain|licensed|original-generated-recording|original-human-recording|not-applicable|unknown)$",
            "type": "string"
          },
          "territory": {
            "maxLength": 80,
            "type": "string"
          },
          "license": {
            "maxLength": 160,
            "type": [
              "null",
              "string"
            ]
          },
          "attribution": {
            "maxLength": 500,
            "type": [
              "null",
              "string"
            ]
          },
          "checkedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "evidenceUrls": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      }
    }
  },
  "tags": [
    {
      "name": "ArchiveApi"
    },
    {
      "name": "MusicLibraryApi"
    }
  ]
}