1import{L as w,O as Z,P as H,Pc as ee,Qc as C,Rc as j,Tc as R}from"./chunk-NSYNN6ZG.js";import{a as u,b}from"./chunk-DAQOROHW.js";var P=new Z("basePath");var k=class{encodeKey(h){return encodeURIComponent(h)}encodeValue(h){return encodeURIComponent(h)}decodeKey(h){return decodeURIComponent(h)}decodeValue(h){return decodeURIComponent(h)}};var A=class{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:h,apiKeys:n,basePath:a,credentials:p,encodeParam:r,encoder:e,password:t,username:s,withCredentials:o}={}){n&&(this.apiKeys=n),s!==void 0&&(this.username=s),t!==void 0&&(this.password=t),h!==void 0&&(this.accessToken=h),a!==void 0&&(this.basePath=a),o!==void 0&&(this.withCredentials=o),e&&(this.encoder=e),this.encodeParam=r??(l=>this.defaultEncodeParam(l)),this.credentials=p??{}}selectHeaderContentType(h){if(h.length===0)return;let n=h.find(a=>this.isJsonMime(a));return n===void 0?h[0]:n}selectHeaderAccept(h){if(h.length===0)return;let n=h.find(a=>this.isJsonMime(a));return n===void 0?h[0]:n}isJsonMime(h){let n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return h!==null&&(n.test(h)||h.toLowerCase()==="application/json-patch+json")}lookupCredential(h){let n=this.credentials[h];return typeof n=="function"?n():n}addCredentialToHeaders(h,n,a,p){let r=this.lookupCredential(h);return r?a.set(n,(p??"")+r):a}addCredentialToQuery(h,n,a){let p=this.lookupCredential(h);return p?a.set(n,p):a}defaultEncodeParam(h){let n=h.dataFormat==="date-time"&&h.value instanceof Date?h.value.toISOString():h.value;return encodeURIComponent(String(n))}};var y=class{basePath="http://localhost";defaultHeaders=new ee;configuration;encoder;constructor(h,n){if(this.configuration=n||new A,typeof this.configuration.basePath!="string"){let a=Array.isArray(h)?h[0]:void 0;a!=null&&(h=a),typeof h!="string"&&(h=this.basePath),this.configuration.basePath=h}this.encoder=this.configuration.encoder||new k}canConsumeForm(h){return h.indexOf("multipart/form-data")!==-1}addToHttpParams(h,n,a,p=!1){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(h,n,p?a:void 0,p):this.addToHttpParamsRecursive(h,n,a)}addToHttpParamsRecursive(h,n,a,p=!1){if(n==null)return h;if(typeof n=="object"){if(a!=null)return p?Object.keys(n).reduce((r,e)=>r.append(`${a}[${e}]`,n[e]),h):h.append(a,JSON.stringify(n));if(Array.isArray(n))n.forEach(r=>h=this.addToHttpParamsRecursive(h,r,a));else if(n instanceof Date)if(a!=null)h=h.append(a,n.toISOString());else throw Error("key may not be null if value is Date");else Object.keys(n).forEach(r=>{let e=a?`${a}.${r}`:r;h=this.addToHttpParamsRecursive(h,n[r],e)});return h}else if(a!=null)return h.append(a,n);throw Error("key may not be null if value is not object or array")}};var _=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}abuseReportsControllerCreate(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter createAbuseReportDto was null or undefined when calling abuseReportsControllerCreate.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/abuse-reports",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}abuseReportsControllerList(n,a,p,r="body",e=!1,t){let s=new j({encoder:this.encoder});s=this.addToHttpParams(s,n,"status"),s=this.addToHttpParams(s,a,"page"),s=this.addToHttpParams(s,p,"pageSize");let o=this.defaultHeaders,l=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);l!==void 0&&(o=o.set("Accept",l));let c=t?.context??new C,i=t?.transferCache??!0,d="json";l&&(l.startsWith("text")?d="text":this.configuration.isJsonMime(l)?d="json":d="blob");let m="/abuse-reports",{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("get",`${f}${m}`,b(u(b(u({context:c,params:s,responseType:d},x?{withCredentials:x}:{}),{headers:o,observe:r}),i!==void 0?{transferCache:i}:{}),{reportProgress:e}))}abuseReportsControllerUpdateStatus(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling abuseReportsControllerUpdateStatus.");if(a==null)throw new Error("Required parameter updateAbuseReportStatusDto was null or undefined when calling abuseReportsControllerUpdateStatus.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/abuse-reports/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/status`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("patch",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var U=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}lifecycleAdminControllerCatalog(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/stats/admin-emails/catalog",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}lifecycleAdminControllerPreview(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter previewLifecycleEmailDto was null or undefined when calling lifecycleAdminControllerPreview.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/stats/admin-emails/preview",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}lifecycleAdminControllerTestSend(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter sendTestLifecycleEmailDto was null or undefined when calling lifecycleAdminControllerTestSend.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/stats/admin-emails/test-send",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var F=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}authControllerConsumeMagicLink(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter consumeMagicLinkDto was null or undefined when calling authControllerConsumeMagicLink.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/auth/magic-link/consume",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}authControllerInviteSignIn(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter inviteSignInDto was null or undefined when calling authControllerInviteSignIn.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/auth/invite-signin",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}authControllerMe(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/auth/me",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}authControllerRequestMagicLink(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter magicLinkRequestDto was null or undefined when calling authControllerRequestMagicLink.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/auth/magic-link",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}authControllerUpdateMe(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter updateMeDto was null or undefined when calling authControllerUpdateMe.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/auth/me",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("patch",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var $=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}billingControllerCancel(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/billing/subscription/cancel",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}billingControllerDeleteAccount(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/billing/account",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("delete",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}billingControllerGetConfig(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/billing/config",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}billingControllerGetSubscription(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/billing/subscription",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}billingControllerListPlans(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/billing/plans",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}billingControllerOpenPortal(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/billing/portal",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}billingControllerPreviewCancellation(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.config
1uration.isJsonMime(e)?o="json":o="blob");let l="/billing/subscription/cancel-preview",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}billingControllerReactivate(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/billing/subscription/reactivate",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}billingControllerResolveTrialModal(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter resolveTrialModalDto was null or undefined when calling billingControllerResolveTrialModal.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/billing/trial-modal/resolve",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}billingControllerStartCheckout(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter startCheckoutDto was null or undefined when calling billingControllerStartCheckout.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/billing/checkout",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}billingControllerSwapPlan(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter planSelectionDto was null or undefined when calling billingControllerSwapPlan.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/billing/subscription/plan",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var M=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}duplicateReviewControllerCombine(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/duplicate-accounts/review/combine",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}duplicateReviewControllerConfirm(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter duplicateConfirmTokenDto was null or undefined when calling duplicateReviewControllerConfirm.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/duplicate-accounts/confirmation",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}duplicateReviewControllerConfirmPreview(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter duplicateConfirmTokenDto was null or undefined when calling duplicateReviewControllerConfirmPreview.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/duplicate-accounts/confirmation/preview",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}duplicateReviewControllerDeleteAccount(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/duplicate-accounts/review/account",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("delete",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}duplicateReviewControllerDispute(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter disputeDuplicateCaseDto was null or undefined when calling duplicateReviewControllerDispute.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/duplicate-accounts/review/dispute",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}duplicateReviewControllerReview(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/duplicate-accounts/review",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var L=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}invitationsControllerAccept(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter acceptInvitationDto was null or undefined when calling invitationsControllerAccept.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/accounts/invitations/accept",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}membersControllerInvite(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter inviteMemberDto was null or undefined when calling membersControllerInvite.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/accounts/members",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}membersControllerLeave(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/accounts/members/me",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("delete",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}membersControllerList(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/accounts/members",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}membersControllerRemove(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter membershipId was null or undefined when calling membersControllerRemove.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/accounts/members/${this.configuration.encodeParam({name:"membershipId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("delete",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}membersControllerSeatPreview(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/accounts/members/seat-preview",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}membersControllerTransferOwnership(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter transferOwnershipDto was null or undefined when calling membersControllerTransferOwnership.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/accounts/members/transfer-ownership",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var q=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}oAuthControllerClientInfo(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling oAuthControllerClientInfo.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/oauth/client/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}oAuthControllerDecision(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter oAuthDecisionDto was null or undefined when calling oAuthControllerDecision.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/oauth/authorize/decision",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var B=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}activityControllerGetActivity(n,a,p,r,e,t,s="body",o=!1,l){let c=new j({encoder:this.encoder});
1n&&n.forEach(V=>{c=this.addToHttpParams(c,V,"categories")}),a&&a.forEach(V=>{c=this.addToHttpParams(c,V,"types")}),c=this.addToHttpParams(c,p,"siteId"),c=this.addToHttpParams(c,r,"actorUserId"),c=this.addToHttpParams(c,e,"limit"),c=this.addToHttpParams(c,t,"cursor");let i=this.defaultHeaders,d=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(i=i.set("Accept",d));let m=l?.context??new C,f=l?.transferCache??!0,x="json";d&&(d.startsWith("text")?x="text":this.configuration.isJsonMime(d)?x="json":x="blob");let v="/stats/activity",{basePath:S,withCredentials:O}=this.configuration;return this.httpClient.request("get",`${S}${v}`,b(u(b(u({context:m,params:c,responseType:x},O?{withCredentials:O}:{}),{headers:i,observe:s}),f!==void 0?{transferCache:f}:{}),{reportProgress:o}))}adminDomainsControllerListDomains(n,a,p,r,e="body",t=!1,s){let o=new j({encoder:this.encoder});o=this.addToHttpParams(o,n,"search"),o=this.addToHttpParams(o,a,"status"),o=this.addToHttpParams(o,p,"page"),o=this.addToHttpParams(o,r,"pageSize");let l=this.defaultHeaders,c=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(l=l.set("Accept",c));let i=s?.context??new C,d=s?.transferCache??!0,m="json";c&&(c.startsWith("text")?m="text":this.configuration.isJsonMime(c)?m="json":m="blob");let f="/stats/custom-domains",{basePath:x,withCredentials:v}=this.configuration;return this.httpClient.request("get",`${x}${f}`,b(u(b(u({context:i,params:o,responseType:m},v?{withCredentials:v}:{}),{headers:l,observe:e}),d!==void 0?{transferCache:d}:{}),{reportProgress:t}))}adminEmailDomainsControllerAddRule(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter addEmailDomainRuleDto was null or undefined when calling adminEmailDomainsControllerAddRule.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/stats/email-domains",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}adminEmailDomainsControllerCheckDomain(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter value was null or undefined when calling adminEmailDomainsControllerCheckDomain.");let e=new j({encoder:this.encoder});e=this.addToHttpParams(e,n,"value");let t=this.defaultHeaders,s=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=r?.context??new C,l=r?.transferCache??!0,c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let i="/stats/email-domains/check",{basePath:d,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${d}${i}`,b(u(b(u({context:o,params:e,responseType:c},m?{withCredentials:m}:{}),{headers:t,observe:a}),l!==void 0?{transferCache:l}:{}),{reportProgress:p}))}adminEmailDomainsControllerListRules(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/stats/email-domains",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}adminEmailDomainsControllerRemoveRule(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling adminEmailDomainsControllerRemoveRule.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/stats/email-domains/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("delete",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}adminFormsControllerListForms(n,a,p,r,e,t,s,o,l="body",c=!1,i){let d=new j({encoder:this.encoder});d=this.addToHttpParams(d,n,"search"),d=this.addToHttpParams(d,a,"plan"),d=this.addToHttpParams(d,p,"captureEnabled"),d=this.addToHttpParams(d,r,"hasReplies"),d=this.addToHttpParams(d,e,"sort"),d=this.addToHttpParams(d,t,"sortDir"),d=this.addToHttpParams(d,s,"page"),d=this.addToHttpParams(d,o,"pageSize");let m=this.defaultHeaders,f=i?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);f!==void 0&&(m=m.set("Accept",f));let x=i?.context??new C,v=i?.transferCache??!0,S="json";f&&(f.startsWith("text")?S="text":this.configuration.isJsonMime(f)?S="json":S="blob");let O="/stats/forms",{basePath:V,withCredentials:D}=this.configuration;return this.httpClient.request("get",`${V}${O}`,b(u(b(u({context:x,params:d,responseType:S},D?{withCredentials:D}:{}),{headers:m,observe:l}),v!==void 0?{transferCache:v}:{}),{reportProgress:c}))}adminFormsControllerListSubmissions(n,a,p,r="body",e=!1,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling adminFormsControllerListSubmissions.");let s=new j({encoder:this.encoder});s=this.addToHttpParams(s,a,"limit"),s=this.addToHttpParams(s,p,"offset");let o=this.defaultHeaders,l=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);l!==void 0&&(o=o.set("Accept",l));let c=t?.context??new C,i=t?.transferCache??!0,d="json";l&&(l.startsWith("text")?d="text":this.configuration.isJsonMime(l)?d="json":d="blob");let m=`/stats/forms/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/submissions`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("get",`${f}${m}`,b(u(b(u({context:c,params:s,responseType:d},x?{withCredentials:x}:{}),{headers:o,observe:r}),i!==void 0?{transferCache:i}:{}),{reportProgress:e}))}adminFormsControllerReveal(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling adminFormsControllerReveal.");if(a==null)throw new Error("Required parameter revealFormSubmissionsDto was null or undefined when calling adminFormsControllerReveal.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/stats/forms/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/submissions/reveal`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}adminSitesControllerGetSite(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling adminSitesControllerGetSite.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/stats/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}adminSitesControllerListFiles(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling adminSitesControllerListFiles.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/stats/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/files`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}adminSitesControllerUpdateBanner(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling adminSitesControllerUpdateBanner.");if(a==null)throw new Error("Required parameter updateSiteBannerDto was null or undefined when calling adminSitesControllerUpdateBanner.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/stats/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/banner`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("patch",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}adminSitesControllerUpdateSuspension(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling adminSitesControllerUpdateSuspension.");
1if(a==null)throw new Error("Required parameter updateSiteSuspensionDto was null or undefined when calling adminSitesControllerUpdateSuspension.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/stats/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/suspension`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("patch",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}adminUsersControllerBanUser(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling adminUsersControllerBanUser.");if(a==null)throw new Error("Required parameter banUserDto was null or undefined when calling adminUsersControllerBanUser.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/stats/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/ban`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}adminUsersControllerBulkBan(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter bulkBanUsersDto was null or undefined when calling adminUsersControllerBulkBan.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/stats/users/bulk-ban",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}adminUsersControllerGetUser(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling adminUsersControllerGetUser.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/stats/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}adminUsersControllerListUsers(n,a,p,r,e,t,s,o,l,c,i="body",d=!1,m){let f=new j({encoder:this.encoder});f=this.addToHttpParams(f,n,"search"),f=this.addToHttpParams(f,a,"role"),f=this.addToHttpParams(f,p,"verified"),f=this.addToHttpParams(f,r,"risk"),f=this.addToHttpParams(f,e,"billing"),f=this.addToHttpParams(f,t,"banned"),f=this.addToHttpParams(f,s,"sort"),f=this.addToHttpParams(f,o,"sortDir"),f=this.addToHttpParams(f,l,"page"),f=this.addToHttpParams(f,c,"pageSize");let x=this.defaultHeaders,v=m?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);v!==void 0&&(x=x.set("Accept",v));let S=m?.context??new C,O=m?.transferCache??!0,V="json";v&&(v.startsWith("text")?V="text":this.configuration.isJsonMime(v)?V="json":V="blob");let D="/stats/users",{basePath:te,withCredentials:X}=this.configuration;return this.httpClient.request("get",`${te}${D}`,b(u(b(u({context:S,params:f,responseType:V},X?{withCredentials:X}:{}),{headers:x,observe:i}),O!==void 0?{transferCache:O}:{}),{reportProgress:d}))}adminUsersControllerUnbanUser(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling adminUsersControllerUnbanUser.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/stats/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/ban`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("delete",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}adminUsersControllerUpdateRole(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling adminUsersControllerUpdateRole.");if(a==null)throw new Error("Required parameter updateUserRoleDto was null or undefined when calling adminUsersControllerUpdateRole.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/stats/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/role`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("patch",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}duplicateAdminControllerList(n,a,p,r="body",e=!1,t){let s=new j({encoder:this.encoder});s=this.addToHttpParams(s,n,"status"),s=this.addToHttpParams(s,a,"page"),s=this.addToHttpParams(s,p,"pageSize");let o=this.defaultHeaders,l=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);l!==void 0&&(o=o.set("Accept",l));let c=t?.context??new C,i=t?.transferCache??!0,d="json";l&&(l.startsWith("text")?d="text":this.configuration.isJsonMime(l)?d="json":d="blob");let m="/stats/duplicates/cases",{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("get",`${f}${m}`,b(u(b(u({context:c,params:s,responseType:d},x?{withCredentials:x}:{}),{headers:o,observe:r}),i!==void 0?{transferCache:i}:{}),{reportProgress:e}))}duplicateAdminControllerOpen(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter openDuplicateCaseDto was null or undefined when calling duplicateAdminControllerOpen.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/stats/duplicates/cases",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}duplicateAdminControllerOverview(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/stats/duplicates/overview",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}duplicateAdminControllerRelease(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling duplicateAdminControllerRelease.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/stats/duplicates/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/release`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("post",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}duplicateAdminControllerResend(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling duplicateAdminControllerResend.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/stats/duplicates/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/resend`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("post",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}lifecycleEmailsControllerGetById(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling lifecycleEmailsControllerGetById.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/stats/lifecycle-emails/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}
1riskAdminControllerClusters(n,a,p,r,e,t="body",s=!1,o){let l=new j({encoder:this.encoder});l=this.addToHttpParams(l,n,"level"),l=this.addToHttpParams(l,a,"status"),l=this.addToHttpParams(l,p,"member"),l=this.addToHttpParams(l,r,"page"),l=this.addToHttpParams(l,e,"pageSize");let c=this.defaultHeaders,i=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(c=c.set("Accept",i));let d=o?.context??new C,m=o?.transferCache??!0,f="json";i&&(i.startsWith("text")?f="text":this.configuration.isJsonMime(i)?f="json":f="blob");let x="/stats/risk/clusters",{basePath:v,withCredentials:S}=this.configuration;return this.httpClient.request("get",`${v}${x}`,b(u(b(u({context:d,params:l,responseType:f},S?{withCredentials:S}:{}),{headers:c,observe:t}),m!==void 0?{transferCache:m}:{}),{reportProgress:s}))}riskAdminControllerOverview(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/stats/risk/overview",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}riskAdminControllerRecompute(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/stats/risk/recompute",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}riskAdminControllerRemoveReview(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling riskAdminControllerRemoveReview.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/stats/risk/reviews/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("delete",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}riskAdminControllerReview(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter createRiskReviewDto was null or undefined when calling riskAdminControllerReview.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/stats/risk/reviews",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}riskAdminControllerTrust(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling riskAdminControllerTrust.");if(a==null)throw new Error("Required parameter trustRiskUserDto was null or undefined when calling riskAdminControllerTrust.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/stats/risk/trusted-users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}riskAdminControllerUntrust(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling riskAdminControllerUntrust.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/stats/risk/trusted-users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("delete",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}riskAdminControllerUserRisk(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling riskAdminControllerUserRisk.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/stats/risk/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}signupAllowlistAdminControllerAdd(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter addSignupAllowedEmailDto was null or undefined when calling signupAllowlistAdminControllerAdd.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/stats/signup-allowlist",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}signupAllowlistAdminControllerList(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/stats/signup-allowlist",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}signupAllowlistAdminControllerRemove(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling signupAllowlistAdminControllerRemove.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/stats/signup-allowlist/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("delete",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}statsControllerGetAttention(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/stats/attention",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}statsControllerGetGrowth(n,a,p,r,e="body",t=!1,s){let o=new j({encoder:this.encoder});o=this.addToHttpParams(o,n,"from"),o=this.addToHttpParams(o,a,"to"),o=this.addToHttpParams(o,p,"interval"),o=this.addToHttpParams(o,r,"tzOffset");let l=this.defaultHeaders,c=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(l=l.set("Accept",c));let i=s?.context??new C,d=s?.transferCache??!0,m="json";c&&(c.startsWith("text")?m="text":this.configuration.isJsonMime(c)?m="json":m="blob");let f="/stats/growth",{basePath:x,withCredentials:v}=this.configuration;return this.httpClient.request("get",`${x}${f}`,b(u(b(u({context:i,params:o,responseType:m},v?{withCredentials:v}:{}),{headers:l,observe:e}),d!==void 0?{transferCache:d}:{}),{reportProgress:t}))}statsControllerGetOverview(n,a,p,r,e="body",t=!1,s){let o=new j({encoder:this.encoder});o=this.addToHttpParams(o,n,"from"),o=this.addToHttpParams(o,a,"to"),o=this.addToHttpParams(o,p,"interval"),o=this.addToHttpParams(o,r,"tzOffset");let l=this.defaultHeaders,c=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(l=l.set("Accept",c));let i=s?.context??new C,d=s?.transferCache??!0,m="json";c&&(c.startsWith("text")?m="text":this.configuration.isJsonMime(c)?m="json":m="blob");let f="/stats/overview",{basePath:x,withCredentials:v}=this.configuration;return this.httpClient.request("get",`${x}${f}`,b(u(b(u({context:i,params:o,responseType:m},v?{withCredentials:v}:{}),{headers:l,observe:e}),d!==void 0?{transferCache:d}:{}),{reportProgress:t}))}
1statsControllerGetSiteAnalytics(n,a,p,r,e,t="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling statsControllerGetSiteAnalytics.");let l=new j({encoder:this.encoder});l=this.addToHttpParams(l,a,"from"),l=this.addToHttpParams(l,p,"to"),l=this.addToHttpParams(l,r,"interval"),l=this.addToHttpParams(l,e,"tzOffset");let c=this.defaultHeaders,i=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(c=c.set("Accept",i));let d=o?.context??new C,m=o?.transferCache??!0,f="json";i&&(i.startsWith("text")?f="text":this.configuration.isJsonMime(i)?f="json":f="blob");let x=`/stats/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/analytics`,{basePath:v,withCredentials:S}=this.configuration;return this.httpClient.request("get",`${v}${x}`,b(u(b(u({context:d,params:l,responseType:f},S?{withCredentials:S}:{}),{headers:c,observe:t}),m!==void 0?{transferCache:m}:{}),{reportProgress:s}))}statsControllerGetSites(n,a,p,r,e,t,s="body",o=!1,l){let c=new j({encoder:this.encoder});c=this.addToHttpParams(c,n,"status"),c=this.addToHttpParams(c,a,"search"),c=this.addToHttpParams(c,p,"page"),c=this.addToHttpParams(c,r,"pageSize"),c=this.addToHttpParams(c,e,"sortBy"),c=this.addToHttpParams(c,t,"sortDir");let i=this.defaultHeaders,d=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(i=i.set("Accept",d));let m=l?.context??new C,f=l?.transferCache??!0,x="json";d&&(d.startsWith("text")?x="text":this.configuration.isJsonMime(d)?x="json":x="blob");let v="/stats/sites",{basePath:S,withCredentials:O}=this.configuration;return this.httpClient.request("get",`${S}${v}`,b(u(b(u({context:m,params:c,responseType:x},O?{withCredentials:O}:{}),{headers:i,observe:s}),f!==void 0?{transferCache:f}:{}),{reportProgress:o}))}statsControllerGetStats(n,a,p,r,e="body",t=!1,s){let o=new j({encoder:this.encoder});o=this.addToHttpParams(o,n,"from"),o=this.addToHttpParams(o,a,"to"),o=this.addToHttpParams(o,p,"interval"),o=this.addToHttpParams(o,r,"tzOffset");let l=this.defaultHeaders,c=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(l=l.set("Accept",c));let i=s?.context??new C,d=s?.transferCache??!0,m="json";c&&(c.startsWith("text")?m="text":this.configuration.isJsonMime(c)?m="json":m="blob");let f="/stats",{basePath:x,withCredentials:v}=this.configuration;return this.httpClient.request("get",`${x}${f}`,b(u(b(u({context:i,params:o,responseType:m},v?{withCredentials:v}:{}),{headers:l,observe:e}),d!==void 0?{transferCache:d}:{}),{reportProgress:t}))}statsControllerGetTraffic(n,a="body",p=!1,r){let e=new j({encoder:this.encoder});e=this.addToHttpParams(e,n,"window");let t=this.defaultHeaders,s=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=r?.context??new C,l=r?.transferCache??!0,c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let i="/stats/traffic",{basePath:d,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${d}${i}`,b(u(b(u({context:o,params:e,responseType:c},m?{withCredentials:m}:{}),{headers:t,observe:a}),l!==void 0?{transferCache:l}:{}),{reportProgress:p}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var W=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}apiTokensControllerCreate(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter createApiTokenDto was null or undefined when calling apiTokensControllerCreate.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/account/api-tokens",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}apiTokensControllerList(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/account/api-tokens",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}apiTokensControllerRevoke(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling apiTokensControllerRevoke.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/account/api-tokens/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("delete",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var z=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}accountsControllerActive(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/accounts/active",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}accountsControllerCreate(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter createOrganizationDto was null or undefined when calling accountsControllerCreate.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/accounts",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}accountsControllerList(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/accounts",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}accountsControllerRename(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter renameAccountDto was null or undefined when calling accountsControllerRename.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/accounts",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("patch",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var J=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}customDomainsControllerAdd(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter siteId was null or undefined when calling customDomainsControllerAdd.");if(a==null)throw new Error("Required parameter addCustomDomainDto was null or undefined when calling customDomainsControllerAdd.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/sites/${this.configuration.encodeParam({name:"siteId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/custom-domains`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}customDomainsControllerList(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter siteId was null or undefined when calling customDomainsControllerList.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/sites/${this.configuration.encodeParam({name:"siteId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/custom-domains`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}customDomainsControllerRemove(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter siteId was null or undefined when calling customDomainsControllerRemove.");if(a==null)throw new Error("Required parameter id was null or undefined when calling customDomainsControllerRemove.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let i=`/sites/${this.configuration.encodeParam({name:"siteId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/custom-domains/${this.configuration.encodeParam({name:"id",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:d,withCredentials:m}=this.configuration;return this.httpClient.request("delete",`${d}${i}`,b(u(b(u({context:o,responseType:c},m?{withCredentials:m}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}customDomainsControllerVerify(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter siteId was null or undefined when calling customDomainsControllerVerify.");if(a==null)throw new Error("Required parameter id was null or undefined when calling customDomainsControllerVerify.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let i=`/sites/${this.configuration.encodeParam({name:"siteId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/custom-domains/${this.configuration.encodeParam({name:"id",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/verify`,{basePath:d,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${d}${i}`,b(u(b(u({context:o,responseType:c},m?{withCredentials:m}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var G=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}formsControllerListForms(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter siteId was null or undefined when calling formsControllerListForms.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/sites/${this.configuration.encodeParam({name:"siteId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/forms`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}
1formsControllerListSubmissions(n,a,p,r,e="body",t=!1,s){if(n==null)throw new Error("Required parameter siteId was null or undefined when calling formsControllerListSubmissions.");if(a==null)throw new Error("Required parameter formId was null or undefined when calling formsControllerListSubmissions.");let o=new j({encoder:this.encoder});o=this.addToHttpParams(o,p,"limit"),o=this.addToHttpParams(o,r,"offset");let l=this.defaultHeaders,c=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(l=l.set("Accept",c));let i=s?.context??new C,d=s?.transferCache??!0,m="json";c&&(c.startsWith("text")?m="text":this.configuration.isJsonMime(c)?m="json":m="blob");let f=`/sites/${this.configuration.encodeParam({name:"siteId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/forms/${this.configuration.encodeParam({name:"formId",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/submissions`,{basePath:x,withCredentials:v}=this.configuration;return this.httpClient.request("get",`${x}${f}`,b(u(b(u({context:i,params:o,responseType:m},v?{withCredentials:v}:{}),{headers:l,observe:e}),d!==void 0?{transferCache:d}:{}),{reportProgress:t}))}formsControllerMerge(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter siteId was null or undefined when calling formsControllerMerge.");if(a==null)throw new Error("Required parameter formId was null or undefined when calling formsControllerMerge.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let i=`/sites/${this.configuration.encodeParam({name:"siteId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/forms/${this.configuration.encodeParam({name:"formId",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/merge`,{basePath:d,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${d}${i}`,b(u(b(u({context:o,responseType:c},m?{withCredentials:m}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}formsControllerRename(n,a,p,r="body",e=!1,t){if(n==null)throw new Error("Required parameter siteId was null or undefined when calling formsControllerRename.");if(a==null)throw new Error("Required parameter formId was null or undefined when calling formsControllerRename.");if(p==null)throw new Error("Required parameter renameFormDto was null or undefined when calling formsControllerRename.");let s=this.defaultHeaders,o=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);o!==void 0&&(s=s.set("Accept",o));let l=t?.context??new C,c=t?.transferCache??!0,i=["application/json"],d=this.configuration.selectHeaderContentType(i);d!==void 0&&(s=s.set("Content-Type",d));let m="json";o&&(o.startsWith("text")?m="text":this.configuration.isJsonMime(o)?m="json":m="blob");let f=`/sites/${this.configuration.encodeParam({name:"siteId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/forms/${this.configuration.encodeParam({name:"formId",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/name`,{basePath:x,withCredentials:v}=this.configuration;return this.httpClient.request("patch",`${x}${f}`,b(u(b(u({context:l,body:p,responseType:m},v?{withCredentials:v}:{}),{headers:s,observe:r}),c!==void 0?{transferCache:c}:{}),{reportProgress:e}))}formsControllerSetCapture(n,a,p,r="body",e=!1,t){if(n==null)throw new Error("Required parameter siteId was null or undefined when calling formsControllerSetCapture.");if(a==null)throw new Error("Required parameter formId was null or undefined when calling formsControllerSetCapture.");if(p==null)throw new Error("Required parameter updateFormCaptureDto was null or undefined when calling formsControllerSetCapture.");let s=this.defaultHeaders,o=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);o!==void 0&&(s=s.set("Accept",o));let l=t?.context??new C,c=t?.transferCache??!0,i=["application/json"],d=this.configuration.selectHeaderContentType(i);d!==void 0&&(s=s.set("Content-Type",d));let m="json";o&&(o.startsWith("text")?m="text":this.configuration.isJsonMime(o)?m="json":m="blob");let f=`/sites/${this.configuration.encodeParam({name:"siteId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/forms/${this.configuration.encodeParam({name:"formId",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/capture`,{basePath:x,withCredentials:v}=this.configuration;return this.httpClient.request("patch",`${x}${f}`,b(u(b(u({context:l,body:p,responseType:m},v?{withCredentials:v}:{}),{headers:s,observe:r}),c!==void 0?{transferCache:c}:{}),{reportProgress:e}))}formsControllerSetNotify(n,a,p,r="body",e=!1,t){if(n==null)throw new Error("Required parameter siteId was null or undefined when calling formsControllerSetNotify.");if(a==null)throw new Error("Required parameter formId was null or undefined when calling formsControllerSetNotify.");if(p==null)throw new Error("Required parameter updateFormNotifyDto was null or undefined when calling formsControllerSetNotify.");let s=this.defaultHeaders,o=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);o!==void 0&&(s=s.set("Accept",o));let l=t?.context??new C,c=t?.transferCache??!0,i=["application/json"],d=this.configuration.selectHeaderContentType(i);d!==void 0&&(s=s.set("Content-Type",d));let m="json";o&&(o.startsWith("text")?m="text":this.configuration.isJsonMime(o)?m="json":m="blob");let f=`/sites/${this.configuration.encodeParam({name:"siteId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/forms/${this.configuration.encodeParam({name:"formId",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/notify`,{basePath:x,withCredentials:v}=this.configuration;return this.httpClient.request("patch",`${x}${f}`,b(u(b(u({context:l,body:p,responseType:m},v?{withCredentials:v}:{}),{headers:s,observe:r}),c!==void 0?{transferCache:c}:{}),{reportProgress:e}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var N=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}healthControllerCheck(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/health",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var K=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}previewsControllerAbortUpload(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter batchId was null or undefined when calling previewsControllerAbortUpload.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/previews/uploads/${this.configuration.encodeParam({name:"batchId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("delete",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}previewsControllerDiscard(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling previewsControllerDiscard.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/previews/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("delete",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}previewsControllerFileContent(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling previewsControllerFileContent.");if(a==null)throw new Error("Required parameter path was null or undefined when calling previewsControllerFileContent.");let t=new j({encoder:this.encoder});t=this.addToHttpParams(t,a,"path");let s=this.defaultHeaders,o=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);o!==void 0&&(s=s.set("Accept",o));let l=e?.context??new C,c=e?.transferCache??!0,i="json";o&&(o.startsWith("text")?i="text":this.configuration.isJsonMime(o)?i="json":i="blob");let d=`/previews/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/files/content`,{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${m}${d}`,b(u(b(u({context:l,params:t,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:p}),c!==void 0?{transferCache:c}:{}),{reportProgress:r}))}previewsControllerFinalizeRevision(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling previewsControllerFinalizeRevision.");
1if(a==null)throw new Error("Required parameter batchId was null or undefined when calling previewsControllerFinalizeRevision.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let i=`/previews/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/revisions/${this.configuration.encodeParam({name:"batchId",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/finalize`,{basePath:d,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${d}${i}`,b(u(b(u({context:o,responseType:c},m?{withCredentials:m}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}previewsControllerFinalizeUpload(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter finalizePreviewUploadDto was null or undefined when calling previewsControllerFinalizeUpload.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/previews/uploads/finalize",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}previewsControllerInitRevision(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling previewsControllerInitRevision.");if(a==null)throw new Error("Required parameter initPreviewRevisionDto was null or undefined when calling previewsControllerInitRevision.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/previews/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/revisions/init`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}previewsControllerInitUpload(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter initPreviewUploadDto was null or undefined when calling previewsControllerInitUpload.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/previews/uploads/init",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}previewsControllerList(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/previews",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}previewsControllerListFiles(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling previewsControllerListFiles.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/previews/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/files`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}previewsControllerPromote(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling previewsControllerPromote.");if(a==null)throw new Error("Required parameter promotePreviewDto was null or undefined when calling previewsControllerPromote.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/previews/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/promote`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var Q=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}siteRevisionsControllerFileContent(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling siteRevisionsControllerFileContent.");if(a==null)throw new Error("Required parameter path was null or undefined when calling siteRevisionsControllerFileContent.");let t=new j({encoder:this.encoder});t=this.addToHttpParams(t,a,"path");let s=this.defaultHeaders,o=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);o!==void 0&&(s=s.set("Accept",o));let l=e?.context??new C,c=e?.transferCache??!0,i="json";o&&(o.startsWith("text")?i="text":this.configuration.isJsonMime(o)?i="json":i="blob");let d=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/files/content`,{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${m}${d}`,b(u(b(u({context:l,params:t,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:p}),c!==void 0?{transferCache:c}:{}),{reportProgress:r}))}siteRevisionsControllerFinalizeRevision(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling siteRevisionsControllerFinalizeRevision.");
1if(a==null)throw new Error("Required parameter batchId was null or undefined when calling siteRevisionsControllerFinalizeRevision.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let i=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/revisions/${this.configuration.encodeParam({name:"batchId",value:a,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/finalize`,{basePath:d,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${d}${i}`,b(u(b(u({context:o,responseType:c},m?{withCredentials:m}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}siteRevisionsControllerInitRevision(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling siteRevisionsControllerInitRevision.");if(a==null)throw new Error("Required parameter initRevisionDto was null or undefined when calling siteRevisionsControllerInitRevision.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/revisions/init`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}siteRevisionsControllerListFiles(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling siteRevisionsControllerListFiles.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/files`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}sitesControllerAvailability(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter subdomain was null or undefined when calling sitesControllerAvailability.");let e=new j({encoder:this.encoder});e=this.addToHttpParams(e,n,"subdomain");let t=this.defaultHeaders,s=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=r?.context??new C,l=r?.transferCache??!0,c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let i="/sites/availability",{basePath:d,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${d}${i}`,b(u(b(u({context:o,params:e,responseType:c},m?{withCredentials:m}:{}),{headers:t,observe:a}),l!==void 0?{transferCache:l}:{}),{reportProgress:p}))}sitesControllerClearPassword(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling sitesControllerClearPassword.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/password`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("delete",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}sitesControllerDeleteSite(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling sitesControllerDeleteSite.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("delete",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}sitesControllerGet(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter id was null or undefined when calling sitesControllerGet.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("get",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}
1sitesControllerGetAnalytics(n,a,p,r,e,t="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling sitesControllerGetAnalytics.");let l=new j({encoder:this.encoder});l=this.addToHttpParams(l,a,"from"),l=this.addToHttpParams(l,p,"to"),l=this.addToHttpParams(l,r,"interval"),l=this.addToHttpParams(l,e,"tzOffset");let c=this.defaultHeaders,i=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(c=c.set("Accept",i));let d=o?.context??new C,m=o?.transferCache??!0,f="json";i&&(i.startsWith("text")?f="text":this.configuration.isJsonMime(i)?f="json":f="blob");let x=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/analytics`,{basePath:v,withCredentials:S}=this.configuration;return this.httpClient.request("get",`${v}${x}`,b(u(b(u({context:d,params:l,responseType:f},S?{withCredentials:S}:{}),{headers:c,observe:t}),m!==void 0?{transferCache:m}:{}),{reportProgress:s}))}sitesControllerGetRawAnalyticsEvents(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling sitesControllerGetRawAnalyticsEvents.");let t=new j({encoder:this.encoder});t=this.addToHttpParams(t,a,"limit");let s=this.defaultHeaders,o=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);o!==void 0&&(s=s.set("Accept",o));let l=e?.context??new C,c=e?.transferCache??!0,i="json";o&&(o.startsWith("text")?i="text":this.configuration.isJsonMime(o)?i="json":i="blob");let d=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/analytics/raw-events`,{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${m}${d}`,b(u(b(u({context:l,params:t,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:p}),c!==void 0?{transferCache:c}:{}),{reportProgress:r}))}sitesControllerList(n,a,p,r="body",e=!1,t){let s=new j({encoder:this.encoder});s=this.addToHttpParams(s,n,"status"),s=this.addToHttpParams(s,a,"page"),s=this.addToHttpParams(s,p,"pageSize");let o=this.defaultHeaders,l=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);l!==void 0&&(o=o.set("Accept",l));let c=t?.context??new C,i=t?.transferCache??!0,d="json";l&&(l.startsWith("text")?d="text":this.configuration.isJsonMime(l)?d="json":d="blob");let m="/sites",{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("get",`${f}${m}`,b(u(b(u({context:c,params:s,responseType:d},x?{withCredentials:x}:{}),{headers:o,observe:r}),i!==void 0?{transferCache:i}:{}),{reportProgress:e}))}sitesControllerSetPassword(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling sitesControllerSetPassword.");if(a==null)throw new Error("Required parameter setSitePasswordDto was null or undefined when calling sitesControllerSetPassword.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/password`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}sitesControllerSuggestSubdomain(n="body",a=!1,p){let r=this.defaultHeaders,e=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(r=r.set("Accept",e));let t=p?.context??new C,s=p?.transferCache??!0,o="json";e&&(e.startsWith("text")?o="text":this.configuration.isJsonMime(e)?o="json":o="blob");let l="/sites/suggest-subdomain",{basePath:c,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${c}${l}`,b(u(b(u({context:t,responseType:o},i?{withCredentials:i}:{}),{headers:r,observe:n}),s!==void 0?{transferCache:s}:{}),{reportProgress:a}))}sitesControllerTransfer(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling sitesControllerTransfer.");if(a==null)throw new Error("Required parameter transferSiteDto was null or undefined when calling sitesControllerTransfer.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/transfer`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}sitesControllerUpdateAnalyticsEnabled(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling sitesControllerUpdateAnalyticsEnabled.");
1if(a==null)throw new Error("Required parameter updateSiteAnalyticsEnabledDto was null or undefined when calling sitesControllerUpdateAnalyticsEnabled.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/analytics-enabled`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("patch",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}sitesControllerUpdateDownloadsPolicy(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling sitesControllerUpdateDownloadsPolicy.");if(a==null)throw new Error("Required parameter updateDownloadsPolicyDto was null or undefined when calling sitesControllerUpdateDownloadsPolicy.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/downloads-policy`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("patch",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}sitesControllerUpdateFormCapture(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling sitesControllerUpdateFormCapture.");if(a==null)throw new Error("Required parameter updateSiteFormCaptureDto was null or undefined when calling sitesControllerUpdateFormCapture.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/form-capture`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("patch",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}sitesControllerUpdateIndexable(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling sitesControllerUpdateIndexable.");if(a==null)throw new Error("Required parameter updateSiteIndexableDto was null or undefined when calling sitesControllerUpdateIndexable.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/indexable`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("patch",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}sitesControllerUpdateMeta(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling sitesControllerUpdateMeta.");if(a==null)throw new Error("Required parameter updateSiteMetaDto was null or undefined when calling sitesControllerUpdateMeta.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/meta`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("patch",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}sitesControllerUpdateStatus(n,a,p="body",r=!1,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling sitesControllerUpdateStatus.");if(a==null)throw new Error("Required parameter updateSiteStatusDto was null or undefined when calling sitesControllerUpdateStatus.");let t=this.defaultHeaders,s=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(t=t.set("Accept",s));let o=e?.context??new C,l=e?.transferCache??!0,c=["application/json"],i=this.configuration.selectHeaderContentType(c);i!==void 0&&(t=t.set("Content-Type",i));let d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let m=`/sites/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/status`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("patch",`${f}${m}`,b(u(b(u({context:o,body:a,responseType:d},x?{withCredentials:x}:{}),{headers:t,observe:p}),l!==void 0?{transferCache:l}:{}),{reportProgress:r}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var Y=class g extends y{constructor(n,a,p){super(a,p);this.httpClient=n}authenticatedUploadsControllerAbort(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter batchId was null or undefined when calling authenticatedUploadsControllerAbort.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let c=`/sites/uploads/${this.configuration.encodeParam({name:"batchId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:d}=this.configuration;return this.httpClient.request("delete",`${i}${c}`,b(u(b(u({context:s,responseType:l},d?{withCredentials:d}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}authenticatedUploadsControllerFinalize(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter finalizeUploadDto was null or undefined when calling authenticatedUploadsControllerFinalize.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/sites/uploads/finalize",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}authenticatedUploadsControllerInit(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter authInitUploadDto was null or undefined when calling authenticatedUploadsControllerInit.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/sites/uploads/init",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}uploadsControllerChangeVerificationEmail(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter changeVerificationEmailDto was null or undefined when calling uploadsControllerChangeVerificationEmail.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/uploads/change-verification-email",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}uploadsControllerFinalize(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter finalizeUploadDto was null or undefined when calling uploadsControllerFinalize.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/uploads/finalize",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}uploadsControllerInit(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter initUploadDto was null or undefined when calling uploadsControllerInit.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/uploads/init",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}uploadsControllerResendVerification(n,a="body",p=!1,r){if(n==null)throw new Error("Required parameter resendVerificationDto was null or undefined when calling uploadsControllerResendVerification.");let e=this.defaultHeaders,t=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(e=e.set("Accept",t));let s=r?.context??new C,o=r?.transferCache??!0,l=["application/json"],c=this.configuration.selectHeaderContentType(l);c!==void 0&&(e=e.set("Content-Type",c));let i="json";t&&(t.startsWith("text")?i="text":this.configuration.isJsonMime(t)?i="json":i="blob");let d="/uploads/resend-verification",{basePath:m,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${m}${d}`,b(u(b(u({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:e,observe:a}),o!==void 0?{transferCache:o}:{}),{reportProgress:p}))}static \u0275fac=function(a){return new(a||g)(H(R),H(P,8),H(A,8))};static \u0275prov=w({token:g,factory:g.\u0275fac,providedIn:"root"})};var ne;(a=>(a.CategoryEnum={Phishing:"phishing",Malware:"malware",Csam:"csam",Copyright:"copyright",Spam:"spam",Other:"other"},a.SiteStatusEnum={Pending:"pending",AwaitingVerification:"awaiting_verification",Live:"live",Inactive:"inactive",Suspended:"suspended"}
1,a.StatusEnum={Open:"open",Resolved:"resolved",Dismissed:"dismissed"}))(ne||={});var oe;(n=>(n.RoleEnum={Owner:"owner",Admin:"admin",Member:"member"},n.KindEnum={Personal:"personal",Organization:"organization"}))(oe||={});var re;(p=>(p.TypeEnum={UserSignedUp:"user.signed_up",SiteCreated:"site.created",SitePublished:"site.published",OrganizationCreated:"organization.created",SubscriptionStarted:"subscription.started",SubscriptionPlanChanged:"subscription.plan_changed",SubscriptionCanceled:"subscription.canceled",SubscriptionCancelScheduled:"subscription.cancel_scheduled",SubscriptionCancelReverted:"subscription.cancel_reverted",SubscriptionPaymentFailed:"subscription.payment_failed",PlanLimitHit:"plan.limit_hit",PreviewPublished:"preview.published",PreviewUpdated:"preview.updated",PreviewDiscarded:"preview.discarded",PreviewPromoted:"preview.promoted",PreviewUpdateRefused:"preview.update_refused",SiteDeleted:"site.deleted",AccountDeleted:"account.deleted",MemberLeft:"member.left",SiteSettingsChanged:"site.settings_changed",SiteSuspended:"site.suspended",SiteRestored:"site.restored",CustomDomainAdded:"custom_domain.added",CustomDomainVerified:"custom_domain.verified",MemberInvited:"member.invited",MemberJoined:"member.joined",UserRoleChanged:"user.role_changed",FormRepliesRevealed:"form.replies_revealed",UserBanned:"user.banned",UserUnbanned:"user.unbanned",SignupBlocked:"signup.blocked",EmailDomainAdded:"email_domain.added",EmailDomainRemoved:"email_domain.removed",RiskFlagged:"risk.flagged",RiskClusterReviewed:"risk.cluster_reviewed",RiskClusterReviewRemoved:"risk.cluster_review_removed",RiskUserTrusted:"risk.user_trusted",RiskUserTrustRemoved:"risk.user_trust_removed",SignupAllowlistAdded:"signup_allowlist.added",SignupAllowlistRemoved:"signup_allowlist.removed",DuplicateCaseOpened:"duplicate.case_opened",DuplicateReminderSent:"duplicate.reminder_sent",DuplicateCombineRequested:"duplicate.combine_requested",DuplicateAccountCombined:"duplicate.account_combined",DuplicateAccountDeleted:"duplicate.account_deleted",DuplicateCaseDisputed:"duplicate.case_disputed",DuplicateCaseResolved:"duplicate.case_resolved",DuplicateCaseReleased:"duplicate.case_released",EmailSent:"email.sent"},p.CategoryEnum={Growth:"growth",Revenue:"revenue",Churn:"churn",Ops:"ops"},p.SubjectTypeEnum={User:"user",Site:"site",Account:"account",Subscription:"subscription",CustomDomain:"custom_domain",Membership:"membership",Preview:"preview",EmailDomainRule:"email_domain_rule",SignupAllowlist:"signup_allowlist",RiskReview:"risk_review",DuplicateCase:"duplicate_case"},p.PlatformEnum={Web:"web",Cli:"cli",Mcp:"mcp",Extension:"extension",Api:"api"}))(re||={});var ae;(a=>(a.StatusEnum={PendingDns:"pending_dns",PendingSsl:"pending_ssl",Active:"active",Failed:"failed",Disabled:"disabled"},a.SiteStatusEnum={Pending:"pending",AwaitingVerification:"awaiting_verification",Live:"live",Inactive:"inactive",Suspended:"suspended"},a.PlanEnum={Free:"free",Basic:"basic",Pro:"pro",Max:"max"}))(ae||={});var se;(n=>(n.SiteStatusEnum={Pending:"pending",AwaitingVerification:"awaiting_verification",Live:"live",Inactive:"inactive",Suspended:"suspended"},n.PlanEnum={Free:"free",Basic:"basic",Pro:"pro",Max:"max"}))(se||={});var ie;(r=>(r.StatusEnum={Pending:"pending",AwaitingVerification:"awaiting_verification",Live:"live",Inactive:"inactive",Suspended:"suspended"},r.SuspendedReasonEnum={Billing:"billing",Abuse:"abuse",Duplicate:"duplicate"},r.AccountKindEnum={Personal:"personal",Organization:"organization"},r.PlanEnum={Free:"free",Basic:"basic",Pro:"pro",Max:"max"},r.CreatedByRiskLevelEnum={High:"high",Medium:"medium",Low:"low"}))(ie||={});var le;(h=>h.StatusEnum={PendingDns:"pending_dns",PendingSsl:"pending_ssl",Active:"active",Failed:"failed",Disabled:"disabled"})(le||={});var pe;(n=>(n.StatusEnum={Pending:"pending",AwaitingVerification:"awaiting_verification",Live:"live",Inactive:"inactive",Suspended:"suspended"},n.SuspendedReasonEnum={Billing:"billing",Abuse:"abuse",Duplicate:"duplicate"}))(pe||={});var ce;(a=>(a.RoleEnum={User:"user",Admin:"admin"},a.PlanEnum={Free:"free",Basic:"basic",Pro:"pro",Max:"max"},a.RiskLevelEnum={High:"high",Medium:"medium",Low:"low"}))(ce||={});var de;(e=>(e.AccountKindEnum={Personal:"personal",Organization:"organization"},e.RoleEnum={Owner:"owner",Admin:"admin",Member:"member"},e.StatusEnum={Invited:"invited",Active:"active",Suspended:"suspended"},e.PlanEnum={Free:"free",Basic:"basic",Pro:"pro",Max:"max"},e.SubscriptionStatusEnum={Active:"active",Trialing:"trialing",PastDue:"past_due",Canceled:"canceled",Incomplete:"incomplete",IncompleteExpired:"incomplete_expired",Unpaid:"unpaid",Paused:"paused"},e.BillingIntervalEnum={Month:"month",Year:"year"}))(de||={});var ue;(h=>h.RoleEnum={User:"user",Admin:"admin"})(ue||={});var be;(h=>h.StatusEnum={Pending:"pending",AwaitingVerification:"awaiting_verification",Live:"live",Inactive:"inactive",Suspended:"suspended"})(be||={});var fe;(h=>h.ScopesEnum={SitesRead:"sites:read",SitesDeploy:"sites:deploy",SitesManage:"sites:manage",AnalyticsRead:"analytics:read"})(fe||={});var me;(h=>h.StatusEnum={Live:"live",Inactive:"inactive"})(me||={});var he;(h=>h.ReasonEnum={InvalidFormat:"invalid_format",TooShort:"too_short",TooLong:"too_long",Reserved:"reserved",Taken:"taken"})(he||={});var Ce;(h=>h.ScopesEnum={SitesRead:"sites:read",SitesDeploy:"sites:deploy",SitesManage:"sites:manage",AnalyticsRead:"analytics:read"})(Ce||={});var ge;(h=>h.StatusEnum={PendingDns:"pending_dns",PendingSsl:"pending_ssl",Active:"active",Failed:"failed",Disabled:"disabled"})(ge||={});var xe;(h=>h.DownloadsPolicyEnum={Auto:"auto",On:"on",Off:"off"})(xe||={});var He;(n=>(n.StatusEnum={Awaiting:"awaiting",Disputed:"disputed",Resolved:"resolved",Released:"released"},n.OutcomeEnum={Combined:"combined",Removed:"removed"}))(He||={});var ve;(n=>(n.StateEnum={Pending:"pending",Kept:"kept",Combined:"combined",Deleted:"deleted"},n.PlanEnum={Free:"free",Basic:"basic",Pro:"pro",Max:"max"}))(ve||={});var Ae;(h=>h.StatusEnum={Awaiting:"awaiting",Disputed:"disputed"})(Ae||={});var ye;(h=>h.TierEnum={Free:"free",Basic:"basic",Pro:"pro",Max:"max"})(ye||={});var Pe;(n=>(n.ListEnum={Community:"community",Nippy:"nippy",PlusAlias:"plus_alias"},n.SignupRuleEnum={SameMailbox:"same_mailbox",NumberedAddress:"numbered_address",DeviceLimit:"device_limit"}))(Pe||={});var we;(h=>h.KindEnum={Block:"block",Allow:"allow"})(we||={});var Re;(h=>h.StatusEnum={Live:"live",Inactive:"inactive",AwaitingVerification:"awaiting_verification"})(Re||={});var je;(h=>h.IntervalEnum={_1m:"1m",_5m:"5m",_15m:"15m",_1h:"1h",_3h:"3h",_6h:"6h",_1d:"1d",_1w:"1w"})(je||={});var Se;(a=>(a.TemplateEnum={Welcome:"welcome",AgentWelcome:"agent_welcome",Unblock:"unblock",MakeItYours:"make_it_yours",TrialTips:"trial_tips",TrialEnding:"trial_ending",ActivationAsk:"activation_ask",FeedbackA
1sk:"feedback_ask",WeekOneUpsell:"week_one_upsell",PaidActivation:"paid_activation",FirstVisitors:"first_visitors",PreviewExpiring:"preview_expiring",PaymentFailed:"payment_failed",PlanEndedUnpaid:"plan_ended_unpaid"},a.SlotEnum={Day0:"day0",Day2:"day2",Day6:"day6",Event:"event",Retired:"retired"},a.StreamEnum={Broadcast:"broadcast",Transactional:"transactional"}))(Se||={});var Ie;(h=>h.TypeEnum={String:"string",Boolean:"boolean",Number:"number"})(Ie||={});var Ee;(h=>h.TemplateEnum={Welcome:"welcome",AgentWelcome:"agent_welcome",Unblock:"unblock",MakeItYours:"make_it_yours",TrialTips:"trial_tips",TrialEnding:"trial_ending",ActivationAsk:"activation_ask",FeedbackAsk:"feedback_ask",WeekOneUpsell:"week_one_upsell",PaidActivation:"paid_activation",FirstVisitors:"first_visitors",PreviewExpiring:"preview_expiring",PaymentFailed:"payment_failed",PlanEndedUnpaid:"plan_ended_unpaid"})(Ee||={});var Te;(n=>(n.TemplateEnum={Welcome:"welcome",AgentWelcome:"agent_welcome",Unblock:"unblock",MakeItYours:"make_it_yours",TrialTips:"trial_tips",TrialEnding:"trial_ending",ActivationAsk:"activation_ask",FeedbackAsk:"feedback_ask",WeekOneUpsell:"week_one_upsell",PaidActivation:"paid_activation",FirstVisitors:"first_visitors",PreviewExpiring:"preview_expiring",PaymentFailed:"payment_failed",PlanEndedUnpaid:"plan_ended_unpaid"},n.StreamEnum={Broadcast:"broadcast",Transactional:"transactional"}))(Te||={});var Oe;(n=>(n.TemplateEnum={Welcome:"welcome",AgentWelcome:"agent_welcome",Unblock:"unblock",MakeItYours:"make_it_yours",TrialTips:"trial_tips",TrialEnding:"trial_ending",ActivationAsk:"activation_ask",FeedbackAsk:"feedback_ask",WeekOneUpsell:"week_one_upsell",PaidActivation:"paid_activation",FirstVisitors:"first_visitors",PreviewExpiring:"preview_expiring",PaymentFailed:"payment_failed",PlanEndedUnpaid:"plan_ended_unpaid"},n.StreamEnum={Broadcast:"broadcast",Transactional:"transactional"}))(Oe||={});var Ve;(n=>(n.RoleEnum={Owner:"owner",Admin:"admin",Member:"member"},n.StatusEnum={Invited:"invited",Active:"active",Suspended:"suspended"}))(Ve||={});var De;(h=>h.TierEnum={Free:"free",Basic:"basic",Pro:"pro",Max:"max"})(De||={});var ke;(h=>h.StatusEnum={Pending:"pending",Live:"live",Expired:"expired",Promoted:"promoted"})(ke||={});var _e;(n=>(n.LevelEnum={High:"high",Medium:"medium",Low:"low"},n.StatusEnum={Open:"open",Contacted:"contacted",Dismissed:"dismissed",Banned:"banned"}))(_e||={});var Ue;(h=>h.LevelEnum={High:"high",Medium:"medium",Low:"low"})(Ue||={});var Fe;(h=>h.KindEnum={Device:"device",Mailbox:"mailbox",IpBurst:"ip_burst",EmailDomain:"email_domain",NumberedStem:"numbered_stem",SameFile:"same_file",IpPrefixDay:"ip_prefix_day"})(Fe||={});var $e;(h=>h.KindEnum={Device:"device",Mailbox:"mailbox",IpBurst:"ip_burst",EmailDomain:"email_domain",NumberedStem:"numbered_stem",SameFile:"same_file",IpPrefixDay:"ip_prefix_day"})($e||={});var Me;(h=>h.LevelEnum={High:"high",Medium:"medium",Low:"low"})(Me||={});var Le;(h=>h.StatusEnum={Pending:"pending",AwaitingVerification:"awaiting_verification",Live:"live",Inactive:"inactive",Suspended:"suspended"})(Le||={});var qe;(h=>h.CodeEnum={Device:"device",Mailbox:"mailbox",IpBurst:"ip_burst",EmailDomain:"email_domain",NumberedStem:"numbered_stem",SameFile:"same_file",IpPrefixDay:"ip_prefix_day",ClusterSize:"cluster_size",DocumentFarm:"document_farm"})(qe||={});var Be;(h=>h.IntervalEnum={Month:"month",Year:"year"})(Be||={});var We;(n=>(n.IntervalEnum={_1m:"1m",_5m:"5m",_15m:"15m",_1h:"1h",_3h:"3h",_6h:"6h",_1d:"1d",_1w:"1w"},n.GranularityEnum={Minute:"minute",Hour:"hour",Day:"day",Week:"week"}))(We||={});var ze;(h=>h.StatusEnum={Pending:"pending",AwaitingVerification:"awaiting_verification",Live:"live",Inactive:"inactive",Suspended:"suspended"})(ze||={});var Je;(a=>(a.StatusEnum={AwaitingVerification:"awaiting_verification",Live:"live",Inactive:"inactive",Suspended:"suspended"},a.SuspendedReasonEnum={Billing:"billing",Abuse:"abuse",Duplicate:"duplicate"},a.DownloadsPolicyEnum={Auto:"auto",On:"on",Off:"off"}))(Je||={});var Ge;(a=>(a.StatusEnum={Pending:"pending",AwaitingVerification:"awaiting_verification",Live:"live",Inactive:"inactive",Suspended:"suspended"},a.OwnerRiskLevelEnum={High:"high",Medium:"medium",Low:"low"},a.PlanEnum={Free:"free",Basic:"basic",Pro:"pro",Max:"max"}))(Ge||={});var Ne;(h=>h.WindowEnum={_1h:"1h",_24h:"24h",_7d:"7d",_30d:"30d"})(Ne||={});var Ke;(n=>(n.StatusEnum={Pending:"pending",AwaitingVerification:"awaiting_verification",Live:"live",Inactive:"inactive",Suspended:"suspended"},n.PlanEnum={Free:"free",Basic:"basic",Pro:"pro",Max:"max"}))(Ke||={});var Qe;(e=>(e.PlanEnum={Free:"free",Basic:"basic",Pro:"pro",Max:"max"},e.StatusEnum={Active:"active",Trialing:"trialing",PastDue:"past_due",Canceled:"canceled",Incomplete:"incomplete",IncompleteExpired:"incomplete_expired",Unpaid:"unpaid",Paused:"paused"},e.IntervalEnum={Month:"month",Year:"year"},e.CurrencyEnum={Gbp:"gbp",Usd:"usd",Eur:"eur",Chf:"chf"},e.ScheduledIntervalEnum={Month:"month",Year:"year"},e.ScheduledPlanEnum={Free:"free",Basic:"basic",Pro:"pro",Max:"max"}))(Qe||={});var Ye;(h=>h.RoleEnum={User:"user",Admin:"admin"})(Ye||={});var Xe;(h=>h.LevelEnum={High:"high",Medium:"medium",Low:"low"})(Xe||={});var Ze;(h=>h.KindEnum={Block:"block",Allow:"allow"})(Ze||={});var et;(h=>h.CategoryEnum={Phishing:"phishing",Malware:"malware",Csam:"csam",Copyright:"copyright",Spam:"spam",Other:"other"})(et||={});var tt;(h=>h.ScopesEnum={SitesRead:"sites:read",SitesDeploy:"sites:deploy",SitesManage:"sites:manage",AnalyticsRead:"analytics:read"})(tt||={});var nt;(h=>h.RoleEnum={Admin:"admin",Member:"member"})(nt||={});var ot;(a=>(a.CheckoutPlanEnum={Basic:"basic",Pro:"pro"},a.CheckoutIntervalEnum={Month:"month",Year:"year"},a.CheckoutCurrencyEnum={Usd:"usd",Gbp:"gbp",Eur:"eur",Chf:"chf"}))(ot||={});var rt;(a=>(a.PlanEnum={Basic:"basic",Pro:"pro",Max:"max"},a.IntervalEnum={Month:"month",Year:"year"},a.CurrencyEnum={Usd:"usd",Gbp:"gbp",Eur:"eur",Chf:"chf"}))(rt||={});var at;(h=>h.TemplateEnum={Welcome:"welcome",AgentWelcome:"agent_welcome",Unblock:"unblock",MakeItYours:"make_it_yours",TrialTips:"trial_tips",ActivationAsk:"activation_ask",WeekOneUpsell:"week_one_upsell",PaidActivation:"paid_activation",FirstVisitors:"first_visitors",PreviewExpiring:"preview_expiring",PaymentFailed:"payment_failed",PlanEndedUnpaid:"plan_ended_unpaid"})(at||={});var st;(h=>
1h.OutcomeEnum={Accepted:"accepted",Dismissed:"dismissed"})(st||={});var it;(h=>h.TemplateEnum={Welcome:"welcome",AgentWelcome:"agent_welcome",Unblock:"unblock",MakeItYours:"make_it_yours",TrialTips:"trial_tips",ActivationAsk:"activation_ask",WeekOneUpsell:"week_one_upsell",PaidActivation:"paid_activation",FirstVisitors:"first_visitors",PreviewExpiring:"preview_expiring",PaymentFailed:"payment_failed",PlanEndedUnpaid:"plan_ended_unpaid"})(it||={});var lt;(p=>(p.PlanEnum={Basic:"basic",Pro:"pro",Max:"max"},p.IntervalEnum={Month:"month",Year:"year"},p.CurrencyEnum={Usd:"usd",Gbp:"gbp",Eur:"eur",Chf:"chf"},p.ReturnToEnum={Billing:"billing",Dashboard:"dashboard"}))(lt||={});var pt;(h=>h.StatusEnum={Open:"open",Resolved:"resolved",Dismissed:"dismissed"})(pt||={});var ct;(h=>h.PolicyEnum={Auto:"auto",On:"on",Off:"off"})(ct||={});var dt;(h=>h.StatusEnum={Live:"live",Inactive:"inactive"})(dt||={});var ut;(h=>h.RoleEnum={User:"user",Admin:"admin"})(ut||={});export{A as a,W as b,_ as c,z as d,U as e,F as f,$ as g,J as h,M as i,G as j,L as k,q as l,K as m,Q as n,B as o,Y as p,re as q,De as r,Ye as s,ct as t,dt as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.