{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://workflows.dubspeak.com/schemas/narrated-presentation-capability.schema.json",
  "title": "Narrated presentation capability document (custom)",
  "type": "object",
  "required": [
    "$schema",
    "id",
    "version",
    "status",
    "description",
    "inputRequirements",
    "outputs",
    "demonstratedScope",
    "observedTools",
    "humanReview",
    "evidence",
    "sourceLimitations",
    "pricing",
    "sla",
    "capacity",
    "execution",
    "contact",
    "emailInquiry",
    "access",
    "unknowns",
    "retrieval",
    "dateModified"
  ],
  "properties": {
    "$schema": {
      "const": "https://workflows.dubspeak.com/schemas/narrated-presentation-capability.schema.json"
    },
    "id": {
      "const": "narrated-presentation"
    },
    "version": {
      "type": "string",
      "pattern": "^\\d+\\.\\d+\\.\\d+$"
    },
    "dateModified": {
      "type": "string",
      "format": "date"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "retrieval": {
      "type": "object",
      "required": [
        "canonicalUrl",
        "date",
        "version"
      ],
      "properties": {
        "canonicalUrl": {
          "type": "string",
          "pattern": "^https://"
        },
        "date": {
          "type": "string",
          "format": "date"
        },
        "version": {
          "type": "string"
        }
      }
    },
    "description": {
      "type": "string",
      "minLength": 20
    },
    "status": {
      "type": "object",
      "required": [
        "documentation",
        "discovery",
        "jobExecutionApi",
        "automaticOrdering",
        "uploads",
        "payment",
        "automatedJobs",
        "emailInquiry"
      ],
      "properties": {
        "documentation": {
          "const": "available"
        },
        "discovery": {
          "const": "available"
        },
        "jobExecutionApi": {
          "const": "not_implemented"
        },
        "automaticOrdering": {
          "const": "not_implemented"
        },
        "uploads": {
          "const": "not_implemented"
        },
        "payment": {
          "const": "not_implemented"
        },
        "automatedJobs": {
          "const": "not_accepted"
        },
        "emailInquiry": {
          "const": "available"
        }
      }
    },
    "inputRequirements": {
      "type": "array",
      "minItems": 6,
      "items": {
        "type": "object",
        "required": [
          "id",
          "required",
          "description"
        ],
        "properties": {
          "id": {
            "enum": [
              "deck",
              "pageMappedScript",
              "language",
              "targetDuration",
              "permissions",
              "mediaAndVoiceReview"
            ]
          },
          "required": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          }
        }
      }
    },
    "outputs": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "format"
        ],
        "properties": {
          "format": {
            "enum": [
              "PPTX",
              "MP4"
            ]
          }
        }
      }
    },
    "demonstratedScope": {
      "type": "object",
      "required": [
        "projects",
        "slides",
        "narratedSlides",
        "silentSlides",
        "videos"
      ],
      "properties": {
        "projects": {
          "const": 1
        },
        "slides": {
          "type": "integer"
        },
        "narratedSlides": {
          "type": "integer"
        },
        "silentSlides": {
          "type": "integer"
        },
        "videos": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "language",
              "width",
              "height",
              "fps",
              "frames",
              "containerDurationSeconds"
            ],
            "properties": {
              "language": {
                "type": "string"
              },
              "width": {
                "type": "integer"
              },
              "height": {
                "type": "integer"
              },
              "fps": {
                "type": "number"
              },
              "frames": {
                "type": "integer"
              },
              "containerDurationSeconds": {
                "type": "number"
              }
            }
          }
        }
      }
    },
    "observedTools": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "role"
        ]
      }
    },
    "humanReview": {
      "type": "object",
      "required": [
        "required",
        "fullyAutomatic"
      ],
      "properties": {
        "required": {
          "const": true
        },
        "fullyAutomatic": {
          "const": false
        }
      }
    },
    "evidence": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^https://"
      }
    },
    "sourceLimitations": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1
    },
    "pricing": {
      "type": "object",
      "required": [
        "price",
        "currency"
      ],
      "properties": {
        "price": {
          "type": "null"
        },
        "currency": {
          "type": "null"
        }
      }
    },
    "sla": {
      "type": "null"
    },
    "capacity": {
      "type": "null"
    },
    "execution": {
      "type": "object",
      "required": [
        "available",
        "endpoint"
      ],
      "properties": {
        "available": {
          "const": false
        },
        "endpoint": {
          "type": "null"
        }
      }
    },
    "contact": {
      "type": "object",
      "required": [
        "method",
        "url",
        "automatedSubmissionAccepted"
      ],
      "properties": {
        "method": {
          "const": "manual_inquiry"
        },
        "url": {
          "const": "https://x.com/huker2"
        },
        "automatedSubmissionAccepted": {
          "const": false
        }
      }
    },
    "emailInquiry": {
      "type": "object",
      "required": [
        "status",
        "version",
        "address",
        "recipientPlacement",
        "visibilityLimit",
        "bodySchema",
        "subject",
        "maxBodyBytes",
        "attachmentsAccepted",
        "replyPolicy",
        "requiresEmailSendingTool",
        "guarantees"
      ],
      "properties": {
        "status": {
          "const": "available"
        },
        "version": {
          "const": "1"
        },
        "recipientPlacement": {
          "const": "To"
        },
        "visibilityLimit": {
          "type": "string",
          "maxLength": 300
        },
        "address": {
          "type": "string",
          "pattern": "^[a-z0-9-]+\\+inquiry@mail\\.grokbot\\.com$"
        },
        "subject": {
          "const": "[WorkflowShelf Inquiry v1]"
        },
        "maxBodyBytes": {
          "type": "integer",
          "maximum": 16384
        },
        "attachmentsAccepted": {
          "const": false
        },
        "requiresEmailSendingTool": {
          "const": true
        },
        "guarantees": {
          "type": "object",
          "additionalProperties": {
            "type": "null"
          }
        }
      }
    },
    "access": {
      "type": "object",
      "required": [
        "note",
        "observedOn",
        "observations",
        "testsPerformed",
        "securitySettingsChanged",
        "contact"
      ],
      "properties": {
        "note": {
          "type": "string"
        },
        "observedOn": {
          "type": "string",
          "format": "date"
        },
        "observations": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "client",
              "method",
              "result"
            ],
            "properties": {
              "method": {
                "const": "GET"
              }
            }
          }
        },
        "testsPerformed": {
          "type": "string"
        },
        "securitySettingsChanged": {
          "const": false
        },
        "contact": {
          "const": "https://x.com/huker2"
        }
      }
    },
    "unknowns": {
      "type": "object",
      "required": [
        "cost",
        "labor",
        "accuracy",
        "clientAcceptance",
        "conferenceAcceptance",
        "revenue"
      ],
      "additionalProperties": {
        "type": "null"
      }
    }
  }
}
