"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var FirmwareUpdateMetaDataCC_validateArgs_exports = {};
__export(FirmwareUpdateMetaDataCC_validateArgs_exports, {
  validateArgs_FirmwareUpdateMetaDataCCAPI_activateFirmware: () => validateArgs_FirmwareUpdateMetaDataCCAPI_activateFirmware,
  validateArgs_FirmwareUpdateMetaDataCCAPI_reportMetaData: () => validateArgs_FirmwareUpdateMetaDataCCAPI_reportMetaData,
  validateArgs_FirmwareUpdateMetaDataCCAPI_requestUpdate: () => validateArgs_FirmwareUpdateMetaDataCCAPI_requestUpdate,
  validateArgs_FirmwareUpdateMetaDataCCAPI_respondToDownloadRequest: () => validateArgs_FirmwareUpdateMetaDataCCAPI_respondToDownloadRequest,
  validateArgs_FirmwareUpdateMetaDataCCAPI_respondToUpdateRequest: () => validateArgs_FirmwareUpdateMetaDataCCAPI_respondToUpdateRequest,
  validateArgs_FirmwareUpdateMetaDataCCAPI_sendFirmwareFragment: () => validateArgs_FirmwareUpdateMetaDataCCAPI_sendFirmwareFragment
});
module.exports = __toCommonJS(FirmwareUpdateMetaDataCC_validateArgs_exports);
var v = __toESM(require("@zwave-js/core/validation"), 1);
function validateArgs_FirmwareUpdateMetaDataCCAPI_reportMetaData() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function reportMetaData(options) {
        v.assert(v.object({ kind: "parameter", name: "options" }, "FirmwareUpdateMetaDataCCMetaDataReportOptions", { "manufacturerId": v.primitive({ kind: "property", name: "manufacturerId" }, "number"), "firmwareId": v.optional({ kind: "property", name: "firmwareId" }, v.primitive({ kind: "property", name: "firmwareId" }, "number")), "checksum": v.optional({ kind: "property", name: "checksum" }, v.primitive({ kind: "property", name: "checksum" }, "number")), "firmwareUpgradable": v.primitive({ kind: "property", name: "firmwareUpgradable" }, "boolean"), "maxFragmentSize": v.optional({ kind: "property", name: "maxFragmentSize" }, v.primitive({ kind: "property", name: "maxFragmentSize" }, "number")), "additionalFirmwareIDs": v.optional({ kind: "property", name: "additionalFirmwareIDs" }, v.array({ kind: "property", name: "additionalFirmwareIDs" }, "number", v.primitive({ kind: "item", name: "additionalFirmwareIDs" }, "number"))), "hardwareVersion": v.optional({ kind: "property", name: "hardwareVersion" }, v.primitive({ kind: "property", name: "hardwareVersion" }, "number")), "continuesToFunction": v.optional({ kind: "property", name: "continuesToFunction" }, v.primitive({ kind: "property", name: "continuesToFunction" }, "boolean")), "supportsActivation": v.optional({ kind: "property", name: "supportsActivation" }, v.primitive({ kind: "property", name: "supportsActivation" }, "boolean")), "supportsResuming": v.optional({ kind: "property", name: "supportsResuming" }, v.primitive({ kind: "property", name: "supportsResuming" }, "boolean")), "supportsNonSecureTransfer": v.optional({ kind: "property", name: "supportsNonSecureTransfer" }, v.primitive({ kind: "property", name: "supportsNonSecureTransfer" }, "boolean")) })(options));
        return __decoratedMethod.call(this, options);
      }, "reportMetaData");
    }
  };
}
__name(validateArgs_FirmwareUpdateMetaDataCCAPI_reportMetaData, "validateArgs_FirmwareUpdateMetaDataCCAPI_reportMetaData");
function validateArgs_FirmwareUpdateMetaDataCCAPI_requestUpdate() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function requestUpdate(options) {
        v.assert(v.oneOf({ kind: "parameter", name: "options" }, "FirmwareUpdateMetaDataCCRequestGetOptions", v.allOf({ kind: "parameter", name: "options" }, void 0, v.object({ kind: "parameter", name: "options" }, "<anonymous object>", { "manufacturerId": v.primitive({ kind: "property", name: "manufacturerId" }, "number"), "firmwareId": v.primitive({ kind: "property", name: "firmwareId" }, "number"), "checksum": v.primitive({ kind: "property", name: "checksum" }, "number") }), v.object({ kind: "parameter", name: "options" }, "<anonymous object>", { "firmwareTarget": v.primitive({ kind: "property", name: "firmwareTarget" }, "number"), "fragmentSize": v.primitive({ kind: "property", name: "fragmentSize" }, "number"), "activation": v.optional({ kind: "property", name: "activation" }, v.primitive({ kind: "property", name: "activation" }, "boolean")), "hardwareVersion": v.optional({ kind: "property", name: "hardwareVersion" }, v.primitive({ kind: "property", name: "hardwareVersion" }, "number")), "resume": v.optional({ kind: "property", name: "resume" }, v.primitive({ kind: "property", name: "resume" }, "boolean")), "nonSecureTransfer": v.optional({ kind: "property", name: "nonSecureTransfer" }, v.primitive({ kind: "property", name: "nonSecureTransfer" }, "boolean")) })), v.allOf({ kind: "parameter", name: "options" }, void 0, v.object({ kind: "parameter", name: "options" }, "<anonymous object>", { "manufacturerId": v.primitive({ kind: "property", name: "manufacturerId" }, "number"), "firmwareId": v.primitive({ kind: "property", name: "firmwareId" }, "number"), "checksum": v.primitive({ kind: "property", name: "checksum" }, "number") }), v.object({ kind: "parameter", name: "options" }, "<anonymous object>", {})))(options));
        return __decoratedMethod.call(this, options);
      }, "requestUpdate");
    }
  };
}
__name(validateArgs_FirmwareUpdateMetaDataCCAPI_requestUpdate, "validateArgs_FirmwareUpdateMetaDataCCAPI_requestUpdate");
function validateArgs_FirmwareUpdateMetaDataCCAPI_respondToUpdateRequest() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function respondToUpdateRequest(options) {
        v.assert(v.object({ kind: "parameter", name: "options" }, "FirmwareUpdateMetaDataCCRequestReportOptions", { "status": v.enum({ kind: "property", name: "status" }, "FirmwareUpdateRequestStatus"), "resume": v.optional({ kind: "property", name: "resume" }, v.primitive({ kind: "property", name: "resume" }, "boolean")), "nonSecureTransfer": v.optional({ kind: "property", name: "nonSecureTransfer" }, v.primitive({ kind: "property", name: "nonSecureTransfer" }, "boolean")) })(options));
        return __decoratedMethod.call(this, options);
      }, "respondToUpdateRequest");
    }
  };
}
__name(validateArgs_FirmwareUpdateMetaDataCCAPI_respondToUpdateRequest, "validateArgs_FirmwareUpdateMetaDataCCAPI_respondToUpdateRequest");
function validateArgs_FirmwareUpdateMetaDataCCAPI_respondToDownloadRequest() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function respondToDownloadRequest(options) {
        v.assert(v.object({ kind: "parameter", name: "options" }, "FirmwareUpdateMetaDataCCPrepareReportOptions", { "status": v.enum({ kind: "property", name: "status" }, "FirmwareDownloadStatus"), "checksum": v.primitive({ kind: "property", name: "checksum" }, "number") })(options));
        return __decoratedMethod.call(this, options);
      }, "respondToDownloadRequest");
    }
  };
}
__name(validateArgs_FirmwareUpdateMetaDataCCAPI_respondToDownloadRequest, "validateArgs_FirmwareUpdateMetaDataCCAPI_respondToDownloadRequest");
function validateArgs_FirmwareUpdateMetaDataCCAPI_sendFirmwareFragment() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function sendFirmwareFragment(fragmentNumber, isLastFragment, data) {
        v.assert(v.primitive({ kind: "parameter", name: "fragmentNumber" }, "number")(fragmentNumber), v.primitive({ kind: "parameter", name: "isLastFragment" }, "boolean")(isLastFragment), v.uint8array({ kind: "parameter", name: "data" })(data));
        return __decoratedMethod.call(this, fragmentNumber, isLastFragment, data);
      }, "sendFirmwareFragment");
    }
  };
}
__name(validateArgs_FirmwareUpdateMetaDataCCAPI_sendFirmwareFragment, "validateArgs_FirmwareUpdateMetaDataCCAPI_sendFirmwareFragment");
function validateArgs_FirmwareUpdateMetaDataCCAPI_activateFirmware() {
  return (__decoratedMethod, { kind }) => {
    if (kind === "method") {
      return /* @__PURE__ */ __name(function activateFirmware(options) {
        v.assert(v.object({ kind: "parameter", name: "options" }, "FirmwareUpdateMetaDataCCActivationSetOptions", { "manufacturerId": v.primitive({ kind: "property", name: "manufacturerId" }, "number"), "firmwareId": v.primitive({ kind: "property", name: "firmwareId" }, "number"), "checksum": v.primitive({ kind: "property", name: "checksum" }, "number"), "firmwareTarget": v.primitive({ kind: "property", name: "firmwareTarget" }, "number"), "hardwareVersion": v.optional({ kind: "property", name: "hardwareVersion" }, v.primitive({ kind: "property", name: "hardwareVersion" }, "number")) })(options));
        return __decoratedMethod.call(this, options);
      }, "activateFirmware");
    }
  };
}
__name(validateArgs_FirmwareUpdateMetaDataCCAPI_activateFirmware, "validateArgs_FirmwareUpdateMetaDataCCAPI_activateFirmware");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  validateArgs_FirmwareUpdateMetaDataCCAPI_activateFirmware,
  validateArgs_FirmwareUpdateMetaDataCCAPI_reportMetaData,
  validateArgs_FirmwareUpdateMetaDataCCAPI_requestUpdate,
  validateArgs_FirmwareUpdateMetaDataCCAPI_respondToDownloadRequest,
  validateArgs_FirmwareUpdateMetaDataCCAPI_respondToUpdateRequest,
  validateArgs_FirmwareUpdateMetaDataCCAPI_sendFirmwareFragment
});
//# sourceMappingURL=FirmwareUpdateMetaDataCC._validateArgs.js.map
