wgt-node-utils 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -0
- package/dist/bundle.js +2 -1
- package/dist/bundle.js.LICENSE.txt +1 -0
- package/package.json +7 -3
- package/src/index.js +461 -8
- package/webpack.config.js +10 -3
package/dist/bundle.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.wgtUtils=t():e.wgtUtils=t()}(this,(()=>(()=>{var e={497:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}n(425);var c=s((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"getSystem",(function(e){var t=e,n=/(?:Windows Phone)/.test(t),r=/(?:SymbianOS)/.test(t)||n,o=/(?:Android)/.test(t),s=/(?:Firefox)/.test(t),i=/(?:iPad|PlayBook)/.test(t)||o&&!/(?:Mobile)/.test(t)||s&&/(?:Tablet)/.test(t),a=/(?:iPhone)/.test(t)&&!i;return{isTablet:i,isPhone:a,isAndroid:o,isPC:!(a||o||r||i)}})),i(this,"getCloudFrontDevice",(function(e){var n=e["cloudfront-is-desktop-viewer"],r=e["cloudfront-is-ios-viewer"],o=e["cloudfront-is-android-viewer"],s=e["cloudfront-is-tablet-viewer"],i=e["cloudfront-is-mobile-viewer"],a="";if(n&&"true"===n&&(a="PC"),r&&"true"===r&&(a="IOS"),o&&"true"===o&&(a="Android"),s&&"true"===s&&(a="Pad"),!a&&i&&"true"===i&&(a="Android"),!a){var c=t.getSystem(e["user-agent"]);c.isPC&&(a="PC"),c.isTablet&&(a="Pad"),c.isAndroid&&(a="Android"),c.isPhone&&(a="IOS")}return a})),this.domainMap={},this.fileContents={}}));e.exports=new c},425:(e,t,n)=>{"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,i=(a=Object.create(null),e=>{const t=o.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});var a;const c=e=>(e=e.toLowerCase(),t=>i(t)===e),u=e=>t=>typeof t===e,{isArray:l}=Array,f=u("undefined"),d=c("ArrayBuffer"),p=u("string"),h=u("function"),m=u("number"),y=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==i(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},g=c("Date"),w=c("File"),E=c("Blob"),S=c("FileList"),O=c("URLSearchParams"),[R,v,T,A]=["ReadableStream","Request","Response","Headers"].map(c);function x(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),l(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function P(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,C=e=>!f(e)&&e!==j,N=(_="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>_&&e instanceof _);var _;const F=c("HTMLFormElement"),U=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),L=c("RegExp"),B=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};x(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},D="abcdefghijklmnopqrstuvwxyz",k="0123456789",q={DIGIT:k,ALPHA:D,ALPHA_DIGIT:D+D.toUpperCase()+k},I=c("AsyncFunction"),M=(z="function"==typeof setImmediate,H=h(j.postMessage),z?setImmediate:H?(J=`axios@${Math.random()}`,W=[],j.addEventListener("message",(({source:e,data:t})=>{e===j&&t===J&&W.length&&W.shift()()}),!1),e=>{W.push(e),j.postMessage(J,"*")}):e=>setTimeout(e));var z,H,J,W;const K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(j):"undefined"!=typeof process&&process.nextTick||M;var V={isArray:l,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=i(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:p,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:b,isReadableStream:R,isRequest:v,isResponse:T,isHeaders:A,isUndefined:f,isDate:g,isFile:w,isBlob:E,isRegExp:L,isFunction:h,isStream:e=>y(e)&&h(e.pipe),isURLSearchParams:O,isTypedArray:N,isFileList:S,forEach:x,merge:function e(){const{caseless:t}=C(this)&&this||{},n={},r=(r,o)=>{const s=t&&P(n,o)||o;b(n[s])&&b(r)?n[s]=e(n[s],r):b(r)?n[s]=e({},r):l(r)?n[s]=r.slice():n[s]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&x(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(x(t,((t,o)=>{n&&h(t)?e[o]=r(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:i,kindOfTest:c,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:F,hasOwnProperty:U,hasOwnProp:U,reduceDescriptors:B,freezeMethods:e=>{B(e,((t,n)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return l(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:P,global:j,isContextDefined:C,ALPHABET:q,generateString:(e=16,t=q.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=l(e)?[]:{};return x(e,((e,t)=>{const s=n(e,r+1);!f(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:I,isThenable:e=>e&&(y(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:M,asap:K};function $(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}V.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const G=$.prototype,X={};function Q(e){return V.isPlainObject(e)||V.isArray(e)}function Z(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Y(e,t,n){return e?e.concat(t).map((function(e,t){return e=Z(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{X[e]={value:e}})),Object.defineProperties($,X),Object.defineProperty(G,"isAxiosError",{value:!0}),$.from=(e,t,n,r,o,s)=>{const i=Object.create(G);return V.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const ee=V.toFlatObject(V,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!V.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(V.isDate(e))return e.toISOString();if(!a&&V.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(e)||V.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(V.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&function(e){return V.isArray(e)&&!e.some(Q)}(e)||(V.isFileList(e)||V.endsWith(n,"[]"))&&(a=V.toArray(e)))return n=Z(n),a.forEach((function(e,r){!V.isUndefined(e)&&null!==e&&t.append(!0===i?Y([n],r,s):null===i?n:n+"[]",c(e))})),!1;return!!Q(e)||(t.append(Y(o,n,s),c(e)),!1)}const l=[],f=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:Q});if(!V.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!V.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),V.forEach(n,(function(n,s){!0===(!(V.isUndefined(n)||null===n)&&o.call(t,n,V.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s])})),l.pop()}}(e),t}function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const oe=re.prototype;function se(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ie(e,t,n){if(!t)return e;const r=n&&n.encode||se,o=n&&n.serialize;let s;if(s=o?o(t,n):V.isURLSearchParams(t)?t.toString():new re(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ae=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){V.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const le="undefined"!=typeof window&&"undefined"!=typeof document,fe="object"==typeof navigator&&navigator||void 0,de=le&&(!fe||["ReactNative","NativeScript","NS"].indexOf(fe.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=le&&window.location.href||"http://localhost";var me={...Object.freeze({__proto__:null,hasBrowserEnv:le,hasStandardBrowserWebWorkerEnv:pe,hasStandardBrowserEnv:de,navigator:fe,origin:he}),...ue};function ye(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&V.isArray(r)?r.length:s,a?(V.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i):(r[s]&&V.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&V.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i)}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,((e,r)=>{t(function(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const be={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=V.isObject(e);if(o&&V.isHTMLForm(e)&&(e=new FormData(e)),V.isFormData(e))return r?JSON.stringify(ye(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new me.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return me.isNode&&V.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=V.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(V.isString(e))try{return(0,JSON.parse)(e),V.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||be.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw $.from(e,$.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],(e=>{be.headers[e]={}}));var ge=be;const we=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ee=Symbol("internals");function Se(e){return e&&String(e).trim().toLowerCase()}function Oe(e){return!1===e||null==e?e:V.isArray(e)?e.map(Oe):String(e)}function Re(e,t,n,r,o){return V.isFunction(r)?r.call(this,t,n):(o&&(t=n),V.isString(t)?V.isString(r)?-1!==t.indexOf(r):V.isRegExp(r)?r.test(t):void 0:void 0)}class ve{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Se(t);if(!o)throw new Error("header name must be a non-empty string");const s=V.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Oe(e))}const s=(e,t)=>V.forEach(e,((e,n)=>o(e,n,t)));if(V.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(V.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&we[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(V.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Se(e)){const n=V.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Se(e)){const n=V.findKey(this,e);return!(!n||void 0===this[n]||t&&!Re(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Se(e)){const o=V.findKey(n,e);!o||t&&!Re(0,n[o],o,t)||(delete n[o],r=!0)}}return V.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Re(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return V.forEach(this,((r,o)=>{const s=V.findKey(n,o);if(s)return t[s]=Oe(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=Oe(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return V.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&V.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Ee]=this[Ee]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Se(e);t[r]||(function(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return V.isArray(e)?e.forEach(r):r(e),this}}ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(ve.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),V.freezeMethods(ve);var Te=ve;function Ae(e,t){const n=this||ge,r=t||n,o=Te.from(r.headers);let s=r.data;return V.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function xe(e){return!(!e||!e.__CANCEL__)}function Pe(e,t,n){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,n),this.name="CanceledError"}function je(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new $("Request failed with status code "+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}V.inherits(Pe,$,{__CANCEL__:!0});const Ce=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;for(;l!==s;)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout((()=>{r=null,i(n)}),s-a)))},()=>n&&i(n)]}((n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s,e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Ne=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},_e=e=>(...t)=>V.asap((()=>e(...t)));var Fe=me.hasStandardBrowserEnv?function(){const e=me.navigator&&/(msie|trident)/i.test(me.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=V.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Ue=me.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];V.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),V.isString(r)&&i.push("path="+r),V.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Le(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Be=e=>e instanceof Te?{...e}:e;function De(e,t){t=t||{};const n={};function r(e,t,n){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:n},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function o(e,t,n){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!V.isUndefined(t))return r(void 0,t)}function i(e,t){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(Be(e),Be(t),!0)};return V.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);V.isUndefined(i)&&s!==a||(n[r]=i)})),n}var ke=e=>{const t=De({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:c}=t;if(t.headers=a=Te.from(a),t.url=ie(Le(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),V.isFormData(r))if(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(me.hasStandardBrowserEnv&&(o&&V.isFunction(o)&&(o=o(t)),o||!1!==o&&Fe(t.url))){const e=s&&i&&Ue.read(i);e&&a.set(s,e)}return t},qe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=ke(e);let o=r.data;const s=Te.from(r.headers).normalize();let i,a,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function y(){if(!m)return;const r=Te.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());je((function(e){t(e),h()}),(function(e){n(e),h()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(n(new $("Request aborted",$.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new $("Network Error",$.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new $(t,o.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&V.forEach(s.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),V.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([c,l]=Ce(p,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,u]=Ce(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Pe(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===me.protocols.indexOf(b)?n(new $("Unsupported protocol "+b+":",$.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Ie=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof $?t:new Pe(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{s=null,o(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>V.asap(i),a}};const Me=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},ze=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Me(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},He="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Je=He&&"function"==typeof ReadableStream,We=He&&("function"==typeof TextEncoder?(Ke=new TextEncoder,e=>Ke.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ke;const Ve=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},$e=Je&&Ve((()=>{let e=!1;const t=new Request(me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ge=Je&&Ve((()=>V.isReadableStream(new Response("").body))),Xe={stream:Ge&&(e=>e.body)};var Qe;He&&(Qe=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Xe[e]&&(Xe[e]=V.isFunction(Qe[e])?t=>t[e]():(t,n)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,n)})})));const Ze={http:null,xhr:qe,fetch:He&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:d}=ke(e);u=u?(u+"").toLowerCase():"text";let p,h=Ie([o,s&&s.toAbortSignal()],i);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let y;try{if(c&&$e&&"get"!==n&&"head"!==n&&0!==(y=await(async(e,t)=>{const n=V.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e)){const t=new Request(me.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return V.isArrayBufferView(e)||V.isArrayBuffer(e)?e.byteLength:(V.isURLSearchParams(e)&&(e+=""),V.isString(e)?(await We(e)).byteLength:void 0)})(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(V.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=Ne(y,Ce(_e(c)));r=ze(n.body,65536,e,t)}}V.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:o?f:void 0});let s=await fetch(p);const i=Ge&&("stream"===u||"response"===u);if(Ge&&(a||i&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=s[t]}));const t=V.toFiniteNumber(s.headers.get("content-length")),[n,r]=a&&Ne(t,Ce(_e(a),!0))||[];s=new Response(ze(s.body,65536,n,(()=>{r&&r(),m&&m()})),e)}u=u||"text";let b=await Xe[V.findKey(Xe,u)||"text"](s,e);return!i&&m&&m(),await new Promise(((t,n)=>{je(t,n,{data:b,headers:Te.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:p})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,p),{cause:t.cause||t});throw $.from(t,t&&t.code,e,p)}})};V.forEach(Ze,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ye=e=>`- ${e}`,et=e=>V.isFunction(e)||null===e||!1===e;var tt=e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){let t;if(n=e[s],r=n,!et(n)&&(r=Ze[(t=String(n)).toLowerCase()],void 0===r))throw new $(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+s]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new $("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ye).join("\n"):" "+Ye(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function rt(e){return nt(e),e.headers=Te.from(e.headers),e.data=Ae.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||ge.adapter)(e).then((function(t){return nt(e),t.data=Ae.call(e,e.transformResponse,t),t.headers=Te.from(t.headers),t}),(function(t){return xe(t)||(nt(e),t&&t.response&&(t.response.data=Ae.call(e,e.transformResponse,t.response),t.response.headers=Te.from(t.response.headers))),Promise.reject(t)}))}const ot={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const st={};ot.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new $(r(o," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!st[o]&&(st[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};var it={assertOptions:function(e,t,n){if("object"!=typeof e)throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new $("option "+s+" must be "+n,$.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new $("Unknown option "+s,$.ERR_BAD_OPTION)}},validators:ot};const at=it.validators;class ct{constructor(e){this.defaults=e,this.interceptors={request:new ae,response:new ae}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=De(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&it.assertOptions(n,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=r&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:it.assertOptions(r,{encode:at.function,serialize:at.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&V.merge(o.common,o[t.method]);o&&V.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Te.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[rt.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=i.length;let d=t;for(f=0;f<l;){const e=i[f++],t=i[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=rt.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return ie(Le((e=De(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}V.forEach(["delete","get","head","options"],(function(e){ct.prototype[e]=function(t,n){return this.request(De(n||{},{method:e,url:t,data:(n||{}).data}))}})),V.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(De(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)}));var ut=ct;class lt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Pe(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new lt((function(t){e=t})),cancel:e}}}var ft=lt;const dt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dt).forEach((([e,t])=>{dt[t]=e}));var pt=dt;const ht=function e(t){const n=new ut(t),o=r(ut.prototype.request,n);return V.extend(o,ut.prototype,n,{allOwnKeys:!0}),V.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(De(t,n))},o}(ge);ht.Axios=ut,ht.CanceledError=Pe,ht.CancelToken=ft,ht.isCancel=xe,ht.VERSION="1.7.7",ht.toFormData=te,ht.AxiosError=$,ht.Cancel=ht.CanceledError,ht.all=function(e){return Promise.all(e)},ht.spread=function(e){return function(t){return e.apply(null,t)}},ht.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},ht.mergeConfig=De,ht.AxiosHeaders=Te,ht.formToJSON=e=>ye(V.isHTMLForm(e)?new FormData(e):e),ht.getAdapter=tt,ht.HttpStatusCode=pt,ht.default=ht,e.exports=ht}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}return n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n(497)})()));
|
|
1
|
+
/*! For license information please see bundle.js.LICENSE.txt */
|
|
2
|
+
!function(t,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?exports.wgtNodeUtils=a():t.wgtNodeUtils=a()}(this,(()=>(()=>{var __webpack_modules__={7563:(t,a,e)=>{"use strict";e.r(a),e.d(a,{AESCipher:()=>W,Aily:()=>Ra,AppType:()=>$,CAppTicket:()=>G,CTenantAccessToken:()=>A,CardActionHandler:()=>fa,Client:()=>da,Domain:()=>E,EventDispatcher:()=>ga,LoggerLevel:()=>O,WSClient:()=>Ba,adaptDefault:()=>ba,adaptExpress:()=>Sa,adaptKoa:()=>Pa,adaptKoaRouter:()=>wa,defaultHttpInstance:()=>z,generateChallenge:()=>_a,messageCard:()=>Ia,withAll:()=>pa,withHelpDeskCredential:()=>la,withTenantKey:()=>ca,withTenantToken:()=>ma,withUserAccessToken:()=>ua});var r=e(6762),i=e.n(r),s=e(3600),o=e.n(s),n=e(1122),h=e.n(n),d=e(1863),p=e.n(d),c=e(5373),l=e(8160),m=e.n(l),u=e(826),y=e.n(u),g=e(8848),f=e.n(g),v=e(182),_=e.n(v),b=e(4816),S=e.n(b),P=e(1591),w=e.n(P);function I(t,a){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&a.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)a.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]])}return e}function k(t,a,e,r){return new(e||(e=Promise))((function(i,s){function o(t){try{h(r.next(t))}catch(t){s(t)}}function n(t){try{h(r.throw(t))}catch(t){s(t)}}function h(t){var a;t.done?i(t.value):(a=t.value,a instanceof e?a:new e((function(t){t(a)}))).then(o,n)}h((r=r.apply(t,a||[])).next())}))}function T(t){return this instanceof T?(this.v=t,this):new T(t)}function q(t,a,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,a||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(a){return new Promise((function(e,r){s.push([t,a,e,r])>1||n(t,a)}))})}function n(t,a){try{(e=i[t](a)).value instanceof T?Promise.resolve(e.value.v).then(h,d):p(s[0][2],e)}catch(t){p(s[0][3],t)}var e}function h(t){n("next",t)}function d(t){n("throw",t)}function p(t,a){t(a),s.shift(),s.length&&n(s[0][0],s[0][1])}}function F(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,e=t[Symbol.asyncIterator];return e?e.call(t):(t=function(t){var a="function"==typeof Symbol&&Symbol.iterator,e=a&&t[a],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),a={},r("next"),r("throw"),r("return"),a[Symbol.asyncIterator]=function(){return this},a);function r(e){a[e]=t[e]&&function(a){return new Promise((function(r,i){!function(t,a,e,r){Promise.resolve(r).then((function(a){t({value:a,done:e})}),a)}(r,i,(a=t[e](a)).done,a.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;const z=o().create();var $,E,O;z.interceptors.request.use((t=>(t.headers&&(t.headers["User-Agent"]="oapi-node-sdk/1.0.0"),t)),void 0,{synchronous:!0}),z.interceptors.response.use((t=>t.data)),function(t){t[t.SelfBuild=0]="SelfBuild",t[t.ISV=1]="ISV"}($||($={})),function(t){t[t.Feishu=0]="Feishu",t[t.Lark=1]="Lark"}(E||(E={})),function(t){t[t.fatal=0]="fatal",t[t.error=1]="error",t[t.warn=2]="warn",t[t.info=3]="info",t[t.debug=4]="debug",t[t.trace=5]="trace"}(O||(O={}));const j=Symbol("event-type"),x=Symbol("tenant-key"),G=Symbol("app-ticket"),A=Symbol("tenant-access-token"),C=Symbol("with-helpdesk-authorization"),D=Symbol("with-user-access-token"),B=Symbol("user-access-token"),L=Symbol("aily-session-record"),R=new class{constructor(){this.values=new Map}getCacheKey(t,a){return a?`${a}/${t.toString()}`:t}get(t,a){return k(this,void 0,void 0,(function*(){const e=this.getCacheKey(t,i()(a,"namespace")),r=this.values.get(e);if(r){const{value:t,expiredTime:a}=r;if(!a||a-(new Date).getTime()>0)return t}}))}set(t,a,e,r){return k(this,void 0,void 0,(function*(){const s=this.getCacheKey(t,i()(r,"namespace"));return this.values.set(s,{value:a,expiredTime:e}),!0}))}};class W{constructor(t){const a=h().createHash("sha256");a.update(t),this.key=a.digest()}decrypt(t){const a=Buffer.from(t,"base64"),e=h().createDecipheriv("aes-256-cbc",this.key,a.slice(0,16));let r=e.update(a.slice(16).toString("hex"),"hex","utf8");return r+=e.final("utf8"),r}}const U=t=>{switch(t){case E.Feishu:return"https://open.feishu.cn";case E.Lark:return"https://open.larksuite.com";default:return t}},N=(t,a={})=>t.replace(/:([^/]+)/g,((t,e)=>{if(void 0!==a[e])return a[e];throw new Error(`request miss ${e} path argument`)})),H=(t,a)=>k(void 0,void 0,void 0,(function*(){("function"==typeof t?t():t)&&(yield a())})),M=t=>t?t.replace(/^\//,""):"",J=t=>{if(t instanceof s.AxiosError){const{message:a,response:e,request:r,config:s}=p()(t,["message","response","request","config"]),o=[{message:a,config:p()(s,["data","url","params","method"]),request:p()(r,["protocol","host","path","method"]),response:p()(e,["data","status","statusText"])}],n=i()(t,"response.data");return n&&o.push(n),o}return[t]};class V{constructor(){this.acs={accessRecordAccessPhoto:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/access_records/:access_record_id/access_photo`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}}))},accessRecord:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/access_records`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/access_records`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},device:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/devices`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ruleExternal:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/rule_external`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/rule_external`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),deviceBind:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/rule_external/device_bind`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/rule_external`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userFace:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/users/:user_id/face`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/users/:user_id/face`,o),method:"PUT",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},user:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/users/:user_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/users`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/users`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/users/:user_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},visitor:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/visitors`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/visitors/:visitor_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{accessRecordAccessPhoto:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/access_records/:access_record_id/access_photo`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}}))},accessRecord:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/access_records`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/access_records`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},device:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/devices`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ruleExternal:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/rule_external`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/rule_external`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),deviceBind:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/rule_external/device_bind`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/rule_external`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userFace:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/users/:user_id/face`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/users/:user_id/face`,o),method:"PUT",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},user:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/users/:user_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/users`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/users`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/users/:user_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},visitor:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/visitors`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/acs/v1/visitors/:visitor_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class K extends V{constructor(){super(...arguments),this.admin={adminDeptStat:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/admin_dept_stats`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},adminUserStat:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/admin_user_stats`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},auditInfo:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/audit_infos`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/audit_infos`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},badge:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},badgeGrant:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},badgeImage:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badge_images`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},password:{reset:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/password/reset`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{adminDeptStat:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/admin_dept_stats`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},adminUserStat:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/admin_user_stats`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},auditInfo:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/audit_infos`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/audit_infos`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},badge:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},badgeGrant:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},badgeImage:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/badge_images`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},password:{reset:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/admin/v1/password/reset`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Q extends K{constructor(){super(...arguments),this.aily={v1:{ailySessionAilyMessage:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages/:aily_message_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ailySession:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/aily/v1/sessions`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ailySessionRun:{cancel:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs/:run_id/cancel`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs/:run_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class X extends Q{constructor(){super(...arguments),this.application={appBadge:{set:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/app_badge/set`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appRecommendRule:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/app_recommend_rules`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/app_recommend_rules`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationAppUsage:{departmentOverview:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/department_overview`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),messagePushOverview:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/message_push_overview`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),overview:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/overview`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationAppVersion:{contactsRangeSuggest:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id/contacts_range_suggest`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationContactsRange:{patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},application:{contactsRangeConfiguration:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range_configuration`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),underauditlistWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/underauditlist`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),underauditlist:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/underauditlist`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationFeedback:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks/:feedback_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationManagement:{update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/management`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationVisibility:{checkWhiteBlackList:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility/check_white_black_list`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},scope:{apply:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/scopes/apply`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/scopes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v6:{appBadge:{set:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/app_badge/set`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appRecommendRule:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/app_recommend_rules`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/app_recommend_rules`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationAppUsage:{departmentOverview:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/department_overview`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),messagePushOverview:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/message_push_overview`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),overview:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/overview`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationAppVersion:{contactsRangeSuggest:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id/contacts_range_suggest`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationContactsRange:{patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},application:{contactsRangeConfiguration:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range_configuration`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),underauditlistWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/underauditlist`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),underauditlist:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/underauditlist`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationFeedback:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks/:feedback_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationManagement:{update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/management`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationVisibility:{checkWhiteBlackList:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility/check_white_black_list`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},scope:{apply:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/scopes/apply`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/application/v6/scopes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Z extends X{constructor(){super(...arguments),this.approval={approval:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/approvals`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/approvals/:approval_code`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),subscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/approvals/:approval_code/subscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unsubscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/approvals/:approval_code/unsubscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalApproval:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/external_approvals`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/external_approvals/:approval_code`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalInstance:{check:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/external_instances/check`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/external_instances`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalTask:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/external_tasks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/external_tasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},instance:{addSign:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/add_sign`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),cancel:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/cancel`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),cc:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/cc`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/:instance_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),preview:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/preview`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),queryWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/query`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchCc:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/search_cc`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),specifiedRollback:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/specified_rollback`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},instanceComment:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments/:comment_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),remove:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments/remove`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},task:{approve:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/approve`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),queryWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/query`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),reject:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/reject`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),resubmit:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/resubmit`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),transfer:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/transfer`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v4:{approval:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/approvals`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/approvals/:approval_code`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),subscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/approvals/:approval_code/subscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unsubscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/approvals/:approval_code/unsubscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalApproval:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/external_approvals`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/external_approvals/:approval_code`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalInstance:{check:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/external_instances/check`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/external_instances`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalTask:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/external_tasks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/external_tasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},instance:{addSign:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/add_sign`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),cancel:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/cancel`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),cc:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/cc`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/:instance_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),preview:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/preview`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),queryWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/query`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchCc:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/search_cc`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),specifiedRollback:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/specified_rollback`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},instanceComment:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments/:comment_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),remove:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments/remove`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},task:{approve:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/approve`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),queryWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/query`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),reject:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/reject`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),resubmit:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/resubmit`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),transfer:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/approval/v4/tasks/transfer`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Y extends Z{constructor(){super(...arguments),this.attendance={approvalInfo:{process:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/approval_infos/process`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},archiveRule:{delReport:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/archive_rule/del_report`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/archive_rule`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/archive_rule`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),uploadReport:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/archive_rule/upload_report`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),userStatsFieldsQuery:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/archive_rule/user_stats_fields_query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},file:{download:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/files/:file_id/download`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),upload:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/files/upload`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},group:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/groups`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/groups/:group_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/groups/:group_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/groups`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/groups`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/groups/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},leaveAccrualRecord:{patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/leave_accrual_record/:leave_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},leaveEmployExpireRecord:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/leave_employ_expire_records/:leave_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},shift:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/shifts`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/shifts/:shift_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/shifts/:shift_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/shifts`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/shifts`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/shifts/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userApproval:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_approvals`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_approvals/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userDailyShift:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userFlow:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_flows/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_flows/:user_flow_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_flows/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userSetting:{modify:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_settings/modify`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_settings/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userStatsData:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_stats_datas/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userStatsField:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_stats_fields/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userStatsView:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_stats_views/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_stats_views/:user_stats_view_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userTask:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_tasks/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userTaskRemedy:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_task_remedys`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_task_remedys/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),queryUserAllowedRemedys:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_task_remedys/query_user_allowed_remedys`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{approvalInfo:{process:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/approval_infos/process`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},archiveRule:{delReport:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/archive_rule/del_report`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/archive_rule`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/archive_rule`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),uploadReport:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/archive_rule/upload_report`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),userStatsFieldsQuery:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/archive_rule/user_stats_fields_query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},file:{download:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/files/:file_id/download`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),upload:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/files/upload`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},group:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/groups`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/groups/:group_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/groups/:group_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/groups`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/groups`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/groups/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},leaveAccrualRecord:{patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/leave_accrual_record/:leave_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},leaveEmployExpireRecord:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/leave_employ_expire_records/:leave_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},shift:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/shifts`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/shifts/:shift_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/shifts/:shift_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/shifts`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/shifts`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/shifts/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userApproval:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_approvals`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_approvals/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userDailyShift:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userFlow:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_flows/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_flows/:user_flow_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_flows/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userSetting:{modify:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_settings/modify`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_settings/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userStatsData:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_stats_datas/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userStatsField:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_stats_fields/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userStatsView:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_stats_views/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_stats_views/:user_stats_view_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userTask:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_tasks/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userTaskRemedy:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_task_remedys`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_task_remedys/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),queryUserAllowedRemedys:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/attendance/v1/user_task_remedys/query_user_allowed_remedys`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class tt extends Y{constructor(){super(...arguments),this.auth={appAccessToken:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/auth/v3/app_access_token`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),internal:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/auth/v3/app_access_token/internal`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTicket:{resend:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/auth/v3/app_ticket/resend`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},tenantAccessToken:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/auth/v3/tenant_access_token`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),internal:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/auth/v3/tenant_access_token/internal`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v3:{appAccessToken:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/auth/v3/app_access_token`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),internal:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/auth/v3/app_access_token/internal`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTicket:{resend:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/auth/v3/app_ticket/resend`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},tenantAccessToken:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/auth/v3/tenant_access_token`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),internal:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/auth/v3/tenant_access_token/internal`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class at extends tt{constructor(){super(...arguments),this.authen={accessToken:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/authen/v1/access_token`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},oidcAccessToken:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/authen/v1/oidc/access_token`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},oidcRefreshAccessToken:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/authen/v1/oidc/refresh_access_token`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},refreshAccessToken:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/authen/v1/refresh_access_token`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userInfo:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/authen/v1/user_info`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{accessToken:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/authen/v1/access_token`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},oidcAccessToken:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/authen/v1/oidc/access_token`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},oidcRefreshAccessToken:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/authen/v1/oidc/refresh_access_token`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},refreshAccessToken:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/authen/v1/refresh_access_token`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userInfo:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/authen/v1/user_info`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class et extends at{constructor(){super(...arguments),this.aweme_ecosystem={}}}class rt extends et{constructor(){super(...arguments),this.baike={classification:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/classifications`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/classifications`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},draft:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/drafts`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/drafts/:draft_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},entity:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),extract:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/extract`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/:entity_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),highlight:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/highlight`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),match:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/match`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/:entity_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},file:{download:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/files/:file_token/download`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),upload:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/files/upload`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},v1:{classification:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/classifications`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/classifications`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},draft:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/drafts`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/drafts/:draft_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},entity:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),extract:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/extract`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/:entity_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),highlight:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/highlight`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),match:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/match`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/entities/:entity_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},file:{download:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/files/:file_token/download`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),upload:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/baike/v1/files/upload`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))}}}}}class it extends rt{constructor(){super(...arguments),this.bitable={app:{copy:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/copy`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appDashboard:{copy:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards/:block_id/copy`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appRole:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appRoleMember:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/:member_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTable:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTableField:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTableFormField:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields/:field_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTableForm:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTableRecord:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchGet:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_get`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_update`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTableView:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{app:{copy:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/copy`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appDashboard:{copy:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards/:block_id/copy`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appRole:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appRoleMember:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/:member_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTable:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTableField:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTableFormField:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields/:field_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTableForm:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTableRecord:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchGet:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_get`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_update`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appTableView:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class st extends it{constructor(){super(...arguments),this.block={entity:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/block/v2/entities`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/block/v2/entities/:block_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},message:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/block/v2/message`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v2:{entity:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/block/v2/entities`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/block/v2/entities/:block_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},message:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/block/v2/message`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class ot extends st{constructor(){super(...arguments),this.board={v1:{whiteboard:{downloadAsImage:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/download_as_image`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}}))},whiteboardNode:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/nodes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class nt extends ot{constructor(){super(...arguments),this.calendar={calendarAcl:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/:acl_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),subscription:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/subscription`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unsubscription:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/unsubscription`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},calendar:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),primary:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/primary`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),subscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/subscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),subscription:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/subscription`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unsubscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/unsubscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unsubscription:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/unsubscription`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},calendarEventAttendee:{batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},calendarEventAttendeeChatMember:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/:attendee_id/chat_members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/:attendee_id/chat_members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},calendarEvent:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),instanceView:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/instance_view`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),instances:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/instances`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),reply:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/reply`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),subscription:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/subscription`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unsubscription:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/unsubscription`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},calendarEventMeetingChat:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_chat`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_chat`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},calendarEventMeetingMinute:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_minute`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},exchangeBinding:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/exchange_bindings`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/exchange_bindings/:exchange_binding_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/exchange_bindings/:exchange_binding_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},freebusy:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/freebusy/list`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},setting:{generateCaldavConf:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/settings/generate_caldav_conf`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},timeoffEvent:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/timeoff_events`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/timeoff_events/:timeoff_event_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v4:{calendarAcl:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/:acl_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),subscription:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/subscription`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unsubscription:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/unsubscription`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},calendar:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),primary:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/primary`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),subscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/subscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),subscription:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/subscription`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unsubscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/unsubscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unsubscription:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/unsubscription`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},calendarEventAttendee:{batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},calendarEventAttendeeChatMember:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/:attendee_id/chat_members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/:attendee_id/chat_members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},calendarEvent:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),instanceView:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/instance_view`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),instances:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/instances`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),reply:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/reply`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),subscription:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/subscription`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unsubscription:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/unsubscription`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},calendarEventMeetingChat:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_chat`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_chat`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},calendarEventMeetingMinute:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_minute`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},exchangeBinding:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/exchange_bindings`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/exchange_bindings/:exchange_binding_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/exchange_bindings/:exchange_binding_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},freebusy:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/freebusy/list`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},setting:{generateCaldavConf:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/settings/generate_caldav_conf`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},timeoffEvent:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/timeoff_events`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/calendar/v4/timeoff_events/:timeoff_event_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class ht extends nt{constructor(){super(...arguments),this.comment_sdk={}}}class dt extends ht{constructor(){super(...arguments),this.compensation={v1:{archive:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/compensation/v1/archives/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},changeReason:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/compensation/v1/change_reasons`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/compensation/v1/change_reasons`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},indicator:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/compensation/v1/indicators`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/compensation/v1/indicators`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},item:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/compensation/v1/items`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/compensation/v1/items`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},itemCategory:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/compensation/v1/item_categories`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/compensation/v1/item_categories`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},plan:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/compensation/v1/plans`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/compensation/v1/plans`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class pt extends dt{constructor(){super(...arguments),this.contact={customAttr:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/custom_attrs`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/custom_attrs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},department:{batch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/batch`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),childrenWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id/children`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),children:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id/children`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),parentWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/parent`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),parent:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/parent`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unbindDepartmentChat:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/unbind_department_chat`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateDepartmentId:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id/update_department_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},employeeTypeEnum:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/employee_type_enums`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/employee_type_enums/:enum_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/employee_type_enums`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/employee_type_enums`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/employee_type_enums/:enum_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},functionalRole:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},functionalRoleMember:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/batch_delete`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/:member_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),scopes:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/scopes`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},group:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),memberBelong:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/member_belong`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),simplelistWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/simplelist`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),simplelist:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/simplelist`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},groupMember:{add:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id/member/add`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchAdd:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id/member/batch_add`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchRemove:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id/member/batch_remove`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),remove:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id/member/remove`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),simplelist:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id/member/simplelist`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobFamily:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_families`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_families`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_families`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobLevel:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_levels`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_levels`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_levels`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobTitle:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_titles/:job_title_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_titles`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_titles`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},scope:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/scopes`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/scopes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},unit:{bindDepartment:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit/bind_department`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listDepartment:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit/list_department`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unbindDepartment:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit/unbind_department`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},user:{batch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/batch`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchGetId:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/batch_get_id`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/:user_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),findByDepartmentWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/find_by_department`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),findByDepartment:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/find_by_department`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/:user_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/:user_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),resurrect:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/:user_id/resurrect`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/:user_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateUserId:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/:user_id/update_user_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},workCity:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/work_cities/:work_city_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/work_cities`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/work_cities`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v3:{customAttr:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/custom_attrs`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/custom_attrs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},department:{batch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/batch`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),childrenWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id/children`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),children:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id/children`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),parentWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/parent`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),parent:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/parent`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unbindDepartmentChat:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/unbind_department_chat`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateDepartmentId:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/departments/:department_id/update_department_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},employeeTypeEnum:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/employee_type_enums`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/employee_type_enums/:enum_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/employee_type_enums`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/employee_type_enums`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/employee_type_enums/:enum_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},functionalRole:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},functionalRoleMember:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/batch_delete`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/:member_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),scopes:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/scopes`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},group:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),memberBelong:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/member_belong`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),simplelistWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/simplelist`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),simplelist:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/simplelist`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},groupMember:{add:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id/member/add`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchAdd:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id/member/batch_add`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchRemove:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id/member/batch_remove`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),remove:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id/member/remove`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),simplelist:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/group/:group_id/member/simplelist`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobFamily:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_families`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_families`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_families`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobLevel:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_levels`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_levels`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_levels`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobTitle:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_titles/:job_title_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_titles`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/job_titles`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},scope:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/scopes`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/scopes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},unit:{bindDepartment:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit/bind_department`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listDepartment:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit/list_department`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unbindDepartment:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/unit/unbind_department`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},user:{batch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/batch`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchGetId:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/batch_get_id`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/:user_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),findByDepartmentWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/find_by_department`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),findByDepartment:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/find_by_department`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/:user_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/:user_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),resurrect:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/:user_id/resurrect`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/:user_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateUserId:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/users/:user_id/update_user_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},workCity:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/work_cities/:work_city_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/work_cities`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/contact/v3/work_cities`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class ct extends pt{constructor(){super(...arguments),this.content_check={}}}class lt extends ct{constructor(){super(...arguments),this.contract={}}}class mt extends lt{constructor(){super(...arguments),this.corehr={assignedUser:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/assigned_users/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},authorization:{addRoleAssign:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/authorizations/add_role_assign`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getByParam:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/authorizations/get_by_param`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/authorizations/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),removeRoleAssign:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/authorizations/remove_role_assign`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateRoleAssign:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/authorizations/update_role_assign`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},commonDataId:{convert:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/common_data/id/convert`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},commonDataMetaData:{addEnumOption:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/common_data/meta_data/add_enum_option`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),editEnumOption:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/common_data/meta_data/edit_enum_option`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},company:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/companies`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/companies`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},compensationStandard:{match:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/compensation_standards/match`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},contract:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/contracts`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/contracts`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},countryRegion:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/country_regions/:country_region_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/country_regions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},currency:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/currencies/:currency_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/currencies`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},customField:{getByParam:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/custom_fields/get_by_param`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listObjectApiName:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/custom_fields/list_object_api_name`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/custom_fields/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},department:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/departments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/departments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},employeeType:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employee_types`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employee_types`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},employment:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},file:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/files/:id`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}}))},job:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/jobs`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/jobs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobChange:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_changes`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobData:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_datas`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_datas`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobFamily:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_families`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_families`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobLevel:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_levels`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_levels`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},leave:{calendarByScope:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/leaves/calendar_by_scope`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),leaveBalances:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/leaves/leave_balances`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),leaveRequestHistory:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/leaves/leave_request_history`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),leaveTypes:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/leaves/leave_types`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},leaveGrantingRecord:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/leave_granting_records`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/leave_granting_records/:leave_granting_record_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},location:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/locations`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/locations/:location_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/locations/:location_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/locations`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},nationalIdType:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/national_id_types`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/national_id_types`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},offboarding:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/offboardings/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/offboardings/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/offboardings/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),submit:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/offboardings/submit`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},person:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/persons`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),upload:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/persons/upload`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},preHire:{delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/pre_hires`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},processFormVariableData:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/processes/:process_id/form_variable_data`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},securityGroup:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/security_groups`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/security_groups/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},subdivision:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/subdivisions/:subdivision_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/subdivisions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},subregion:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/subregions/:subregion_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/subregions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},transferReason:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/transfer_reasons/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},transferType:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/transfer_types/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},workingHoursType:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/working_hours_types`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/working_hours_types`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{assignedUser:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/assigned_users/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},authorization:{addRoleAssign:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/authorizations/add_role_assign`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getByParam:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/authorizations/get_by_param`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/authorizations/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),removeRoleAssign:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/authorizations/remove_role_assign`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateRoleAssign:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/authorizations/update_role_assign`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},commonDataId:{convert:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/common_data/id/convert`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},commonDataMetaData:{addEnumOption:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/common_data/meta_data/add_enum_option`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),editEnumOption:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/common_data/meta_data/edit_enum_option`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},company:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/companies`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/companies`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},compensationStandard:{match:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/compensation_standards/match`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},contract:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/contracts`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/contracts`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},countryRegion:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/country_regions/:country_region_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/country_regions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},currency:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/currencies/:currency_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/currencies`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},customField:{getByParam:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/custom_fields/get_by_param`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listObjectApiName:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/custom_fields/list_object_api_name`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/custom_fields/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},department:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/departments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/departments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},employeeType:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employee_types`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employee_types`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},employment:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},file:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/files/:id`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}}))},job:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/jobs`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/jobs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobChange:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_changes`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobData:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_datas`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_datas`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobFamily:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_families`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_families`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobLevel:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_levels`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_levels`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},leave:{calendarByScope:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/leaves/calendar_by_scope`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),leaveBalances:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/leaves/leave_balances`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),leaveRequestHistory:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/leaves/leave_request_history`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),leaveTypes:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/leaves/leave_types`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},leaveGrantingRecord:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/leave_granting_records`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/leave_granting_records/:leave_granting_record_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},location:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/locations`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/locations/:location_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/locations/:location_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/locations`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},nationalIdType:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/national_id_types`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/national_id_types`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},offboarding:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/offboardings/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/offboardings/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/offboardings/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),submit:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/offboardings/submit`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},person:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/persons`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),upload:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/persons/upload`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},preHire:{delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/pre_hires`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},processFormVariableData:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/processes/:process_id/form_variable_data`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},securityGroup:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/security_groups`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/security_groups/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},subdivision:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/subdivisions/:subdivision_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/subdivisions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},subregion:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/subregions/:subregion_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/subregions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},transferReason:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/transfer_reasons/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},transferType:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/transfer_types/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},workingHoursType:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/working_hours_types`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/working_hours_types`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}},v2:{basicInfoBank:{searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},basicInfoBankBranch:{searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},basicInfoCity:{searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},basicInfoCountryRegion:{searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},basicInfoCountryRegionSubdivision:{searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},basicInfoCurrency:{searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},basicInfoDistrict:{searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},basicInfoNationality:{searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/nationalities/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/basic_info/nationalities/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},bp:{getByDepartment:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/bps/get_by_department`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/bps`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/bps`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},company:{batchGet:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/companies/batch_get`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},contract:{searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/contracts/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/contracts/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},costCenter:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/cost_centers`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/cost_centers/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},costCenterVersion:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions/:version_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions/:version_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},department:{batchGet:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/departments/batch_get`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/departments/:department_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),parents:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/departments/parents`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/departments/:department_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),queryMultiTimeline:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/departments/query_multi_timeline`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),queryTimeline:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/departments/query_timeline`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/departments/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/departments/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),tree:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/departments/tree`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},employee:{batchGet:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/employees/batch_get`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/employees`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/employees/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/employees/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},employeesBp:{batchGet:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/employees/bps/batch_get`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},employeesJobData:{batchGet:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/employees/job_datas/batch_get`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/employees/job_datas/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},job:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/jobs/:job_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/jobs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobChange:{searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/job_changes/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/job_changes/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobFamily:{batchGet:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/job_families/batch_get`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobGrade:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/job_grades/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobLevel:{batchGet:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/job_levels/batch_get`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},location:{batchGet:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/locations/batch_get`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},person:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/persons`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/persons/:person_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},preHire:{complete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id/complete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/pre_hires`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),queryWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/pre_hires/query`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/pre_hires/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/pre_hires/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/pre_hires/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),transitTask:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id/transit_task`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},probationAssessment:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/probation/assessments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},probation:{enableDisableAssessment:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/probation/enable_disable_assessment`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/probation/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/probation/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),submit:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/probation/submit`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),withdraw:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/probation/withdraw`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},processApprover:{update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/processes/:process_id/approvers/:approver_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},processFormVariableData:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/processes/:process_id/form_variable_data`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},process:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/processes/:process_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/processes`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/corehr/v2/processes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class ut extends mt{constructor(){super(...arguments),this.docs_tool={}}}class yt extends ut{constructor(){super(...arguments),this.document_ai={v1:{bankCard:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/bank_card/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},businessCard:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/business_card/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},businessLicense:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/business_license/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},chinesePassport:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/chinese_passport/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},contract:{fieldExtraction:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/contract/field_extraction`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},drivingLicense:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/driving_license/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},foodManageLicense:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/food_manage_license/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},foodProduceLicense:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/food_produce_license/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},healthCertificate:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/health_certificate/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},hkmMainlandTravelPermit:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/hkm_mainland_travel_permit/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},idCard:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/id_card/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},resume:{parse:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/resume/parse`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},taxiInvoice:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/taxi_invoice/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},trainInvoice:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/train_invoice/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},twMainlandTravelPermit:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/tw_mainland_travel_permit/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},vatInvoice:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/vat_invoice/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},vehicleInvoice:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/vehicle_invoice/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},vehicleLicense:{recognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/document_ai/v1/vehicle_license/recognize`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))}}}}}class gt extends yt{constructor(){super(...arguments),this.docx={documentBlock:{batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/batch_update`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},documentBlockChildren:{batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children/batch_delete`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},document:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),rawContent:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/raw_content`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{documentBlock:{batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/batch_update`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},documentBlockChildren:{batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children/batch_delete`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},document:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),rawContent:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/docx/v1/documents/:document_id/raw_content`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class ft extends gt{constructor(){super(...arguments),this.drive={exportTask:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/export_tasks`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),download:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/export_tasks/file/:file_token/download`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/export_tasks/:ticket`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},fileComment:{batchQuery:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/batch_query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},fileCommentReply:{delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies/:reply_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies/:reply_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},file:{copy:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/copy`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),createFolder:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/create_folder`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),createShortcut:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/create_shortcut`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),deleteSubscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/delete_subscribe`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),download:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/download`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),getSubscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/get_subscribe`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),move:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/move`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),subscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/subscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),taskCheck:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/task_check`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),uploadAll:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/upload_all`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),uploadFinish:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/upload_finish`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),uploadPart:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/upload_part`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),uploadPrepare:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/upload_prepare`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},fileStatistics:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/statistics`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},fileSubscription:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions/:subscription_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions/:subscription_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},fileVersion:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},fileViewRecord:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},importTask:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/import_tasks`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/import_tasks/:ticket`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},media:{batchGetTmpDownloadUrl:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/medias/batch_get_tmp_download_url`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),download:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/medias/:file_token/download`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),uploadAll:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/medias/upload_all`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),uploadFinish:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/medias/upload_finish`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),uploadPart:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/medias/upload_part`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),uploadPrepare:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/medias/upload_prepare`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},meta:{batchQuery:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/metas/batch_query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},permissionMember:{auth:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members/auth`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),transferOwner:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members/transfer_owner`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},permissionPublic:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/public`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/public`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},permissionPublicPassword:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{exportTask:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/export_tasks`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),download:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/export_tasks/file/:file_token/download`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/export_tasks/:ticket`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},fileComment:{batchQuery:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/batch_query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},fileCommentReply:{delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies/:reply_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies/:reply_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},file:{copy:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/copy`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),createFolder:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/create_folder`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),createShortcut:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/create_shortcut`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),deleteSubscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/delete_subscribe`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),download:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/download`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),getSubscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/get_subscribe`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),move:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/move`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),subscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/subscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),taskCheck:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/task_check`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),uploadAll:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/upload_all`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),uploadFinish:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/upload_finish`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),uploadPart:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/upload_part`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),uploadPrepare:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/upload_prepare`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},fileStatistics:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/statistics`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},fileSubscription:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions/:subscription_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions/:subscription_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},fileVersion:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},fileViewRecord:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},importTask:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/import_tasks`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/import_tasks/:ticket`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},media:{batchGetTmpDownloadUrl:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/medias/batch_get_tmp_download_url`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),download:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/medias/:file_token/download`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),uploadAll:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/medias/upload_all`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),uploadFinish:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/medias/upload_finish`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),uploadPart:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/medias/upload_part`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),uploadPrepare:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/medias/upload_prepare`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},meta:{batchQuery:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/metas/batch_query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},permissionMember:{auth:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members/auth`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),transferOwner:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members/transfer_owner`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},permissionPublic:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/public`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/public`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},permissionPublicPassword:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}},v2:{permissionPublic:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v2/permissions/:token/public`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/drive/v2/permissions/:token/public`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class vt extends ft{constructor(){super(...arguments),this.edu={}}}class _t extends vt{constructor(){super(...arguments),this.ehr={attachment:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/ehr/v1/attachments/:token`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}}))},employee:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/ehr/v1/employees`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/ehr/v1/employees`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{attachment:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/ehr/v1/attachments/:token`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}}))},employee:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/ehr/v1/employees`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/ehr/v1/employees`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class bt extends _t{constructor(){super(...arguments),this.elearning={}}}class St extends bt{constructor(){super(...arguments),this.event={outboundIp:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/event/v1/outbound_ip`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/event/v1/outbound_ip`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{outboundIp:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/event/v1/outbound_ip`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/event/v1/outbound_ip`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Pt extends St{constructor(){super(...arguments),this.exam={}}}class wt extends Pt{constructor(){super(...arguments),this.face_detection={}}}class It extends wt{constructor(){super(...arguments),this.feelgood={}}}class kt extends It{constructor(){super(...arguments),this.gray_test_open_sg={moto:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/gray_test_open_sg/v1/motos`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/gray_test_open_sg/v1/motos/:moto_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/gray_test_open_sg/v1/motos`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/gray_test_open_sg/v1/motos`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{moto:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/gray_test_open_sg/v1/motos`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/gray_test_open_sg/v1/motos/:moto_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/gray_test_open_sg/v1/motos`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/gray_test_open_sg/v1/motos`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Tt extends kt{constructor(){super(...arguments),this.helpdesk={agent:{agentEmail:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_emails`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},agentSchedules:{delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},agentSchedule:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_schedules`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_schedules`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},agentSkill:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_skills`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_skills`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},agentSkillRule:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_skill_rules`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},botMessage:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/message`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},category:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/categories`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/categories`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},event:{subscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/events/subscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unsubscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/events/unsubscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},faq:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),faqImage:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs/:id/image/:image_key`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs/search`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs/search`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},notification:{cancelApprove:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/cancel_approve`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),cancelSend:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/cancel_send`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),executeSend:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/execute_send`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),preview:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/preview`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),submitApprove:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/submit_approve`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ticket:{answerUserQuery:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/answer_user_query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),customizedFields:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/customized_fields`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/tickets`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),startService:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/start_service`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),ticketImage:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_images`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ticketMessage:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/messages`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/messages`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ticketCustomizedField:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{agent:{agentEmail:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_emails`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},agentSchedules:{delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},agentSchedule:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_schedules`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_schedules`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},agentSkill:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_skills`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_skills`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},agentSkillRule:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/agent_skill_rules`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},botMessage:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/message`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},category:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/categories`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/categories`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},event:{subscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/events/subscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unsubscribe:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/events/unsubscribe`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},faq:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),faqImage:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs/:id/image/:image_key`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs/search`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/faqs/search`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},notification:{cancelApprove:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/cancel_approve`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),cancelSend:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/cancel_send`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),executeSend:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/execute_send`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),preview:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/preview`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),submitApprove:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/submit_approve`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ticket:{answerUserQuery:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/answer_user_query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),customizedFields:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/customized_fields`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/tickets`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),startService:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/start_service`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),ticketImage:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_images`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ticketMessage:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/messages`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/messages`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ticketCustomizedField:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class qt extends Tt{constructor(){super(...arguments),this.hire={advertisement:{publish:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/advertisements/:advertisement_id/publish`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},agency:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/agencies/:agency_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),protect:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/agencies/protect`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),protectSearch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/agencies/protection_period/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/agencies/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},application:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),offer:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id/offer`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),recover:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id/recover`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),terminate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id/terminate`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),transferOnboard:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id/transfer_onboard`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),transferStage:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id/transfer_stage`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationInterview:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id/interviews`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},attachment:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/attachments`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/attachments/:attachment_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),preview:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/attachments/:attachment_id/preview`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},backgroundCheckOrder:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/background_check_orders`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},diversityInclusion:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/diversity_inclusions/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ecoAccountCustomField:{batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields/batch_update`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ecoBackgroundCheck:{cancel:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_checks/cancel`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateProgress:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_checks/update_progress`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateResult:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_checks/update_result`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ecoBackgroundCheckCustomField:{batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields/batch_update`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ecoBackgroundCheckPackage:{batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_check_packages/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_check_packages/batch_update`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_check_packages`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ecoExam:{loginInfo:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_exams/:exam_id/login_info`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateResult:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_exams/:exam_id/update_result`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ecoExamPaper:{batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_exam_papers/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_exam_papers/batch_update`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_exam_papers`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ehrImportTask:{patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/ehr_import_tasks/:ehr_import_task_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},employee:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/employees/:employee_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getByApplication:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/employees/get_by_application`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/employees/:employee_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},evaluation:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/evaluations`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/evaluations`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},evaluationTask:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/evaluation_tasks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/evaluation_tasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},exam:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/exams`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},examMarkingTask:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/exam_marking_tasks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/exam_marking_tasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalApplication:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_applications`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_applications`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_applications`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalBackgroundCheck:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_background_checks`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalInterview:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_interviews`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalInterviewAssessment:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_interview_assessments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_interview_assessments/:external_interview_assessment_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalReferralReward:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_referral_rewards`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_referral_rewards/:external_referral_reward_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interview:{getByTalent:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interviews/get_by_talent`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interviews`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewFeedbackForm:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewRecordAttachment:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_records/attachments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewRecord:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_records/:interview_record_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_records`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_records`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewRegistrationSchema:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_registration_schemas`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_registration_schemas`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewRoundType:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_round_types`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewTask:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_tasks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_tasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewer:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interviewers`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interviewers`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interviewers/:interviewer_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},job:{close:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/close`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),combinedCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/combined_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),combinedUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/combined_update`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),config:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/config`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),open:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/open`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),recruiter:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/recruiter`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateConfig:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/update_config`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobManager:{batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/batch_update`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/:manager_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobFunction:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_functions`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_functions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobProcess:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_processes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobPublishRecord:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_publish_records/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobRequirement:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_requirements`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_requirements`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listById:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_requirements/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobRequirementSchema:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_requirement_schemas`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobSchema:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_schemas`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobType:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_types`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_types`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},location:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/locations`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/locations`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/locations/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},minutes:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/minutes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},note:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/notes`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/notes/:note_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/notes/:note_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/notes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/notes/:note_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},offer:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offers`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offers/:offer_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),internOfferStatus:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offers/:offer_id/intern_offer_status`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offers`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),offerStatus:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offers/:offer_id/offer_status`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offers/:offer_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},offerApplicationForm:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offer_application_forms/:offer_application_form_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offer_application_forms`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},offerCustomField:{update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offer_custom_fields/:offer_custom_field_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},offerSchema:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offer_schemas/:offer_schema_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},questionnaire:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/questionnaires`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},referral:{getByApplication:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referrals/get_by_application`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referrals/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},referralAccount:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_account`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),deactivate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_account/:referral_account_id/deactivate`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),reconciliation:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_account/reconciliation`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),withdraw:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_account/:referral_account_id/withdraw`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},referralWebsiteJobPost:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts/:job_post_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},registrationSchema:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/registration_schemas`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/registration_schemas`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},resumeSource:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/resume_sources`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/resume_sources`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},role:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/roles/:role_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/roles`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/roles`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},subject:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/subjects`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},talent:{addToFolder:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/add_to_folder`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchGetId:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/batch_get_id`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),combinedCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/combined_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),combinedUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/combined_update`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/:talent_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),onboardStatus:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/:talent_id/onboard_status`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},talentExternalInfo:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/:talent_id/external_info`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/:talent_id/external_info`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},talentFolder:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_folders`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_folders`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},talentObject:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_objects/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},talentOperationLog:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_operation_logs/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},talentPool:{moveTalent:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/talent_relationship`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_pools/`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_pools/`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},terminationReason:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/termination_reasons`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/termination_reasons`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},test:{searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tests/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tests/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},todo:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/todos`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/todos`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},tripartiteAgreement:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userRole:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/user_roles`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/user_roles`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},websiteChannel:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels/:channel_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels/:channel_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},websiteDelivery:{createByAttachment:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/deliveries/create_by_attachment`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),createByResume:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/deliveries/create_by_resume`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},websiteDeliveryTask:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/delivery_tasks/:delivery_task_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},websiteJobPost:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/:job_post_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},website:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},websiteSiteUser:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/site_users`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{advertisement:{publish:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/advertisements/:advertisement_id/publish`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},agency:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/agencies/:agency_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),protect:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/agencies/protect`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),protectSearch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/agencies/protection_period/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/agencies/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},application:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),offer:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id/offer`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),recover:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id/recover`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),terminate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id/terminate`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),transferOnboard:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id/transfer_onboard`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),transferStage:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id/transfer_stage`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},applicationInterview:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/:application_id/interviews`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},attachment:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/attachments`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/attachments/:attachment_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),preview:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/attachments/:attachment_id/preview`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},backgroundCheckOrder:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/background_check_orders`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},diversityInclusion:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/applications/diversity_inclusions/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ecoAccountCustomField:{batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields/batch_update`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ecoBackgroundCheck:{cancel:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_checks/cancel`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateProgress:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_checks/update_progress`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateResult:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_checks/update_result`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ecoBackgroundCheckCustomField:{batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields/batch_update`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ecoBackgroundCheckPackage:{batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_check_packages/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_check_packages/batch_update`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_background_check_packages`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ecoExam:{loginInfo:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_exams/:exam_id/login_info`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateResult:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_exams/:exam_id/update_result`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ecoExamPaper:{batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_exam_papers/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_exam_papers/batch_update`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/eco_exam_papers`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ehrImportTask:{patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/ehr_import_tasks/:ehr_import_task_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},employee:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/employees/:employee_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getByApplication:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/employees/get_by_application`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/employees/:employee_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},evaluation:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/evaluations`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/evaluations`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},evaluationTask:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/evaluation_tasks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/evaluation_tasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},exam:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/exams`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},examMarkingTask:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/exam_marking_tasks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/exam_marking_tasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalApplication:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_applications`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_applications`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_applications`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalBackgroundCheck:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_background_checks`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalInterview:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_interviews`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalInterviewAssessment:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_interview_assessments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_interview_assessments/:external_interview_assessment_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},externalReferralReward:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_referral_rewards`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/external_referral_rewards/:external_referral_reward_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interview:{getByTalent:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interviews/get_by_talent`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interviews`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewFeedbackForm:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewRecordAttachment:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_records/attachments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewRecord:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_records/:interview_record_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_records`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_records`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewRegistrationSchema:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_registration_schemas`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_registration_schemas`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewRoundType:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_round_types`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewTask:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_tasks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interview_tasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},interviewer:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interviewers`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interviewers`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/interviewers/:interviewer_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},job:{close:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/close`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),combinedCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/combined_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),combinedUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/combined_update`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),config:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/config`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),open:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/open`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),recruiter:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/recruiter`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateConfig:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/update_config`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobManager:{batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/batch_update`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/:manager_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobFunction:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_functions`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_functions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobProcess:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_processes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobPublishRecord:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_publish_records/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobRequirement:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_requirements`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_requirements`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listById:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_requirements/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobRequirementSchema:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_requirement_schemas`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobSchema:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_schemas`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},jobType:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_types`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/job_types`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},location:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/locations`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/locations`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/locations/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},minutes:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/minutes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},note:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/notes`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/notes/:note_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/notes/:note_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/notes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/notes/:note_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},offer:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offers`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offers/:offer_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),internOfferStatus:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offers/:offer_id/intern_offer_status`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offers`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),offerStatus:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offers/:offer_id/offer_status`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offers/:offer_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},offerApplicationForm:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offer_application_forms/:offer_application_form_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offer_application_forms`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},offerCustomField:{update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offer_custom_fields/:offer_custom_field_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},offerSchema:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/offer_schemas/:offer_schema_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},questionnaire:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/questionnaires`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},referral:{getByApplication:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referrals/get_by_application`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referrals/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},referralAccount:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_account`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),deactivate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_account/:referral_account_id/deactivate`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),reconciliation:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_account/reconciliation`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),withdraw:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_account/:referral_account_id/withdraw`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},referralWebsiteJobPost:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts/:job_post_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},registrationSchema:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/registration_schemas`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/registration_schemas`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},resumeSource:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/resume_sources`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/resume_sources`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},role:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/roles/:role_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/roles`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/roles`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},subject:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/subjects`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},talent:{addToFolder:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/add_to_folder`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchGetId:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/batch_get_id`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),combinedCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/combined_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),combinedUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/combined_update`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/:talent_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),onboardStatus:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/:talent_id/onboard_status`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},talentExternalInfo:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/:talent_id/external_info`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talents/:talent_id/external_info`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},talentFolder:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_folders`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_folders`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},talentObject:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_objects/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},talentOperationLog:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_operation_logs/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},talentPool:{moveTalent:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/talent_relationship`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_pools/`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/talent_pools/`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},terminationReason:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/termination_reasons`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/termination_reasons`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},test:{searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tests/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tests/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},todo:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/todos`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/todos`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},tripartiteAgreement:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userRole:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/user_roles`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/user_roles`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},websiteChannel:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels/:channel_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels/:channel_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},websiteDelivery:{createByAttachment:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/deliveries/create_by_attachment`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),createByResume:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/deliveries/create_by_resume`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},websiteDeliveryTask:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/delivery_tasks/:delivery_task_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},websiteJobPost:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/:job_post_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},website:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},websiteSiteUser:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/hire/v1/websites/:website_id/site_users`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Ft extends qt{constructor(){super(...arguments),this.human_authentication={identity:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/human_authentication/v1/identities`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{identity:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/human_authentication/v1/identities`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class zt extends Ft{constructor(){super(...arguments),this.im={batchMessage:{delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getProgress:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id/get_progress`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),readUser:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id/read_user`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatAnnouncement:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/announcement`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/announcement`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chat:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),link:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/link`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/search`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/search`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatManagers:{addManagers:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/managers/add_managers`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),deleteManagers:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/managers/delete_managers`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatMembers:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),isInChat:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/members/is_in_chat`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),meJoin:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/members/me_join`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatMenuItem:{patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_items/:menu_item_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatMenuTree:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),sort:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree/sort`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatModeration:{getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatTab:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),deleteTabs:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/delete_tabs`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listTabs:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/list_tabs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),sortTabs:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/sort_tabs`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateTabs:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/update_tabs`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatTopNotice:{deleteTopNotice:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/top_notice/delete_top_notice`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),putTopNotice:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/top_notice/put_top_notice`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},file:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/files`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/files/:file_key`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}}))},image:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/images`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/images/:image_key`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}}))},message:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),forward:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/forward`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),mergeForward:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/merge_forward`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),pushFollowUp:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/push_follow_up`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),readUsers:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/read_users`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),reply:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),urgentApp:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_app`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),urgentPhone:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_phone`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),urgentSms:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_sms`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),createByCard:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),{template_id:o,template_variable:n}=i,h=I(i,["template_id","template_variable"]),d=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:o,template_variable:n}})},h);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages`,s),method:"POST",data:d,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),replyByCard:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),{template_id:o,template_variable:n}=i,h=I(i,["template_id","template_variable"]),d=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:o,template_variable:n}})},h);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`,s),method:"POST",data:d,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateByCard:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),{template_id:o,template_variable:n}=i,h=I(i,["template_id","template_variable"]),d=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:o,template_variable:n}})},h);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id`,s),method:"PUT",data:d,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},messageReaction:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions/:reaction_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},messageResource:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/resources/:file_key`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}}))},pin:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/pins`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/pins/:message_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/pins`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/pins`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},thread:{forward:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{batchMessage:{delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getProgress:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id/get_progress`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),readUser:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id/read_user`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatAnnouncement:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/announcement`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/announcement`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chat:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),link:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/link`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/search`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/search`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatManagers:{addManagers:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/managers/add_managers`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),deleteManagers:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/managers/delete_managers`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatMembers:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),isInChat:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/members/is_in_chat`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),meJoin:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/members/me_join`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatMenuItem:{patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_items/:menu_item_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatMenuTree:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),sort:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree/sort`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatModeration:{getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatTab:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),deleteTabs:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/delete_tabs`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listTabs:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/list_tabs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),sortTabs:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/sort_tabs`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateTabs:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/update_tabs`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatTopNotice:{deleteTopNotice:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/top_notice/delete_top_notice`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),putTopNotice:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/chats/:chat_id/top_notice/put_top_notice`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},file:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/files`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/files/:file_key`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}}))},image:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/images`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/images/:image_key`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}}))},message:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),forward:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/forward`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),mergeForward:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/merge_forward`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),pushFollowUp:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/push_follow_up`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),readUsers:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/read_users`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),reply:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),urgentApp:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_app`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),urgentPhone:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_phone`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),urgentSms:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_sms`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),createByCard:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),{template_id:o,template_variable:n}=i,h=I(i,["template_id","template_variable"]),d=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:o,template_variable:n}})},h);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages`,s),method:"POST",data:d,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),replyByCard:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),{template_id:o,template_variable:n}=i,h=I(i,["template_id","template_variable"]),d=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:o,template_variable:n}})},h);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`,s),method:"POST",data:d,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateByCard:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),{template_id:o,template_variable:n}=i,h=I(i,["template_id","template_variable"]),d=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:o,template_variable:n}})},h);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id`,s),method:"PUT",data:d,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},messageReaction:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions/:reaction_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},messageResource:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/messages/:message_id/resources/:file_key`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}}))},pin:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/pins`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/pins/:message_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/pins`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/pins`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},thread:{forward:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}},v2:{appFeedCardBatch:{delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v2/app_feed_card/batch`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v2/app_feed_card/batch`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},appFeedCard:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v2/app_feed_card`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},bizEntityTagRelation:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v2/biz_entity_tag_relation`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v2/biz_entity_tag_relation`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v2/biz_entity_tag_relation`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},chatButton:{update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v2/chat_button`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},feedCard:{botTimeSentive:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v2/feed_cards/bot_time_sentive`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v2/feed_cards/:feed_card_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},tag:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v2/tags`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v2/tags/:tag_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},urlPreview:{batchUpdate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/im/v2/url_previews/batch_update`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class $t extends zt{constructor(){super(...arguments),this.lingo={v1:{classification:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/classifications`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/classifications`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},draft:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/drafts`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/drafts/:draft_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},entity:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/entities`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/entities/:entity_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/entities/:entity_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),highlight:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/entities/highlight`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/entities`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/entities`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),match:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/entities/match`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),searchWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/entities/search`,o),method:"POST",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/entities/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/entities/:entity_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},file:{download:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/files/:file_token/download`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),upload:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/files/upload`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},repo:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/lingo/v1/repos`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Et extends $t{constructor(){super(...arguments),this.mail={mailgroupAlias:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases/:alias_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},mailgroup:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},mailgroupManager:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},mailgroupMember:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/batch_delete`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/:member_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/:member_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},mailgroupPermissionMember:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/batch_delete`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/:permission_member_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/:permission_member_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},publicMailboxAlias:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases/:alias_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},publicMailbox:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},publicMailboxMember:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/batch_delete`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),clear:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/clear`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/:member_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/:member_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},user:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/users/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userMailboxAlias:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases/:alias_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userMailbox:{delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userMailboxMessage:{send:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/send`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{mailgroupAlias:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases/:alias_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},mailgroup:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},mailgroupManager:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_delete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},mailgroupMember:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/batch_delete`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/:member_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/:member_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},mailgroupPermissionMember:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/batch_delete`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/:permission_member_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/:permission_member_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},publicMailboxAlias:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases/:alias_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},publicMailbox:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},publicMailboxMember:{batchCreate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/batch_create`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDelete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/batch_delete`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),clear:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/clear`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/:member_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/:member_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},user:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/users/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userMailboxAlias:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases/:alias_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userMailbox:{delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userMailboxMessage:{send:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/send`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Ot extends Et{constructor(){super(...arguments),this.mdm={userAuthDataRelation:{bind:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/bind`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unbind:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/unbind`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{userAuthDataRelation:{bind:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/bind`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),unbind:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/unbind`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class jt extends Ot{constructor(){super(...arguments),this.meeting_room={}}}class xt extends jt{constructor(){super(...arguments),this.moments={post:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/moments/v1/posts/:post_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{post:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/moments/v1/posts/:post_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Gt extends xt{constructor(){super(...arguments),this.okr={image:{upload:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/images/upload`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},okr:{batchGet:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/okrs/batch_get`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},period:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/periods`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/periods`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/periods/:period_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},periodRule:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/period_rules`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},progressRecord:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/progress_records`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},review:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/reviews/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userOkr:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/users/:user_id/okrs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{image:{upload:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/images/upload`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},okr:{batchGet:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/okrs/batch_get`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},period:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/periods`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/periods`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/periods/:period_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},periodRule:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/period_rules`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},progressRecord:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/progress_records`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},review:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/reviews/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},userOkr:{list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/okr/v1/users/:user_id/okrs`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class At extends Gt{constructor(){super(...arguments),this.optical_char_recognition={image:{basicRecognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/optical_char_recognition/v1/image/basic_recognize`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{image:{basicRecognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/optical_char_recognition/v1/image/basic_recognize`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Ct extends At{constructor(){super(...arguments),this.passport={session:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/passport/v1/sessions/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{session:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/passport/v1/sessions/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Dt extends Ct{constructor(){super(...arguments),this.people_admin={}}}class Bt extends Dt{constructor(){super(...arguments),this.people_bytedance={}}}class Lt extends Bt{constructor(){super(...arguments),this.personal_settings={systemStatus:{batchClose:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_close`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchOpen:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_open`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{systemStatus:{batchClose:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_close`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchOpen:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_open`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Rt extends Lt{constructor(){super(...arguments),this.report={rule:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/report/v1/rules/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ruleView:{remove:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},task:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/report/v1/tasks/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{rule:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/report/v1/rules/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},ruleView:{remove:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},task:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/report/v1/tasks/query`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Wt extends Rt{constructor(){super(...arguments),this.search_in_app={}}}class Ut extends Wt{constructor(){super(...arguments),this.search={app:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/app`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},dataSource:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},dataSourceItem:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items/:item_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items/:item_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},message:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/message`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},schema:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/schemas`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v2:{app:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/app`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},dataSource:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},dataSourceItem:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items/:item_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items/:item_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},message:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/message`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},schema:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/schemas`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Nt extends Ut{constructor(){super(...arguments),this.security_and_compliance={openapiLog:{listData:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/security_and_compliance/v1/openapi_logs/list_data`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{openapiLog:{listData:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/security_and_compliance/v1/openapi_logs/list_data`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Ht extends Nt{constructor(){super(...arguments),this.sheets={spreadsheet:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spreadsheetSheetFilter:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spreadsheetSheetFilterViewCondition:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spreadsheetSheetFilterView:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spreadsheetSheet:{find:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/find`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),moveDimension:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/move_dimension`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),replace:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/replace`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spreadsheetSheetFloatImage:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v3:{spreadsheet:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spreadsheetSheetFilter:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spreadsheetSheetFilterViewCondition:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spreadsheetSheetFilterView:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spreadsheetSheet:{find:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/find`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),moveDimension:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/move_dimension`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),replace:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/replace`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spreadsheetSheetFloatImage:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Mt extends Ht{constructor(){super(...arguments),this.speech_to_text={speech:{fileRecognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/speech_to_text/v1/speech/file_recognize`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),streamRecognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/speech_to_text/v1/speech/stream_recognize`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{speech:{fileRecognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/speech_to_text/v1/speech/file_recognize`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),streamRecognize:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/speech_to_text/v1/speech/stream_recognize`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Jt extends Mt{constructor(){super(...arguments),this.spend={}}}class Vt extends Jt{constructor(){super(...arguments),this.sup_project={}}}class Kt extends Vt{constructor(){super(...arguments),this.task={task:{batchDeleteCollaborator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_collaborator`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDeleteFollower:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_follower`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),complete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/complete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),uncomplete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/uncomplete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},taskCollaborator:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators/:collaborator_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},taskComment:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},taskFollower:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers/:follower_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},taskReminder:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders/:reminder_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{task:{batchDeleteCollaborator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_collaborator`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),batchDeleteFollower:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_follower`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),complete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/complete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),uncomplete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/uncomplete`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},taskCollaborator:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators/:collaborator_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},taskComment:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},taskFollower:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers/:follower_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},taskReminder:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders/:reminder_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}},v2:{attachment:{delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/attachments/:attachment_guid`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/attachments/:attachment_guid`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/attachments`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/attachments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),upload:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/attachments/upload`,o),method:"POST",data:s,params:r,headers:Object.assign(Object.assign({},e),{"Content-Type":"multipart/form-data"}),paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}));return i()(n,"data",null)}))},comment:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/comments`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/comments/:comment_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/comments/:comment_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/comments`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/comments`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/comments/:comment_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},customField:{add:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid/add`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/custom_fields`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/custom_fields`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/custom_fields`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),remove:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid/remove`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},customFieldOption:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid/options`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid/options/:option_guid`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},section:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/sections`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/sections/:section_guid`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/sections/:section_guid`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/sections`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/sections`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/sections/:section_guid`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),tasksWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/sections/:section_guid/tasks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),tasks:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/sections/:section_guid/tasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},task:{addDependencies:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid/add_dependencies`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),addMembers:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid/add_members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),addReminders:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid/add_reminders`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),addTasklist:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid/add_tasklist`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),removeDependencies:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid/remove_dependencies`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),removeMembers:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid/remove_members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),removeReminders:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid/remove_reminders`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),removeTasklist:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid/remove_tasklist`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),tasklists:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid/tasklists`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},taskSubtask:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid/subtasks`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid/subtasks`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasks/:task_guid/subtasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},tasklistActivitySubscription:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions/:activity_subscription_guid`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions/:activity_subscription_guid`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions/:activity_subscription_guid`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},tasklist:{addMembers:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/add_members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),removeMembers:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/remove_members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),tasks:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/tasks`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Qt extends Kt{constructor(){super(...arguments),this.tenant={tenantProductAssignInfo:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/tenant/v2/tenant/assign_info_list/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},tenant:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/tenant/v2/tenant/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v2:{tenantProductAssignInfo:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/tenant/v2/tenant/assign_info_list/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},tenant:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/tenant/v2/tenant/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Xt extends Qt{constructor(){super(...arguments),this.translation={text:{detect:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/translation/v1/text/detect`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),translate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/translation/v1/text/translate`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{text:{detect:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/translation/v1/text/detect`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),translate:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/translation/v1/text/translate`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class Zt extends Xt{constructor(){super(...arguments),this.unified_kms_log={}}}class Yt extends Zt{constructor(){super(...arguments),this.vc={alert:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/alerts`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/alerts`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},export:{download:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/exports/download`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/exports/:task_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),meetingList:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/exports/meeting_list`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),participantList:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/exports/participant_list`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),participantQualityList:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/exports/participant_quality_list`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),resourceReservationList:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/exports/resource_reservation_list`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},meeting:{end:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/end`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),invite:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/invite`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),kickout:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/kickout`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listByNoWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/list_by_no`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),listByNo:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/list_by_no`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),setHost:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/set_host`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},meetingRecording:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),setPermission:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/set_permission`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),start:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/start`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),stop:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/stop`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},meetingList:{getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meeting_list`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meeting_list`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},participantList:{getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/participant_list`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/participant_list`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},participantQualityList:{getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/participant_quality_list`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/participant_quality_list`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},report:{getDaily:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reports/get_daily`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getTopUser:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reports/get_top_user`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},reserve:{apply:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserves/apply`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getActiveMeeting:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id/get_active_meeting`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},reserveConfigAdmin:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},reserveConfigDisableInform:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},reserveConfigForm:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/form`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/form`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},reserveConfig:{patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),reserveScope:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/reserve_scope`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},resourceReservationList:{getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/resource_reservation_list`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/resource_reservation_list`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},room:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),mget:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms/mget`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},roomConfig:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_configs/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),set:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_configs/set`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),setCheckboardAccessCode:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_configs/set_checkboard_access_code`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),setRoomAccessCode:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_configs/set_room_access_code`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},roomLevel:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),del:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels/del`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),mget:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels/mget`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels/search`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},scopeConfig:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/scope_config`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/scope_config`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{alert:{listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/alerts`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/alerts`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},export:{download:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a),o=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/exports/download`,s),method:"GET",headers:e,data:i,params:r,responseType:"stream",paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t})),n=()=>{const t="The stream has already been consumed";if(!o.readable)throw this.logger.error(t),new Error(t)};return{writeFile:t=>k(this,void 0,void 0,(function*(){return n(),new Promise(((a,e)=>{const r=f().createWriteStream(t);r.on("finish",(()=>{a(t)})),r.on("error",(t=>{e(t)})),o.pipe(r)}))})),getReadableStream:()=>(n(),o)}})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/exports/:task_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),meetingList:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/exports/meeting_list`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),participantList:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/exports/participant_list`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),participantQualityList:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/exports/participant_quality_list`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),resourceReservationList:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/exports/resource_reservation_list`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},meeting:{end:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/end`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),invite:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/invite`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),kickout:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/kickout`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listByNoWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/list_by_no`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),listByNo:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/list_by_no`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),setHost:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/set_host`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},meetingRecording:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),setPermission:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/set_permission`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),start:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/start`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),stop:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/stop`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},meetingList:{getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meeting_list`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/meeting_list`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},participantList:{getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/participant_list`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/participant_list`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},participantQualityList:{getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/participant_quality_list`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/participant_quality_list`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},report:{getDaily:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reports/get_daily`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getTopUser:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reports/get_top_user`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},reserve:{apply:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserves/apply`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getActiveMeeting:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id/get_active_meeting`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},reserveConfigAdmin:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},reserveConfigDisableInform:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},reserveConfigForm:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/form`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/form`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},reserveConfig:{patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),reserveScope:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/reserve_configs/reserve_scope`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},resourceReservationList:{getWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/resource_reservation_list`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/resource_reservation_list`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},room:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),mget:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms/mget`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/rooms/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},roomConfig:{query:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_configs/query`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),set:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_configs/set`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),setCheckboardAccessCode:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_configs/set_checkboard_access_code`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),setRoomAccessCode:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_configs/set_room_access_code`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},roomLevel:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),del:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels/del`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),mget:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels/mget`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),patch:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`,s),method:"PATCH",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/room_levels/search`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},scopeConfig:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/scope_config`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/vc/v1/scope_config`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class ta extends Yt{constructor(){super(...arguments),this.verification={v1:{verification:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/verification/v1/verification`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class aa extends ta{constructor(){super(...arguments),this.wiki={space:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getNode:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/get_node`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spaceMember:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members/:member_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spaceNode:{copy:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/copy`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),move:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/move`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),moveDocsToWiki:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/move_docs_to_wiki`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateTitle:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/update_title`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spaceSetting:{update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/setting`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},task:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/tasks/:task_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v2:{space:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),getNode:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/get_node`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spaceMember:{create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),delete:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members/:member_id`,s),method:"DELETE",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spaceNode:{copy:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/copy`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),create:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),listWithIterator:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:s,path:o}=yield this.formatPayload(t,a),n=t=>k(this,void 0,void 0,(function*(){const a=yield this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,o),method:"GET",headers:y()(t.headers,m()),params:y()(t.params,m()),data:s,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{this.logger.error(J(t))}));return a})),h={[Symbol.asyncIterator](){return q(this,arguments,(function*(){let t,a=!0;for(;a;)try{const o=yield T(n({headers:e,params:Object.assign(Object.assign({},r),{page_token:t}),data:s})),h=i()(o,"data")||{},{has_more:d,page_token:p,next_page_token:c}=h,l=I(h,["has_more","page_token","next_page_token"]);yield yield T(l),a=Boolean(d),t=p||c}catch(t){yield yield T(null);break}}))}};return h})),list:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),move:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/move`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),moveDocsToWiki:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/move_docs_to_wiki`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))})),updateTitle:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/update_title`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},spaceSetting:{update:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/setting`,s),method:"PUT",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},task:{get:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/wiki/v2/tasks/:task_id`,s),method:"GET",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}class ea extends aa{constructor(){super(...arguments),this.workplace={customWorkplaceAccessData:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/workplace/v1/custom_workplace_access_data/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},workplaceAccessData:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/workplace/v1/workplace_access_data/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},workplaceBlockAccessData:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/workplace/v1/workplace_block_access_data/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},v1:{customWorkplaceAccessData:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/workplace/v1/custom_workplace_access_data/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},workplaceAccessData:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/workplace/v1/workplace_access_data/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))},workplaceBlockAccessData:{search:(t,a)=>k(this,void 0,void 0,(function*(){const{headers:e,params:r,data:i,path:s}=yield this.formatPayload(t,a);return this.httpInstance.request({url:N(`${this.domain}/open-apis/workplace/v1/workplace_block_access_data/search`,s),method:"POST",data:i,params:r,headers:e,paramsSerializer:t=>(0,c.stringify)(t,{arrayFormat:"repeat"})}).catch((t=>{throw this.logger.error(J(t)),t}))}))}}}}}const ra={error:(...t)=>{console.log("[error]:",...t)},warn:(...t)=>{console.warn("[warn]:",...t)},info:(...t)=>{console.info("[info]:",...t)},debug:(...t)=>{console.debug("[debug]:",...t)},trace:(...t)=>{console.trace("[trace]:",...t)}};class ia{constructor(t,a){this.level=t,this.logger=a}error(...t){this.level>=O.error&&this.logger.error(t)}warn(...t){this.level>=O.warn&&this.logger.warn(t)}info(...t){this.level>=O.info&&this.logger.info(t)}debug(...t){this.level>=O.debug&&this.logger.debug(t)}trace(...t){this.level>=O.trace&&this.logger.trace(t)}}class sa{constructor(t){this.appId=t.appId,this.appSecret=t.appSecret,this.cache=t.cache,this.domain=t.domain,this.logger=t.logger,this.appType=t.appType,this.httpInstance=t.httpInstance,this.logger.debug("app ticket manager is ready"),this.checkAppTicket()}checkAppTicket(){var t;return k(this,void 0,void 0,(function*(){this.appType===$.ISV&&((yield null===(t=this.cache)||void 0===t?void 0:t.get(G,{namespace:this.appId}))||this.requestAppTicket())}))}requestAppTicket(){return k(this,void 0,void 0,(function*(){this.logger.debug("request app ticket"),yield this.httpInstance.post(`${this.domain}/open-apis/auth/v3/app_ticket/resend`,{app_id:this.appId,app_secret:this.appSecret}).catch((t=>{this.logger.error(t)}))}))}getAppTicket(){var t;return k(this,void 0,void 0,(function*(){const a=yield null===(t=this.cache)||void 0===t?void 0:t.get(G,{namespace:this.appId});if(a)return this.logger.debug("use cache app ticket"),a;yield this.requestAppTicket()}))}}class oa{constructor(t){this.appId=t.appId,this.appSecret=t.appSecret,this.cache=t.cache,this.domain=t.domain,this.logger=t.logger,this.appType=t.appType,this.httpInstance=t.httpInstance,this.appTicketManager=new sa({appId:this.appId,appSecret:this.appSecret,cache:this.cache,domain:this.domain,logger:this.logger,appType:this.appType,httpInstance:this.httpInstance}),this.logger.debug("token manager is ready")}getCustomTenantAccessToken(){var t,a;return k(this,void 0,void 0,(function*(){const e=yield null===(t=this.cache)||void 0===t?void 0:t.get(A,{namespace:this.appId});if(e)return this.logger.debug("use cache token"),e;this.logger.debug("request token");const{tenant_access_token:r,expire:i}=yield this.httpInstance.post(`${this.domain}/open-apis/auth/v3/tenant_access_token/internal`,{app_id:this.appId,app_secret:this.appSecret}).catch((t=>{this.logger.error(t)}));return yield null===(a=this.cache)||void 0===a?void 0:a.set(A,r,(new Date).getTime()+1e3*i-18e4,{namespace:this.appId}),r}))}getMarketTenantAccessToken(t){var a;return k(this,void 0,void 0,(function*(){if(!t)return void this.logger.error("market app request need tenant key");const e=yield null===(a=this.cache)||void 0===a?void 0:a.get(`larkMarketAccessToken${t}`,{namespace:this.appId});if(e)return this.logger.debug("use cache token"),e;this.logger.debug("get app ticket");const r=yield this.appTicketManager.getAppTicket();if(!r)return void this.logger.warn("no app ticket");this.logger.debug("get app access token");const{app_access_token:i}=yield this.httpInstance.post(`${this.domain}/open-apis/auth/v3/app_access_token`,{app_id:this.appId,app_secret:this.appSecret,app_ticket:r}).catch((t=>{this.logger.error(t)}));this.logger.debug("get tenant access token");const{tenant_access_token:s,expire:o}=yield this.httpInstance.post(`${this.domain}/open-apis/auth/v3/tenant_access_token`,{app_access_token:i,tenant_key:t}).catch((t=>{this.logger.error(t)}));return yield this.cache.set(`larkMarketAccessToken${t}`,s,(new Date).getTime()+1e3*o-18e4,{namespace:this.appId}),s}))}getTenantAccessToken(t){return k(this,void 0,void 0,(function*(){return H(this.appType===$.SelfBuild,(()=>k(this,void 0,void 0,(function*(){this.logger.debug("get custom app token")})))),H(this.appType===$.ISV,(()=>k(this,void 0,void 0,(function*(){this.logger.debug("get market app token ")})))),this.appType===$.SelfBuild?yield this.getCustomTenantAccessToken():yield this.getMarketTenantAccessToken(i()(t,x))}))}}const na=(t,a)=>{const e=Object.assign({},t);for(let[t,r]of Object.entries(a))void 0!==r&&(e[t]=r);return e};class ha{constructor(t){this.client=t.client}getCacheKey(t,a){return`${i()(a,"namespace",this.client.appId)}/${B.toString()}/${t}`}calibrateTime(t){return(new Date).getTime()+1e3*(t||0)-18e4}initWithCode(t,a){return k(this,void 0,void 0,(function*(){const e={};for(const[a,r]of Object.entries(t)){const t=yield this.client.authen.oidcAccessToken.create({data:{grant_type:"authorization_code",code:r}});0===t.code?t.data?e[a]={code:r,token:t.data.access_token,refreshToken:t.data.refresh_token,expiredTime:this.calibrateTime(t.data.expires_in)}:this.client.logger.error("user access code expired",a,r):this.client.logger.error("init user access token error",a,t.msg||t.message)}return yield this.update(e,{namespace:i()(a,"namespace")}),e}))}update(t,a){return k(this,void 0,void 0,(function*(){for(const[e,r]of Object.entries(t)){const t=this.getCacheKey(e,{namespace:i()(a,"namespace")}),s=(yield this.client.cache.get(t))||{},{code:o,token:n,refreshToken:h,expiredTime:d}=r,p=na(s,{code:o,token:n,refreshToken:h,expiredTime:d});yield this.client.cache.set(t,p,1/0)}}))}get(t,a){return k(this,void 0,void 0,(function*(){const e=this.getCacheKey(t,{namespace:i()(a,"namespace")}),r=yield this.client.cache.get(e);if(!r)return void this.client.logger.error("user access token needs to be initialized or updated first");const{token:s,code:o,refreshToken:n,expiredTime:h}=r;if(s&&h&&h-(new Date).getTime()>0)return s;if(n){const a=yield this.client.authen.oidcRefreshAccessToken.create({data:{grant_type:"refresh_token",refresh_token:n}});return 0===a.code&&a.data?(yield this.update({[t]:{token:a.data.access_token,refreshToken:a.data.refresh_token,expiredTime:this.calibrateTime(a.data.expires_in)}}),a.data.access_token):void this.client.logger.error("get user access token by refresh token failed.",a.msg)}if(o){const a=yield this.client.authen.oidcAccessToken.create({data:{grant_type:"authorization_code",code:o}});0===a.code&&a.data?yield this.update({[t]:{token:a.data.access_token,refreshToken:a.data.refresh_token,expiredTime:this.calibrateTime(a.data.expires_in)}}):this.client.logger.error("get user access token by code failed.",a.msg)}}))}}class da extends ea{constructor(t){super(),this.appId="",this.appSecret="",this.helpDeskId="",this.helpDeskToken="",this.appType=$.SelfBuild,this.logger=new ia(t.loggerLevel||O.info,t.logger||ra),this.appId=t.appId,this.appSecret=t.appSecret,this.disableTokenCache=t.disableTokenCache,H(!this.appId,(()=>this.logger.error("appId is needed"))),H(!this.appSecret,(()=>this.logger.error("appSecret is needed"))),this.helpDeskId=t.helpDeskId,this.helpDeskToken=t.helpDeskToken,this.appType=i()(t,"appType",$.SelfBuild),this.domain=U(t.domain||E.Feishu),this.logger.debug(`use domain url: ${this.domain}`),this.cache=t.cache||R,this.httpInstance=t.httpInstance||z,this.tokenManager=new oa({appId:this.appId,appSecret:this.appSecret,cache:this.cache,domain:this.domain,logger:this.logger,appType:this.appType,httpInstance:this.httpInstance}),this.userAccessToken=new ha({client:this}),this.logger.info("client ready")}formatPayload(t,a){return k(this,void 0,void 0,(function*(){const e=["lark","params","data","headers","path"].reduce(((t,e)=>(t[e]=i()(a,e,{}),t)),{}),r=i()(e.lark,D);if(r)this.logger.debug("use passed token"),e.headers.Authorization=`Bearer ${r}`;else if(!this.disableTokenCache){const t=yield this.tokenManager.getTenantAccessToken({[x]:i()(e.lark,x)});t?e.headers.Authorization=`Bearer ${t}`:this.logger.warn("failed to obtain token")}if(i()(e.lark,C)){this.logger.debug("generate help desk credential");const t=(s=`${this.helpDeskId}:${this.helpDeskToken}`,Buffer.from(s).toString("base64"));e.headers["X-Lark-Helpdesk-Authorization"]=`Bearer ${t}`}var s;return{params:Object.assign(Object.assign({},i()(t,"params",{})),e.params),headers:Object.assign(Object.assign({"User-Agent":"oapi-node-sdk/1.0.0"},i()(t,"headers",{})),e.headers),data:Object.assign(Object.assign({},i()(t,"data",{})),e.data),path:Object.assign(Object.assign({},i()(t,"path",{})),e.path)}}))}request(t,a){return k(this,void 0,void 0,(function*(){const{data:e,params:r,headers:i,url:s}=t,o=I(t,["data","params","headers","url"]),n=yield this.formatPayload({data:e,params:r,headers:i},a);return this.logger.trace(`send request [${t.method}]: ${t.url}`),yield this.httpInstance.request(Object.assign(Object.assign({},o),{url:/^http/.test(s)?s:`${this.domain}/${M(s)}`,headers:n.headers,data:n.data,params:n.params})).catch((t=>{throw this.logger.error(t),t}))}))}}const pa=t=>t.reduce(((t,a)=>_()(t,a)),{}),ca=t=>({lark:{[x]:t}}),la=()=>({lark:{[C]:!0}}),ma=t=>({headers:{Authorization:`Bearer ${t}`}}),ua=t=>({lark:{[D]:t}});class ya{constructor(t){const{encryptKey:a,verificationToken:e,logger:r}=t;this.verificationToken=e,this.encryptKey=a,this.logger=r,a&&(this.aesCipher=new W(a))}parse(t){const a=(()=>{var a;const e=t||{},{encrypt:r}=e,i=I(e,["encrypt"]);if(r)try{return Object.assign(Object.assign({},JSON.parse(null===(a=this.aesCipher)||void 0===a?void 0:a.decrypt(r))),i)}catch(t){return this.logger.error("parse encrypt data failed"),{}}return i})();if("schema"in a){const{header:t,event:e}=a,r=I(a,["header","event"]);return Object.assign(Object.assign(Object.assign({[j]:i()(a,"header.event_type")},r),t),e)}const{event:e}=a,r=I(a,["event"]);return Object.assign(Object.assign({[j]:i()(a,"event.type")},e),r)}checkIsCardEventValidated(t){if("encrypt"in t||"schema"in t)return this.checkIsEventValidated(t);const{"x-lark-request-timestamp":a,"x-lark-request-nonce":e,"x-lark-signature":r}=t.headers;return!this.verificationToken||h().createHash("sha1").update(a+e+this.verificationToken+JSON.stringify(t)).digest("hex")===r}checkIsEventValidated(t){if(!this.encryptKey)return!0;const{"x-lark-request-timestamp":a,"x-lark-request-nonce":e,"x-lark-signature":r}=t.headers,i=a+e+this.encryptKey+JSON.stringify(t);return h().createHash("sha256").update(i).digest("hex")===r}}class ga{constructor(t){this.verificationToken="",this.encryptKey="",this.handles=new Map;const{encryptKey:a,verificationToken:e}=t;this.encryptKey=a||"",this.verificationToken=e||"",this.logger=new ia(t.loggerLevel||O.info,t.logger||ra),this.requestHandle=new ya({encryptKey:a,verificationToken:e,logger:this.logger}),this.cache=t.cache||R,this.registerAppTicketHandle(),this.logger.info("event-dispatch is ready")}registerAppTicketHandle(){this.register({app_ticket:t=>k(this,void 0,void 0,(function*(){const{app_ticket:a,app_id:e}=t;a?(yield this.cache.set(G,a,void 0,{namespace:e}),this.logger.debug("set app ticket")):this.logger.warn("response not include app ticket")}))})}register(t){return Object.keys(t).forEach((a=>{this.handles.has(a)&&"app_ticket"!==a&&this.logger.error(`this ${a} handle is registered`),this.handles.set(a,t[a]),this.logger.debug(`register ${a} handle`)})),this}invoke(t,a){var e,r;return k(this,void 0,void 0,(function*(){if(i()(a,"needCheck",!0)&&!(null===(e=this.requestHandle)||void 0===e?void 0:e.checkIsEventValidated(t)))return void this.logger.warn("verification failed event");const s=null===(r=this.requestHandle)||void 0===r?void 0:r.parse(t),o=s[j];if(this.handles.has(o)){const t=yield this.handles.get(o)(s);return this.logger.debug(`execute ${o} handle`),t}return this.logger.warn(`no ${o} handle`),`no ${o} event handle`}))}}class fa{constructor(t,a){this.verificationToken="",this.encryptKey="",this.handles=new Map;const{verificationToken:e,encryptKey:r}=t;this.encryptKey=r||"",this.verificationToken=e||"",this.cardHandler=a,this.logger=new ia(t.loggerLevel||O.info,t.logger||ra),this.requestHandle=new ya({encryptKey:r,verificationToken:e,logger:this.logger}),this.cache=t.cache||R,this.registerAppTicketHandle(),this.logger.info("card-action-handle is ready")}registerAppTicketHandle(){this.register({app_ticket:t=>k(this,void 0,void 0,(function*(){const{app_ticket:a,app_id:e}=t;a?(yield this.cache.set(G,a,void 0,{namespace:e}),this.logger.debug("set app ticket")):this.logger.warn("response not include app ticket")}))})}register(t){return Object.keys(t).forEach((a=>{this.handles.set(a,t[a]),this.logger.debug(`register ${a} handle`)})),this}invoke(t){var a,e;return k(this,void 0,void 0,(function*(){if(!(null===(a=this.requestHandle)||void 0===a?void 0:a.checkIsCardEventValidated(t)))return void this.logger.warn("verification failed event");const r=null===(e=this.requestHandle)||void 0===e?void 0:e.parse(t),i=r[j];if(this.handles.has(i))try{return yield this.handles.get(i)(r)}catch(t){return void this.logger.error(t)}try{const t=yield this.cardHandler(r);return this.logger.debug("execute card handle"),t}catch(t){this.logger.error(t)}}))}}const va=t=>new Promise((a=>{let e="";t.on("data",(t=>{e+=t})),t.on("end",(()=>{try{const t=JSON.parse(e);a(t)}catch(t){a("")}}))})),_a=(t,a)=>{if("encrypt"in t&&!a.encryptKey)throw new Error("auto-challenge need encryptKey, please check for missing in dispatcher");const e="encrypt"in t?JSON.parse(new W(a.encryptKey).decrypt(t.encrypt)):t;return{isChallenge:"url_verification"===e.type,challenge:{challenge:e.challenge}}},ba=(t,a,e)=>(r,s)=>k(void 0,void 0,void 0,(function*(){if(r.url!==t)return;const o=Object.assign(Object.create({headers:r.headers}),yield va(r));if(i()(e,"autoChallenge",!1)){const{isChallenge:t,challenge:e}=_a(o,{encryptKey:a.encryptKey});if(t)return void s.end(JSON.stringify(e))}const n=yield a.invoke(o);a instanceof fa&&s.end(JSON.stringify(n)),s.end("")})),Sa=(t,a)=>(e,r)=>k(void 0,void 0,void 0,(function*(){const s=yield k(void 0,void 0,void 0,(function*(){return e.body?e.body:e.complete?(i()(a,"logger",ra).error("unable to obtain request body, if parsed it in other middleware, please manually set in ctx.request.body"),null):yield va(e)})),o=Object.assign(Object.create({headers:e.headers}),s);if(i()(a,"autoChallenge",!1)){const{isChallenge:a,challenge:e}=_a(o,{encryptKey:t.encryptKey});if(a)return void r.json(e)}const n=yield t.invoke(o);t instanceof fa&&r.json(n),r.end("")})),Pa=(t,a,e)=>(r,s)=>k(void 0,void 0,void 0,(function*(){const{originalUrl:o,req:n,request:h}=r;if(o===t){const t=yield k(void 0,void 0,void 0,(function*(){return h.body?h.body:n.complete?(i()(e,"logger",ra).error("unable to obtain request body, if parsed it in other middleware, please manually set in ctx.request.body"),null):yield va(n)})),o=Object.assign(Object.create({headers:n.headers}),t);if(i()(e,"autoChallenge",!1)){const{isChallenge:t,challenge:e}=_a(o,{encryptKey:a.encryptKey});if(t)return r.body=e,void(yield s())}const d=yield a.invoke(o);r.body=a instanceof fa?JSON.stringify(d):""}yield s()})),wa=(t,a)=>(e,r)=>k(void 0,void 0,void 0,(function*(){const{req:s,request:o}=e,n=yield k(void 0,void 0,void 0,(function*(){return o.body?o.body:s.complete?(i()(a,"logger",ra).error("unable to obtain request body, if parsed it in other middleware, please manually set in ctx.request.body"),null):yield va(s)})),h=Object.assign(Object.create({headers:s.headers}),n);if(i()(a,"autoChallenge",!1)){const{isChallenge:a,challenge:i}=_a(h,{encryptKey:t.encryptKey});if(a)return e.body=i,void(yield r())}const d=yield t.invoke(h);e.body=t instanceof fa?JSON.stringify(d):"",yield r()}));var Ia=Object.freeze({__proto__:null,defaultCard:t=>{const{title:a,content:e}=t;return JSON.stringify({config:{wide_screen_mode:!0},elements:[{tag:"markdown",content:e}],header:{template:"blue",title:{content:a,tag:"plain_text"}}})}});const ka=e(6946);ka.util.Long=void 0,ka.configure();const Ta=ka.Reader,qa=ka.Writer,Fa=ka.util,za=ka.roots.default||(ka.roots.default={}),$a=za.pbbp2=(()=>{const t={};return t.Header=function(){function t(t){if(t)for(let a=Object.keys(t),e=0;e<a.length;++e)null!=t[a[e]]&&(this[a[e]]=t[a[e]])}return t.prototype.key="",t.prototype.value="",t.create=function(a){return new t(a)},t.encode=function(t,a){return a||(a=qa.create()),a.uint32(10).string(t.key),a.uint32(18).string(t.value),a},t.encodeDelimited=function(t,a){return this.encode(t,a).ldelim()},t.decode=function(t,a){t instanceof Ta||(t=Ta.create(t));let e=void 0===a?t.len:t.pos+a,r=new za.pbbp2.Header;for(;t.pos<e;){let a=t.uint32();switch(a>>>3){case 1:r.key=t.string();break;case 2:r.value=t.string();break;default:t.skipType(7&a)}}if(!r.hasOwnProperty("key"))throw Fa.ProtocolError("missing required 'key'",{instance:r});if(!r.hasOwnProperty("value"))throw Fa.ProtocolError("missing required 'value'",{instance:r});return r},t.decodeDelimited=function(t){return t instanceof Ta||(t=new Ta(t)),this.decode(t,t.uint32())},t.verify=function(t){return"object"!=typeof t||null===t?"object expected":Fa.isString(t.key)?Fa.isString(t.value)?null:"value: string expected":"key: string expected"},t.fromObject=function(t){if(t instanceof za.pbbp2.Header)return t;let a=new za.pbbp2.Header;return null!=t.key&&(a.key=String(t.key)),null!=t.value&&(a.value=String(t.value)),a},t.toObject=function(t,a){a||(a={});let e={};return a.defaults&&(e.key="",e.value=""),null!=t.key&&t.hasOwnProperty("key")&&(e.key=t.key),null!=t.value&&t.hasOwnProperty("value")&&(e.value=t.value),e},t.prototype.toJSON=function(){return this.constructor.toObject(this,ka.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/pbbp2.Header"},t}(),t.Frame=function(){function t(t){if(this.headers=[],t)for(let a=Object.keys(t),e=0;e<a.length;++e)null!=t[a[e]]&&(this[a[e]]=t[a[e]])}return t.prototype.SeqID=Fa.Long?Fa.Long.fromBits(0,0,!0):0,t.prototype.LogID=Fa.Long?Fa.Long.fromBits(0,0,!0):0,t.prototype.service=0,t.prototype.method=0,t.prototype.headers=Fa.emptyArray,t.prototype.payloadEncoding="",t.prototype.payloadType="",t.prototype.payload=Fa.newBuffer([]),t.prototype.LogIDNew="",t.create=function(a){return new t(a)},t.encode=function(t,a){if(a||(a=qa.create()),a.uint32(8).uint64(t.SeqID),a.uint32(16).uint64(t.LogID),a.uint32(24).int32(t.service),a.uint32(32).int32(t.method),null!=t.headers&&t.headers.length)for(let e=0;e<t.headers.length;++e)za.pbbp2.Header.encode(t.headers[e],a.uint32(42).fork()).ldelim();return null!=t.payloadEncoding&&Object.hasOwnProperty.call(t,"payloadEncoding")&&a.uint32(50).string(t.payloadEncoding),null!=t.payloadType&&Object.hasOwnProperty.call(t,"payloadType")&&a.uint32(58).string(t.payloadType),null!=t.payload&&Object.hasOwnProperty.call(t,"payload")&&a.uint32(66).bytes(t.payload),null!=t.LogIDNew&&Object.hasOwnProperty.call(t,"LogIDNew")&&a.uint32(74).string(t.LogIDNew),a},t.encodeDelimited=function(t,a){return this.encode(t,a).ldelim()},t.decode=function(t,a){t instanceof Ta||(t=Ta.create(t));let e=void 0===a?t.len:t.pos+a,r=new za.pbbp2.Frame;for(;t.pos<e;){let a=t.uint32();switch(a>>>3){case 1:r.SeqID=t.uint64();break;case 2:r.LogID=t.uint64();break;case 3:r.service=t.int32();break;case 4:r.method=t.int32();break;case 5:r.headers&&r.headers.length||(r.headers=[]),r.headers.push(za.pbbp2.Header.decode(t,t.uint32()));break;case 6:r.payloadEncoding=t.string();break;case 7:r.payloadType=t.string();break;case 8:r.payload=t.bytes();break;case 9:r.LogIDNew=t.string();break;default:t.skipType(7&a)}}if(!r.hasOwnProperty("SeqID"))throw Fa.ProtocolError("missing required 'SeqID'",{instance:r});if(!r.hasOwnProperty("LogID"))throw Fa.ProtocolError("missing required 'LogID'",{instance:r});if(!r.hasOwnProperty("service"))throw Fa.ProtocolError("missing required 'service'",{instance:r});if(!r.hasOwnProperty("method"))throw Fa.ProtocolError("missing required 'method'",{instance:r});return r},t.decodeDelimited=function(t){return t instanceof Ta||(t=new Ta(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(!(Fa.isInteger(t.SeqID)||t.SeqID&&Fa.isInteger(t.SeqID.low)&&Fa.isInteger(t.SeqID.high)))return"SeqID: integer|Long expected";if(!(Fa.isInteger(t.LogID)||t.LogID&&Fa.isInteger(t.LogID.low)&&Fa.isInteger(t.LogID.high)))return"LogID: integer|Long expected";if(!Fa.isInteger(t.service))return"service: integer expected";if(!Fa.isInteger(t.method))return"method: integer expected";if(null!=t.headers&&t.hasOwnProperty("headers")){if(!Array.isArray(t.headers))return"headers: array expected";for(let a=0;a<t.headers.length;++a){let e=za.pbbp2.Header.verify(t.headers[a]);if(e)return"headers."+e}}return null!=t.payloadEncoding&&t.hasOwnProperty("payloadEncoding")&&!Fa.isString(t.payloadEncoding)?"payloadEncoding: string expected":null!=t.payloadType&&t.hasOwnProperty("payloadType")&&!Fa.isString(t.payloadType)?"payloadType: string expected":null!=t.payload&&t.hasOwnProperty("payload")&&!(t.payload&&"number"==typeof t.payload.length||Fa.isString(t.payload))?"payload: buffer expected":null!=t.LogIDNew&&t.hasOwnProperty("LogIDNew")&&!Fa.isString(t.LogIDNew)?"LogIDNew: string expected":null},t.fromObject=function(t){if(t instanceof za.pbbp2.Frame)return t;let a=new za.pbbp2.Frame;if(null!=t.SeqID&&(Fa.Long?(a.SeqID=Fa.Long.fromValue(t.SeqID)).unsigned=!0:"string"==typeof t.SeqID?a.SeqID=parseInt(t.SeqID,10):"number"==typeof t.SeqID?a.SeqID=t.SeqID:"object"==typeof t.SeqID&&(a.SeqID=new Fa.LongBits(t.SeqID.low>>>0,t.SeqID.high>>>0).toNumber(!0))),null!=t.LogID&&(Fa.Long?(a.LogID=Fa.Long.fromValue(t.LogID)).unsigned=!0:"string"==typeof t.LogID?a.LogID=parseInt(t.LogID,10):"number"==typeof t.LogID?a.LogID=t.LogID:"object"==typeof t.LogID&&(a.LogID=new Fa.LongBits(t.LogID.low>>>0,t.LogID.high>>>0).toNumber(!0))),null!=t.service&&(a.service=0|t.service),null!=t.method&&(a.method=0|t.method),t.headers){if(!Array.isArray(t.headers))throw TypeError(".pbbp2.Frame.headers: array expected");a.headers=[];for(let e=0;e<t.headers.length;++e){if("object"!=typeof t.headers[e])throw TypeError(".pbbp2.Frame.headers: object expected");a.headers[e]=za.pbbp2.Header.fromObject(t.headers[e])}}return null!=t.payloadEncoding&&(a.payloadEncoding=String(t.payloadEncoding)),null!=t.payloadType&&(a.payloadType=String(t.payloadType)),null!=t.payload&&("string"==typeof t.payload?Fa.base64.decode(t.payload,a.payload=Fa.newBuffer(Fa.base64.length(t.payload)),0):t.payload.length>=0&&(a.payload=t.payload)),null!=t.LogIDNew&&(a.LogIDNew=String(t.LogIDNew)),a},t.toObject=function(t,a){a||(a={});let e={};if((a.arrays||a.defaults)&&(e.headers=[]),a.defaults){if(Fa.Long){let t=new Fa.Long(0,0,!0);e.SeqID=a.longs===String?t.toString():a.longs===Number?t.toNumber():t}else e.SeqID=a.longs===String?"0":0;if(Fa.Long){let t=new Fa.Long(0,0,!0);e.LogID=a.longs===String?t.toString():a.longs===Number?t.toNumber():t}else e.LogID=a.longs===String?"0":0;e.service=0,e.method=0,e.payloadEncoding="",e.payloadType="",a.bytes===String?e.payload="":(e.payload=[],a.bytes!==Array&&(e.payload=Fa.newBuffer(e.payload))),e.LogIDNew=""}if(null!=t.SeqID&&t.hasOwnProperty("SeqID")&&("number"==typeof t.SeqID?e.SeqID=a.longs===String?String(t.SeqID):t.SeqID:e.SeqID=a.longs===String?Fa.Long.prototype.toString.call(t.SeqID):a.longs===Number?new Fa.LongBits(t.SeqID.low>>>0,t.SeqID.high>>>0).toNumber(!0):t.SeqID),null!=t.LogID&&t.hasOwnProperty("LogID")&&("number"==typeof t.LogID?e.LogID=a.longs===String?String(t.LogID):t.LogID:e.LogID=a.longs===String?Fa.Long.prototype.toString.call(t.LogID):a.longs===Number?new Fa.LongBits(t.LogID.low>>>0,t.LogID.high>>>0).toNumber(!0):t.LogID),null!=t.service&&t.hasOwnProperty("service")&&(e.service=t.service),null!=t.method&&t.hasOwnProperty("method")&&(e.method=t.method),t.headers&&t.headers.length){e.headers=[];for(let r=0;r<t.headers.length;++r)e.headers[r]=za.pbbp2.Header.toObject(t.headers[r],a)}return null!=t.payloadEncoding&&t.hasOwnProperty("payloadEncoding")&&(e.payloadEncoding=t.payloadEncoding),null!=t.payloadType&&t.hasOwnProperty("payloadType")&&(e.payloadType=t.payloadType),null!=t.payload&&t.hasOwnProperty("payload")&&(e.payload=a.bytes===String?Fa.base64.encode(t.payload,0,t.payload.length):a.bytes===Array?Array.prototype.slice.call(t.payload):t.payload),null!=t.LogIDNew&&t.hasOwnProperty("LogIDNew")&&(e.LogIDNew=t.LogIDNew),e},t.prototype.toJSON=function(){return this.constructor.toObject(this,ka.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/pbbp2.Frame"},t}(),t})();class Ea{constructor(){this.client={appId:"",appSecret:"",domain:E.Feishu},this.ws={connectUrl:"",pingInterval:12e4,reconnectCount:-1,reconnectInterval:12e4,reconnectNonce:3e4,deviceId:"",serviceId:"",autoReconnect:!0},this.wsInstance=null}updateClient(t){Object.assign(this.client,t)}updateWs(t){Object.assign(this.ws,t)}getClient(t){return void 0===t?this.client:this.client[t]}getWS(t){return void 0===t?this.ws:this.ws[t]}get wsConfigUrl(){return`${this.getClient("domain")}/callback/ws/endpoint`}setWSInstance(t){this.wsInstance=t}getWSInstance(){return this.wsInstance}}class Oa{constructor(t){this.cache=new Map,this.logger=t.logger,this.clearAtInterval()}mergeData(t){const{message_id:a,sum:e,seq:r,trace_id:i,data:s}=t,o=this.cache.get(a);if(o)o.buffer[r]=s;else{const t=new Array(e).fill(void 0);t[r]=s,this.cache.set(a,{buffer:t,trace_id:i,message_id:a,create_time:Date.now()})}const n=this.cache.get(a);if(null==n?void 0:n.buffer.every((t=>!!t))){const t=n.buffer.reduce(((t,a)=>{const e=new Uint8Array(t.byteLength+a.byteLength);return e.set(t,0),e.set(a,t.length),e}),new Uint8Array([])),e=new TextDecoder("utf-8").decode(t),r=JSON.parse(e);return this.deleteCache(a),r}return null}deleteCache(t){this.cache.delete(t)}clearAtInterval(){setInterval((()=>{const t=Date.now();this.cache.forEach(((a,e)=>{var r;const{create_time:i,trace_id:s,message_id:o}=a;t-i>1e4&&(null===(r=this.logger)||void 0===r||r.debug(`${o} event data is deleted as expired, trace_id: ${s}`),this.deleteCache(e))}))}),1e4)}}var ja,xa,Ga,Aa,Ca,Da;!function(t){t[t.ok=0]="ok",t[t.system_busy=1]="system_busy",t[t.forbidden=403]="forbidden",t[t.auth_failed=514]="auth_failed",t[t.internal_error=1000040343]="internal_error",t[t.exceed_conn_limit=1000040350]="exceed_conn_limit"}(ja||(ja={})),function(t){t[t.control=0]="control",t[t.data=1]="data"}(xa||(xa={})),function(t){t.type="type",t.message_id="message_id",t.sum="sum",t.seq="seq",t.trace_id="trace_id",t.biz_rt="biz_rt",t.handshake_status="handshake-status",t.handshake_msg="handshake-msg",t.handshake_autherrcode="handshake-autherrcode"}(Ga||(Ga={})),function(t){t.event="event",t.card="card",t.ping="ping",t.pong="pong"}(Aa||(Aa={})),function(t){t[t.ok=200]="ok",t[t.internal_server_error=500]="internal_server_error"}(Ca||(Ca={}));class Ba{constructor(t){this.wsConfig=new Ea;const{appId:a,appSecret:e,domain:r=E.Feishu,httpInstance:i=z,loggerLevel:s=O.info,logger:o=ra,autoReconnect:n=!0}=t;this.logger=new ia(s,o),H(!a,(()=>this.logger.error("appId is needed"))),H(!e,(()=>this.logger.error("appSecret is needed"))),this.dataCache=new Oa({logger:this.logger}),this.httpInstance=i,this.wsConfig.updateClient({appId:a,appSecret:e,domain:U(r)}),this.wsConfig.updateWs({autoReconnect:n})}pullConnectConfig(){return k(this,void 0,void 0,(function*(){const{appId:t,appSecret:a}=this.wsConfig.getClient();try{const{code:e,data:{URL:r,ClientConfig:i},msg:s}=yield this.httpInstance.request({method:"post",url:this.wsConfig.wsConfigUrl,data:{AppID:t,AppSecret:a},headers:{locale:"zh"}});if(e!==ja.ok&&(this.logger.error("[ws]",`code: ${e}, ${e===ja.system_busy?s:"system busy"}`),e===ja.system_busy||e===ja.internal_error))return!1;const{device_id:o,service_id:n}=S().parse(r);return this.wsConfig.updateWs({connectUrl:r,deviceId:o,serviceId:n,pingInterval:1e3*i.PingInterval,reconnectCount:i.ReconnectCount,reconnectInterval:1e3*i.ReconnectInterval,reconnectNonce:1e3*i.ReconnectNonce}),this.logger.debug("[ws]",`get connect config success, ws url: ${r}`),!0}catch(t){return this.logger.error("[ws]",i()(t,"message","system busy")),!1}}))}connect(){const t=this.wsConfig.getWS("connectUrl"),a=new(w())(t);return new Promise((t=>{a.on("open",(()=>{this.logger.debug("[ws]","ws connect success"),this.wsConfig.setWSInstance(a),this.pingLoop(),t(!0)})),a.on("error",(()=>{this.logger.error("[ws]","ws connect failed"),t(!1)}))}))}reConnect(t=!1){return k(this,void 0,void 0,(function*(){const a=()=>this.pullConnectConfig().then((t=>t?this.connect():Promise.resolve(!1))).then((t=>t?(this.communicate(),Promise.resolve(!0)):Promise.resolve(!1)));if(this.pingInterval&&clearTimeout(this.pingInterval),t)return(yield a())||(this.logger.error("[ws]","connect failed"),yield this.reConnect()),void this.logger.info("[ws]","ws client ready");const e=this.wsConfig.getWSInstance(),{autoReconnect:r,reconnectNonce:i,reconnectCount:s,reconnectInterval:o}=this.wsConfig.getWS();r&&(this.logger.info("[ws]","reconnect"),e&&(null==e||e.terminate()),this.wsConfig.setWSInstance(null),setTimeout((()=>k(this,void 0,void 0,(function*(){(function t(e){return k(this,void 0,void 0,(function*(){e++,(yield a())?this.logger.debug("[ws]","reconnect success"):(this.logger.info("ws",`unable to connect to the server after trying ${e} times")`),s>=0&&e>=s||setTimeout((()=>{t.bind(this)(e)}),o))}))}).bind(this)(0)}))),i?i*Math.random():0))}))}pingLoop(){const{serviceId:t,pingInterval:a}=this.wsConfig.getWS(),e=this.wsConfig.getWSInstance();if((null==e?void 0:e.readyState)===w().OPEN){const a={headers:[{key:Ga.type,value:Aa.ping}],service:Number(t),method:xa.control,SeqID:0,LogID:0};this.sendMessage(a),this.logger.trace("[ws]","ping success")}this.pingInterval=setTimeout(this.pingLoop.bind(this),a)}communicate(){const t=this.wsConfig.getWSInstance();null==t||t.on("message",(t=>k(this,void 0,void 0,(function*(){const a=(t=>$a.Frame.decode(t))(t),{method:e}=a;e===xa.control&&(yield this.handleControlData(a)),e===xa.data&&(yield this.handleEventData(a))})))),null==t||t.on("error",(t=>{this.logger.error("[ws]","ws error")})),null==t||t.on("close",(()=>{this.logger.debug("[ws]","client closed"),this.reConnect()}))}handleControlData(t){var a;return k(this,void 0,void 0,(function*(){const e=null===(a=t.headers.find((t=>t.key===Ga.type)))||void 0===a?void 0:a.value,r=t.payload;if(e!==Aa.ping&&e===Aa.pong&&r){this.logger.trace("[ws]","receive pong");const t=new TextDecoder("utf-8").decode(r),{PingInterval:a,ReconnectCount:e,ReconnectInterval:i,ReconnectNonce:s}=JSON.parse(t);this.wsConfig.updateWs({pingInterval:1e3*a,reconnectCount:e,reconnectInterval:1e3*i,reconnectNonce:1e3*s}),this.logger.trace("[ws]","update wsConfig with pong data")}}))}handleEventData(t){var a;return k(this,void 0,void 0,(function*(){const e=t.headers.reduce(((t,a)=>(t[a.key]=a.value,t)),{}),{message_id:r,sum:i,seq:s,type:o,trace_id:n}=e,h=t.payload;if(o!==Aa.event)return;const d=this.dataCache.mergeData({message_id:r,sum:Number(i),seq:Number(s),trace_id:n,data:h});if(!d)return;this.logger.debug("[ws]",`receive message, message_type: ${o}; message_id: ${r}; trace_id: ${n}; data: ${d.data}`);const p={code:Ca.ok},c=Date.now();try{const t=yield null===(a=this.eventDispatcher)||void 0===a?void 0:a.invoke(d,{needCheck:!1});t&&(p.data=Buffer.from(JSON.stringify(t)).toString("base64"))}catch(t){p.code=Ca.internal_server_error,this.logger.error("[ws]",`invoke event failed, message_type: ${o}; message_id: ${r}; trace_id: ${n}; error: ${t}`)}const l=Date.now();this.sendMessage(Object.assign(Object.assign({},t),{headers:[...t.headers,{key:Ga.biz_rt,value:String(c-l)}],payload:(new TextEncoder).encode(JSON.stringify(p))}))}))}sendMessage(t){var a;const e=this.wsConfig.getWSInstance();if((null==e?void 0:e.readyState)===w().OPEN){const e=$a.Frame.encode(t).finish();null===(a=this.wsConfig.getWSInstance())||void 0===a||a.send(e,(t=>{t&&this.logger.error("[ws]","send data failed")}))}}start(t){return k(this,void 0,void 0,(function*(){this.logger.info("[ws]","receive events or callbacks through persistent connection only available in self-build & Feishu app, Configured in:\n Developer Console(开发者后台) \n ->\n Events and Callbacks(事件与回调)\n -> \n Mode of event/callback subscription(订阅方式)\n -> \n Receive events/callbacks through persistent connection(使用 长连接 接收事件/回调)");const{eventDispatcher:a}=t;a?(this.eventDispatcher=a,this.reConnect(!0)):this.logger.warn("[ws]","client need to start with a eventDispatcher")}))}}class La{constructor(){this.sessions=new Map}set(t,a){return k(this,void 0,void 0,(function*(){const e=this.sessions.get(t.toString())||{},r=na(e,a);return this.sessions.set(t.toString(),r),!0}))}get(t){return k(this,void 0,void 0,(function*(){return this.sessions.get(t.toString())}))}}!function(t){t[t.ERROR=-1]="ERROR",t[t.SUCCESS=0]="SUCCESS",t[t.EXPIRED=1]="EXPIRED",t[t.CANCELLED=2]="CANCELLED",t[t.FAILED=3]="FAILED",t[t.OTHER=4]="OTHER"}(Da||(Da={}));class Ra{constructor(t){this.completions={create:this.create.bind(this),createWithStream:this.createWithStream.bind(this),sessionRecords:{get:this.getRecords.bind(this),update:this.updateRecords.bind(this)}},this.client=t.client,this.logger=t.client.logger,this.cache=t.cache||new La}getSessionId(t){var a;return k(this,void 0,void 0,(function*(){const{sessionId:e,payload:r,options:i}=t,s=yield this.getRecords();if(e&&e in s)return s[e];const o=yield this.client.aily.v1.ailySession.create({data:r},i);if(0===o.code&&o.data){const t=null===(a=o.data.session)||void 0===a?void 0:a.id;return e&&(yield this.updateRecords({[e]:t})),t}this.logger.error("get aily session id error",o.msg)}))}waitReply(t,a){var e,r;return k(this,void 0,void 0,(function*(){const{sessionId:i,ailyAppId:s,message:o,sessionInfo:n,messageInfo:h,runInfo:d,skillId:p}=t,c=yield this.getSessionId({sessionId:i,payload:n,options:a});if(!c)throw Da.ERROR;const l=yield this.client.aily.v1.ailySessionAilyMessage.create({path:{aily_session_id:c},data:Object.assign(Object.assign({},h),{content:o,idempotent_id:`${Date.now()}`,content_type:"MDX"})},a);if(0!==l.code||!l.data)throw this.logger.error("create aily message error",l.msg),Da.ERROR;const m=null===(e=l.data.message)||void 0===e?void 0:e.id,u=yield this.client.aily.v1.ailySessionRun.create({path:{aily_session_id:c},data:Object.assign({app_id:s,skill_id:p},d)},a);if(0!==u.code||!u.data)throw this.logger.error("create aily session run error",u.msg),Da.ERROR;const y=null===(r=u.data.run)||void 0===r?void 0:r.id;if(!y)throw this.logger.error("run id is empty"),Da.ERROR;const g=()=>k(this,void 0,void 0,(function*(){return new Promise((t=>{setTimeout((()=>k(this,void 0,void 0,(function*(){var e,r;const i=yield this.client.aily.v1.ailySessionRun.get({path:{aily_session_id:c,run_id:y}},a);if(0===i.code&&i.data)switch(null===(r=null===(e=i.data)||void 0===e?void 0:e.run)||void 0===r?void 0:r.status){case"QUEUED":case"IN_PROGRESS":yield(()=>k(this,void 0,void 0,(function*(){const a=yield g();t(a)})))();case"COMPLETED":t(Da.SUCCESS);case"EXPIRED":t(Da.EXPIRED);case"CANCELLED":t(Da.CANCELLED);case"FAILED":t(Da.FAILED);default:t(Da.OTHER)}else t(3)}))),500)}))})),f=yield g();if(f!==Da.SUCCESS)throw this.logger.error("aily run error"),f;return{ailySessionId:c,runId:y,messageId:m}}))}create(t,a){var e,r,i,s,o;return k(this,void 0,void 0,(function*(){const{ailySessionId:n,runId:h}=yield this.waitReply(t,a);let d;try{for(var p,c=!0,l=F(yield this.client.aily.v1.ailySessionAilyMessage.listWithIterator({path:{aily_session_id:n},params:{run_id:h,with_partial_message:!1}},a));p=yield l.next(),!(e=p.done);){s=p.value,c=!1;try{const t=s;if(!t)continue;null===(o=null==t?void 0:t.messages)||void 0===o||o.forEach((t=>{var a;"ASSISTANT"===(null===(a=t.sender)||void 0===a?void 0:a.sender_type)&&(d=t)}))}finally{c=!0}}}catch(t){r={error:t}}finally{try{c||e||!(i=l.return)||(yield i.call(l))}finally{if(r)throw r.error}}if(!d)throw this.logger.error("no aily reply"),Da.ERROR;return d}))}createWithStream(t,a){return k(this,void 0,void 0,(function*(){const{ailySessionId:e,runId:r,messageId:i}=yield this.waitReply(t,a),s=()=>this.client.aily.v1.ailySessionAilyMessage.listWithIterator({path:{aily_session_id:e},params:{run_id:r,with_partial_message:!0}},a);let o=!1;const n={[Symbol.asyncIterator](){return q(this,arguments,(function*(){var t,a,e,r;try{for(var n,h=!0,d=F(yield T(s()));!(t=(n=yield T(d.next())).done);){r=n.value,h=!1;try{const t=r;if(!t)continue;for(const a of t.messages||[])if(o){if(yield yield T(a),"COMPLETED"===a.status)return yield T(void 0)}else a.id===i&&"COMPLETED"===a.status&&(o=!0)}finally{h=!0}}}catch(t){a={error:t}}finally{try{h||t||!(e=d.return)||(yield T(e.call(d)))}finally{if(a)throw a.error}}}))}};return n}))}getRecords(){return k(this,void 0,void 0,(function*(){return(yield this.cache.get(L))||{}}))}updateRecords(t){return k(this,void 0,void 0,(function*(){yield this.cache.set(L,t)}))}}},3600:(t,a,e)=>{t.exports=e(4254)},7479:(t,a,e)=>{"use strict";var r=e(6757),i=e(1655),s=e(6909),o=e(6005),n=e(8080),h=e(9219),d=e(1047),p=e(1373),c=e(2204),l=e(3384),m=e(3985);t.exports=function(t){return new Promise((function(a,e){var u,y=t.data,g=t.headers,f=t.responseType;function v(){t.cancelToken&&t.cancelToken.unsubscribe(u),t.signal&&t.signal.removeEventListener("abort",u)}r.isFormData(y)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var _=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",S=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+S)}var P=n(t.baseURL,t.url);function w(){if(_){var r="getAllResponseHeaders"in _?h(_.getAllResponseHeaders()):null,s={data:f&&"text"!==f&&"json"!==f?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:r,config:t,request:_};i((function(t){a(t),v()}),(function(t){e(t),v()}),s),_=null}}if(_.open(t.method.toUpperCase(),o(P,t.params,t.paramsSerializer),!0),_.timeout=t.timeout,"onloadend"in _?_.onloadend=w:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(w)},_.onabort=function(){_&&(e(new c("Request aborted",c.ECONNABORTED,t,_)),_=null)},_.onerror=function(){e(new c("Network Error",c.ERR_NETWORK,t,_,_)),_=null},_.ontimeout=function(){var a=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||p;t.timeoutErrorMessage&&(a=t.timeoutErrorMessage),e(new c(a,r.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,t,_)),_=null},r.isStandardBrowserEnv()){var I=(t.withCredentials||d(P))&&t.xsrfCookieName?s.read(t.xsrfCookieName):void 0;I&&(g[t.xsrfHeaderName]=I)}"setRequestHeader"in _&&r.forEach(g,(function(t,a){void 0===y&&"content-type"===a.toLowerCase()?delete g[a]:_.setRequestHeader(a,t)})),r.isUndefined(t.withCredentials)||(_.withCredentials=!!t.withCredentials),f&&"json"!==f&&(_.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&_.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(u=function(t){_&&(e(!t||t&&t.type?new l:t),_.abort(),_=null)},t.cancelToken&&t.cancelToken.subscribe(u),t.signal&&(t.signal.aborted?u():t.signal.addEventListener("abort",u))),y||(y=null);var k=m(P);k&&-1===["http","https","file"].indexOf(k)?e(new c("Unsupported protocol "+k+":",c.ERR_BAD_REQUEST,t)):_.send(y)}))}},4254:(t,a,e)=>{"use strict";var r=e(6757),i=e(9779),s=e(6004),o=e(5220),n=function t(a){var e=new s(a),n=i(s.prototype.request,e);return r.extend(n,s.prototype,e),r.extend(n,e),n.create=function(e){return t(o(a,e))},n}(e(6423));n.Axios=s,n.CanceledError=e(3384),n.CancelToken=e(8140),n.isCancel=e(9741),n.VERSION=e(9702).version,n.toFormData=e(1447),n.AxiosError=e(2204),n.Cancel=n.CanceledError,n.all=function(t){return Promise.all(t)},n.spread=e(1147),n.isAxiosError=e(1228),t.exports=n,t.exports.default=n},8140:(t,a,e)=>{"use strict";var r=e(3384);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var a;this.promise=new Promise((function(t){a=t}));var e=this;this.promise.then((function(t){if(e._listeners){var a,r=e._listeners.length;for(a=0;a<r;a++)e._listeners[a](t);e._listeners=null}})),this.promise.then=function(t){var a,r=new Promise((function(t){e.subscribe(t),a=t})).then(t);return r.cancel=function(){e.unsubscribe(a)},r},t((function(t){e.reason||(e.reason=new r(t),a(e.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},i.prototype.unsubscribe=function(t){if(this._listeners){var a=this._listeners.indexOf(t);-1!==a&&this._listeners.splice(a,1)}},i.source=function(){var t;return{token:new i((function(a){t=a})),cancel:t}},t.exports=i},3384:(t,a,e)=>{"use strict";var r=e(2204);function i(t){r.call(this,null==t?"canceled":t,r.ERR_CANCELED),this.name="CanceledError"}e(6757).inherits(i,r,{__CANCEL__:!0}),t.exports=i},9741:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},6004:(t,a,e)=>{"use strict";var r=e(6757),i=e(6005),s=e(5054),o=e(1173),n=e(5220),h=e(8080),d=e(6628),p=d.validators;function c(t){this.defaults=t,this.interceptors={request:new s,response:new s}}c.prototype.request=function(t,a){"string"==typeof t?(a=a||{}).url=t:a=t||{},(a=n(this.defaults,a)).method?a.method=a.method.toLowerCase():this.defaults.method?a.method=this.defaults.method.toLowerCase():a.method="get";var e=a.transitional;void 0!==e&&d.assertOptions(e,{silentJSONParsing:p.transitional(p.boolean),forcedJSONParsing:p.transitional(p.boolean),clarifyTimeoutError:p.transitional(p.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(a)||(i=i&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var s,h=[];if(this.interceptors.response.forEach((function(t){h.push(t.fulfilled,t.rejected)})),!i){var c=[o,void 0];for(Array.prototype.unshift.apply(c,r),c=c.concat(h),s=Promise.resolve(a);c.length;)s=s.then(c.shift(),c.shift());return s}for(var l=a;r.length;){var m=r.shift(),u=r.shift();try{l=m(l)}catch(t){u(t);break}}try{s=o(l)}catch(t){return Promise.reject(t)}for(;h.length;)s=s.then(h.shift(),h.shift());return s},c.prototype.getUri=function(t){t=n(this.defaults,t);var a=h(t.baseURL,t.url);return i(a,t.params,t.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(a,e){return this.request(n(e||{},{method:t,url:a,data:(e||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){function a(a){return function(e,r,i){return this.request(n(i||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:e,data:r}))}}c.prototype[t]=a(),c.prototype[t+"Form"]=a(!0)})),t.exports=c},2204:(t,a,e)=>{"use strict";var r=e(6757);function i(t,a,e,r,i){Error.call(this),this.message=t,this.name="AxiosError",a&&(this.code=a),e&&(this.config=e),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var s=i.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){o[t]={value:t}})),Object.defineProperties(i,o),Object.defineProperty(s,"isAxiosError",{value:!0}),i.from=function(t,a,e,o,n,h){var d=Object.create(s);return r.toFlatObject(t,d,(function(t){return t!==Error.prototype})),i.call(d,t.message,a,e,o,n),d.name=t.name,h&&Object.assign(d,h),d},t.exports=i},5054:(t,a,e)=>{"use strict";var r=e(6757);function i(){this.handlers=[]}i.prototype.use=function(t,a,e){return this.handlers.push({fulfilled:t,rejected:a,synchronous:!!e&&e.synchronous,runWhen:e?e.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(a){null!==a&&t(a)}))},t.exports=i},8080:(t,a,e)=>{"use strict";var r=e(8344),i=e(8213);t.exports=function(t,a){return t&&!r(a)?i(t,a):a}},1173:(t,a,e)=>{"use strict";var r=e(6757),i=e(7026),s=e(9741),o=e(6423),n=e(3384);function h(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new n}t.exports=function(t){return h(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(a){delete t.headers[a]})),(t.adapter||o.adapter)(t).then((function(a){return h(t),a.data=i.call(t,a.data,a.headers,t.transformResponse),a}),(function(a){return s(a)||(h(t),a&&a.response&&(a.response.data=i.call(t,a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)}))}},5220:(t,a,e)=>{"use strict";var r=e(6757);t.exports=function(t,a){a=a||{};var e={};function i(t,a){return r.isPlainObject(t)&&r.isPlainObject(a)?r.merge(t,a):r.isPlainObject(a)?r.merge({},a):r.isArray(a)?a.slice():a}function s(e){return r.isUndefined(a[e])?r.isUndefined(t[e])?void 0:i(void 0,t[e]):i(t[e],a[e])}function o(t){if(!r.isUndefined(a[t]))return i(void 0,a[t])}function n(e){return r.isUndefined(a[e])?r.isUndefined(t[e])?void 0:i(void 0,t[e]):i(void 0,a[e])}function h(e){return e in a?i(t[e],a[e]):e in t?i(void 0,t[e]):void 0}var d={url:o,method:o,data:o,baseURL:n,transformRequest:n,transformResponse:n,paramsSerializer:n,timeout:n,timeoutMessage:n,withCredentials:n,adapter:n,responseType:n,xsrfCookieName:n,xsrfHeaderName:n,onUploadProgress:n,onDownloadProgress:n,decompress:n,maxContentLength:n,maxBodyLength:n,beforeRedirect:n,transport:n,httpAgent:n,httpsAgent:n,cancelToken:n,socketPath:n,responseEncoding:n,validateStatus:h};return r.forEach(Object.keys(t).concat(Object.keys(a)),(function(t){var a=d[t]||s,i=a(t);r.isUndefined(i)&&a!==h||(e[t]=i)})),e}},1655:(t,a,e)=>{"use strict";var r=e(2204);t.exports=function(t,a,e){var i=e.config.validateStatus;e.status&&i&&!i(e.status)?a(new r("Request failed with status code "+e.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e)):t(e)}},7026:(t,a,e)=>{"use strict";var r=e(6757),i=e(6423);t.exports=function(t,a,e){var s=this||i;return r.forEach(e,(function(e){t=e.call(s,t,a)})),t}},6423:(t,a,e)=>{"use strict";var r=e(6757),i=e(499),s=e(2204),o=e(1373),n=e(1447),h={"Content-Type":"application/x-www-form-urlencoded"};function d(t,a){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=a)}var p,c={transitional:o,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(p=e(7479)),p),transformRequest:[function(t,a){if(i(a,"Accept"),i(a,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t))return t;if(r.isArrayBufferView(t))return t.buffer;if(r.isURLSearchParams(t))return d(a,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var e,s=r.isObject(t),o=a&&a["Content-Type"];if((e=r.isFileList(t))||s&&"multipart/form-data"===o){var h=this.env&&this.env.FormData;return n(e?{"files[]":t}:t,h&&new h)}return s||"application/json"===o?(d(a,"application/json"),function(t){if(r.isString(t))try{return(0,JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var a=this.transitional||c.transitional,e=a&&a.silentJSONParsing,i=a&&a.forcedJSONParsing,o=!e&&"json"===this.responseType;if(o||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw s.from(t,s.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:e(9105)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){c.headers[t]=r.merge(h)})),t.exports=c},1373:t=>{"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},9702:t=>{t.exports={version:"0.27.2"}},9779:t=>{"use strict";t.exports=function(t,a){return function(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];return t.apply(a,e)}}},6005:(t,a,e)=>{"use strict";var r=e(6757);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,a,e){if(!a)return t;var s;if(e)s=e(a);else if(r.isURLSearchParams(a))s=a.toString();else{var o=[];r.forEach(a,(function(t,a){null!=t&&(r.isArray(t)?a+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),o.push(i(a)+"="+i(t))})))})),s=o.join("&")}if(s){var n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}},8213:t=>{"use strict";t.exports=function(t,a){return a?t.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):t}},6909:(t,a,e)=>{"use strict";var r=e(6757);t.exports=r.isStandardBrowserEnv()?{write:function(t,a,e,i,s,o){var n=[];n.push(t+"="+encodeURIComponent(a)),r.isNumber(e)&&n.push("expires="+new Date(e).toGMTString()),r.isString(i)&&n.push("path="+i),r.isString(s)&&n.push("domain="+s),!0===o&&n.push("secure"),document.cookie=n.join("; ")},read:function(t){var a=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},8344:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},1228:(t,a,e)=>{"use strict";var r=e(6757);t.exports=function(t){return r.isObject(t)&&!0===t.isAxiosError}},1047:(t,a,e)=>{"use strict";var r=e(6757);t.exports=r.isStandardBrowserEnv()?function(){var t,a=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");function i(t){var r=t;return a&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return t=i(window.location.href),function(a){var e=r.isString(a)?i(a):a;return e.protocol===t.protocol&&e.host===t.host}}():function(){return!0}},499:(t,a,e)=>{"use strict";var r=e(6757);t.exports=function(t,a){r.forEach(t,(function(e,r){r!==a&&r.toUpperCase()===a.toUpperCase()&&(t[a]=e,delete t[r])}))}},9105:t=>{t.exports=null},9219:(t,a,e)=>{"use strict";var r=e(6757),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var a,e,s,o={};return t?(r.forEach(t.split("\n"),(function(t){if(s=t.indexOf(":"),a=r.trim(t.substr(0,s)).toLowerCase(),e=r.trim(t.substr(s+1)),a){if(o[a]&&i.indexOf(a)>=0)return;o[a]="set-cookie"===a?(o[a]?o[a]:[]).concat([e]):o[a]?o[a]+", "+e:e}})),o):o}},3985:t=>{"use strict";t.exports=function(t){var a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return a&&a[1]||""}},1147:t=>{"use strict";t.exports=function(t){return function(a){return t.apply(null,a)}}},1447:(t,a,e)=>{"use strict";var r=e(6757);t.exports=function(t,a){a=a||new FormData;var e=[];function i(t){return null===t?"":r.isDate(t)?t.toISOString():r.isArrayBuffer(t)||r.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(s,o){if(r.isPlainObject(s)||r.isArray(s)){if(-1!==e.indexOf(s))throw Error("Circular reference detected in "+o);e.push(s),r.forEach(s,(function(e,s){if(!r.isUndefined(e)){var n,h=o?o+"."+s:s;if(e&&!o&&"object"==typeof e)if(r.endsWith(s,"{}"))e=JSON.stringify(e);else if(r.endsWith(s,"[]")&&(n=r.toArray(e)))return void n.forEach((function(t){!r.isUndefined(t)&&a.append(h,i(t))}));t(e,h)}})),e.pop()}else a.append(o,i(s))}(t),a}},6628:(t,a,e)=>{"use strict";var r=e(9702).version,i=e(2204),s={};["object","boolean","number","function","string","symbol"].forEach((function(t,a){s[t]=function(e){return typeof e===t||"a"+(a<1?"n ":" ")+t}}));var o={};s.transitional=function(t,a,e){function s(t,a){return"[Axios v"+r+"] Transitional option '"+t+"'"+a+(e?". "+e:"")}return function(e,r,n){if(!1===t)throw new i(s(r," has been removed"+(a?" in "+a:"")),i.ERR_DEPRECATED);return a&&!o[r]&&(o[r]=!0,console.warn(s(r," has been deprecated since v"+a+" and will be removed in the near future"))),!t||t(e,r,n)}},t.exports={assertOptions:function(t,a,e){if("object"!=typeof t)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(t),s=r.length;s-- >0;){var o=r[s],n=a[o];if(n){var h=t[o],d=void 0===h||n(h,o,t);if(!0!==d)throw new i("option "+o+" must be "+d,i.ERR_BAD_OPTION_VALUE)}else if(!0!==e)throw new i("Unknown option "+o,i.ERR_BAD_OPTION)}},validators:s}},6757:(t,a,e)=>{"use strict";var r,i=e(9779),s=Object.prototype.toString,o=(r=Object.create(null),function(t){var a=s.call(t);return r[a]||(r[a]=a.slice(8,-1).toLowerCase())});function n(t){return t=t.toLowerCase(),function(a){return o(a)===t}}function h(t){return Array.isArray(t)}function d(t){return void 0===t}var p=n("ArrayBuffer");function c(t){return null!==t&&"object"==typeof t}function l(t){if("object"!==o(t))return!1;var a=Object.getPrototypeOf(t);return null===a||a===Object.prototype}var m=n("Date"),u=n("File"),y=n("Blob"),g=n("FileList");function f(t){return"[object Function]"===s.call(t)}var v=n("URLSearchParams");function _(t,a){if(null!=t)if("object"!=typeof t&&(t=[t]),h(t))for(var e=0,r=t.length;e<r;e++)a.call(null,t[e],e,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&a.call(null,t[i],i,t)}var b,S=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return b&&t instanceof b});t.exports={isArray:h,isArrayBuffer:p,isBuffer:function(t){return null!==t&&!d(t)&&null!==t.constructor&&!d(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var a="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||s.call(t)===a||f(t.toString)&&t.toString()===a)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:c,isPlainObject:l,isUndefined:d,isDate:m,isFile:u,isBlob:y,isFunction:f,isStream:function(t){return c(t)&&f(t.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:_,merge:function t(){var a={};function e(e,r){l(a[r])&&l(e)?a[r]=t(a[r],e):l(e)?a[r]=t({},e):h(e)?a[r]=e.slice():a[r]=e}for(var r=0,i=arguments.length;r<i;r++)_(arguments[r],e);return a},extend:function(t,a,e){return _(a,(function(a,r){t[r]=e&&"function"==typeof a?i(a,e):a})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,a,e,r){t.prototype=Object.create(a.prototype,r),t.prototype.constructor=t,e&&Object.assign(t.prototype,e)},toFlatObject:function(t,a,e){var r,i,s,o={};a=a||{};do{for(i=(r=Object.getOwnPropertyNames(t)).length;i-- >0;)o[s=r[i]]||(a[s]=t[s],o[s]=!0);t=Object.getPrototypeOf(t)}while(t&&(!e||e(t,a))&&t!==Object.prototype);return a},kindOf:o,kindOfTest:n,endsWith:function(t,a,e){t=String(t),(void 0===e||e>t.length)&&(e=t.length),e-=a.length;var r=t.indexOf(a,e);return-1!==r&&r===e},toArray:function(t){if(!t)return null;var a=t.length;if(d(a))return null;for(var e=new Array(a);a-- >0;)e[a]=t[a];return e},isTypedArray:S,isFileList:g}},8045:t=>{"use strict";t.exports=function(t,a){for(var e=new Array(arguments.length-1),r=0,i=2,s=!0;i<arguments.length;)e[r++]=arguments[i++];return new Promise((function(i,o){e[r]=function(t){if(s)if(s=!1,t)o(t);else{for(var a=new Array(arguments.length-1),e=0;e<a.length;)a[e++]=arguments[e];i.apply(null,a)}};try{t.apply(a||null,e)}catch(t){s&&(s=!1,o(t))}}))}},8839:(t,a)=>{"use strict";var e=a;e.length=function(t){var a=t.length;if(!a)return 0;for(var e=0;--a%4>1&&"="===t.charAt(a);)++e;return Math.ceil(3*t.length)/4-e};for(var r=new Array(64),i=new Array(123),s=0;s<64;)i[r[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;e.encode=function(t,a,e){for(var i,s=null,o=[],n=0,h=0;a<e;){var d=t[a++];switch(h){case 0:o[n++]=r[d>>2],i=(3&d)<<4,h=1;break;case 1:o[n++]=r[i|d>>4],i=(15&d)<<2,h=2;break;case 2:o[n++]=r[i|d>>6],o[n++]=r[63&d],h=0}n>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,o)),n=0)}return h&&(o[n++]=r[i],o[n++]=61,1===h&&(o[n++]=61)),s?(n&&s.push(String.fromCharCode.apply(String,o.slice(0,n))),s.join("")):String.fromCharCode.apply(String,o.slice(0,n))};var o="invalid encoding";e.decode=function(t,a,e){for(var r,s=e,n=0,h=0;h<t.length;){var d=t.charCodeAt(h++);if(61===d&&n>1)break;if(void 0===(d=i[d]))throw Error(o);switch(n){case 0:r=d,n=1;break;case 1:a[e++]=r<<2|(48&d)>>4,r=d,n=2;break;case 2:a[e++]=(15&r)<<4|(60&d)>>2,r=d,n=3;break;case 3:a[e++]=(3&r)<<6|d,n=0}}if(1===n)throw Error(o);return e-s},e.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},4358:t=>{"use strict";function a(){this._listeners={}}t.exports=a,a.prototype.on=function(t,a,e){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:a,ctx:e||this}),this},a.prototype.off=function(t,a){if(void 0===t)this._listeners={};else if(void 0===a)this._listeners[t]=[];else for(var e=this._listeners[t],r=0;r<e.length;)e[r].fn===a?e.splice(r,1):++r;return this},a.prototype.emit=function(t){var a=this._listeners[t];if(a){for(var e=[],r=1;r<arguments.length;)e.push(arguments[r++]);for(r=0;r<a.length;)a[r].fn.apply(a[r++].ctx,e)}return this}},9410:t=>{"use strict";function a(t){return"undefined"!=typeof Float32Array?function(){var a=new Float32Array([-0]),e=new Uint8Array(a.buffer),r=128===e[3];function i(t,r,i){a[0]=t,r[i]=e[0],r[i+1]=e[1],r[i+2]=e[2],r[i+3]=e[3]}function s(t,r,i){a[0]=t,r[i]=e[3],r[i+1]=e[2],r[i+2]=e[1],r[i+3]=e[0]}function o(t,r){return e[0]=t[r],e[1]=t[r+1],e[2]=t[r+2],e[3]=t[r+3],a[0]}function n(t,r){return e[3]=t[r],e[2]=t[r+1],e[1]=t[r+2],e[0]=t[r+3],a[0]}t.writeFloatLE=r?i:s,t.writeFloatBE=r?s:i,t.readFloatLE=r?o:n,t.readFloatBE=r?n:o}():function(){function a(t,a,e,r){var i=a<0?1:0;if(i&&(a=-a),0===a)t(1/a>0?0:2147483648,e,r);else if(isNaN(a))t(2143289344,e,r);else if(a>34028234663852886e22)t((i<<31|2139095040)>>>0,e,r);else if(a<11754943508222875e-54)t((i<<31|Math.round(a/1401298464324817e-60))>>>0,e,r);else{var s=Math.floor(Math.log(a)/Math.LN2);t((i<<31|s+127<<23|8388607&Math.round(a*Math.pow(2,-s)*8388608))>>>0,e,r)}}function o(t,a,e){var r=t(a,e),i=2*(r>>31)+1,s=r>>>23&255,o=8388607&r;return 255===s?o?NaN:i*(1/0):0===s?1401298464324817e-60*i*o:i*Math.pow(2,s-150)*(o+8388608)}t.writeFloatLE=a.bind(null,e),t.writeFloatBE=a.bind(null,r),t.readFloatLE=o.bind(null,i),t.readFloatBE=o.bind(null,s)}(),"undefined"!=typeof Float64Array?function(){var a=new Float64Array([-0]),e=new Uint8Array(a.buffer),r=128===e[7];function i(t,r,i){a[0]=t,r[i]=e[0],r[i+1]=e[1],r[i+2]=e[2],r[i+3]=e[3],r[i+4]=e[4],r[i+5]=e[5],r[i+6]=e[6],r[i+7]=e[7]}function s(t,r,i){a[0]=t,r[i]=e[7],r[i+1]=e[6],r[i+2]=e[5],r[i+3]=e[4],r[i+4]=e[3],r[i+5]=e[2],r[i+6]=e[1],r[i+7]=e[0]}function o(t,r){return e[0]=t[r],e[1]=t[r+1],e[2]=t[r+2],e[3]=t[r+3],e[4]=t[r+4],e[5]=t[r+5],e[6]=t[r+6],e[7]=t[r+7],a[0]}function n(t,r){return e[7]=t[r],e[6]=t[r+1],e[5]=t[r+2],e[4]=t[r+3],e[3]=t[r+4],e[2]=t[r+5],e[1]=t[r+6],e[0]=t[r+7],a[0]}t.writeDoubleLE=r?i:s,t.writeDoubleBE=r?s:i,t.readDoubleLE=r?o:n,t.readDoubleBE=r?n:o}():function(){function a(t,a,e,r,i,s){var o=r<0?1:0;if(o&&(r=-r),0===r)t(0,i,s+a),t(1/r>0?0:2147483648,i,s+e);else if(isNaN(r))t(0,i,s+a),t(2146959360,i,s+e);else if(r>17976931348623157e292)t(0,i,s+a),t((o<<31|2146435072)>>>0,i,s+e);else{var n;if(r<22250738585072014e-324)t((n=r/5e-324)>>>0,i,s+a),t((o<<31|n/4294967296)>>>0,i,s+e);else{var h=Math.floor(Math.log(r)/Math.LN2);1024===h&&(h=1023),t(4503599627370496*(n=r*Math.pow(2,-h))>>>0,i,s+a),t((o<<31|h+1023<<20|1048576*n&1048575)>>>0,i,s+e)}}}function o(t,a,e,r,i){var s=t(r,i+a),o=t(r,i+e),n=2*(o>>31)+1,h=o>>>20&2047,d=4294967296*(1048575&o)+s;return 2047===h?d?NaN:n*(1/0):0===h?5e-324*n*d:n*Math.pow(2,h-1075)*(d+4503599627370496)}t.writeDoubleLE=a.bind(null,e,0,4),t.writeDoubleBE=a.bind(null,r,4,0),t.readDoubleLE=o.bind(null,i,0,4),t.readDoubleBE=o.bind(null,s,4,0)}(),t}function e(t,a,e){a[e]=255&t,a[e+1]=t>>>8&255,a[e+2]=t>>>16&255,a[e+3]=t>>>24}function r(t,a,e){a[e]=t>>>24,a[e+1]=t>>>16&255,a[e+2]=t>>>8&255,a[e+3]=255&t}function i(t,a){return(t[a]|t[a+1]<<8|t[a+2]<<16|t[a+3]<<24)>>>0}function s(t,a){return(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0}t.exports=a(a)},4153:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}module.exports=inquire},9390:t=>{"use strict";t.exports=function(t,a,e){var r=e||8192,i=r>>>1,s=null,o=r;return function(e){if(e<1||e>i)return t(e);o+e>r&&(s=t(r),o=0);var n=a.call(s,o,o+=e);return 7&o&&(o=1+(7|o)),n}}},3828:(t,a)=>{"use strict";var e=a;e.length=function(t){for(var a=0,e=0,r=0;r<t.length;++r)(e=t.charCodeAt(r))<128?a+=1:e<2048?a+=2:55296==(64512&e)&&56320==(64512&t.charCodeAt(r+1))?(++r,a+=4):a+=3;return a},e.read=function(t,a,e){if(e-a<1)return"";for(var r,i=null,s=[],o=0;a<e;)(r=t[a++])<128?s[o++]=r:r>191&&r<224?s[o++]=(31&r)<<6|63&t[a++]:r>239&&r<365?(r=((7&r)<<18|(63&t[a++])<<12|(63&t[a++])<<6|63&t[a++])-65536,s[o++]=55296+(r>>10),s[o++]=56320+(1023&r)):s[o++]=(15&r)<<12|(63&t[a++])<<6|63&t[a++],o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),o=0);return i?(o&&i.push(String.fromCharCode.apply(String,s.slice(0,o))),i.join("")):String.fromCharCode.apply(String,s.slice(0,o))},e.write=function(t,a,e){for(var r,i,s=e,o=0;o<t.length;++o)(r=t.charCodeAt(o))<128?a[e++]=r:r<2048?(a[e++]=r>>6|192,a[e++]=63&r|128):55296==(64512&r)&&56320==(64512&(i=t.charCodeAt(o+1)))?(r=65536+((1023&r)<<10)+(1023&i),++o,a[e++]=r>>18|240,a[e++]=r>>12&63|128,a[e++]=r>>6&63|128,a[e++]=63&r|128):(a[e++]=r>>12|224,a[e++]=r>>6&63|128,a[e++]=63&r|128);return e-s}},4497:(t,a,e)=>{var r="/",i=["icon","logo","title","bgLeftImg","bgRightImg","bgBottomImg"];function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function o(t,a){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);a&&(r=r.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),e.push.apply(e,r)}return e}function n(t){for(var a=1;a<arguments.length;a++){var e=null!=arguments[a]?arguments[a]:{};a%2?o(Object(e),!0).forEach((function(a){m(t,a,e[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o(Object(e)).forEach((function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(e,a))}))}return t}function h(t,a){if(null==t)return{};var e,r,i=function(t,a){if(null==t)return{};var e={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(a.includes(r))continue;e[r]=t[r]}return e}(t,a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)e=s[r],a.includes(e)||{}.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}function d(){"use strict";d=function(){return a};var t,a={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(t,a,e){t[a]=e.value},o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",h=o.asyncIterator||"@@asyncIterator",p=o.toStringTag||"@@toStringTag";function c(t,a,e){return Object.defineProperty(t,a,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[a]}try{c({},"")}catch(t){c=function(t,a,e){return t[a]=e}}function l(t,a,e,r){var s=a&&a.prototype instanceof _?a:_,o=Object.create(s.prototype),n=new O(r||[]);return i(o,"_invoke",{value:F(t,e,n)}),o}function m(t,a,e){try{return{type:"normal",arg:t.call(a,e)}}catch(t){return{type:"throw",arg:t}}}a.wrap=l;var u="suspendedStart",y="suspendedYield",g="executing",f="completed",v={};function _(){}function b(){}function S(){}var P={};c(P,n,(function(){return this}));var w=Object.getPrototypeOf,I=w&&w(w(j([])));I&&I!==e&&r.call(I,n)&&(P=I);var k=S.prototype=_.prototype=Object.create(P);function T(t){["next","throw","return"].forEach((function(a){c(t,a,(function(t){return this._invoke(a,t)}))}))}function q(t,a){function e(i,o,n,h){var d=m(t[i],t,o);if("throw"!==d.type){var p=d.arg,c=p.value;return c&&"object"==s(c)&&r.call(c,"__await")?a.resolve(c.__await).then((function(t){e("next",t,n,h)}),(function(t){e("throw",t,n,h)})):a.resolve(c).then((function(t){p.value=t,n(p)}),(function(t){return e("throw",t,n,h)}))}h(d.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new a((function(a,i){e(t,r,a,i)}))}return o=o?o.then(i,i):i()}})}function F(a,e,r){var i=u;return function(s,o){if(i===g)throw Error("Generator is already running");if(i===f){if("throw"===s)throw o;return{value:t,done:!0}}for(r.method=s,r.arg=o;;){var n=r.delegate;if(n){var h=z(n,r);if(h){if(h===v)continue;return h}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===u)throw i=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=g;var d=m(a,e,r);if("normal"===d.type){if(i=r.done?f:y,d.arg===v)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(i=f,r.method="throw",r.arg=d.arg)}}}function z(a,e){var r=e.method,i=a.iterator[r];if(i===t)return e.delegate=null,"throw"===r&&a.iterator.return&&(e.method="return",e.arg=t,z(a,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var s=m(i,a.iterator,e.arg);if("throw"===s.type)return e.method="throw",e.arg=s.arg,e.delegate=null,v;var o=s.arg;return o?o.done?(e[a.resultName]=o.value,e.next=a.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function $(t){var a={tryLoc:t[0]};1 in t&&(a.catchLoc=t[1]),2 in t&&(a.finallyLoc=t[2],a.afterLoc=t[3]),this.tryEntries.push(a)}function E(t){var a=t.completion||{};a.type="normal",delete a.arg,t.completion=a}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function j(a){if(a||""===a){var e=a[n];if(e)return e.call(a);if("function"==typeof a.next)return a;if(!isNaN(a.length)){var i=-1,o=function e(){for(;++i<a.length;)if(r.call(a,i))return e.value=a[i],e.done=!1,e;return e.value=t,e.done=!0,e};return o.next=o}}throw new TypeError(s(a)+" is not iterable")}return b.prototype=S,i(k,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:b,configurable:!0}),b.displayName=c(S,p,"GeneratorFunction"),a.isGeneratorFunction=function(t){var a="function"==typeof t&&t.constructor;return!!a&&(a===b||"GeneratorFunction"===(a.displayName||a.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,c(t,p,"GeneratorFunction")),t.prototype=Object.create(k),t},a.awrap=function(t){return{__await:t}},T(q.prototype),c(q.prototype,h,(function(){return this})),a.AsyncIterator=q,a.async=function(t,e,r,i,s){void 0===s&&(s=Promise);var o=new q(l(t,e,r,i),s);return a.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},T(k),c(k,p,"Generator"),c(k,n,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),a.keys=function(t){var a=Object(t),e=[];for(var r in a)e.push(r);return e.reverse(),function t(){for(;e.length;){var r=e.pop();if(r in a)return t.value=r,t.done=!1,t}return t.done=!0,t}},a.values=j,O.prototype={constructor:O,reset:function(a){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!a)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(a){if(this.done)throw a;var e=this;function i(r,i){return n.type="throw",n.arg=a,e.next=r,i&&(e.method="next",e.arg=t),!!i}for(var s=this.tryEntries.length-1;s>=0;--s){var o=this.tryEntries[s],n=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var h=r.call(o,"catchLoc"),d=r.call(o,"finallyLoc");if(h&&d){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(h){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,a){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var s=i;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=a&&a<=s.finallyLoc&&(s=null);var o=s?s.completion:{};return o.type=t,o.arg=a,s?(this.method="next",this.next=s.finallyLoc,v):this.complete(o)},complete:function(t,a){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&a&&(this.next=a),v},finish:function(t){for(var a=this.tryEntries.length-1;a>=0;--a){var e=this.tryEntries[a];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),E(e),v}},catch:function(t){for(var a=this.tryEntries.length-1;a>=0;--a){var e=this.tryEntries[a];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var i=r.arg;E(e)}return i}}throw Error("illegal catch attempt")},delegateYield:function(a,e,r){return this.delegate={iterator:j(a),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=t),v}},a}function p(t,a,e,r,i,s,o){try{var n=t[s](o),h=n.value}catch(t){return void e(t)}n.done?a(h):Promise.resolve(h).then(r,i)}function c(t){return function(){var a=this,e=arguments;return new Promise((function(r,i){var s=t.apply(a,e);function o(t){p(s,r,i,o,n,"next",t)}function n(t){p(s,r,i,o,n,"throw",t)}o(void 0)}))}}function l(t,a){for(var e=0;e<a.length;e++){var r=a[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function m(t,a,e){return(a=u(a))in t?Object.defineProperty(t,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[a]=e,t}function u(t){var a=function(t){if("object"!=s(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var e=a.call(t,"string");if("object"!=s(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(a)?a:a+""}var y=e(6425),g=e(3627),f=e(1603),v=e(7563),_=function(){return t=function t(a,e){var i=this;!function(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}(this,t),m(this,"getSystem",(function(t){var a=t,e=/(?:Windows Phone)/.test(a),r=/(?:SymbianOS)/.test(a)||e,i=/(?:Android)/.test(a),s=/(?:Firefox)/.test(a),o=/(?:iPad|PlayBook)/.test(a)||i&&!/(?:Mobile)/.test(a)||s&&/(?:Tablet)/.test(a),n=/(?:iPhone)/.test(a)&&!o;return{isTablet:o,isPhone:n,isAndroid:i,isPC:!(n||i||r||o)}})),m(this,"getCloudFrontDevice",(function(t){var a=t["cloudfront-is-desktop-viewer"],e=t["cloudfront-is-ios-viewer"],r=t["cloudfront-is-android-viewer"],s=t["cloudfront-is-tablet-viewer"],o=t["cloudfront-is-mobile-viewer"],n="";if(a&&"true"===a&&(n="PC"),e&&"true"===e&&(n="IOS"),r&&"true"===r&&(n="Android"),s&&"true"===s&&(n="Pad"),!n&&o&&"true"===o&&(n="Android"),!n){var h=i.getSystem(t["user-agent"]);h.isPC&&(n="PC"),h.isTablet&&(n="Pad"),h.isAndroid&&(n="Android"),h.isPhone&&(n="IOS")}return n})),m(this,"getCloudFrontSystem",(function(t){var a={isAndroid:"Android"===t,isPhone:"IOS"===t,isTablet:"Pad"===t};return a.isAndroid||a.isPhone||a.isTablet||(a.isPC=!0),a})),m(this,"addCommonHeadersInfo",(function(t){t.setHeader("Content-Type","text/html; charset=utf-8"),t.setHeader("Content-Security-Policy","frame-ancestors https://*.enjoy4fun.com https://*.beesads.com"),t.setHeader("Strict-Transport-Security","max-age=63072000; includeSubDomains; preload"),t.setHeader("X-Content-Type-Options","nosniff"),t.setHeader("X-Download-Options","noopen"),t.setHeader("Observe-Browsing-Topics","?1")})),m(this,"readF2eFiles",(function(t,a){return console.log("静态资源:开始读取"),new Promise((function(e,s){try{var o=g.join(r,"../".concat(t,"/").concat(a));f.readdirSync(o).forEach((function(t){var a=g.join(o,t);f.statSync(a).isFile()&&(i.fileContents[t]=f.readFileSync(a,"utf8"))})),i.fileContents["react.production.min.js"]=f.readFileSync(g.join(r,"../".concat(t,"/dist/react.production.min.js")),"utf8"),i.fileContents["react-dom.production.min.js"]=f.readFileSync(g.join(r,"../".concat(t,"/dist/react-dom.production.min.js")),"utf8"),i.fileContents["react-router-dom.min.js"]=f.readFileSync(g.join(r,"../".concat(t,"/dist/react-router-dom.min.js")),"utf8"),console.log("静态资源列表:"),Object.keys(fileContents).every((function(t){var a=i.fileContents[t];return console.log(t,":",a?a.length:"null"),a&&a.length>0}))?e():s()}catch(t){s()}console.log("静态资源:读取结束")}))})),m(this,"initClient",(function(t,a){i.client||(i.client=new v.Client({appId:t,appSecret:a,disableTokenCache:!1}),console.log("Lark客户端初始化成功"))})),m(this,"sendFeiShu",(function(t,a,e,r){if(!i.client){if(!a||!e)return void console.error("Lark客户端未初始化,且未提供appId和appSecret,无法发送消息");i.initClient(a,e)}i.client.im.message.create({params:{receive_id_type:"chat_id"},data:{receive_id:"oc_aba13955509035daa7a799f30b1b3341",msg_type:"text",content:'{"text":"<b>前端容器node报错</b>\\ncomponents: '.concat(components,"\\nenv: ").concat(process.env.ENV,"\\nmesssage: ").concat(t,'"}'),uuid:""}}).then((function(t){console.log("消息发送成功:",t)})).catch((function(t){console.error("消息发送失败:",t)}))})),m(this,"appendLog",(function(t,a){try{a?a.config?(console.error("============".concat((new Date).toLocaleString(),"===========")),console.error("".concat(t," [").concat(a.config.method,"]: ").concat(a.config.url)),console.error("request: {params: ".concat(JSON.stringify(a.config.params),", data: ").concat(JSON.stringify(a.config.data),"}")),console.error("response: ".concat(JSON.stringify(a.response))),i.sendFeiShu("".concat(t," [").concat(a.config.method,"]: ").concat(a.config.url))):(console.error("============".concat((new Date).toLocaleString(),"===========")),console.error("".concat(t," ").concat(a)),i.sendFeiShu("".concat(t," ").concat(a))):(console.warn("============".concat((new Date).toLocaleString(),"===========")),console.warn(t))}catch(t){}})),m(this,"isEmptyObj",(function(t){return null==t||"string"==typeof t&&""===t.trim()||"[object Object]"===Object.prototype.toString.apply(t)&&"{}"===JSON.stringify(t)||Array.isArray(t)&&t.every((function(t){return isEmpty(t)}))})),m(this,"clearGameCardListData",(function(t){return t.map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:t.game_id,icon:t.base_icon,path:t.game_path,name:t.game_name,icon_video:t.icon_video,new:!!t.new||void 0}}))})),m(this,"clearCategoryListData",(function(t){return t.map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:t.id,path:t.path,icon:t.base_icon,name:t.name}}))})),m(this,"clearWalkThroughVideoListData",(function(t){return t.map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{game_name:t.game_name,game_path:t.game_path,thumbnail:t.thumbnail,video_id:t.video_id,duration:t.duration}}))})),m(this,"getLanguageList",(function(t){var a=[{code:"en",name:"English",icon:"cfgv1bursfevmln3akj0.webp"}];return new Promise((function(e){y.get(t).then((function(t){var r=t.data.data||[];r=r.map((function(t){return{code:t.lan,name:t.lan_name,icon:t.icon}})),e(r||a)})).catch((function(){i.appendLog("语言读取","语言接口调用失败"),e(a)}))}))})),m(this,"ReplaceGameResources",function(){var t=c(d().mark((function t(a,e,r){var s,o,n,h,p;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s="",o="https://game.enjoy4fun.com",t.prev=2,n=e.split("."),h=n.slice(-2).join("."),p=i.gameResourcesMap[h]){t.next=12;break}return p="https://game.".concat(h),t.next=10,checkDomainAvailability(p);case 10:t.sent?(console.log("gameDomain可用,使用新的域名"),i.gameResourcesMap[h]=p):(console.log("gameDomain不可用,使用默认域名"),i.gameResourcesMap[h]=o,p=o);case 12:if(p!==o){t.next=15;break}return console.log(new Date,"gameResourcesMap:存在且等于默认游戏名使用默认link",i.gameResourcesMap,"link",a),t.abrupt("return",a);case 15:return(r.includes("prod")||r.includes("qa"))&&(s=a.replace(o,p)),console.log(new Date,"gameResourcesMap:存在使用替换新的域名",i.gameResourcesMap,"gameDomain",p,"gameLink",s),t.abrupt("return",s);case 20:t.prev=20,t.t0=t.catch(2),s=a;case 23:return t.abrupt("return",s);case 24:case"end":return t.stop()}}),t,null,[[2,20]])})));return function(a,e,r){return t.apply(this,arguments)}}()),m(this,"getModelF2eFiles",(function(t,a){var e="".concat(t,".entry.js"),r="".concat(t,".entry.css");if("boolean"==typeof a){var s=a?"mobile":"pc";e="".concat(t,"-").concat(s,".entry.js"),r="".concat(t,"-").concat(s,".entry.css")}var o={jsStr:fileContents[e],cssStr:fileContents[r],reactStr:fileContents["react.production.min.js"],reactDomStr:fileContents["react-dom.production.min.js"],reactRouterStr:fileContents["react-router-dom.min.js"]};if(!i.filesErrorSendStatus){var n=Object.keys(o).every((function(a){var e=o[a];return!!(e&&e.length>0)||(i.appendLog("".concat(t,"[").concat(a,"]"),"文件加载失败"),!1)}));i.filesErrorSendStatus=!n}return o})),this.domainMap={},this.fileContents={},this.client=null,this.gameResourcesMap={},this.filesErrorSendStatus=!1,a&&e?this.initClient(a,e):console.error("Lark客户端初始化失败:未提供appId或appSecret")},a=[{key:"getSiteByHostname",value:(s=c(d().mark((function t(a,e,r){var i=this;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var s=i.domainMap[e];if(s)return t(s);y.get(a,{params:{domain:e}}).then((function(a){var i=a.data.data;i?(s=i.siteId,domainMap[e]=s,console.log(new Date,"domainMap缓存更新",s,domainMap)):(s=r,console.log(new Date,"获取site失败: domain=".concat(e))),t(s)}))})));case 1:case"end":return t.stop()}}),t)}))),function(t,a,e){return s.apply(this,arguments)})},{key:"getSiteConfigByHostname",value:(e=c(d().mark((function t(a,e,r,s,o,p){var c;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c={domain:r,creative_id:o},t.abrupt("return",new Promise((function(t){y.get(e,{params:c}).then((function(e){var r=e.data.data;r||(r={siteId:"site_12",zoneMap:{pad_bottom_300_250:"45330",pad_bottom_336_280:"45326",pc_bottom_728_90:"45320",pc_right_300_250:"45321",pc_right_300_600:"45322",pc_right_300_250_2:"45324",pc_left_160_600:"45323",mobile_300_250_top:"45327",mobile_300_250_mid:"45328",mobile_300_600_bottom:"45329",interstitial_pc:"45334",interstitial_mobile:"45335",pc_bottom_160_90:"45325",pc_pad_walkthrough_336_280:"45319",mobile_game:"45331",pc_game:"45333",pad_game:"45332",sidewall:"47185"},theme:{icon:"",logo:"",title:"",bgLeftImg:"",bgRightImg:"",bgBottomImg:""}});var o=a?mobileZoneKeyList:pcZoneKeyList,d={},c=r.zoneMap||{};o.forEach((function(t){c[t]&&(d[t]=c[t])})),r.zoneMap=d;var l=r.theme||{},m=l.icon,u=l.logo,y=l.title,g=l.bgLeftImg,f=l.bgRightImg,v=l.bgBottomImg,_=h(l,i);r.theme=n({icon:m?"".concat(s,"/site_icon/").concat(m):"/".concat(p,"/favicon.ico"),logo:u?"".concat(s,"/site_logo/").concat(u):"/".concat(p,"/assets/logo-small.svg"),title:y||"Enjoy4fun",bgLeftImg:g?"".concat(s,"/theme/").concat(g):"/gamebridge-web/assets/bg-left-winter.png",bgRightImg:f?"".concat(s,"/theme/").concat(f):"/gamebridge-web/assets/bg-right-winter.png",bgBottomImg:v?"".concat(s,"/theme/").concat(v):"/gamebridge-web/assets/bg-bottom-winter.png"},_),t(r)}))})));case 2:case"end":return t.stop()}}),t)}))),function(t,a,r,i,s,o){return e.apply(this,arguments)})}],a&&l(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a,e,s}();t.exports=new _},8075:(t,a,e)=>{"use strict";var r=e(453),i=e(487),s=i(r("String.prototype.indexOf"));t.exports=function(t,a){var e=r(t,!!a);return"function"==typeof e&&s(t,".prototype.")>-1?i(e):e}},487:(t,a,e)=>{"use strict";var r=e(6743),i=e(453),s=e(6897),o=e(9675),n=i("%Function.prototype.apply%"),h=i("%Function.prototype.call%"),d=i("%Reflect.apply%",!0)||r.call(h,n),p=e(655),c=i("%Math.max%");t.exports=function(t){if("function"!=typeof t)throw new o("a function is required");var a=d(r,h,arguments);return s(a,1+c(0,t.length-(arguments.length-1)),!0)};var l=function(){return d(r,n,arguments)};p?p(t.exports,"apply",{value:l}):t.exports.apply=l},41:(t,a,e)=>{"use strict";var r=e(655),i=e(8068),s=e(9675),o=e(5795);t.exports=function(t,a,e){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new s("`obj` must be an object or a function`");if("string"!=typeof a&&"symbol"!=typeof a)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],c=!!o&&o(t,a);if(r)r(t,a,{configurable:null===d&&c?c.configurable:!d,enumerable:null===n&&c?c.enumerable:!n,value:e,writable:null===h&&c?c.writable:!h});else{if(!p&&(n||h||d))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[a]=e}}},655:(t,a,e)=>{"use strict";var r=e(453)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(t){r=!1}t.exports=r},1237:t=>{"use strict";t.exports=EvalError},9383:t=>{"use strict";t.exports=Error},9290:t=>{"use strict";t.exports=RangeError},9538:t=>{"use strict";t.exports=ReferenceError},8068:t=>{"use strict";t.exports=SyntaxError},9675:t=>{"use strict";t.exports=TypeError},5345:t=>{"use strict";t.exports=URIError},9353:t=>{"use strict";var a=Object.prototype.toString,e=Math.max,r=function(t,a){for(var e=[],r=0;r<t.length;r+=1)e[r]=t[r];for(var i=0;i<a.length;i+=1)e[i+t.length]=a[i];return e};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==a.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var s,o=function(t){for(var a=[],e=1,r=0;e<t.length;e+=1,r+=1)a[r]=t[e];return a}(arguments),n=e(0,i.length-o.length),h=[],d=0;d<n;d++)h[d]="$"+d;if(s=Function("binder","return function ("+function(t){for(var a="",e=0;e<t.length;e+=1)a+=t[e],e+1<t.length&&(a+=",");return a}(h)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof s){var a=i.apply(this,r(o,arguments));return Object(a)===a?a:this}return i.apply(t,r(o,arguments))})),i.prototype){var p=function(){};p.prototype=i.prototype,s.prototype=new p,p.prototype=null}return s}},6743:(t,a,e)=>{"use strict";var r=e(9353);t.exports=Function.prototype.bind||r},453:(t,a,e)=>{"use strict";var r,i=e(9383),s=e(1237),o=e(9290),n=e(9538),h=e(8068),d=e(9675),p=e(5345),c=Function,l=function(t){try{return c('"use strict"; return ('+t+").constructor;")()}catch(t){}},m=Object.getOwnPropertyDescriptor;if(m)try{m({},"")}catch(t){m=null}var u=function(){throw new d},y=m?function(){try{return u}catch(t){try{return m(arguments,"callee").get}catch(t){return u}}}():u,g=e(4039)(),f=e(24)(),v=Object.getPrototypeOf||(f?function(t){return t.__proto__}:null),_={},b="undefined"!=typeof Uint8Array&&v?v(Uint8Array):r,S={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&v?v([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":s,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":_,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&v?v(v([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&v?v((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":o,"%ReferenceError%":n,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&v?v((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&v?v(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":h,"%ThrowTypeError%":y,"%TypedArray%":b,"%TypeError%":d,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(v)try{null.error}catch(t){var P=v(v(t));S["%Error.prototype%"]=P}var w=function t(a){var e;if("%AsyncFunction%"===a)e=l("async function () {}");else if("%GeneratorFunction%"===a)e=l("function* () {}");else if("%AsyncGeneratorFunction%"===a)e=l("async function* () {}");else if("%AsyncGenerator%"===a){var r=t("%AsyncGeneratorFunction%");r&&(e=r.prototype)}else if("%AsyncIteratorPrototype%"===a){var i=t("%AsyncGenerator%");i&&v&&(e=v(i.prototype))}return S[a]=e,e},I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=e(6743),T=e(9957),q=k.call(Function.call,Array.prototype.concat),F=k.call(Function.apply,Array.prototype.splice),z=k.call(Function.call,String.prototype.replace),$=k.call(Function.call,String.prototype.slice),E=k.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j=/\\(\\)?/g,x=function(t,a){var e,r=t;if(T(I,r)&&(r="%"+(e=I[r])[0]+"%"),T(S,r)){var i=S[r];if(i===_&&(i=w(r)),void 0===i&&!a)throw new d("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:e,name:r,value:i}}throw new h("intrinsic "+t+" does not exist!")};t.exports=function(t,a){if("string"!=typeof t||0===t.length)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof a)throw new d('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,t))throw new h("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=function(t){var a=$(t,0,1),e=$(t,-1);if("%"===a&&"%"!==e)throw new h("invalid intrinsic syntax, expected closing `%`");if("%"===e&&"%"!==a)throw new h("invalid intrinsic syntax, expected opening `%`");var r=[];return z(t,O,(function(t,a,e,i){r[r.length]=e?z(i,j,"$1"):a||t})),r}(t),r=e.length>0?e[0]:"",i=x("%"+r+"%",a),s=i.name,o=i.value,n=!1,p=i.alias;p&&(r=p[0],F(e,q([0,1],p)));for(var c=1,l=!0;c<e.length;c+=1){var u=e[c],y=$(u,0,1),g=$(u,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new h("property names with quotes must have matching quotes");if("constructor"!==u&&l||(n=!0),T(S,s="%"+(r+="."+u)+"%"))o=S[s];else if(null!=o){if(!(u in o)){if(!a)throw new d("base intrinsic for "+t+" exists, but the property is not available.");return}if(m&&c+1>=e.length){var f=m(o,u);o=(l=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:o[u]}else l=T(o,u),o=o[u];l&&!n&&(S[s]=o)}}return o}},5795:(t,a,e)=>{"use strict";var r=e(453)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},592:(t,a,e)=>{"use strict";var r=e(655),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},24:t=>{"use strict";var a={__proto__:null,foo:{}},e=Object;t.exports=function(){return{__proto__:a}.foo===a.foo&&!(a instanceof e)}},4039:(t,a,e)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=e(1333);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},1333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},a=Symbol("test"),e=Object(a);if("string"==typeof a)return!1;if("[object Symbol]"!==Object.prototype.toString.call(a))return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;for(a in t[a]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==a)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,a))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,a);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},9957:(t,a,e)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,s=e(6743);t.exports=s.call(r,i)},6762:(t,a,e)=>{var r,i="__lodash_hash_undefined__",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/,n=/^\./,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,c="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,l="object"==typeof self&&self&&self.Object===Object&&self,m=c||l||Function("return this")(),u=Array.prototype,y=Function.prototype,g=Object.prototype,f=m["__core-js_shared__"],v=(r=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",_=y.toString,b=g.hasOwnProperty,S=g.toString,P=RegExp("^"+_.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=m.Symbol,I=u.splice,k=x(m,"Map"),T=x(Object,"create"),q=w?w.prototype:void 0,F=q?q.toString:void 0;function z(t){var a=-1,e=t?t.length:0;for(this.clear();++a<e;){var r=t[a];this.set(r[0],r[1])}}function $(t){var a=-1,e=t?t.length:0;for(this.clear();++a<e;){var r=t[a];this.set(r[0],r[1])}}function E(t){var a=-1,e=t?t.length:0;for(this.clear();++a<e;){var r=t[a];this.set(r[0],r[1])}}function O(t,a){for(var e,r,i=t.length;i--;)if((e=t[i][0])===(r=a)||e!=e&&r!=r)return i;return-1}function j(t,a){var e,r,i=t.__data__;return("string"==(r=typeof(e=a))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?i["string"==typeof a?"string":"hash"]:i.map}function x(t,a){var e=function(t,a){return null==t?void 0:t[a]}(t,a);return function(t){if(!B(t)||v&&v in t)return!1;var a=function(t){var a=B(t)?S.call(t):"";return"[object Function]"==a||"[object GeneratorFunction]"==a}(t)||function(t){var a=!1;if(null!=t&&"function"!=typeof t.toString)try{a=!!(t+"")}catch(t){}return a}(t)?P:p;return a.test(function(t){if(null!=t){try{return _.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(e)?e:void 0}z.prototype.clear=function(){this.__data__=T?T(null):{}},z.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},z.prototype.get=function(t){var a=this.__data__;if(T){var e=a[t];return e===i?void 0:e}return b.call(a,t)?a[t]:void 0},z.prototype.has=function(t){var a=this.__data__;return T?void 0!==a[t]:b.call(a,t)},z.prototype.set=function(t,a){return this.__data__[t]=T&&void 0===a?i:a,this},$.prototype.clear=function(){this.__data__=[]},$.prototype.delete=function(t){var a=this.__data__,e=O(a,t);return!(e<0||(e==a.length-1?a.pop():I.call(a,e,1),0))},$.prototype.get=function(t){var a=this.__data__,e=O(a,t);return e<0?void 0:a[e][1]},$.prototype.has=function(t){return O(this.__data__,t)>-1},$.prototype.set=function(t,a){var e=this.__data__,r=O(e,t);return r<0?e.push([t,a]):e[r][1]=a,this},E.prototype.clear=function(){this.__data__={hash:new z,map:new(k||$),string:new z}},E.prototype.delete=function(t){return j(this,t).delete(t)},E.prototype.get=function(t){return j(this,t).get(t)},E.prototype.has=function(t){return j(this,t).has(t)},E.prototype.set=function(t,a){return j(this,t).set(t,a),this};var G=C((function(t){var a;t=null==(a=t)?"":function(t){if("string"==typeof t)return t;if(L(t))return F?F.call(t):"";var a=t+"";return"0"==a&&1/t==-1/0?"-0":a}(a);var e=[];return n.test(t)&&e.push(""),t.replace(h,(function(t,a,r,i){e.push(r?i.replace(d,"$1"):a||t)})),e}));function A(t){if("string"==typeof t||L(t))return t;var a=t+"";return"0"==a&&1/t==-1/0?"-0":a}function C(t,a){if("function"!=typeof t||a&&"function"!=typeof a)throw new TypeError("Expected a function");var e=function(){var r=arguments,i=a?a.apply(this,r):r[0],s=e.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return e.cache=s.set(i,o),o};return e.cache=new(C.Cache||E),e}C.Cache=E;var D=Array.isArray;function B(t){var a=typeof t;return!!t&&("object"==a||"function"==a)}function L(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==S.call(t)}t.exports=function(t,a,e){var r=null==t?void 0:function(t,a){var e;a=function(t,a){if(D(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!L(t))||o.test(t)||!s.test(t)||null!=a&&t in Object(a)}(a,t)?[a]:D(e=a)?e:G(e);for(var r=0,i=a.length;null!=t&&r<i;)t=t[A(a[r++])];return r&&r==i?t:void 0}(t,a);return void 0===r?e:r}},8160:t=>{t.exports=function(t){return t}},182:(t,a,e)=>{t=e.nmd(t);var r="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Function]",n="[object Object]",h=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[s]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p[o]=p["[object Map]"]=p["[object Number]"]=p[n]=p["[object RegExp]"]=p["[object Set]"]=p["[object String]"]=p["[object WeakMap]"]=!1;var c,l,m,u="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,y="object"==typeof self&&self&&self.Object===Object&&self,g=u||y||Function("return this")(),f=a&&!a.nodeType&&a,v=f&&t&&!t.nodeType&&t,_=v&&v.exports===f,b=_&&u.process,S=function(){try{return v&&v.require&&v.require("util").types||b&&b.binding&&b.binding("util")}catch(t){}}(),P=S&&S.isTypedArray,w=Array.prototype,I=Function.prototype,k=Object.prototype,T=g["__core-js_shared__"],q=I.toString,F=k.hasOwnProperty,z=(c=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",$=k.toString,E=q.call(Object),O=RegExp("^"+q.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=_?g.Buffer:void 0,x=g.Symbol,G=g.Uint8Array,A=(j&&j.allocUnsafe,l=Object.getPrototypeOf,m=Object,function(t){return l(m(t))}),C=Object.create,D=k.propertyIsEnumerable,B=w.splice,L=x?x.toStringTag:void 0,R=function(){try{var t=nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),W=j?j.isBuffer:void 0,U=Math.max,N=Date.now,H=nt(g,"Map"),M=nt(Object,"create"),J=function(){function t(){}return function(a){if(!_t(a))return{};if(C)return C(a);t.prototype=a;var e=new t;return t.prototype=void 0,e}}();function V(t){var a=-1,e=null==t?0:t.length;for(this.clear();++a<e;){var r=t[a];this.set(r[0],r[1])}}function K(t){var a=-1,e=null==t?0:t.length;for(this.clear();++a<e;){var r=t[a];this.set(r[0],r[1])}}function Q(t){var a=-1,e=null==t?0:t.length;for(this.clear();++a<e;){var r=t[a];this.set(r[0],r[1])}}function X(t){var a=this.__data__=new K(t);this.size=a.size}function Z(t,a,e){(void 0!==e&&!lt(t[a],e)||void 0===e&&!(a in t))&&at(t,a,e)}function Y(t,a,e){var r=t[a];F.call(t,a)&<(r,e)&&(void 0!==e||a in t)||at(t,a,e)}function tt(t,a){for(var e=t.length;e--;)if(lt(t[e][0],a))return e;return-1}function at(t,a,e){"__proto__"==a&&R?R(t,a,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[a]=e}V.prototype.clear=function(){this.__data__=M?M(null):{},this.size=0},V.prototype.delete=function(t){var a=this.has(t)&&delete this.__data__[t];return this.size-=a?1:0,a},V.prototype.get=function(t){var a=this.__data__;if(M){var e=a[t];return e===r?void 0:e}return F.call(a,t)?a[t]:void 0},V.prototype.has=function(t){var a=this.__data__;return M?void 0!==a[t]:F.call(a,t)},V.prototype.set=function(t,a){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=M&&void 0===a?r:a,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(t){var a=this.__data__,e=tt(a,t);return!(e<0||(e==a.length-1?a.pop():B.call(a,e,1),--this.size,0))},K.prototype.get=function(t){var a=this.__data__,e=tt(a,t);return e<0?void 0:a[e][1]},K.prototype.has=function(t){return tt(this.__data__,t)>-1},K.prototype.set=function(t,a){var e=this.__data__,r=tt(e,t);return r<0?(++this.size,e.push([t,a])):e[r][1]=a,this},Q.prototype.clear=function(){this.size=0,this.__data__={hash:new V,map:new(H||K),string:new V}},Q.prototype.delete=function(t){var a=ot(this,t).delete(t);return this.size-=a?1:0,a},Q.prototype.get=function(t){return ot(this,t).get(t)},Q.prototype.has=function(t){return ot(this,t).has(t)},Q.prototype.set=function(t,a){var e=ot(this,t),r=e.size;return e.set(t,a),this.size+=e.size==r?0:1,this},X.prototype.clear=function(){this.__data__=new K,this.size=0},X.prototype.delete=function(t){var a=this.__data__,e=a.delete(t);return this.size=a.size,e},X.prototype.get=function(t){return this.__data__.get(t)},X.prototype.has=function(t){return this.__data__.has(t)},X.prototype.set=function(t,a){var e=this.__data__;if(e instanceof K){var r=e.__data__;if(!H||r.length<199)return r.push([t,a]),this.size=++e.size,this;e=this.__data__=new Q(r)}return e.set(t,a),this.size=e.size,this};function et(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":L&&L in Object(t)?function(t){var a=F.call(t,L),e=t[L];try{t[L]=void 0;var r=!0}catch(t){}var i=$.call(t);return r&&(a?t[L]=e:delete t[L]),i}(t):function(t){return $.call(t)}(t)}function rt(t){return bt(t)&&et(t)==s}function it(t,a,e,r,i){t!==a&&function(t,a,e){for(var r=-1,i=Object(t),s=e(t),o=s.length;o--;){var n=s[++r];if(!1===a(i[n],n,i))break}}(a,(function(s,o){if(i||(i=new X),_t(s))!function(t,a,e,r,i,s,o){var h=pt(t,e),d=pt(a,e),p=o.get(d);if(p)Z(t,e,p);else{var c,l,m,u,y,g=s?s(h,d,e+"",t,a,o):void 0,f=void 0===g;if(f){var v=ut(d),_=!v&>(d),b=!v&&!_&&St(d);g=d,v||_||b?ut(h)?g=h:bt(y=h)&&yt(y)?g=function(t,a){var e=-1,r=t.length;for(a||(a=Array(r));++e<r;)a[e]=t[e];return a}(h):_?(f=!1,g=function(t){return t.slice()}(d)):b?(f=!1,u=new(m=(c=d).buffer).constructor(m.byteLength),new G(u).set(new G(m)),l=u,g=new c.constructor(l,c.byteOffset,c.length)):g=[]:function(t){if(!bt(t)||et(t)!=n)return!1;var a=A(t);if(null===a)return!0;var e=F.call(a,"constructor")&&a.constructor;return"function"==typeof e&&e instanceof e&&q.call(e)==E}(d)||mt(d)?(g=h,mt(h)?g=function(t){return function(t,a,e){var r=!e;e||(e={});for(var i=-1,s=a.length;++i<s;){var o=a[i],n=void 0;void 0===n&&(n=t[o]),r?at(e,o,n):Y(e,o,n)}return e}(t,Pt(t))}(h):_t(h)&&!ft(h)||(g=function(t){return"function"!=typeof t.constructor||dt(t)?{}:J(A(t))}(d))):f=!1}f&&(o.set(d,g),i(g,d,r,s,o),o.delete(d)),Z(t,e,g)}}(t,a,o,e,it,r,i);else{var h=r?r(pt(t,o),s,o+"",t,a,i):void 0;void 0===h&&(h=s),Z(t,o,h)}}),Pt)}var st=R?function(t,a){return R(t,"toString",{configurable:!0,enumerable:!1,value:(e=a,function(){return e}),writable:!0});var e}:kt;function ot(t,a){var e,r,i=t.__data__;return("string"==(r=typeof(e=a))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?i["string"==typeof a?"string":"hash"]:i.map}function nt(t,a){var e=function(t,a){return null==t?void 0:t[a]}(t,a);return function(t){return!(!_t(t)||function(t){return!!z&&z in t}(t))&&(ft(t)?O:h).test(function(t){if(null!=t){try{return q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(e)?e:void 0}function ht(t,a){var e=typeof t;return!!(a=null==a?i:a)&&("number"==e||"symbol"!=e&&d.test(t))&&t>-1&&t%1==0&&t<a}function dt(t){var a=t&&t.constructor;return t===("function"==typeof a&&a.prototype||k)}function pt(t,a){if(("constructor"!==a||"function"!=typeof t[a])&&"__proto__"!=a)return t[a]}var ct=function(t){var a=0,e=0;return function(){var r=N(),i=16-(r-e);if(e=r,i>0){if(++a>=800)return arguments[0]}else a=0;return t.apply(void 0,arguments)}}(st);function lt(t,a){return t===a||t!=t&&a!=a}var mt=rt(function(){return arguments}())?rt:function(t){return bt(t)&&F.call(t,"callee")&&!D.call(t,"callee")},ut=Array.isArray;function yt(t){return null!=t&&vt(t.length)&&!ft(t)}var gt=W||function(){return!1};function ft(t){if(!_t(t))return!1;var a=et(t);return a==o||"[object GeneratorFunction]"==a||"[object AsyncFunction]"==a||"[object Proxy]"==a}function vt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function _t(t){var a=typeof t;return null!=t&&("object"==a||"function"==a)}function bt(t){return null!=t&&"object"==typeof t}var St=P?function(t){return function(a){return t(a)}}(P):function(t){return bt(t)&&vt(t.length)&&!!p[et(t)]};function Pt(t){return yt(t)?function(t,a){var e=ut(t),r=!e&&mt(t),i=!e&&!r&>(t),s=!e&&!r&&!i&&St(t),o=e||r||i||s,n=o?function(t,a){for(var e=-1,r=Array(t);++e<t;)r[e]=a(e);return r}(t.length,String):[],h=n.length;for(var d in t)!a&&!F.call(t,d)||o&&("length"==d||i&&("offset"==d||"parent"==d)||s&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||ht(d,h))||n.push(d);return n}(t,!0):function(t){if(!_t(t))return function(t){var a=[];if(null!=t)for(var e in Object(t))a.push(e);return a}(t);var a=dt(t),e=[];for(var r in t)("constructor"!=r||!a&&F.call(t,r))&&e.push(r);return e}(t)}var wt,It=(wt=function(t,a,e){it(t,a,e)},function(t,a){return ct(function(t,a,e){return a=U(void 0===a?t.length-1:a,0),function(){for(var r=arguments,i=-1,s=U(r.length-a,0),o=Array(s);++i<s;)o[i]=r[a+i];i=-1;for(var n=Array(a+1);++i<a;)n[i]=r[i];return n[a]=e(o),function(t,a,e){switch(e.length){case 0:return t.call(a);case 1:return t.call(a,e[0]);case 2:return t.call(a,e[0],e[1]);case 3:return t.call(a,e[0],e[1],e[2])}return t.apply(a,e)}(t,this,n)}}(t,a,kt),t+"")}((function(t,a){var e=-1,r=a.length,i=r>1?a[r-1]:void 0,s=r>2?a[2]:void 0;for(i=wt.length>3&&"function"==typeof i?(r--,i):void 0,s&&function(t,a,e){if(!_t(e))return!1;var r=typeof a;return!!("number"==r?yt(e)&&ht(a,e.length):"string"==r&&a in e)&<(e[a],t)}(a[0],a[1],s)&&(i=r<3?void 0:i,r=1),t=Object(t);++e<r;){var o=a[e];o&&wt(t,o,e)}return t})));function kt(t){return t}t.exports=It},1863:(t,a,e)=>{var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,i="object"==typeof self&&self&&self.Object===Object&&self,s=r||i||Function("return this")();function o(t,a){for(var e=-1,r=a.length,i=t.length;++e<r;)t[i+e]=a[e];return t}var n=Object.prototype,h=n.hasOwnProperty,d=n.toString,p=s.Symbol,c=n.propertyIsEnumerable,l=p?p.isConcatSpreadable:void 0,m=Math.max;function u(t,a,e,r,i){var s=-1,n=t.length;for(e||(e=y),i||(i=[]);++s<n;){var h=t[s];a>0&&e(h)?a>1?u(h,a-1,e,r,i):o(i,h):r||(i[i.length]=h)}return i}function y(t){return f(t)||function(t){return function(t){return v(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!function(t){var a=function(t){var a=typeof t;return!!t&&("object"==a||"function"==a)}(t)?d.call(t):"";return"[object Function]"==a||"[object GeneratorFunction]"==a}(t)}(t)}(t)&&h.call(t,"callee")&&(!c.call(t,"callee")||"[object Arguments]"==d.call(t))}(t)||!!(l&&t&&t[l])}function g(t){if("string"==typeof t||function(t){return"symbol"==typeof t||v(t)&&"[object Symbol]"==d.call(t)}(t))return t;var a=t+"";return"0"==a&&1/t==-1/0?"-0":a}var f=Array.isArray;function v(t){return!!t&&"object"==typeof t}var _,b,S=(_=function(t,a){return null==t?{}:function(t,a){return function(t,a,e){for(var r=-1,i=a.length,s={};++r<i;){var o=a[r],n=t[o];e(0,o)&&(s[o]=n)}return s}(t=Object(t),a,(function(a,e){return e in t}))}(t,function(t,a){for(var e=-1,r=t?t.length:0,i=Array(r);++e<r;)i[e]=a(t[e],e,t);return i}(u(a,1),g))},b=m(void 0===b?_.length-1:b,0),function(){for(var t=arguments,a=-1,e=m(t.length-b,0),r=Array(e);++a<e;)r[a]=t[b+a];a=-1;for(var i=Array(b+1);++a<b;)i[a]=t[a];return i[b]=r,function(t,a,e){switch(e.length){case 0:return t.call(a);case 1:return t.call(a,e[0]);case 2:return t.call(a,e[0],e[1]);case 3:return t.call(a,e[0],e[1],e[2])}return t.apply(a,e)}(_,this,i)});t.exports=S},826:(t,a,e)=>{t=e.nmd(t);var r="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",n="[object Boolean]",h="[object Date]",d="[object Error]",p="[object Function]",c="[object Map]",l="[object Number]",m="[object Object]",u="[object Promise]",y="[object RegExp]",g="[object Set]",f="[object String]",v="[object Symbol]",_="[object WeakMap]",b="[object ArrayBuffer]",S="[object DataView]",P=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,w=/^\w*$/,I=/^\./,k=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,T=/\\(\\)?/g,q=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,z={};z["[object Float32Array]"]=z["[object Float64Array]"]=z["[object Int8Array]"]=z["[object Int16Array]"]=z["[object Int32Array]"]=z["[object Uint8Array]"]=z["[object Uint8ClampedArray]"]=z["[object Uint16Array]"]=z["[object Uint32Array]"]=!0,z[s]=z[o]=z[b]=z[n]=z[S]=z[h]=z[d]=z[p]=z[c]=z[l]=z[m]=z[y]=z[g]=z[f]=z[_]=!1;var $="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,E="object"==typeof self&&self&&self.Object===Object&&self,O=$||E||Function("return this")(),j=a&&!a.nodeType&&a,x=j&&t&&!t.nodeType&&t,G=x&&x.exports===j&&$.process,A=function(){try{return G&&G.binding("util")}catch(t){}}(),C=A&&A.isTypedArray;function D(t,a){for(var e=-1,r=a.length,i=t.length;++e<r;)t[i+e]=a[e];return t}function B(t,a){for(var e=-1,r=t?t.length:0;++e<r;)if(a(t[e],e,t))return!0;return!1}function L(t){var a=!1;if(null!=t&&"function"!=typeof t.toString)try{a=!!(t+"")}catch(t){}return a}function R(t){var a=-1,e=Array(t.size);return t.forEach((function(t,r){e[++a]=[r,t]})),e}function W(t,a){return function(e){return t(a(e))}}function U(t){var a=-1,e=Array(t.size);return t.forEach((function(t){e[++a]=t})),e}var N,H=Array.prototype,M=Function.prototype,J=Object.prototype,V=O["__core-js_shared__"],K=(N=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"",Q=M.toString,X=J.hasOwnProperty,Z=J.toString,Y=RegExp("^"+Q.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tt=O.Symbol,at=O.Uint8Array,et=W(Object.getPrototypeOf,Object),rt=J.propertyIsEnumerable,it=H.splice,st=Object.getOwnPropertySymbols,ot=W(Object.keys,Object),nt=xt(O,"DataView"),ht=xt(O,"Map"),dt=xt(O,"Promise"),pt=xt(O,"Set"),ct=xt(O,"WeakMap"),lt=xt(Object,"create"),mt=Ht(nt),ut=Ht(ht),yt=Ht(dt),gt=Ht(pt),ft=Ht(ct),vt=tt?tt.prototype:void 0,_t=vt?vt.valueOf:void 0,bt=vt?vt.toString:void 0;function St(t){var a=-1,e=t?t.length:0;for(this.clear();++a<e;){var r=t[a];this.set(r[0],r[1])}}function Pt(t){var a=-1,e=t?t.length:0;for(this.clear();++a<e;){var r=t[a];this.set(r[0],r[1])}}function wt(t){var a=-1,e=t?t.length:0;for(this.clear();++a<e;){var r=t[a];this.set(r[0],r[1])}}function It(t){var a=-1,e=t?t.length:0;for(this.__data__=new wt;++a<e;)this.add(t[a])}function kt(t){this.__data__=new Pt(t)}function Tt(t,a){var e=Kt(t)||Vt(t)?function(t,a){for(var e=-1,r=Array(t);++e<t;)r[e]=a(e);return r}(t.length,String):[],r=e.length,i=!!r;for(var s in t)!a&&!X.call(t,s)||i&&("length"==s||Dt(s,r))||e.push(s);return e}function qt(t,a){for(var e=t.length;e--;)if(Jt(t[e][0],a))return e;return-1}function Ft(t,a){for(var e=0,r=(a=Bt(a,t)?[a]:Et(a)).length;null!=t&&e<r;)t=t[Nt(a[e++])];return e&&e==r?t:void 0}function zt(t,a){return null!=t&&a in Object(t)}function $t(t,a,e,r,i){return t===a||(null==t||null==a||!Yt(t)&&!ta(a)?t!=t&&a!=a:function(t,a,e,r,i,p){var u=Kt(t),_=Kt(a),P=o,w=o;u||(P=(P=Ct(t))==s?m:P),_||(w=(w=Ct(a))==s?m:w);var I=P==m&&!L(t),k=w==m&&!L(a),T=P==w;if(T&&!I)return p||(p=new kt),u||ra(t)?Ot(t,a,e,r,i,p):function(t,a,e,r,i,s,o){switch(e){case S:if(t.byteLength!=a.byteLength||t.byteOffset!=a.byteOffset)return!1;t=t.buffer,a=a.buffer;case b:return!(t.byteLength!=a.byteLength||!r(new at(t),new at(a)));case n:case h:case l:return Jt(+t,+a);case d:return t.name==a.name&&t.message==a.message;case y:case f:return t==a+"";case c:var p=R;case g:var m=2&s;if(p||(p=U),t.size!=a.size&&!m)return!1;var u=o.get(t);if(u)return u==a;s|=1,o.set(t,a);var _=Ot(p(t),p(a),r,i,s,o);return o.delete(t),_;case v:if(_t)return _t.call(t)==_t.call(a)}return!1}(t,a,P,e,r,i,p);if(!(2&i)){var q=I&&X.call(t,"__wrapped__"),F=k&&X.call(a,"__wrapped__");if(q||F){var z=q?t.value():t,$=F?a.value():a;return p||(p=new kt),e(z,$,r,i,p)}}return!!T&&(p||(p=new kt),function(t,a,e,r,i,s){var o=2&i,n=ia(t),h=n.length;if(h!=ia(a).length&&!o)return!1;for(var d=h;d--;){var p=n[d];if(!(o?p in a:X.call(a,p)))return!1}var c=s.get(t);if(c&&s.get(a))return c==a;var l=!0;s.set(t,a),s.set(a,t);for(var m=o;++d<h;){var u=t[p=n[d]],y=a[p];if(r)var g=o?r(y,u,p,a,t,s):r(u,y,p,t,a,s);if(!(void 0===g?u===y||e(u,y,r,i,s):g)){l=!1;break}m||(m="constructor"==p)}if(l&&!m){var f=t.constructor,v=a.constructor;f==v||!("constructor"in t)||!("constructor"in a)||"function"==typeof f&&f instanceof f&&"function"==typeof v&&v instanceof v||(l=!1)}return s.delete(t),s.delete(a),l}(t,a,e,r,i,p))}(t,a,$t,e,r,i))}function Et(t){return Kt(t)?t:Ut(t)}function Ot(t,a,e,r,i,s){var o=2&i,n=t.length,h=a.length;if(n!=h&&!(o&&h>n))return!1;var d=s.get(t);if(d&&s.get(a))return d==a;var p=-1,c=!0,l=1&i?new It:void 0;for(s.set(t,a),s.set(a,t);++p<n;){var m=t[p],u=a[p];if(r)var y=o?r(u,m,p,a,t,s):r(m,u,p,t,a,s);if(void 0!==y){if(y)continue;c=!1;break}if(l){if(!B(a,(function(t,a){if(!l.has(a)&&(m===t||e(m,t,r,i,s)))return l.add(a)}))){c=!1;break}}else if(m!==u&&!e(m,u,r,i,s)){c=!1;break}}return s.delete(t),s.delete(a),c}function jt(t,a){var e,r,i=t.__data__;return("string"==(r=typeof(e=a))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?i["string"==typeof a?"string":"hash"]:i.map}function xt(t,a){var e=function(t,a){return null==t?void 0:t[a]}(t,a);return function(t){return!(!Yt(t)||(a=t,K&&K in a))&&(Xt(t)||L(t)?Y:q).test(Ht(t));var a}(e)?e:void 0}St.prototype.clear=function(){this.__data__=lt?lt(null):{}},St.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},St.prototype.get=function(t){var a=this.__data__;if(lt){var e=a[t];return e===r?void 0:e}return X.call(a,t)?a[t]:void 0},St.prototype.has=function(t){var a=this.__data__;return lt?void 0!==a[t]:X.call(a,t)},St.prototype.set=function(t,a){return this.__data__[t]=lt&&void 0===a?r:a,this},Pt.prototype.clear=function(){this.__data__=[]},Pt.prototype.delete=function(t){var a=this.__data__,e=qt(a,t);return!(e<0||(e==a.length-1?a.pop():it.call(a,e,1),0))},Pt.prototype.get=function(t){var a=this.__data__,e=qt(a,t);return e<0?void 0:a[e][1]},Pt.prototype.has=function(t){return qt(this.__data__,t)>-1},Pt.prototype.set=function(t,a){var e=this.__data__,r=qt(e,t);return r<0?e.push([t,a]):e[r][1]=a,this},wt.prototype.clear=function(){this.__data__={hash:new St,map:new(ht||Pt),string:new St}},wt.prototype.delete=function(t){return jt(this,t).delete(t)},wt.prototype.get=function(t){return jt(this,t).get(t)},wt.prototype.has=function(t){return jt(this,t).has(t)},wt.prototype.set=function(t,a){return jt(this,t).set(t,a),this},It.prototype.add=It.prototype.push=function(t){return this.__data__.set(t,r),this},It.prototype.has=function(t){return this.__data__.has(t)},kt.prototype.clear=function(){this.__data__=new Pt},kt.prototype.delete=function(t){return this.__data__.delete(t)},kt.prototype.get=function(t){return this.__data__.get(t)},kt.prototype.has=function(t){return this.__data__.has(t)},kt.prototype.set=function(t,a){var e=this.__data__;if(e instanceof Pt){var r=e.__data__;if(!ht||r.length<199)return r.push([t,a]),this;e=this.__data__=new wt(r)}return e.set(t,a),this};var Gt=st?W(st,Object):na,At=st?function(t){for(var a=[];t;)D(a,Gt(t)),t=et(t);return a}:na,Ct=function(t){return Z.call(t)};function Dt(t,a){return!!(a=null==a?i:a)&&("number"==typeof t||F.test(t))&&t>-1&&t%1==0&&t<a}function Bt(t,a){if(Kt(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!aa(t))||w.test(t)||!P.test(t)||null!=a&&t in Object(a)}function Lt(t){var a=t&&t.constructor;return t===("function"==typeof a&&a.prototype||J)}function Rt(t){return t==t&&!Yt(t)}function Wt(t,a){return function(e){return null!=e&&e[t]===a&&(void 0!==a||t in Object(e))}}(nt&&Ct(new nt(new ArrayBuffer(1)))!=S||ht&&Ct(new ht)!=c||dt&&Ct(dt.resolve())!=u||pt&&Ct(new pt)!=g||ct&&Ct(new ct)!=_)&&(Ct=function(t){var a=Z.call(t),e=a==m?t.constructor:void 0,r=e?Ht(e):void 0;if(r)switch(r){case mt:return S;case ut:return c;case yt:return u;case gt:return g;case ft:return _}return a});var Ut=Mt((function(t){var a;t=null==(a=t)?"":function(t){if("string"==typeof t)return t;if(aa(t))return bt?bt.call(t):"";var a=t+"";return"0"==a&&1/t==-1/0?"-0":a}(a);var e=[];return I.test(t)&&e.push(""),t.replace(k,(function(t,a,r,i){e.push(r?i.replace(T,"$1"):a||t)})),e}));function Nt(t){if("string"==typeof t||aa(t))return t;var a=t+"";return"0"==a&&1/t==-1/0?"-0":a}function Ht(t){if(null!=t){try{return Q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Mt(t,a){if("function"!=typeof t||a&&"function"!=typeof a)throw new TypeError("Expected a function");var e=function(){var r=arguments,i=a?a.apply(this,r):r[0],s=e.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return e.cache=s.set(i,o),o};return e.cache=new(Mt.Cache||wt),e}function Jt(t,a){return t===a||t!=t&&a!=a}function Vt(t){return function(t){return ta(t)&&Qt(t)}(t)&&X.call(t,"callee")&&(!rt.call(t,"callee")||Z.call(t)==s)}Mt.Cache=wt;var Kt=Array.isArray;function Qt(t){return null!=t&&Zt(t.length)&&!Xt(t)}function Xt(t){var a=Yt(t)?Z.call(t):"";return a==p||"[object GeneratorFunction]"==a}function Zt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function Yt(t){var a=typeof t;return!!t&&("object"==a||"function"==a)}function ta(t){return!!t&&"object"==typeof t}function aa(t){return"symbol"==typeof t||ta(t)&&Z.call(t)==v}var ea,ra=C?(ea=C,function(t){return ea(t)}):function(t){return ta(t)&&Zt(t.length)&&!!z[Z.call(t)]};function ia(t){return Qt(t)?Tt(t):function(t){if(!Lt(t))return ot(t);var a=[];for(var e in Object(t))X.call(t,e)&&"constructor"!=e&&a.push(e);return a}(t)}function sa(t){return Qt(t)?Tt(t,!0):function(t){if(!Yt(t))return function(t){var a=[];if(null!=t)for(var e in Object(t))a.push(e);return a}(t);var a=Lt(t),e=[];for(var r in t)("constructor"!=r||!a&&X.call(t,r))&&e.push(r);return e}(t)}function oa(t){return t}function na(){return[]}t.exports=function(t,a){return null==t?{}:function(t,a,e){for(var r=-1,i=a.length,s={};++r<i;){var o=a[r],n=t[o];e(n,o)&&(s[o]=n)}return s}(t,function(t){return function(t,a,e){var r=a(t);return Kt(t)?r:D(r,e(t))}(t,sa,At)}(t),"function"==typeof(e=a)?e:null==e?oa:"object"==typeof e?Kt(e)?function(t,a){return Bt(t)&&Rt(a)?Wt(Nt(t),a):function(e){var r=function(t,a){var e=null==t?void 0:Ft(t,a);return void 0===e?void 0:e}(e,t);return void 0===r&&r===a?function(t,a){return null!=t&&function(t,a,e){for(var r,i=-1,s=(a=Bt(a,t)?[a]:Et(a)).length;++i<s;){var o=Nt(a[i]);if(!(r=null!=t&&e(t,o)))break;t=t[o]}return r||!!(s=t?t.length:0)&&Zt(s)&&Dt(o,s)&&(Kt(t)||Vt(t))}(t,a,zt)}(e,t):$t(a,r,void 0,3)}}(e[0],e[1]):(i=function(t){for(var a=ia(t),e=a.length;e--;){var r=a[e],i=t[r];a[e]=[r,i,Rt(i)]}return a}(r=e),1==i.length&&i[0][2]?Wt(i[0][0],i[0][1]):function(t){return t===r||function(t,a,e,r){var i=e.length,s=i;if(null==t)return!s;for(t=Object(t);i--;){var o=e[i];if(o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++i<s;){var n=(o=e[i])[0],h=t[n],d=o[1];if(o[2]){if(void 0===h&&!(n in t))return!1}else{var p,c=new kt;if(!(void 0===p?$t(d,h,r,3,c):p))return!1}}return!0}(t,0,i)}):Bt(s=e)?(o=Nt(s),function(t){return null==t?void 0:t[o]}):function(t){return function(a){return Ft(a,t)}}(s));var e,r,i,s,o}},8859:(t,a,e)=>{var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=r&&i&&"function"==typeof i.get?i.get:null,o=r&&Map.prototype.forEach,n="function"==typeof Set&&Set.prototype,h=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,d=n&&h&&"function"==typeof h.get?h.get:null,p=n&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,m="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,u=Boolean.prototype.valueOf,y=Object.prototype.toString,g=Function.prototype.toString,f=String.prototype.match,v=String.prototype.slice,_=String.prototype.replace,b=String.prototype.toUpperCase,S=String.prototype.toLowerCase,P=RegExp.prototype.test,w=Array.prototype.concat,I=Array.prototype.join,k=Array.prototype.slice,T=Math.floor,q="function"==typeof BigInt?BigInt.prototype.valueOf:null,F=Object.getOwnPropertySymbols,z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,$="function"==typeof Symbol&&"object"==typeof Symbol.iterator,E="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,j=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function x(t,a){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||P.call(/e/,a))return a;var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-T(-t):T(t);if(r!==t){var i=String(r),s=v.call(a,i.length+1);return _.call(i,e,"$&_")+"."+_.call(_.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(a,e,"$&_")}var G=e(2634),A=G.custom,C=W(A)?A:null;function D(t,a,e){var r="double"===(e.quoteStyle||a)?'"':"'";return r+t+r}function B(t){return _.call(String(t),/"/g,""")}function L(t){return!("[object Array]"!==H(t)||E&&"object"==typeof t&&E in t)}function R(t){return!("[object RegExp]"!==H(t)||E&&"object"==typeof t&&E in t)}function W(t){if($)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!z)return!1;try{return z.call(t),!0}catch(t){}return!1}t.exports=function t(a,r,i,n){var h=r||{};if(N(h,"quoteStyle")&&"single"!==h.quoteStyle&&"double"!==h.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(N(h,"maxStringLength")&&("number"==typeof h.maxStringLength?h.maxStringLength<0&&h.maxStringLength!==1/0:null!==h.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!N(h,"customInspect")||h.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(N(h,"indent")&&null!==h.indent&&"\t"!==h.indent&&!(parseInt(h.indent,10)===h.indent&&h.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(N(h,"numericSeparator")&&"boolean"!=typeof h.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=h.numericSeparator;if(void 0===a)return"undefined";if(null===a)return"null";if("boolean"==typeof a)return a?"true":"false";if("string"==typeof a)return J(a,h);if("number"==typeof a){if(0===a)return 1/0/a>0?"0":"-0";var P=String(a);return b?x(a,P):P}if("bigint"==typeof a){var T=String(a)+"n";return b?x(a,T):T}var F=void 0===h.depth?5:h.depth;if(void 0===i&&(i=0),i>=F&&F>0&&"object"==typeof a)return L(a)?"[Array]":"[Object]";var A,U=function(t,a){var e;if("\t"===t.indent)e="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;e=I.call(Array(t.indent+1)," ")}return{base:e,prev:I.call(Array(a+1),e)}}(h,i);if(void 0===n)n=[];else if(M(n,a)>=0)return"[Circular]";function V(a,e,r){if(e&&(n=k.call(n)).push(e),r){var s={depth:h.depth};return N(h,"quoteStyle")&&(s.quoteStyle=h.quoteStyle),t(a,s,i+1,n)}return t(a,h,i+1,n)}if("function"==typeof a&&!R(a)){var tt=function(t){if(t.name)return t.name;var a=f.call(g.call(t),/^function\s*([\w$]+)/);return a?a[1]:null}(a),at=Y(a,V);return"[Function"+(tt?": "+tt:" (anonymous)")+"]"+(at.length>0?" { "+I.call(at,", ")+" }":"")}if(W(a)){var et=$?_.call(String(a),/^(Symbol\(.*\))_[^)]*$/,"$1"):z.call(a);return"object"!=typeof a||$?et:K(et)}if((A=a)&&"object"==typeof A&&("undefined"!=typeof HTMLElement&&A instanceof HTMLElement||"string"==typeof A.nodeName&&"function"==typeof A.getAttribute)){for(var rt="<"+S.call(String(a.nodeName)),it=a.attributes||[],st=0;st<it.length;st++)rt+=" "+it[st].name+"="+D(B(it[st].value),"double",h);return rt+=">",a.childNodes&&a.childNodes.length&&(rt+="..."),rt+"</"+S.call(String(a.nodeName))+">"}if(L(a)){if(0===a.length)return"[]";var ot=Y(a,V);return U&&!function(t){for(var a=0;a<t.length;a++)if(M(t[a],"\n")>=0)return!1;return!0}(ot)?"["+Z(ot,U)+"]":"[ "+I.call(ot,", ")+" ]"}if(function(t){return!("[object Error]"!==H(t)||E&&"object"==typeof t&&E in t)}(a)){var nt=Y(a,V);return"cause"in Error.prototype||!("cause"in a)||O.call(a,"cause")?0===nt.length?"["+String(a)+"]":"{ ["+String(a)+"] "+I.call(nt,", ")+" }":"{ ["+String(a)+"] "+I.call(w.call("[cause]: "+V(a.cause),nt),", ")+" }"}if("object"==typeof a&&y){if(C&&"function"==typeof a[C]&&G)return G(a,{depth:F-i});if("symbol"!==y&&"function"==typeof a.inspect)return a.inspect()}if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t);try{d.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(a)){var ht=[];return o&&o.call(a,(function(t,e){ht.push(V(e,a,!0)+" => "+V(t,a))})),X("Map",s.call(a),ht,U)}if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t);try{s.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(a)){var dt=[];return p&&p.call(a,(function(t){dt.push(V(t,a))})),X("Set",d.call(a),dt,U)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t,c);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(a))return Q("WeakMap");if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{c.call(t,c)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(a))return Q("WeakSet");if(function(t){if(!m||!t||"object"!=typeof t)return!1;try{return m.call(t),!0}catch(t){}return!1}(a))return Q("WeakRef");if(function(t){return!("[object Number]"!==H(t)||E&&"object"==typeof t&&E in t)}(a))return K(V(Number(a)));if(function(t){if(!t||"object"!=typeof t||!q)return!1;try{return q.call(t),!0}catch(t){}return!1}(a))return K(V(q.call(a)));if(function(t){return!("[object Boolean]"!==H(t)||E&&"object"==typeof t&&E in t)}(a))return K(u.call(a));if(function(t){return!("[object String]"!==H(t)||E&&"object"==typeof t&&E in t)}(a))return K(V(String(a)));if("undefined"!=typeof window&&a===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&a===globalThis||void 0!==e.g&&a===e.g)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==H(t)||E&&"object"==typeof t&&E in t)}(a)&&!R(a)){var pt=Y(a,V),ct=j?j(a)===Object.prototype:a instanceof Object||a.constructor===Object,lt=a instanceof Object?"":"null prototype",mt=!ct&&E&&Object(a)===a&&E in a?v.call(H(a),8,-1):lt?"Object":"",ut=(ct||"function"!=typeof a.constructor?"":a.constructor.name?a.constructor.name+" ":"")+(mt||lt?"["+I.call(w.call([],mt||[],lt||[]),": ")+"] ":"");return 0===pt.length?ut+"{}":U?ut+"{"+Z(pt,U)+"}":ut+"{ "+I.call(pt,", ")+" }"}return String(a)};var U=Object.prototype.hasOwnProperty||function(t){return t in this};function N(t,a){return U.call(t,a)}function H(t){return y.call(t)}function M(t,a){if(t.indexOf)return t.indexOf(a);for(var e=0,r=t.length;e<r;e++)if(t[e]===a)return e;return-1}function J(t,a){if(t.length>a.maxStringLength){var e=t.length-a.maxStringLength,r="... "+e+" more character"+(e>1?"s":"");return J(v.call(t,0,a.maxStringLength),a)+r}return D(_.call(_.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,V),"single",a)}function V(t){var a=t.charCodeAt(0),e={8:"b",9:"t",10:"n",12:"f",13:"r"}[a];return e?"\\"+e:"\\x"+(a<16?"0":"")+b.call(a.toString(16))}function K(t){return"Object("+t+")"}function Q(t){return t+" { ? }"}function X(t,a,e,r){return t+" ("+a+") {"+(r?Z(e,r):I.call(e,", "))+"}"}function Z(t,a){if(0===t.length)return"";var e="\n"+a.prev+a.base;return e+I.call(t,","+e)+"\n"+a.prev}function Y(t,a){var e=L(t),r=[];if(e){r.length=t.length;for(var i=0;i<t.length;i++)r[i]=N(t,i)?a(t[i],t):""}var s,o="function"==typeof F?F(t):[];if($){s={};for(var n=0;n<o.length;n++)s["$"+o[n]]=o[n]}for(var h in t)N(t,h)&&(e&&String(Number(h))===h&&h<t.length||$&&s["$"+h]instanceof Symbol||(P.call(/[^\w$]/,h)?r.push(a(h,t)+": "+a(t[h],t)):r.push(h+": "+a(t[h],t))));if("function"==typeof F)for(var d=0;d<o.length;d++)O.call(t,o[d])&&r.push("["+a(o[d])+"]: "+a(t[o[d]],t));return r}},3627:(t,a,e)=>{"use strict";var r="win32"===process.platform,i=e(537);function s(t,a){for(var e=[],r=0;r<t.length;r++){var i=t[r];i&&"."!==i&&(".."===i?e.length&&".."!==e[e.length-1]?e.pop():a&&e.push(".."):e.push(i))}return e}function o(t){for(var a=t.length-1,e=0;e<=a&&!t[e];e++);for(var r=a;r>=0&&!t[r];r--);return 0===e&&r===a?t:e>r?[]:t.slice(e,r+1)}var n=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,h=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,d={};function p(t){var a=n.exec(t),e=(a[1]||"")+(a[2]||""),r=a[3]||"",i=h.exec(r);return[e,i[1],i[2],i[3]]}function c(t){var a=n.exec(t),e=a[1]||"",r=!!e&&":"!==e[1];return{device:e,isUnc:r,isAbsolute:r||!!a[2],tail:a[3]}}function l(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}d.resolve=function(){for(var t="",a="",e=!1,r=arguments.length-1;r>=-1;r--){var o;if(r>=0?o=arguments[r]:t?(o=process.env["="+t])&&o.substr(0,3).toLowerCase()===t.toLowerCase()+"\\"||(o=t+"\\"):o=process.cwd(),!i.isString(o))throw new TypeError("Arguments to path.resolve must be strings");if(o){var n=c(o),h=n.device,d=n.isUnc,p=n.isAbsolute,m=n.tail;if((!h||!t||h.toLowerCase()===t.toLowerCase())&&(t||(t=h),e||(a=m+"\\"+a,e=p),t&&e))break}}return d&&(t=l(t)),t+(e?"\\":"")+(a=s(a.split(/[\\\/]+/),!e).join("\\"))||"."},d.normalize=function(t){var a=c(t),e=a.device,r=a.isUnc,i=a.isAbsolute,o=a.tail,n=/[\\\/]$/.test(o);return(o=s(o.split(/[\\\/]+/),!i).join("\\"))||i||(o="."),o&&n&&(o+="\\"),r&&(e=l(e)),e+(i?"\\":"")+o},d.isAbsolute=function(t){return c(t).isAbsolute},d.join=function(){for(var t=[],a=0;a<arguments.length;a++){var e=arguments[a];if(!i.isString(e))throw new TypeError("Arguments to path.join must be strings");e&&t.push(e)}var r=t.join("\\");return/^[\\\/]{2}[^\\\/]/.test(t[0])||(r=r.replace(/^[\\\/]{2,}/,"\\")),d.normalize(r)},d.relative=function(t,a){t=d.resolve(t),a=d.resolve(a);for(var e=t.toLowerCase(),r=a.toLowerCase(),i=o(a.split("\\")),s=o(e.split("\\")),n=o(r.split("\\")),h=Math.min(s.length,n.length),p=h,c=0;c<h;c++)if(s[c]!==n[c]){p=c;break}if(0==p)return a;var l=[];for(c=p;c<s.length;c++)l.push("..");return(l=l.concat(i.slice(p))).join("\\")},d._makeLong=function(t){if(!i.isString(t))return t;if(!t)return"";var a=d.resolve(t);return/^[a-zA-Z]\:\\/.test(a)?"\\\\?\\"+a:/^\\\\[^?.]/.test(a)?"\\\\?\\UNC\\"+a.substring(2):t},d.dirname=function(t){var a=p(t),e=a[0],r=a[1];return e||r?(r&&(r=r.substr(0,r.length-1)),e+r):"."},d.basename=function(t,a){var e=p(t)[2];return a&&e.substr(-1*a.length)===a&&(e=e.substr(0,e.length-a.length)),e},d.extname=function(t){return p(t)[3]},d.format=function(t){if(!i.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var a=t.root||"";if(!i.isString(a))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var e=t.dir,r=t.base||"";return e?e[e.length-1]===d.sep?e+r:e+d.sep+r:r},d.parse=function(t){if(!i.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var a=p(t);if(!a||4!==a.length)throw new TypeError("Invalid path '"+t+"'");return{root:a[0],dir:a[0]+a[1].slice(0,-1),base:a[2],ext:a[3],name:a[2].slice(0,a[2].length-a[3].length)}},d.sep="\\",d.delimiter=";";var m=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u={};function y(t){return m.exec(t).slice(1)}u.resolve=function(){for(var t="",a=!1,e=arguments.length-1;e>=-1&&!a;e--){var r=e>=0?arguments[e]:process.cwd();if(!i.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(t=r+"/"+t,a="/"===r[0])}return(a?"/":"")+(t=s(t.split("/"),!a).join("/"))||"."},u.normalize=function(t){var a=u.isAbsolute(t),e=t&&"/"===t[t.length-1];return(t=s(t.split("/"),!a).join("/"))||a||(t="."),t&&e&&(t+="/"),(a?"/":"")+t},u.isAbsolute=function(t){return"/"===t.charAt(0)},u.join=function(){for(var t="",a=0;a<arguments.length;a++){var e=arguments[a];if(!i.isString(e))throw new TypeError("Arguments to path.join must be strings");e&&(t+=t?"/"+e:e)}return u.normalize(t)},u.relative=function(t,a){t=u.resolve(t).substr(1),a=u.resolve(a).substr(1);for(var e=o(t.split("/")),r=o(a.split("/")),i=Math.min(e.length,r.length),s=i,n=0;n<i;n++)if(e[n]!==r[n]){s=n;break}var h=[];for(n=s;n<e.length;n++)h.push("..");return(h=h.concat(r.slice(s))).join("/")},u._makeLong=function(t){return t},u.dirname=function(t){var a=y(t),e=a[0],r=a[1];return e||r?(r&&(r=r.substr(0,r.length-1)),e+r):"."},u.basename=function(t,a){var e=y(t)[2];return a&&e.substr(-1*a.length)===a&&(e=e.substr(0,e.length-a.length)),e},u.extname=function(t){return y(t)[3]},u.format=function(t){if(!i.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var a=t.root||"";if(!i.isString(a))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);return(t.dir?t.dir+u.sep:"")+(t.base||"")},u.parse=function(t){if(!i.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var a=y(t);if(!a||4!==a.length)throw new TypeError("Invalid path '"+t+"'");return a[1]=a[1]||"",a[2]=a[2]||"",a[3]=a[3]||"",{root:a[0],dir:a[0]+a[1].slice(0,-1),base:a[2],ext:a[3],name:a[2].slice(0,a[2].length-a[3].length)}},u.sep="/",u.delimiter=":",t.exports=r?d:u,t.exports.posix=u,t.exports.win32=d},6946:(t,a,e)=>{"use strict";t.exports=e(4394)},4394:(t,a,e)=>{"use strict";var r=a;function i(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=e(3449),r.BufferWriter=e(818),r.Reader=e(6237),r.BufferReader=e(3158),r.util=e(3610),r.rpc=e(5047),r.roots=e(4529),r.configure=i,i()},6237:(t,a,e)=>{"use strict";t.exports=h;var r,i=e(3610),s=i.LongBits,o=i.utf8;function n(t,a){return RangeError("index out of range: "+t.pos+" + "+(a||1)+" > "+t.len)}function h(t){this.buf=t,this.pos=0,this.len=t.length}var d,p="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new h(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new h(t);throw Error("illegal buffer")},c=function(){return i.Buffer?function(t){return(h.create=function(t){return i.Buffer.isBuffer(t)?new r(t):p(t)})(t)}:p};function l(){var t=new s(0,0),a=0;if(!(this.len-this.pos>4)){for(;a<3;++a){if(this.pos>=this.len)throw n(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*a)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*a)>>>0,t}for(;a<4;++a)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*a)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(a=0,this.len-this.pos>4){for(;a<5;++a)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*a+3)>>>0,this.buf[this.pos++]<128)return t}else for(;a<5;++a){if(this.pos>=this.len)throw n(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*a+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function m(t,a){return(t[a-4]|t[a-3]<<8|t[a-2]<<16|t[a-1]<<24)>>>0}function u(){if(this.pos+8>this.len)throw n(this,8);return new s(m(this.buf,this.pos+=4),m(this.buf,this.pos+=4))}h.create=c(),h.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,h.prototype.uint32=(d=4294967295,function(){if(d=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return d;if(d=(d|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return d;if(d=(d|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return d;if(d=(d|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return d;if(d=(d|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return d;if((this.pos+=5)>this.len)throw this.pos=this.len,n(this,10);return d}),h.prototype.int32=function(){return 0|this.uint32()},h.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},h.prototype.bool=function(){return 0!==this.uint32()},h.prototype.fixed32=function(){if(this.pos+4>this.len)throw n(this,4);return m(this.buf,this.pos+=4)},h.prototype.sfixed32=function(){if(this.pos+4>this.len)throw n(this,4);return 0|m(this.buf,this.pos+=4)},h.prototype.float=function(){if(this.pos+4>this.len)throw n(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},h.prototype.double=function(){if(this.pos+8>this.len)throw n(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},h.prototype.bytes=function(){var t=this.uint32(),a=this.pos,e=this.pos+t;if(e>this.len)throw n(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(a,e);if(a===e){var r=i.Buffer;return r?r.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,a,e)},h.prototype.string=function(){var t=this.bytes();return o.read(t,0,t.length)},h.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw n(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw n(this)}while(128&this.buf[this.pos++]);return this},h.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},h._configure=function(t){r=t,h.create=c(),r._configure();var a=i.Long?"toLong":"toNumber";i.merge(h.prototype,{int64:function(){return l.call(this)[a](!1)},uint64:function(){return l.call(this)[a](!0)},sint64:function(){return l.call(this).zzDecode()[a](!1)},fixed64:function(){return u.call(this)[a](!0)},sfixed64:function(){return u.call(this)[a](!1)}})}},3158:(t,a,e)=>{"use strict";t.exports=s;var r=e(6237);(s.prototype=Object.create(r.prototype)).constructor=s;var i=e(3610);function s(t){r.call(this,t)}s._configure=function(){i.Buffer&&(s.prototype._slice=i.Buffer.prototype.slice)},s.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},s._configure()},4529:t=>{"use strict";t.exports={}},5047:(t,a,e)=>{"use strict";a.Service=e(7595)},7595:(t,a,e)=>{"use strict";t.exports=i;var r=e(3610);function i(t,a,e){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(a),this.responseDelimited=Boolean(e)}(i.prototype=Object.create(r.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function t(a,e,i,s,o){if(!s)throw TypeError("request must be specified");var n=this;if(!o)return r.asPromise(t,n,a,e,i,s);if(n.rpcImpl)try{return n.rpcImpl(a,e[n.requestDelimited?"encodeDelimited":"encode"](s).finish(),(function(t,e){if(t)return n.emit("error",t,a),o(t);if(null!==e){if(!(e instanceof i))try{e=i[n.responseDelimited?"decodeDelimited":"decode"](e)}catch(t){return n.emit("error",t,a),o(t)}return n.emit("data",e,a),o(null,e)}n.end(!0)}))}catch(t){return n.emit("error",t,a),void setTimeout((function(){o(t)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},i.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},2239:(t,a,e)=>{"use strict";t.exports=i;var r=e(3610);function i(t,a){this.lo=t>>>0,this.hi=a>>>0}var s=i.zero=new i(0,0);s.toNumber=function(){return 0},s.zzEncode=s.zzDecode=function(){return this},s.length=function(){return 1};var o=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(t){if(0===t)return s;var a=t<0;a&&(t=-t);var e=t>>>0,r=(t-e)/4294967296>>>0;return a&&(r=~r>>>0,e=~e>>>0,++e>4294967295&&(e=0,++r>4294967295&&(r=0))),new i(e,r)},i.from=function(t){if("number"==typeof t)return i.fromNumber(t);if(r.isString(t)){if(!r.Long)return i.fromNumber(parseInt(t,10));t=r.Long.fromString(t)}return t.low||t.high?new i(t.low>>>0,t.high>>>0):s},i.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var a=1+~this.lo>>>0,e=~this.hi>>>0;return a||(e=e+1>>>0),-(a+4294967296*e)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(t){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var n=String.prototype.charCodeAt;i.fromHash=function(t){return t===o?s:new i((n.call(t,0)|n.call(t,1)<<8|n.call(t,2)<<16|n.call(t,3)<<24)>>>0,(n.call(t,4)|n.call(t,5)<<8|n.call(t,6)<<16|n.call(t,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},i.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},i.prototype.length=function(){var t=this.lo,a=(this.lo>>>28|this.hi<<4)>>>0,e=this.hi>>>24;return 0===e?0===a?t<16384?t<128?1:2:t<2097152?3:4:a<16384?a<128?5:6:a<2097152?7:8:e<128?9:10}},3610:function(t,a,e){"use strict";var r=a;function i(t,a,e){for(var r=Object.keys(a),i=0;i<r.length;++i)void 0!==t[r[i]]&&e||(t[r[i]]=a[r[i]]);return t}function s(t){function a(t,e){if(!(this instanceof a))return new a(t,e);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),e&&i(this,e)}return a.prototype=Object.create(Error.prototype,{constructor:{value:a,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),a}r.asPromise=e(8045),r.base64=e(8839),r.EventEmitter=e(4358),r.float=e(9410),r.inquire=e(4153),r.utf8=e(3828),r.pool=e(9390),r.LongBits=e(2239),r.isNode=Boolean(void 0!==e.g&&e.g&&e.g.process&&e.g.process.versions&&e.g.process.versions.node),r.global=r.isNode&&e.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,r.emptyArray=Object.freeze?Object.freeze([]):[],r.emptyObject=Object.freeze?Object.freeze({}):{},r.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},r.isString=function(t){return"string"==typeof t||t instanceof String},r.isObject=function(t){return t&&"object"==typeof t},r.isset=r.isSet=function(t,a){var e=t[a];return!(null==e||!t.hasOwnProperty(a))&&("object"!=typeof e||(Array.isArray(e)?e.length:Object.keys(e).length)>0)},r.Buffer=function(){try{var t=r.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(t){return"number"==typeof t?r.Buffer?r._Buffer_allocUnsafe(t):new r.Array(t):r.Buffer?r._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(t){return t?r.LongBits.from(t).toHash():r.LongBits.zeroHash},r.longFromHash=function(t,a){var e=r.LongBits.fromHash(t);return r.Long?r.Long.fromBits(e.lo,e.hi,a):e.toNumber(Boolean(a))},r.merge=i,r.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},r.newError=s,r.ProtocolError=s("ProtocolError"),r.oneOfGetter=function(t){for(var a={},e=0;e<t.length;++e)a[t[e]]=1;return function(){for(var t=Object.keys(this),e=t.length-1;e>-1;--e)if(1===a[t[e]]&&void 0!==this[t[e]]&&null!==this[t[e]])return t[e]}},r.oneOfSetter=function(t){return function(a){for(var e=0;e<t.length;++e)t[e]!==a&&delete this[t[e]]}},r.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},r._configure=function(){var t=r.Buffer;t?(r._Buffer_from=t.from!==Uint8Array.from&&t.from||function(a,e){return new t(a,e)},r._Buffer_allocUnsafe=t.allocUnsafe||function(a){return new t(a)}):r._Buffer_from=r._Buffer_allocUnsafe=null}},3449:(t,a,e)=>{"use strict";t.exports=c;var r,i=e(3610),s=i.LongBits,o=i.base64,n=i.utf8;function h(t,a,e){this.fn=t,this.len=a,this.next=void 0,this.val=e}function d(){}function p(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function c(){this.len=0,this.head=new h(d,0,0),this.tail=this.head,this.states=null}var l=function(){return i.Buffer?function(){return(c.create=function(){return new r})()}:function(){return new c}};function m(t,a,e){a[e]=255&t}function u(t,a){this.len=t,this.next=void 0,this.val=a}function y(t,a,e){for(;t.hi;)a[e++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)a[e++]=127&t.lo|128,t.lo=t.lo>>>7;a[e++]=t.lo}function g(t,a,e){a[e]=255&t,a[e+1]=t>>>8&255,a[e+2]=t>>>16&255,a[e+3]=t>>>24}c.create=l(),c.alloc=function(t){return new i.Array(t)},i.Array!==Array&&(c.alloc=i.pool(c.alloc,i.Array.prototype.subarray)),c.prototype._push=function(t,a,e){return this.tail=this.tail.next=new h(t,a,e),this.len+=a,this},u.prototype=Object.create(h.prototype),u.prototype.fn=function(t,a,e){for(;t>127;)a[e++]=127&t|128,t>>>=7;a[e]=t},c.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new u((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},c.prototype.int32=function(t){return t<0?this._push(y,10,s.fromNumber(t)):this.uint32(t)},c.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},c.prototype.uint64=function(t){var a=s.from(t);return this._push(y,a.length(),a)},c.prototype.int64=c.prototype.uint64,c.prototype.sint64=function(t){var a=s.from(t).zzEncode();return this._push(y,a.length(),a)},c.prototype.bool=function(t){return this._push(m,1,t?1:0)},c.prototype.fixed32=function(t){return this._push(g,4,t>>>0)},c.prototype.sfixed32=c.prototype.fixed32,c.prototype.fixed64=function(t){var a=s.from(t);return this._push(g,4,a.lo)._push(g,4,a.hi)},c.prototype.sfixed64=c.prototype.fixed64,c.prototype.float=function(t){return this._push(i.float.writeFloatLE,4,t)},c.prototype.double=function(t){return this._push(i.float.writeDoubleLE,8,t)};var f=i.Array.prototype.set?function(t,a,e){a.set(t,e)}:function(t,a,e){for(var r=0;r<t.length;++r)a[e+r]=t[r]};c.prototype.bytes=function(t){var a=t.length>>>0;if(!a)return this._push(m,1,0);if(i.isString(t)){var e=c.alloc(a=o.length(t));o.decode(t,e,0),t=e}return this.uint32(a)._push(f,a,t)},c.prototype.string=function(t){var a=n.length(t);return a?this.uint32(a)._push(n.write,a,t):this._push(m,1,0)},c.prototype.fork=function(){return this.states=new p(this),this.head=this.tail=new h(d,0,0),this.len=0,this},c.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new h(d,0,0),this.len=0),this},c.prototype.ldelim=function(){var t=this.head,a=this.tail,e=this.len;return this.reset().uint32(e),e&&(this.tail.next=t.next,this.tail=a,this.len+=e),this},c.prototype.finish=function(){for(var t=this.head.next,a=this.constructor.alloc(this.len),e=0;t;)t.fn(t.val,a,e),e+=t.len,t=t.next;return a},c._configure=function(t){r=t,c.create=l(),r._configure()}},818:(t,a,e)=>{"use strict";t.exports=s;var r=e(3449);(s.prototype=Object.create(r.prototype)).constructor=s;var i=e(3610);function s(){r.call(this)}function o(t,a,e){t.length<40?i.utf8.write(t,a,e):a.utf8Write?a.utf8Write(t,e):a.write(t,e)}s._configure=function(){s.alloc=i._Buffer_allocUnsafe,s.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(t,a,e){a.set(t,e)}:function(t,a,e){if(t.copy)t.copy(a,e,0,t.length);else for(var r=0;r<t.length;)a[e++]=t[r++]}},s.prototype.bytes=function(t){i.isString(t)&&(t=i._Buffer_from(t,"base64"));var a=t.length>>>0;return this.uint32(a),a&&this._push(s.writeBytesBuffer,a,t),this},s.prototype.string=function(t){var a=i.Buffer.byteLength(t);return this.uint32(a),a&&this._push(o,a,t),this},s._configure()},4765:t=>{"use strict";var a=String.prototype.replace,e=/%20/g,r="RFC3986";t.exports={default:r,formatters:{RFC1738:function(t){return a.call(t,e,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:r}},5373:(t,a,e)=>{"use strict";var r=e(8636),i=e(2642),s=e(4765);t.exports={formats:s,parse:i,stringify:r}},2642:(t,a,e)=>{"use strict";var r=e(7720),i=Object.prototype.hasOwnProperty,s=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},n=function(t){return t.replace(/&#(\d+);/g,(function(t,a){return String.fromCharCode(parseInt(a,10))}))},h=function(t,a){return t&&"string"==typeof t&&a.comma&&t.indexOf(",")>-1?t.split(","):t},d=function(t,a,e,r){if(t){var s=e.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,n=e.depth>0&&/(\[[^[\]]*])/.exec(s),d=n?s.slice(0,n.index):s,p=[];if(d){if(!e.plainObjects&&i.call(Object.prototype,d)&&!e.allowPrototypes)return;p.push(d)}for(var c=0;e.depth>0&&null!==(n=o.exec(s))&&c<e.depth;){if(c+=1,!e.plainObjects&&i.call(Object.prototype,n[1].slice(1,-1))&&!e.allowPrototypes)return;p.push(n[1])}if(n){if(!0===e.strictDepth)throw new RangeError("Input depth exceeded depth option of "+e.depth+" and strictDepth is true");p.push("["+s.slice(n.index)+"]")}return function(t,a,e,r){for(var i=r?a:h(a,e),s=t.length-1;s>=0;--s){var o,n=t[s];if("[]"===n&&e.parseArrays)o=e.allowEmptyArrays&&(""===i||e.strictNullHandling&&null===i)?[]:[].concat(i);else{o=e.plainObjects?Object.create(null):{};var d="["===n.charAt(0)&&"]"===n.charAt(n.length-1)?n.slice(1,-1):n,p=e.decodeDotInKeys?d.replace(/%2E/g,"."):d,c=parseInt(p,10);e.parseArrays||""!==p?!isNaN(c)&&n!==p&&String(c)===p&&c>=0&&e.parseArrays&&c<=e.arrayLimit?(o=[])[c]=i:"__proto__"!==p&&(o[p]=i):o={0:i}}i=o}return i}(p,a,e,r)}};t.exports=function(t,a){var e=function(t){if(!t)return o;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=void 0===t.charset?o.charset:t.charset,e=void 0===t.duplicates?o.duplicates:t.duplicates;if("combine"!==e&&"first"!==e&&"last"!==e)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||o.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:o.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,charset:a,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:o.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:o.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:o.depth,duplicates:e,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:o.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:o.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling}}(a);if(""===t||null==t)return e.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,a){var e={__proto__:null},d=a.ignoreQueryPrefix?t.replace(/^\?/,""):t;d=d.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p,c=a.parameterLimit===1/0?void 0:a.parameterLimit,l=d.split(a.delimiter,c),m=-1,u=a.charset;if(a.charsetSentinel)for(p=0;p<l.length;++p)0===l[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[p]?u="utf-8":"utf8=%26%2310003%3B"===l[p]&&(u="iso-8859-1"),m=p,p=l.length);for(p=0;p<l.length;++p)if(p!==m){var y,g,f=l[p],v=f.indexOf("]="),_=-1===v?f.indexOf("="):v+1;-1===_?(y=a.decoder(f,o.decoder,u,"key"),g=a.strictNullHandling?null:""):(y=a.decoder(f.slice(0,_),o.decoder,u,"key"),g=r.maybeMap(h(f.slice(_+1),a),(function(t){return a.decoder(t,o.decoder,u,"value")}))),g&&a.interpretNumericEntities&&"iso-8859-1"===u&&(g=n(g)),f.indexOf("[]=")>-1&&(g=s(g)?[g]:g);var b=i.call(e,y);b&&"combine"===a.duplicates?e[y]=r.combine(e[y],g):b&&"last"!==a.duplicates||(e[y]=g)}return e}(t,e):t,c=e.plainObjects?Object.create(null):{},l=Object.keys(p),m=0;m<l.length;++m){var u=l[m],y=d(u,p[u],e,"string"==typeof t);c=r.merge(c,y,e)}return!0===e.allowSparse?c:r.compact(c)}},8636:(t,a,e)=>{"use strict";var r=e(920),i=e(7720),s=e(4765),o=Object.prototype.hasOwnProperty,n={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,a){return t+"["+a+"]"},repeat:function(t){return t}},h=Array.isArray,d=Array.prototype.push,p=function(t,a){d.apply(t,h(a)?a:[a])},c=Date.prototype.toISOString,l=s.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,format:l,formatter:s.formatters[l],indices:!1,serializeDate:function(t){return c.call(t)},skipNulls:!1,strictNullHandling:!1},u={},y=function t(a,e,s,o,n,d,c,l,y,g,f,v,_,b,S,P,w,I){for(var k,T=a,q=I,F=0,z=!1;void 0!==(q=q.get(u))&&!z;){var $=q.get(a);if(F+=1,void 0!==$){if($===F)throw new RangeError("Cyclic object value");z=!0}void 0===q.get(u)&&(F=0)}if("function"==typeof g?T=g(e,T):T instanceof Date?T=_(T):"comma"===s&&h(T)&&(T=i.maybeMap(T,(function(t){return t instanceof Date?_(t):t}))),null===T){if(d)return y&&!P?y(e,m.encoder,w,"key",b):e;T=""}if("string"==typeof(k=T)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||i.isBuffer(T))return y?[S(P?e:y(e,m.encoder,w,"key",b))+"="+S(y(T,m.encoder,w,"value",b))]:[S(e)+"="+S(String(T))];var E,O=[];if(void 0===T)return O;if("comma"===s&&h(T))P&&y&&(T=i.maybeMap(T,y)),E=[{value:T.length>0?T.join(",")||null:void 0}];else if(h(g))E=g;else{var j=Object.keys(T);E=f?j.sort(f):j}var x=l?e.replace(/\./g,"%2E"):e,G=o&&h(T)&&1===T.length?x+"[]":x;if(n&&h(T)&&0===T.length)return G+"[]";for(var A=0;A<E.length;++A){var C=E[A],D="object"==typeof C&&void 0!==C.value?C.value:T[C];if(!c||null!==D){var B=v&&l?C.replace(/\./g,"%2E"):C,L=h(T)?"function"==typeof s?s(G,B):G:G+(v?"."+B:"["+B+"]");I.set(a,F);var R=r();R.set(u,I),p(O,t(D,L,s,o,n,d,c,l,"comma"===s&&P&&h(T)?null:y,g,f,v,_,b,S,P,w,R))}}return O};t.exports=function(t,a){var e,i=t,d=function(t){if(!t)return m;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var a=t.charset||m.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=s.default;if(void 0!==t.format){if(!o.call(s.formatters,t.format))throw new TypeError("Unknown format option provided.");e=t.format}var r,i=s.formatters[e],d=m.filter;if(("function"==typeof t.filter||h(t.filter))&&(d=t.filter),r=t.arrayFormat in n?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":m.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=void 0===t.allowDots?!0===t.encodeDotInKeys||m.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:m.addQueryPrefix,allowDots:p,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:r,charset:a,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:m.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:void 0===t.delimiter?m.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:m.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:m.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:m.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:m.encodeValuesOnly,filter:d,format:e,formatter:i,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:m.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:m.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:m.strictNullHandling}}(a);"function"==typeof d.filter?i=(0,d.filter)("",i):h(d.filter)&&(e=d.filter);var c=[];if("object"!=typeof i||null===i)return"";var l=n[d.arrayFormat],u="comma"===l&&d.commaRoundTrip;e||(e=Object.keys(i)),d.sort&&e.sort(d.sort);for(var g=r(),f=0;f<e.length;++f){var v=e[f];d.skipNulls&&null===i[v]||p(c,y(i[v],v,l,u,d.allowEmptyArrays,d.strictNullHandling,d.skipNulls,d.encodeDotInKeys,d.encode?d.encoder:null,d.filter,d.sort,d.allowDots,d.serializeDate,d.format,d.formatter,d.encodeValuesOnly,d.charset,g))}var _=c.join(d.delimiter),b=!0===d.addQueryPrefix?"?":"";return d.charsetSentinel&&("iso-8859-1"===d.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),_.length>0?b+_:""}},7720:(t,a,e)=>{"use strict";var r=e(4765),i=Object.prototype.hasOwnProperty,s=Array.isArray,o=function(){for(var t=[],a=0;a<256;++a)t.push("%"+((a<16?"0":"")+a.toString(16)).toUpperCase());return t}(),n=function(t,a){for(var e=a&&a.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(e[r]=t[r]);return e},h=1024;t.exports={arrayToObject:n,assign:function(t,a){return Object.keys(a).reduce((function(t,e){return t[e]=a[e],t}),t)},combine:function(t,a){return[].concat(t,a)},compact:function(t){for(var a=[{obj:{o:t},prop:"o"}],e=[],r=0;r<a.length;++r)for(var i=a[r],o=i.obj[i.prop],n=Object.keys(o),h=0;h<n.length;++h){var d=n[h],p=o[d];"object"==typeof p&&null!==p&&-1===e.indexOf(p)&&(a.push({obj:o,prop:d}),e.push(p))}return function(t){for(;t.length>1;){var a=t.pop(),e=a.obj[a.prop];if(s(e)){for(var r=[],i=0;i<e.length;++i)void 0!==e[i]&&r.push(e[i]);a.obj[a.prop]=r}}}(a),t},decode:function(t,a,e){var r=t.replace(/\+/g," ");if("iso-8859-1"===e)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,a,e,i,s){if(0===t.length)return t;var n=t;if("symbol"==typeof t?n=Symbol.prototype.toString.call(t):"string"!=typeof t&&(n=String(t)),"iso-8859-1"===e)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var d="",p=0;p<n.length;p+=h){for(var c=n.length>=h?n.slice(p,p+h):n,l=[],m=0;m<c.length;++m){var u=c.charCodeAt(m);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||s===r.RFC1738&&(40===u||41===u)?l[l.length]=c.charAt(m):u<128?l[l.length]=o[u]:u<2048?l[l.length]=o[192|u>>6]+o[128|63&u]:u<55296||u>=57344?l[l.length]=o[224|u>>12]+o[128|u>>6&63]+o[128|63&u]:(m+=1,u=65536+((1023&u)<<10|1023&c.charCodeAt(m)),l[l.length]=o[240|u>>18]+o[128|u>>12&63]+o[128|u>>6&63]+o[128|63&u])}d+=l.join("")}return d},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,a){if(s(t)){for(var e=[],r=0;r<t.length;r+=1)e.push(a(t[r]));return e}return a(t)},merge:function t(a,e,r){if(!e)return a;if("object"!=typeof e){if(s(a))a.push(e);else{if(!a||"object"!=typeof a)return[a,e];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,e))&&(a[e]=!0)}return a}if(!a||"object"!=typeof a)return[a].concat(e);var o=a;return s(a)&&!s(e)&&(o=n(a,r)),s(a)&&s(e)?(e.forEach((function(e,s){if(i.call(a,s)){var o=a[s];o&&"object"==typeof o&&e&&"object"==typeof e?a[s]=t(o,e,r):a.push(e)}else a[s]=e})),a):Object.keys(e).reduce((function(a,s){var o=e[s];return i.call(a,s)?a[s]=t(a[s],o,r):a[s]=o,a}),o)}}},6897:(t,a,e)=>{"use strict";var r=e(453),i=e(41),s=e(592)(),o=e(5795),n=e(9675),h=r("%Math.floor%");t.exports=function(t,a){if("function"!=typeof t)throw new n("`fn` is not a function");if("number"!=typeof a||a<0||a>4294967295||h(a)!==a)throw new n("`length` must be a positive 32-bit integer");var e=arguments.length>2&&!!arguments[2],r=!0,d=!0;if("length"in t&&o){var p=o(t,"length");p&&!p.configurable&&(r=!1),p&&!p.writable&&(d=!1)}return(r||d||!e)&&(s?i(t,"length",a,!0,!0):i(t,"length",a)),t}},920:(t,a,e)=>{"use strict";var r=e(453),i=e(8075),s=e(8859),o=e(9675),n=r("%WeakMap%",!0),h=r("%Map%",!0),d=i("WeakMap.prototype.get",!0),p=i("WeakMap.prototype.set",!0),c=i("WeakMap.prototype.has",!0),l=i("Map.prototype.get",!0),m=i("Map.prototype.set",!0),u=i("Map.prototype.has",!0),y=function(t,a){for(var e,r=t;null!==(e=r.next);r=e)if(e.key===a)return r.next=e.next,e.next=t.next,t.next=e,e};t.exports=function(){var t,a,e,r={assert:function(t){if(!r.has(t))throw new o("Side channel does not contain "+s(t))},get:function(r){if(n&&r&&("object"==typeof r||"function"==typeof r)){if(t)return d(t,r)}else if(h){if(a)return l(a,r)}else if(e)return function(t,a){var e=y(t,a);return e&&e.value}(e,r)},has:function(r){if(n&&r&&("object"==typeof r||"function"==typeof r)){if(t)return c(t,r)}else if(h){if(a)return u(a,r)}else if(e)return function(t,a){return!!y(t,a)}(e,r);return!1},set:function(r,i){n&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new n),p(t,r,i)):h?(a||(a=new h),m(a,r,i)):(e||(e={key:{},next:null}),function(t,a,e){var r=y(t,a);r?r.value=e:t.next={key:a,next:t.next,value:e}}(e,r,i))}};return r}},6622:t=>{"function"==typeof Object.create?t.exports=function(t,a){t.super_=a,t.prototype=Object.create(a.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,a){t.super_=a;var e=function(){};e.prototype=a.prototype,t.prototype=new e,t.prototype.constructor=t}},1135:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},537:(t,a,e)=>{var r=/%[sdj%]/g;a.format=function(t){if(!g(t)){for(var a=[],e=0;e<arguments.length;e++)a.push(o(arguments[e]));return a.join(" ")}e=1;for(var i=arguments,s=i.length,n=String(t).replace(r,(function(t){if("%%"===t)return"%";if(e>=s)return t;switch(t){case"%s":return String(i[e++]);case"%d":return Number(i[e++]);case"%j":try{return JSON.stringify(i[e++])}catch(t){return"[Circular]"}default:return t}})),h=i[e];e<s;h=i[++e])u(h)||!_(h)?n+=" "+h:n+=" "+o(h);return n},a.deprecate=function(t,r){if(f(e.g.process))return function(){return a.deprecate(t,r).apply(this,arguments)};if(!0===process.noDeprecation)return t;var i=!1;return function(){if(!i){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),i=!0}return t.apply(this,arguments)}};var i,s={};function o(t,e){var r={seen:[],stylize:h};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(e)?r.showHidden=e:e&&a._extend(r,e),f(r.showHidden)&&(r.showHidden=!1),f(r.depth)&&(r.depth=2),f(r.colors)&&(r.colors=!1),f(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=n),d(r,t,r.depth)}function n(t,a){var e=o.styles[a];return e?"["+o.colors[e][0]+"m"+t+"["+o.colors[e][1]+"m":t}function h(t,a){return t}function d(t,e,r){if(t.customInspect&&e&&P(e.inspect)&&e.inspect!==a.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(r,t);return g(i)||(i=d(t,i,r)),i}var s=function(t,a){if(f(a))return t.stylize("undefined","undefined");if(g(a)){var e="'"+JSON.stringify(a).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(e,"string")}return y(a)?t.stylize(""+a,"number"):m(a)?t.stylize(""+a,"boolean"):u(a)?t.stylize("null","null"):void 0}(t,e);if(s)return s;var o=Object.keys(e),n=function(t){var a={};return t.forEach((function(t,e){a[t]=!0})),a}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),S(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(e);if(0===o.length){if(P(e)){var h=e.name?": "+e.name:"";return t.stylize("[Function"+h+"]","special")}if(v(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(b(e))return t.stylize(Date.prototype.toString.call(e),"date");if(S(e))return p(e)}var _,w="",I=!1,k=["{","}"];return l(e)&&(I=!0,k=["[","]"]),P(e)&&(w=" [Function"+(e.name?": "+e.name:"")+"]"),v(e)&&(w=" "+RegExp.prototype.toString.call(e)),b(e)&&(w=" "+Date.prototype.toUTCString.call(e)),S(e)&&(w=" "+p(e)),0!==o.length||I&&0!=e.length?r<0?v(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),_=I?function(t,a,e,r,i){for(var s=[],o=0,n=a.length;o<n;++o)T(a,String(o))?s.push(c(t,a,e,r,String(o),!0)):s.push("");return i.forEach((function(i){i.match(/^\d+$/)||s.push(c(t,a,e,r,i,!0))})),s}(t,e,r,n,o):o.map((function(a){return c(t,e,r,n,a,I)})),t.seen.pop(),function(t,a,e){return t.reduce((function(t,a){return a.indexOf("\n"),t+a.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?e[0]+(""===a?"":a+"\n ")+" "+t.join(",\n ")+" "+e[1]:e[0]+a+" "+t.join(", ")+" "+e[1]}(_,w,k)):k[0]+w+k[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function c(t,a,e,r,i,s){var o,n,h;if((h=Object.getOwnPropertyDescriptor(a,i)||{value:a[i]}).get?n=h.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):h.set&&(n=t.stylize("[Setter]","special")),T(r,i)||(o="["+i+"]"),n||(t.seen.indexOf(h.value)<0?(n=u(e)?d(t,h.value,null):d(t,h.value,e-1)).indexOf("\n")>-1&&(n=s?n.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+n.split("\n").map((function(t){return" "+t})).join("\n")):n=t.stylize("[Circular]","special")),f(o)){if(s&&i.match(/^\d+$/))return n;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+n}function l(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function u(t){return null===t}function y(t){return"number"==typeof t}function g(t){return"string"==typeof t}function f(t){return void 0===t}function v(t){return _(t)&&"[object RegExp]"===w(t)}function _(t){return"object"==typeof t&&null!==t}function b(t){return _(t)&&"[object Date]"===w(t)}function S(t){return _(t)&&("[object Error]"===w(t)||t instanceof Error)}function P(t){return"function"==typeof t}function w(t){return Object.prototype.toString.call(t)}function I(t){return t<10?"0"+t.toString(10):t.toString(10)}a.debuglog=function(t){if(f(i)&&(i=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!s[t])if(new RegExp("\\b"+t+"\\b","i").test(i)){var e=process.pid;s[t]=function(){var r=a.format.apply(a,arguments);console.error("%s %d: %s",t,e,r)}}else s[t]=function(){};return s[t]},a.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},a.isArray=l,a.isBoolean=m,a.isNull=u,a.isNullOrUndefined=function(t){return null==t},a.isNumber=y,a.isString=g,a.isSymbol=function(t){return"symbol"==typeof t},a.isUndefined=f,a.isRegExp=v,a.isObject=_,a.isDate=b,a.isError=S,a.isFunction=P,a.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},a.isBuffer=e(1135);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(t,a){return Object.prototype.hasOwnProperty.call(t,a)}a.log=function(){var t,e;console.log("%s - %s",(e=[I((t=new Date).getHours()),I(t.getMinutes()),I(t.getSeconds())].join(":"),[t.getDate(),k[t.getMonth()],e].join(" ")),a.format.apply(a,arguments))},a.inherits=e(6622),a._extend=function(t,a){if(!a||!_(a))return t;for(var e=Object.keys(a),r=e.length;r--;)t[e[r]]=a[e[r]];return t}},1591:t=>{"use strict";t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},1122:()=>{},8848:()=>{},4816:()=>{},2634:()=>{},1603:()=>{},6425:(t,a,e)=>{"use strict";function r(t,a){return function(){return t.apply(a,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:s}=Object,o=(n=Object.create(null),t=>{const a=i.call(t);return n[a]||(n[a]=a.slice(8,-1).toLowerCase())});var n;const h=t=>(t=t.toLowerCase(),a=>o(a)===t),d=t=>a=>typeof a===t,{isArray:p}=Array,c=d("undefined"),l=h("ArrayBuffer"),m=d("string"),u=d("function"),y=d("number"),g=t=>null!==t&&"object"==typeof t,f=t=>{if("object"!==o(t))return!1;const a=s(t);return!(null!==a&&a!==Object.prototype&&null!==Object.getPrototypeOf(a)||Symbol.toStringTag in t||Symbol.iterator in t)},v=h("Date"),_=h("File"),b=h("Blob"),S=h("FileList"),P=h("URLSearchParams"),[w,I,k,T]=["ReadableStream","Request","Response","Headers"].map(h);function q(t,a,{allOwnKeys:e=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),p(t))for(r=0,i=t.length;r<i;r++)a.call(null,t[r],r,t);else{const i=e?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let o;for(r=0;r<s;r++)o=i[r],a.call(null,t[o],o,t)}}function F(t,a){a=a.toLowerCase();const e=Object.keys(t);let r,i=e.length;for(;i-- >0;)if(r=e[i],a===r.toLowerCase())return r;return null}const z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e.g,$=t=>!c(t)&&t!==z,E=(O="undefined"!=typeof Uint8Array&&s(Uint8Array),t=>O&&t instanceof O);var O;const j=h("HTMLFormElement"),x=(({hasOwnProperty:t})=>(a,e)=>t.call(a,e))(Object.prototype),G=h("RegExp"),A=(t,a)=>{const e=Object.getOwnPropertyDescriptors(t),r={};q(e,((e,i)=>{let s;!1!==(s=a(e,i,t))&&(r[i]=s||e)})),Object.defineProperties(t,r)},C="abcdefghijklmnopqrstuvwxyz",D="0123456789",B={DIGIT:D,ALPHA:C,ALPHA_DIGIT:C+C.toUpperCase()+D},L=h("AsyncFunction"),R=(W="function"==typeof setImmediate,U=u(z.postMessage),W?setImmediate:U?(N=`axios@${Math.random()}`,H=[],z.addEventListener("message",(({source:t,data:a})=>{t===z&&a===N&&H.length&&H.shift()()}),!1),t=>{H.push(t),z.postMessage(N,"*")}):t=>setTimeout(t));var W,U,N,H;const M="undefined"!=typeof queueMicrotask?queueMicrotask.bind(z):"undefined"!=typeof process&&process.nextTick||R;var J={isArray:p,isArrayBuffer:l,isBuffer:function(t){return null!==t&&!c(t)&&null!==t.constructor&&!c(t.constructor)&&u(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let a;return t&&("function"==typeof FormData&&t instanceof FormData||u(t.append)&&("formdata"===(a=o(t))||"object"===a&&u(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let a;return a="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&l(t.buffer),a},isString:m,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:g,isPlainObject:f,isReadableStream:w,isRequest:I,isResponse:k,isHeaders:T,isUndefined:c,isDate:v,isFile:_,isBlob:b,isRegExp:G,isFunction:u,isStream:t=>g(t)&&u(t.pipe),isURLSearchParams:P,isTypedArray:E,isFileList:S,forEach:q,merge:function t(){const{caseless:a}=$(this)&&this||{},e={},r=(r,i)=>{const s=a&&F(e,i)||i;f(e[s])&&f(r)?e[s]=t(e[s],r):f(r)?e[s]=t({},r):p(r)?e[s]=r.slice():e[s]=r};for(let t=0,a=arguments.length;t<a;t++)arguments[t]&&q(arguments[t],r);return e},extend:(t,a,e,{allOwnKeys:i}={})=>(q(a,((a,i)=>{e&&u(a)?t[i]=r(a,e):t[i]=a}),{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,a,e,r)=>{t.prototype=Object.create(a.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:a.prototype}),e&&Object.assign(t.prototype,e)},toFlatObject:(t,a,e,r)=>{let i,o,n;const h={};if(a=a||{},null==t)return a;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)n=i[o],r&&!r(n,t,a)||h[n]||(a[n]=t[n],h[n]=!0);t=!1!==e&&s(t)}while(t&&(!e||e(t,a))&&t!==Object.prototype);return a},kindOf:o,kindOfTest:h,endsWith:(t,a,e)=>{t=String(t),(void 0===e||e>t.length)&&(e=t.length),e-=a.length;const r=t.indexOf(a,e);return-1!==r&&r===e},toArray:t=>{if(!t)return null;if(p(t))return t;let a=t.length;if(!y(a))return null;const e=new Array(a);for(;a-- >0;)e[a]=t[a];return e},forEachEntry:(t,a)=>{const e=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=e.next())&&!r.done;){const e=r.value;a.call(t,e[0],e[1])}},matchAll:(t,a)=>{let e;const r=[];for(;null!==(e=t.exec(a));)r.push(e);return r},isHTMLForm:j,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:A,freezeMethods:t=>{A(t,((a,e)=>{if(u(t)&&-1!==["arguments","caller","callee"].indexOf(e))return!1;const r=t[e];u(r)&&(a.enumerable=!1,"writable"in a?a.writable=!1:a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")}))}))},toObjectSet:(t,a)=>{const e={},r=t=>{t.forEach((t=>{e[t]=!0}))};return p(t)?r(t):r(String(t).split(a)),e},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,a,e){return a.toUpperCase()+e})),noop:()=>{},toFiniteNumber:(t,a)=>null!=t&&Number.isFinite(t=+t)?t:a,findKey:F,global:z,isContextDefined:$,ALPHABET:B,generateString:(t=16,a=B.ALPHA_DIGIT)=>{let e="";const{length:r}=a;for(;t--;)e+=a[Math.random()*r|0];return e},isSpecCompliantForm:function(t){return!!(t&&u(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const a=new Array(10),e=(t,r)=>{if(g(t)){if(a.indexOf(t)>=0)return;if(!("toJSON"in t)){a[r]=t;const i=p(t)?[]:{};return q(t,((t,a)=>{const s=e(t,r+1);!c(s)&&(i[a]=s)})),a[r]=void 0,i}}return t};return e(t,0)},isAsyncFn:L,isThenable:t=>t&&(g(t)||u(t))&&u(t.then)&&u(t.catch),setImmediate:R,asap:M};function V(t,a,e,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",a&&(this.code=a),e&&(this.config=e),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}J.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const K=V.prototype,Q={};function X(t){return J.isPlainObject(t)||J.isArray(t)}function Z(t){return J.endsWith(t,"[]")?t.slice(0,-2):t}function Y(t,a,e){return t?t.concat(a).map((function(t,a){return t=Z(t),!e&&a?"["+t+"]":t})).join(e?".":""):a}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{Q[t]={value:t}})),Object.defineProperties(V,Q),Object.defineProperty(K,"isAxiosError",{value:!0}),V.from=(t,a,e,r,i,s)=>{const o=Object.create(K);return J.toFlatObject(t,o,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),V.call(o,t.message,a,e,r,i),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};const tt=J.toFlatObject(J,{},null,(function(t){return/^is[A-Z]/.test(t)}));function at(t,a,e){if(!J.isObject(t))throw new TypeError("target must be an object");a=a||new FormData;const r=(e=J.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,a){return!J.isUndefined(a[t])}))).metaTokens,i=e.visitor||d,s=e.dots,o=e.indexes,n=(e.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(a);if(!J.isFunction(i))throw new TypeError("visitor must be a function");function h(t){if(null===t)return"";if(J.isDate(t))return t.toISOString();if(!n&&J.isBlob(t))throw new V("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(t)||J.isTypedArray(t)?n&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function d(t,e,i){let n=t;if(t&&!i&&"object"==typeof t)if(J.endsWith(e,"{}"))e=r?e:e.slice(0,-2),t=JSON.stringify(t);else if(J.isArray(t)&&function(t){return J.isArray(t)&&!t.some(X)}(t)||(J.isFileList(t)||J.endsWith(e,"[]"))&&(n=J.toArray(t)))return e=Z(e),n.forEach((function(t,r){!J.isUndefined(t)&&null!==t&&a.append(!0===o?Y([e],r,s):null===o?e:e+"[]",h(t))})),!1;return!!X(t)||(a.append(Y(i,e,s),h(t)),!1)}const p=[],c=Object.assign(tt,{defaultVisitor:d,convertValue:h,isVisitable:X});if(!J.isObject(t))throw new TypeError("data must be an object");return function t(e,r){if(!J.isUndefined(e)){if(-1!==p.indexOf(e))throw Error("Circular reference detected in "+r.join("."));p.push(e),J.forEach(e,(function(e,s){!0===(!(J.isUndefined(e)||null===e)&&i.call(a,e,J.isString(s)?s.trim():s,r,c))&&t(e,r?r.concat(s):[s])})),p.pop()}}(t),a}function et(t){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return a[t]}))}function rt(t,a){this._pairs=[],t&&at(t,this,a)}const it=rt.prototype;function st(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ot(t,a,e){if(!a)return t;const r=e&&e.encode||st,i=e&&e.serialize;let s;if(s=i?i(a,e):J.isURLSearchParams(a)?a.toString():new rt(a,e).toString(r),s){const a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}it.append=function(t,a){this._pairs.push([t,a])},it.toString=function(t){const a=t?function(a){return t.call(this,a,et)}:et;return this._pairs.map((function(t){return a(t[0])+"="+a(t[1])}),"").join("&")};var nt=class{constructor(){this.handlers=[]}use(t,a,e){return this.handlers.push({fulfilled:t,rejected:a,synchronous:!!e&&e.synchronous,runWhen:e?e.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,(function(a){null!==a&&t(a)}))}},ht={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:rt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const pt="undefined"!=typeof window&&"undefined"!=typeof document,ct="object"==typeof navigator&&navigator||void 0,lt=pt&&(!ct||["ReactNative","NativeScript","NS"].indexOf(ct.product)<0),mt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ut=pt&&window.location.href||"http://localhost";var yt={...Object.freeze({__proto__:null,hasBrowserEnv:pt,hasStandardBrowserWebWorkerEnv:mt,hasStandardBrowserEnv:lt,navigator:ct,origin:ut}),...dt};function gt(t){function a(t,e,r,i){let s=t[i++];if("__proto__"===s)return!0;const o=Number.isFinite(+s),n=i>=t.length;return s=!s&&J.isArray(r)?r.length:s,n?(J.hasOwnProp(r,s)?r[s]=[r[s],e]:r[s]=e,!o):(r[s]&&J.isObject(r[s])||(r[s]=[]),a(t,e,r[s],i)&&J.isArray(r[s])&&(r[s]=function(t){const a={},e=Object.keys(t);let r;const i=e.length;let s;for(r=0;r<i;r++)s=e[r],a[s]=t[s];return a}(r[s])),!o)}if(J.isFormData(t)&&J.isFunction(t.entries)){const e={};return J.forEachEntry(t,((t,r)=>{a(function(t){return J.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,e,0)})),e}return null}const ft={transitional:ht,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const e=a.getContentType()||"",r=e.indexOf("application/json")>-1,i=J.isObject(t);if(i&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return r?JSON.stringify(gt(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(e.indexOf("application/x-www-form-urlencoded")>-1)return function(t,a){return at(t,new yt.classes.URLSearchParams,Object.assign({visitor:function(t,a,e,r){return yt.isNode&&J.isBuffer(t)?(this.append(a,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}(t,this.formSerializer).toString();if((s=J.isFileList(t))||e.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return at(s?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||r?(a.setContentType("application/json",!1),function(t){if(J.isString(t))try{return(0,JSON.parse)(t),J.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const a=this.transitional||ft.transitional,e=a&&a.forcedJSONParsing,r="json"===this.responseType;if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(e&&!this.responseType||r)){const e=!(a&&a.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(e){if("SyntaxError"===t.name)throw V.from(t,V.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],(t=>{ft.headers[t]={}}));var vt=ft;const _t=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bt=Symbol("internals");function St(t){return t&&String(t).trim().toLowerCase()}function Pt(t){return!1===t||null==t?t:J.isArray(t)?t.map(Pt):String(t)}function wt(t,a,e,r,i){return J.isFunction(r)?r.call(this,a,e):(i&&(a=e),J.isString(a)?J.isString(r)?-1!==a.indexOf(r):J.isRegExp(r)?r.test(a):void 0:void 0)}class It{constructor(t){t&&this.set(t)}set(t,a,e){const r=this;function i(t,a,e){const i=St(a);if(!i)throw new Error("header name must be a non-empty string");const s=J.findKey(r,i);(!s||void 0===r[s]||!0===e||void 0===e&&!1!==r[s])&&(r[s||a]=Pt(t))}const s=(t,a)=>J.forEach(t,((t,e)=>i(t,e,a)));if(J.isPlainObject(t)||t instanceof this.constructor)s(t,a);else if(J.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))s((t=>{const a={};let e,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),e=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!e||a[e]&&_t[e]||("set-cookie"===e?a[e]?a[e].push(r):a[e]=[r]:a[e]=a[e]?a[e]+", "+r:r)})),a})(t),a);else if(J.isHeaders(t))for(const[a,r]of t.entries())i(r,a,e);else null!=t&&i(a,t,e);return this}get(t,a){if(t=St(t)){const e=J.findKey(this,t);if(e){const t=this[e];if(!a)return t;if(!0===a)return function(t){const a=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(t);)a[r[1]]=r[2];return a}(t);if(J.isFunction(a))return a.call(this,t,e);if(J.isRegExp(a))return a.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=St(t)){const e=J.findKey(this,t);return!(!e||void 0===this[e]||a&&!wt(0,this[e],e,a))}return!1}delete(t,a){const e=this;let r=!1;function i(t){if(t=St(t)){const i=J.findKey(e,t);!i||a&&!wt(0,e[i],i,a)||(delete e[i],r=!0)}}return J.isArray(t)?t.forEach(i):i(t),r}clear(t){const a=Object.keys(this);let e=a.length,r=!1;for(;e--;){const i=a[e];t&&!wt(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const a=this,e={};return J.forEach(this,((r,i)=>{const s=J.findKey(e,i);if(s)return a[s]=Pt(r),void delete a[i];const o=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,a,e)=>a.toUpperCase()+e))}(i):String(i).trim();o!==i&&delete a[i],a[o]=Pt(r),e[o]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return J.forEach(this,((e,r)=>{null!=e&&!1!==e&&(a[r]=t&&J.isArray(e)?e.join(", "):e)})),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,a])=>t+": "+a)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const e=new this(t);return a.forEach((t=>e.set(t))),e}static accessor(t){const a=(this[bt]=this[bt]={accessors:{}}).accessors,e=this.prototype;function r(t){const r=St(t);a[r]||(function(t,a){const e=J.toCamelCase(" "+a);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+e,{value:function(t,e,i){return this[r].call(this,a,t,e,i)},configurable:!0})}))}(e,t),a[r]=!0)}return J.isArray(t)?t.forEach(r):r(t),this}}It.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(It.prototype,(({value:t},a)=>{let e=a[0].toUpperCase()+a.slice(1);return{get:()=>t,set(t){this[e]=t}}})),J.freezeMethods(It);var kt=It;function Tt(t,a){const e=this||vt,r=a||e,i=kt.from(r.headers);let s=r.data;return J.forEach(t,(function(t){s=t.call(e,s,i.normalize(),a?a.status:void 0)})),i.normalize(),s}function qt(t){return!(!t||!t.__CANCEL__)}function Ft(t,a,e){V.call(this,null==t?"canceled":t,V.ERR_CANCELED,a,e),this.name="CanceledError"}function zt(t,a,e){const r=e.config.validateStatus;e.status&&r&&!r(e.status)?a(new V("Request failed with status code "+e.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e)):t(e)}J.inherits(Ft,V,{__CANCEL__:!0});const $t=(t,a,e=3)=>{let r=0;const i=function(t,a){t=t||10;const e=new Array(t),r=new Array(t);let i,s=0,o=0;return a=void 0!==a?a:1e3,function(n){const h=Date.now(),d=r[o];i||(i=h),e[s]=n,r[s]=h;let p=o,c=0;for(;p!==s;)c+=e[p++],p%=t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),h-i<a)return;const l=d&&h-d;return l?Math.round(1e3*c/l):void 0}}(50,250);return function(t,a){let e,r,i=0,s=1e3/a;const o=(a,s=Date.now())=>{i=s,e=null,r&&(clearTimeout(r),r=null),t.apply(null,a)};return[(...t)=>{const a=Date.now(),n=a-i;n>=s?o(t,a):(e=t,r||(r=setTimeout((()=>{r=null,o(e)}),s-n)))},()=>e&&o(e)]}((e=>{const s=e.loaded,o=e.lengthComputable?e.total:void 0,n=s-r,h=i(n);r=s,t({loaded:s,total:o,progress:o?s/o:void 0,bytes:n,rate:h||void 0,estimated:h&&o&&s<=o?(o-s)/h:void 0,event:e,lengthComputable:null!=o,[a?"download":"upload"]:!0})}),e)},Et=(t,a)=>{const e=null!=t;return[r=>a[0]({lengthComputable:e,total:t,loaded:r}),a[1]]},Ot=t=>(...a)=>J.asap((()=>t(...a)));var jt=yt.hasStandardBrowserEnv?function(){const t=yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent),a=document.createElement("a");let e;function r(e){let r=e;return t&&(a.setAttribute("href",r),r=a.href),a.setAttribute("href",r),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname}}return e=r(window.location.href),function(t){const a=J.isString(t)?r(t):t;return a.protocol===e.protocol&&a.host===e.host}}():function(){return!0},xt=yt.hasStandardBrowserEnv?{write(t,a,e,r,i,s){const o=[t+"="+encodeURIComponent(a)];J.isNumber(e)&&o.push("expires="+new Date(e).toGMTString()),J.isString(r)&&o.push("path="+r),J.isString(i)&&o.push("domain="+i),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(t){const a=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Gt(t,a){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a)?function(t,a){return a?t.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):t}(t,a):a}const At=t=>t instanceof kt?{...t}:t;function Ct(t,a){a=a||{};const e={};function r(t,a,e){return J.isPlainObject(t)&&J.isPlainObject(a)?J.merge.call({caseless:e},t,a):J.isPlainObject(a)?J.merge({},a):J.isArray(a)?a.slice():a}function i(t,a,e){return J.isUndefined(a)?J.isUndefined(t)?void 0:r(void 0,t,e):r(t,a,e)}function s(t,a){if(!J.isUndefined(a))return r(void 0,a)}function o(t,a){return J.isUndefined(a)?J.isUndefined(t)?void 0:r(void 0,t):r(void 0,a)}function n(e,i,s){return s in a?r(e,i):s in t?r(void 0,e):void 0}const h={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:n,headers:(t,a)=>i(At(t),At(a),!0)};return J.forEach(Object.keys(Object.assign({},t,a)),(function(r){const s=h[r]||i,o=s(t[r],a[r],r);J.isUndefined(o)&&s!==n||(e[r]=o)})),e}var Dt=t=>{const a=Ct({},t);let e,{data:r,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:o,headers:n,auth:h}=a;if(a.headers=n=kt.from(n),a.url=ot(Gt(a.baseURL,a.url),t.params,t.paramsSerializer),h&&n.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):""))),J.isFormData(r))if(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv)n.setContentType(void 0);else if(!1!==(e=n.getContentType())){const[t,...a]=e?e.split(";").map((t=>t.trim())).filter(Boolean):[];n.setContentType([t||"multipart/form-data",...a].join("; "))}if(yt.hasStandardBrowserEnv&&(i&&J.isFunction(i)&&(i=i(a)),i||!1!==i&&jt(a.url))){const t=s&&o&&xt.read(o);t&&n.set(s,t)}return a},Bt="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(a,e){const r=Dt(t);let i=r.data;const s=kt.from(r.headers).normalize();let o,n,h,d,p,{responseType:c,onUploadProgress:l,onDownloadProgress:m}=r;function u(){d&&d(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let y=new XMLHttpRequest;function g(){if(!y)return;const r=kt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());zt((function(t){a(t),u()}),(function(t){e(t),u()}),{data:c&&"text"!==c&&"json"!==c?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:t,request:y}),y=null}y.open(r.method.toUpperCase(),r.url,!0),y.timeout=r.timeout,"onloadend"in y?y.onloadend=g:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(g)},y.onabort=function(){y&&(e(new V("Request aborted",V.ECONNABORTED,t,y)),y=null)},y.onerror=function(){e(new V("Network Error",V.ERR_NETWORK,t,y)),y=null},y.ontimeout=function(){let a=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||ht;r.timeoutErrorMessage&&(a=r.timeoutErrorMessage),e(new V(a,i.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,t,y)),y=null},void 0===i&&s.setContentType(null),"setRequestHeader"in y&&J.forEach(s.toJSON(),(function(t,a){y.setRequestHeader(a,t)})),J.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),c&&"json"!==c&&(y.responseType=r.responseType),m&&([h,p]=$t(m,!0),y.addEventListener("progress",h)),l&&y.upload&&([n,d]=$t(l),y.upload.addEventListener("progress",n),y.upload.addEventListener("loadend",d)),(r.cancelToken||r.signal)&&(o=a=>{y&&(e(!a||a.type?new Ft(null,t,y):a),y.abort(),y=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const f=function(t){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return a&&a[1]||""}(r.url);f&&-1===yt.protocols.indexOf(f)?e(new V("Unsupported protocol "+f+":",V.ERR_BAD_REQUEST,t)):y.send(i||null)}))},Lt=(t,a)=>{const{length:e}=t=t?t.filter(Boolean):[];if(a||e){let e,r=new AbortController;const i=function(t){if(!e){e=!0,o();const a=t instanceof Error?t:this.reason;r.abort(a instanceof V?a:new Ft(a instanceof Error?a.message:a))}};let s=a&&setTimeout((()=>{s=null,i(new V(`timeout ${a} of ms exceeded`,V.ETIMEDOUT))}),a);const o=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(i):t.removeEventListener("abort",i)})),t=null)};t.forEach((t=>t.addEventListener("abort",i)));const{signal:n}=r;return n.unsubscribe=()=>J.asap(o),n}};const Rt=function*(t,a){let e=t.byteLength;if(!a||e<a)return void(yield t);let r,i=0;for(;i<e;)r=i+a,yield t.slice(i,r),i=r},Wt=(t,a,e,r)=>{const i=async function*(t,a){for await(const e of async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const a=t.getReader();try{for(;;){const{done:t,value:e}=await a.read();if(t)break;yield e}}finally{await a.cancel()}}(t))yield*Rt(e,a)}(t,a);let s,o=0,n=t=>{s||(s=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:a,value:r}=await i.next();if(a)return n(),void t.close();let s=r.byteLength;if(e){let t=o+=s;e(t)}t.enqueue(new Uint8Array(r))}catch(t){throw n(t),t}},cancel:t=>(n(t),i.return())},{highWaterMark:2})},Ut="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Nt=Ut&&"function"==typeof ReadableStream,Ht=Ut&&("function"==typeof TextEncoder?(Mt=new TextEncoder,t=>Mt.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var Mt;const Jt=(t,...a)=>{try{return!!t(...a)}catch(t){return!1}},Vt=Nt&&Jt((()=>{let t=!1;const a=new Request(yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!a})),Kt=Nt&&Jt((()=>J.isReadableStream(new Response("").body))),Qt={stream:Kt&&(t=>t.body)};var Xt;Ut&&(Xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Qt[t]&&(Qt[t]=J.isFunction(Xt[t])?a=>a[t]():(a,e)=>{throw new V(`Response type '${t}' is not supported`,V.ERR_NOT_SUPPORT,e)})})));const Zt={http:null,xhr:Bt,fetch:Ut&&(async t=>{let{url:a,method:e,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:n,onUploadProgress:h,responseType:d,headers:p,withCredentials:c="same-origin",fetchOptions:l}=Dt(t);d=d?(d+"").toLowerCase():"text";let m,u=Lt([i,s&&s.toAbortSignal()],o);const y=u&&u.unsubscribe&&(()=>{u.unsubscribe()});let g;try{if(h&&Vt&&"get"!==e&&"head"!==e&&0!==(g=await(async(t,a)=>{const e=J.toFiniteNumber(t.getContentLength());return null==e?(async t=>{if(null==t)return 0;if(J.isBlob(t))return t.size;if(J.isSpecCompliantForm(t)){const a=new Request(yt.origin,{method:"POST",body:t});return(await a.arrayBuffer()).byteLength}return J.isArrayBufferView(t)||J.isArrayBuffer(t)?t.byteLength:(J.isURLSearchParams(t)&&(t+=""),J.isString(t)?(await Ht(t)).byteLength:void 0)})(a):e})(p,r))){let t,e=new Request(a,{method:"POST",body:r,duplex:"half"});if(J.isFormData(r)&&(t=e.headers.get("content-type"))&&p.setContentType(t),e.body){const[t,a]=Et(g,$t(Ot(h)));r=Wt(e.body,65536,t,a)}}J.isString(c)||(c=c?"include":"omit");const i="credentials"in Request.prototype;m=new Request(a,{...l,signal:u,method:e.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:i?c:void 0});let s=await fetch(m);const o=Kt&&("stream"===d||"response"===d);if(Kt&&(n||o&&y)){const t={};["status","statusText","headers"].forEach((a=>{t[a]=s[a]}));const a=J.toFiniteNumber(s.headers.get("content-length")),[e,r]=n&&Et(a,$t(Ot(n),!0))||[];s=new Response(Wt(s.body,65536,e,(()=>{r&&r(),y&&y()})),t)}d=d||"text";let f=await Qt[J.findKey(Qt,d)||"text"](s,t);return!o&&y&&y(),await new Promise(((a,e)=>{zt(a,e,{data:f,headers:kt.from(s.headers),status:s.status,statusText:s.statusText,config:t,request:m})}))}catch(a){if(y&&y(),a&&"TypeError"===a.name&&/fetch/i.test(a.message))throw Object.assign(new V("Network Error",V.ERR_NETWORK,t,m),{cause:a.cause||a});throw V.from(a,a&&a.code,t,m)}})};J.forEach(Zt,((t,a)=>{if(t){try{Object.defineProperty(t,"name",{value:a})}catch(t){}Object.defineProperty(t,"adapterName",{value:a})}}));const Yt=t=>`- ${t}`,ta=t=>J.isFunction(t)||null===t||!1===t;var aa=t=>{t=J.isArray(t)?t:[t];const{length:a}=t;let e,r;const i={};for(let s=0;s<a;s++){let a;if(e=t[s],r=e,!ta(e)&&(r=Zt[(a=String(e)).toLowerCase()],void 0===r))throw new V(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+s]=r}if(!r){const t=Object.entries(i).map((([t,a])=>`adapter ${t} `+(!1===a?"is not supported by the environment":"is not available in the build")));throw new V("There is no suitable adapter to dispatch the request "+(a?t.length>1?"since :\n"+t.map(Yt).join("\n"):" "+Yt(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function ea(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ft(null,t)}function ra(t){return ea(t),t.headers=kt.from(t.headers),t.data=Tt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),aa(t.adapter||vt.adapter)(t).then((function(a){return ea(t),a.data=Tt.call(t,t.transformResponse,a),a.headers=kt.from(a.headers),a}),(function(a){return qt(a)||(ea(t),a&&a.response&&(a.response.data=Tt.call(t,t.transformResponse,a.response),a.response.headers=kt.from(a.response.headers))),Promise.reject(a)}))}const ia={};["object","boolean","number","function","string","symbol"].forEach(((t,a)=>{ia[t]=function(e){return typeof e===t||"a"+(a<1?"n ":" ")+t}}));const sa={};ia.transitional=function(t,a,e){function r(t,a){return"[Axios v1.7.7] Transitional option '"+t+"'"+a+(e?". "+e:"")}return(e,i,s)=>{if(!1===t)throw new V(r(i," has been removed"+(a?" in "+a:"")),V.ERR_DEPRECATED);return a&&!sa[i]&&(sa[i]=!0,console.warn(r(i," has been deprecated since v"+a+" and will be removed in the near future"))),!t||t(e,i,s)}};var oa={assertOptions:function(t,a,e){if("object"!=typeof t)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],o=a[s];if(o){const a=t[s],e=void 0===a||o(a,s,t);if(!0!==e)throw new V("option "+s+" must be "+e,V.ERR_BAD_OPTION_VALUE)}else if(!0!==e)throw new V("Unknown option "+s,V.ERR_BAD_OPTION)}},validators:ia};const na=oa.validators;class ha{constructor(t){this.defaults=t,this.interceptors={request:new nt,response:new nt}}async request(t,a){try{return await this._request(t,a)}catch(t){if(t instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const e=a.stack?a.stack.replace(/^.+\n/,""):"";try{t.stack?e&&!String(t.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+e):t.stack=e}catch(t){}}throw t}}_request(t,a){"string"==typeof t?(a=a||{}).url=t:a=t||{},a=Ct(this.defaults,a);const{transitional:e,paramsSerializer:r,headers:i}=a;void 0!==e&&oa.assertOptions(e,{silentJSONParsing:na.transitional(na.boolean),forcedJSONParsing:na.transitional(na.boolean),clarifyTimeoutError:na.transitional(na.boolean)},!1),null!=r&&(J.isFunction(r)?a.paramsSerializer={serialize:r}:oa.assertOptions(r,{encode:na.function,serialize:na.function},!0)),a.method=(a.method||this.defaults.method||"get").toLowerCase();let s=i&&J.merge(i.common,i[a.method]);i&&J.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete i[t]})),a.headers=kt.concat(s,i);const o=[];let n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(a)||(n=n&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const h=[];let d;this.interceptors.response.forEach((function(t){h.push(t.fulfilled,t.rejected)}));let p,c=0;if(!n){const t=[ra.bind(this),void 0];for(t.unshift.apply(t,o),t.push.apply(t,h),p=t.length,d=Promise.resolve(a);c<p;)d=d.then(t[c++],t[c++]);return d}p=o.length;let l=a;for(c=0;c<p;){const t=o[c++],a=o[c++];try{l=t(l)}catch(t){a.call(this,t);break}}try{d=ra.call(this,l)}catch(t){return Promise.reject(t)}for(c=0,p=h.length;c<p;)d=d.then(h[c++],h[c++]);return d}getUri(t){return ot(Gt((t=Ct(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}J.forEach(["delete","get","head","options"],(function(t){ha.prototype[t]=function(a,e){return this.request(Ct(e||{},{method:t,url:a,data:(e||{}).data}))}})),J.forEach(["post","put","patch"],(function(t){function a(a){return function(e,r,i){return this.request(Ct(i||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:e,data:r}))}}ha.prototype[t]=a(),ha.prototype[t+"Form"]=a(!0)}));var da=ha;class pa{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let a;this.promise=new Promise((function(t){a=t}));const e=this;this.promise.then((t=>{if(!e._listeners)return;let a=e._listeners.length;for(;a-- >0;)e._listeners[a](t);e._listeners=null})),this.promise.then=t=>{let a;const r=new Promise((t=>{e.subscribe(t),a=t})).then(t);return r.cancel=function(){e.unsubscribe(a)},r},t((function(t,r,i){e.reason||(e.reason=new Ft(t,r,i),a(e.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);-1!==a&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=a=>{t.abort(a)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new pa((function(a){t=a})),cancel:t}}}var ca=pa;const la={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(la).forEach((([t,a])=>{la[a]=t}));var ma=la;const ua=function t(a){const e=new da(a),i=r(da.prototype.request,e);return J.extend(i,da.prototype,e,{allOwnKeys:!0}),J.extend(i,e,null,{allOwnKeys:!0}),i.create=function(e){return t(Ct(a,e))},i}(vt);ua.Axios=da,ua.CanceledError=Ft,ua.CancelToken=ca,ua.isCancel=qt,ua.VERSION="1.7.7",ua.toFormData=at,ua.AxiosError=V,ua.Cancel=ua.CanceledError,ua.all=function(t){return Promise.all(t)},ua.spread=function(t){return function(a){return t.apply(null,a)}},ua.isAxiosError=function(t){return J.isObject(t)&&!0===t.isAxiosError},ua.mergeConfig=Ct,ua.AxiosHeaders=kt,ua.formToJSON=t=>gt(J.isHTMLForm(t)?new FormData(t):t),ua.getAdapter=aa,ua.HttpStatusCode=ma,ua.default=ua,t.exports=ua}},__webpack_module_cache__={};function __webpack_require__(t){var a=__webpack_module_cache__[t];if(void 0!==a)return a.exports;var e=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(e.exports,e,e.exports,__webpack_require__),e.loaded=!0,e.exports}__webpack_require__.n=t=>{var a=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(a,{a}),a},__webpack_require__.d=(t,a)=>{for(var e in a)__webpack_require__.o(a,e)&&!__webpack_require__.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:a[e]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,a)=>Object.prototype.hasOwnProperty.call(t,a),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var __webpack_exports__=__webpack_require__(4497);return __webpack_exports__})()));
|