{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audiostack/json-schema/audiostack-post-batch-success-response-schema.json",
  "title": "PostBatchSuccessResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audiostack-audioform-api-openapi.yml#/components/schemas/PostBatchSuccessResponse",
  "properties": {
    "metadata": {
      "$ref": "#/$defs/ResponseMetadata"
    },
    "warnings": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Warnings",
      "default": []
    },
    "message": {
      "type": "string",
      "title": "Message"
    },
    "data": {
      "$ref": "#/$defs/AudioformBatchData"
    }
  },
  "type": "object",
  "required": [
    "metadata",
    "message",
    "data"
  ],
  "$defs": {
    "AudioformBatchData": {
      "properties": {
        "batchId": {
          "type": "string",
          "format": "uuid",
          "title": "Batchid"
        },
        "status": {
          "$ref": "#/$defs/BatchStatus"
        },
        "items": {
          "items": {
            "$ref": "#/$defs/AudioformBatchItemData"
          },
          "type": "array",
          "title": "Items"
        }
      },
      "type": "object",
      "required": [
        "batchId",
        "status",
        "items"
      ],
      "title": "AudioformBatchData"
    },
    "AudioformBatchItemData": {
      "properties": {
        "batchItemId": {
          "type": "string",
          "format": "uuid",
          "title": "Batchitemid"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "audioform": {
          "anyOf": [
            {
              "$ref": "#/$defs/AudioformInput"
            },
            {
              "$ref": "#/$defs/AudioformInput"
            },
            {
              "$ref": "#/$defs/AudioformInput"
            }
          ],
          "title": "Audioform"
        },
        "audioformId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Audioformid"
        },
        "audioformStatus": {
          "$ref": "#/$defs/AudioformStatus"
        },
        "audioformResult": {
          "anyOf": [
            {
              "$ref": "#/$defs/AudioformResult"
            },
            {
              "$ref": "#/$defs/AudioformResult"
            },
            {
              "$ref": "#/$defs/AudioformResult"
            },
            {
              "$ref": "#/$defs/AudioformError"
            },
            {
              "type": "null"
            }
          ],
          "title": "Audioformresult"
        }
      },
      "type": "object",
      "required": [
        "batchItemId",
        "name"
      ],
      "title": "AudioformBatchItemData"
    },
    "AudioformError": {
      "properties": {
        "message": {
          "type": "string",
          "title": "Message"
        },
        "statusCode": {
          "type": "integer",
          "title": "Statuscode"
        }
      },
      "type": "object",
      "required": [
        "message",
        "statusCode"
      ],
      "title": "AudioformError"
    },
    "AudioformStatus": {
      "type": "string",
      "enum": [
        "queued",
        "in_progress",
        "success",
        "error"
      ],
      "title": "AudioformStatus"
    },
    "BatchStatus": {
      "type": "string",
      "enum": [
        "submitted",
        "complete"
      ],
      "title": "BatchStatus"
    },
    "ResponseMetadata": {
      "properties": {
        "requestId": {
          "type": "string",
          "title": "Requestid"
        },
        "version": {
          "type": "string"
        },
        "creditUsed": {
          "type": "number",
          "title": "Creditused"
        },
        "creditsRemaining": {
          "type": "number",
          "title": "Creditsremaining"
        }
      },
      "type": "object",
      "required": [
        "requestId"
      ],
      "title": "ResponseMetadata"
    }
  }
}