{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/twilio/main/json-schema/twilio-autopilot-v1-assistant-model-build-schema.json",
  "title": "autopilot.v1.assistant.model_build",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twilio-assistants-api-openapi.yml#/components/schemas/autopilot.v1.assistant.model_build",
  "type": "object",
  "properties": {
    "account_sid": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 34,
      "maxLength": 34,
      "pattern": "^AC[0-9a-fA-F]{32}$",
      "description": "The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ModelBuild resource."
    },
    "date_created": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format."
    },
    "date_updated": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format."
    },
    "assistant_sid": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 34,
      "maxLength": 34,
      "pattern": "^UA[0-9a-fA-F]{32}$",
      "description": "The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource."
    },
    "sid": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 34,
      "maxLength": 34,
      "pattern": "^UG[0-9a-fA-F]{32}$",
      "description": "The unique string that we created to identify the ModelBuild resource."
    },
    "status": {
      "type": [
        "string",
        "null"
      ],
      "$ref": "#/$defs/model_build_enum_status",
      "description": "The status of the model build process. Can be: `enqueued`, `building`, `completed`, or `failed`"
    },
    "unique_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource."
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "The absolute URL of the ModelBuild resource."
    },
    "build_duration": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The time in seconds it took to build the model."
    },
    "error_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "If the `status` for the model build is `failed`, this value is a code to more information about the failure. This value will be null for all other statuses. See [error code dictionary](https://www.twilio.com/docs/api/errors) for a description of the error."
    }
  },
  "$defs": {
    "model_build_enum_status": {
      "type": "string",
      "enum": [
        "enqueued",
        "building",
        "completed",
        "failed",
        "canceled"
      ]
    }
  }
}