"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.createBodySchema = void 0;
var _configSchema = require("@kbn/config-schema");
var _shared = require("../../../shared");
var _r_rule = require("../../../../r_rule");
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0; you may not use this file except in compliance with the Elastic License
 * 2.0.
 */

const createBodySchema = _configSchema.schema.object({
  title: _configSchema.schema.string(),
  duration: _configSchema.schema.number(),
  r_rule: _r_rule.rRuleRequestSchemaV1,
  category_ids: _shared.maintenanceWindowCategoryIdsSchemaV1
});
exports.createBodySchema = createBodySchema;