{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scale-ai/json-schema/scale-ai-endpoint-predict-v1-request-schema.json",
  "title": "EndpointPredictV1Request",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scale-ai-async-tasks-api-openapi.yml#/components/schemas/EndpointPredictV1Request",
  "properties": {
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Url"
    },
    "args": {
      "anyOf": [
        {
          "$ref": "#/$defs/RequestSchema"
        },
        {
          "type": "null"
        }
      ]
    },
    "cloudpickle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cloudpickle"
    },
    "callback_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Callback Url"
    },
    "callback_auth": {
      "anyOf": [
        {
          "$ref": "#/$defs/CallbackAuth"
        },
        {
          "type": "null"
        }
      ]
    },
    "return_pickled": {
      "type": "boolean",
      "title": "Return Pickled",
      "default": false
    },
    "destination_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Destination Path"
    }
  },
  "type": "object",
  "$defs": {
    "CallbackAuth": {
      "oneOf": [
        {
          "$ref": "#/$defs/CallbackBasicAuth"
        },
        {
          "$ref": "#/$defs/CallbackmTLSAuth"
        }
      ],
      "title": "CallbackAuth"
    },
    "CallbackBasicAuth": {
      "properties": {
        "kind": {
          "type": "string",
          "const": "basic",
          "title": "Kind"
        },
        "username": {
          "type": "string",
          "title": "Username"
        },
        "password": {
          "type": "string",
          "title": "Password"
        }
      },
      "type": "object",
      "required": [
        "kind",
        "username",
        "password"
      ],
      "title": "CallbackBasicAuth"
    },
    "CallbackmTLSAuth": {
      "properties": {
        "kind": {
          "type": "string",
          "const": "mtls",
          "title": "Kind"
        },
        "cert": {
          "type": "string",
          "title": "Cert"
        },
        "key": {
          "type": "string",
          "title": "Key"
        }
      },
      "type": "object",
      "required": [
        "kind",
        "cert",
        "key"
      ],
      "title": "CallbackmTLSAuth"
    },
    "RequestSchema": {
      "title": "RequestSchema"
    }
  }
}