text: "use strict";
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports["default"] = void 0;
  
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
  
  var _GetFileResponse = _interopRequireDefault(require("../model/GetFileResponse"));
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  
  /**
  * File service.
  * @module api/FileApi
  * @version 1.0.9
  */
  var FileApi = /*#__PURE__*/function () {
    /**
    * Constructs a new FileApi. 
    * @alias module:api/FileApi
    * @class
    * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
    * default to {@link module:ApiClient#instance} if unspecified.
    */
    function FileApi(apiClient) {
      _classCallCheck(this, FileApi);
  
      this.apiClient = apiClient || _ApiClient["default"].instance;
    }
    /**
     * Upload a file
     * Easily upload a file to any of IPFS, Arweave, and Filecoin. Not publicly available. Please sign up for <a href=\"https://forms.gle/N4KSqcptpSrHQ1427\" target=\"_blank\">the waitlist</a>.
     * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFileResponse} and HTTP response
     */
  
  
    _createClass(FileApi, [{
      key: "uploadFileWithHttpInfo",
      value: function uploadFileWithHttpInfo() {
        var postBody = null;
        var pathParams = {};
        var queryParams = {};
        var headerParams = {};
        var formParams = {};
        var authNames = ['APIKeyID', 'APISecretKey'];
        var contentTypes = ['multipart/form-data', 'application/json'];
        var accepts = ['application/json'];
        var returnType = _GetFileResponse["default"];
        return this.apiClient.callApi('/file', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
      }
      /**
       * Upload a file
       * Easily upload a file to any of IPFS, Arweave, and Filecoin. Not publicly available. Please sign up for <a href=\"https://forms.gle/N4KSqcptpSrHQ1427\" target=\"_blank\">the waitlist</a>.
       * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFileResponse}
       */
  
    }, {
      key: "uploadFile",
      value: function uploadFile() {
        return this.uploadFileWithHttpInfo().then(function (response_and_data) {
          return response_and_data.data;
        });
      }
    }]);
  
    return FileApi;
  }();
  
  exports["default"] = FileApi;