{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-inquiry-runs-with-keys-schema.json",
  "title": "data_inquiry_runs_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-va-openapi.yml#/components/schemas/data_inquiry_runs_withKeys",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "__ryvitKeys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Array of key paths that can be used to retrieve this object."
        },
        "__modifiedUTC": {
          "type": "string",
          "description": "UTC timestamp of when this object was last modified in the cache."
        }
      }
    },
    {
      "$ref": "#/$defs/data_inquiry_runs"
    }
  ],
  "$defs": {
    "data_inquiry_runs": {
      "required": [
        "__key",
        "__inquiry_KeyID",
        "__timestamp",
        "__filter",
        "__status"
      ],
      "type": "object",
      "properties": {
        "__key": {
          "maxLength": 36,
          "minLength": 36,
          "pattern": "^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$",
          "type": "string",
          "description": "The unique key (GUID/UUID) generated when the inquiry run was initiated. This serves as the primary identifier for the cache record."
        },
        "__inquiry_KeyID": {
          "type": "integer",
          "description": "The KeyID of the specific VA Inquiry record that was executed.",
          "format": "int64"
        },
        "__timestamp": {
          "type": "string",
          "description": "The timestamp indicating when the 'run_inquiry' action was initiated or when this cache record was last updated.",
          "format": "date-time"
        },
        "__filter": {
          "type": "object",
          "description": "The filter object used in the 'run_inquiry' action, containing the parameter values passed to the VA Inquiry."
        },
        "__status": {
          "enum": [
            "executing",
            "done",
            "cleared",
            "failed"
          ],
          "type": "string",
          "description": "The current status of the inquiry run."
        }
      },
      "description": "Schema for caching the execution status and parameters of an Inquiry Run initiated via the 'run_inquiry' action."
    }
  }
}