async waitForEmailCount(opts) {
      opts = opts || {};
      let postBody = null;

      let pathParams = {
      };
      let queryParams = {
        'count': opts['count'],
        'inboxId': opts['inboxId'],
        'timeout': opts['timeout'],
        'unreadOnly': opts['unreadOnly']
      };
      let headerParams = {
      };
      let formParams = {
      };

      let authNames = ['API_KEY'];
      let contentTypes = [];
      let accepts = ['application/json'];
      let returnType = [EmailPreview];

      return this.callApi(
        '/waitForEmailCount', 'GET',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
/**
     * Wait for and return count number of emails 
     * If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded.
     * @param {Object} opts Optional parameters
     * @param {Number} opts.count Number of emails to wait for. Must be greater that 1
     * @param {String} opts.inboxId Id of the inbox we are fetching emails from
     * @param {Number} opts.timeout Max milliseconds to wait
     * @param {Boolean} opts.unreadOnly Optional filter for unread only (default to false)
     * @return {Promise<Array.<EmailPreview>>}
     */
Wait for and return count number of emails
If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded.
@param {Object} opts Optional parameters
@param {Number} opts.count Number of emails to wait for. Must be greater that 1
@param {String} opts.inboxId Id of the inbox we are fetching emails from
@param {Number} opts.timeout Max milliseconds to wait
@param {Boolean} opts.unreadOnly Optional filter for unread only (default to false)
@return {Promise>}
Wait for and return count number of emails If inbox contains count or more emails at time of request then return count worth of emails . If not wait until the count is reached and return those or return an error if timeout is exceeded . @param { Object } opts Optional parameters @param { Number } opts . count Number of emails to wait for . Must be greater that 1 @param { String } opts . inboxId Id of the inbox we are fetching emails from @param { Number } opts . timeout Max milliseconds to wait @param { Boolean } opts . unreadOnly Optional filter for unread only ( default to false ) @return { Promise > }
async waitForEmailCount(opts) {
      opts = opts || {};
      let postBody = null;
      let pathParams = {
      };
      let queryParams = {
        'count': opts['count'],
        'inboxId': opts['inboxId'],
        'timeout': opts['timeout'],
        'unreadOnly': opts['unreadOnly']
      };
      let headerParams = {
      };
      let formParams = {
      };
      let authNames = ['API_KEY'];
      let contentTypes = [];
      let accepts = ['application/json'];
      let returnType = [EmailPreview];
      return this.callApi(
        '/waitForEmailCount', 'GET',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
async waitForEmailCount ( opts ) { opts = opts || { } ; let postBody = null ; let pathParams = { } ; let queryParams = { 'count' : opts [ 'count' ] , 'inboxId' : opts [ 'inboxId' ] , 'timeout' : opts [ 'timeout' ] , 'unreadOnly' : opts [ 'unreadOnly' ] } ; let headerParams = { } ; let formParams = { } ; let authNames = [ 'API_KEY' ] ; let contentTypes = [ ] ; let accepts = [ 'application/json' ] ; let returnType = [ EmailPreview ] ; return this . callApi ( '/waitForEmailCount' , 'GET' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType ) ; }
Wait for and return count number of emails
 If inbox contains count or more emails at time of request then return count worth of emails.
Wait for and return count number of emails If inbox contains count or more emails at time of request then return count worth of emails .