async waitFor(opts) {
      opts = opts || {};
      let postBody = opts['waitForConditions'];

      let pathParams = {
      };
      let queryParams = {
      };
      let headerParams = {
      };
      let formParams = {
      };

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

      return this.callApi(
        '/waitFor', 'POST',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
/**
     * Wait for conditions to be met
     * Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met
     * @param {Object} opts Optional parameters
     * @param {WaitForConditions} opts.waitForConditions Conditions to wait for
     * @return {Promise<Array.<EmailPreview>>}
     */
Wait for conditions to be met
Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met
@param {Object} opts Optional parameters
@param {WaitForConditions} opts.waitForConditions Conditions to wait for
@return {Promise>}
Wait for conditions to be met Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met @param { Object } opts Optional parameters @param { WaitForConditions } opts . waitForConditions Conditions to wait for @return { Promise > }
async waitFor(opts) {
      opts = opts || {};
      let postBody = opts['waitForConditions'];
      let pathParams = {
      };
      let queryParams = {
      };
      let headerParams = {
      };
      let formParams = {
      };
      let authNames = ['API_KEY'];
      let contentTypes = ['application/json'];
      let accepts = ['application/json'];
      let returnType = [EmailPreview];
      return this.callApi(
        '/waitFor', 'POST',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
async waitFor ( opts ) { opts = opts || { } ; let postBody = opts [ 'waitForConditions' ] ; let pathParams = { } ; let queryParams = { } ; let headerParams = { } ; let formParams = { } ; let authNames = [ 'API_KEY' ] ; let contentTypes = [ 'application/json' ] ; let accepts = [ 'application/json' ] ; let returnType = [ EmailPreview ] ; return this . callApi ( '/waitFor' , 'POST' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType ) ; }
Wait for conditions to be met
 Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met
 @param {Object} opts Optional parameters
 @param {WaitForConditions} opts.waitForConditions Conditions to wait for
 @return {Promise<Array.<EmailPreview>>}
Wait for conditions to be met Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met @param { Object } opts Optional parameters @param { WaitForConditions } opts . waitForConditions Conditions to wait for @return { Promise<Array . <EmailPreview >> }