"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 __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 swagger_exports = {};
__export(swagger_exports, {
  default: () => swagger_default
});
module.exports = __toCommonJS(swagger_exports);
var import_swagger_jsdoc = __toESM(require("swagger-jsdoc"));
var import_config = require("./config");
const swaggerDefinition = {
  openapi: "3.0.0",
  info: {
    title: `${import_config.appDetails.appName}`,
    version: "2.0.0",
    description: `${import_config.appDetails.appName} API documentation with Swagger`,
    contact: {
      name: `${import_config.appDetails.appName}`,
      url: "",
      email: `${import_config.appDetails.adminMail}`
    }
  },
  // basePath: '/',
  tags: [
    {
      name: "Cron",
      description: `**Note:** Use the server URL **${"`" + import_config.appDetails.baseUrl + "`"}** for these APIs.`
    },
    {
      name: "Auth",
      description: `**Server:** ${"`" + import_config.appDetails.baseUrl + "api/`"}.`
    },
    {
      name: "Common",
      description: `**Server:** ${"`" + import_config.appDetails.baseUrl + "api/`"}.`
    },
    {
      name: "Language",
      description: `**Server:** ${"`" + import_config.appDetails.baseUrl + "api/`"}.`
    },
    {
      name: "Test",
      description: `**Server:** ${"`" + import_config.appDetails.baseUrl + "api/`"}.`
    },
    {
      name: "OpenAI",
      description: `**Server:** ${"`" + import_config.appDetails.baseUrl + "api/`"}.`
    },
    {
      name: "Webhook",
      description: `**Server:** ${"`" + import_config.appDetails.baseUrl + "api/`"}.`
    }
  ],
  servers: [
    {
      url: `${import_config.appDetails.baseUrl}api/`
    }
  ],
  components: {
    securitySchemes: {
      AccessToken: {
        type: "http",
        // Type set to 'http' for Bearer tokens
        scheme: "bearer",
        // Scheme set to 'bearer'
        bearerFormat: "JWT",
        // Optional: Specify the format as JWT if it's a JWT token
        description: "Enter the Bearer token in the following format: `Bearer <token>`"
      },
      Language: {
        type: "apiKey",
        in: "header",
        name: "lang"
      },
      DeviceId: {
        type: "apiKey",
        in: "header",
        name: "deviceId",
        description: "Must be <strong>unique device id</strong>"
      },
      DeviceType: {
        type: "apiKey",
        in: "header",
        name: "deviceType",
        description: "It should be - <strong>android, ios,</strong> or <strong>web</strong>"
      },
      FcmToken: {
        type: "apiKey",
        in: "header",
        name: "fcmToken"
      }
    }
  },
  security: [
    {
      Language: []
    }
  ],
  paths: {}
};
const options = {
  failOnErrors: true,
  definition: swaggerDefinition,
  apis: [
    `${__dirname}/@lcp-framework/routes/**/**.sw.routes.ts`,
    `${__dirname}/app/routes/**/**.sw.routes.ts`,
    "./@lcp-framework/routes/**/**.sw.routes.js",
    "./app/routes/**/**.sw.routes.js"
  ]
};
const swaggerSpec = (0, import_swagger_jsdoc.default)(options);
var swagger_default = swaggerSpec;
