rehive 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.d.mts +10 -0
- package/dist/react.d.ts +10 -0
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var K=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var je=Object.prototype.hasOwnProperty;var R=(p,r)=>()=>(p&&(r=p(p=0)),r);var b=(p,r)=>{for(var e in r)K(p,e,{get:r[e],enumerable:!0})},ke=(p,r,e,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of Ne(r))!je.call(p,s)&&s!==e&&K(p,s,{get:()=>r[s],enumerable:!(t=Oe(r,s))||t.enumerable});return p};var C=p=>ke(K({},"__esModule",{value:!0}),p);async function re(p){try{let r=await p;if(!r.ok){let e=await r.text(),t=null;try{t=JSON.parse(e)}catch{t=null}throw new f({status:r.status,error:t||e,message:t?.error||t?.message||"A server error occurred. HTTPStatus: "+r.status})}return r}catch(r){throw console.log("Error during fetch operation:",r),r}}var f,G=R(()=>{"use strict";f=class p extends Error{constructor({status:r,error:e,message:t}){super(t),this.status=r,this.error=e,Object.setPrototypeOf(this,p.prototype)}}});var ne,T,x=R(()=>{"use strict";G();ne=(s=>(s.Json="application/json",s.FormData="multipart/form-data",s.UrlEncoded="application/x-www-form-urlencoded",s.Text="text/plain",s))(ne||{}),T=class{constructor(r={}){this.baseUrl="https://api.rehive.com";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return re(this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)})).then(async m=>{let i=await m[g||"json"]();return o&&this.abortControllers.delete(o),i})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}}});var ie={};b(ie,{Api:()=>$,ContentType:()=>ae,HttpClient:()=>v});var ae,v,$,oe=R(()=>{"use strict";ae=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(ae||{}),v=class{constructor(r={}){this.baseUrl="https://conversion.services.rehive.com/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},$=class extends v{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminConversionPairsList:(e,t={})=>this.request({path:"/admin/conversion-pairs/",method:"GET",query:e,secure:!0,format:"json",...t}),adminConversionPairsCreate:(e,t={})=>this.request({path:"/admin/conversion-pairs/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminConversionPairsRetrieve:(e,t={})=>this.request({path:`/admin/conversion-pairs/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminConversionPairsUpdate:(e,t,s={})=>this.request({path:`/admin/conversion-pairs/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminConversionPairsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/conversion-pairs/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminConversionPairsDestroy:(e,t={})=>this.request({path:`/admin/conversion-pairs/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminConversionsList:(e,t={})=>this.request({path:"/admin/conversions/",method:"GET",query:e,secure:!0,format:"json",...t}),adminConversionsCreate:(e,t={})=>this.request({path:"/admin/conversions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminConversionsRetrieve:(e,t={})=>this.request({path:`/admin/conversions/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminConversionsUpdate:(e,t,s={})=>this.request({path:`/admin/conversions/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminConversionsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/conversions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCurrenciesList:(e,t={})=>this.request({path:"/admin/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCurrenciesCreate:(e,t={})=>this.request({path:"/admin/currencies/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCurrenciesRetrieve:(e,t={})=>this.request({path:`/admin/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCurrenciesUpdate:(e,t,s={})=>this.request({path:`/admin/currencies/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCurrenciesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/currencies/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsList:(e,t={})=>this.request({path:"/admin/integrations/",method:"GET",query:e,secure:!0,format:"json",...t}),adminIntegrationsCreate:(e,t={})=>this.request({path:"/admin/integrations/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminIntegrationsRetrieve:(e,t={})=>this.request({path:`/admin/integrations/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminIntegrationsUpdate:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsDestroy:(e,t={})=>this.request({path:`/admin/integrations/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminIntegrationsWebhooksList:({identifier:e,...t},s={})=>this.request({path:`/admin/integrations/${e}/webhooks/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminIntegrationsWebhooksCreate:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/webhooks/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsWebhooksRetrieve:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/webhooks/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminIntegrationsWebhooksUpdate:(e,t,s,n={})=>this.request({path:`/admin/integrations/${e}/webhooks/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminIntegrationsWebhooksPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/integrations/${e}/webhooks/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminIntegrationsWebhooksDestroy:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/webhooks/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),adminRatePairsList:(e,t={})=>this.request({path:"/admin/rate-pairs/",method:"GET",query:e,secure:!0,format:"json",...t}),adminRatePairsCreate:(e,t={})=>this.request({path:"/admin/rate-pairs/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminRatePairsRetrieve:(e,t={})=>this.request({path:`/admin/rate-pairs/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminRatePairsUpdate:(e,t,s={})=>this.request({path:`/admin/rate-pairs/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminRatePairsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/rate-pairs/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminRatePairsDestroy:(e,t={})=>this.request({path:`/admin/rate-pairs/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminUsersList:(e,t={})=>this.request({path:"/admin/users/",method:"GET",query:e,secure:!0,format:"json",...t}),adminUsersRetrieve:(e,t={})=>this.request({path:`/admin/users/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminUsersUpdate:(e,t,s={})=>this.request({path:`/admin/users/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/users/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.user={userConversionPairsList:(e,t={})=>this.request({path:"/user/conversion-pairs/",method:"GET",query:e,secure:!0,format:"json",...t}),userConversionPairsRetrieve:(e,t={})=>this.request({path:`/user/conversion-pairs/${e}/`,method:"GET",secure:!0,format:"json",...t}),userConversionsList:(e,t={})=>this.request({path:"/user/conversions/",method:"GET",query:e,secure:!0,format:"json",...t}),userConversionsCreate:(e,t={})=>this.request({path:"/user/conversions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userConversionsRetrieve:(e,t={})=>this.request({path:`/user/conversions/${e}/`,method:"GET",secure:!0,format:"json",...t}),userConversionsUpdate:(e,t,s={})=>this.request({path:`/user/conversions/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userConversionsPartialUpdate:(e,t,s={})=>this.request({path:`/user/conversions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userCurrenciesList:(e,t={})=>this.request({path:"/user/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),userCurrenciesRetrieve:(e,t={})=>this.request({path:`/user/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),userRatesList:(e,t={})=>this.request({path:"/user/rates/",method:"GET",query:e,secure:!0,format:"json",...t}),userRatesRetrieve:(e,t={})=>this.request({path:`/user/rates/${e}/`,method:"GET",secure:!0,format:"json",...t}),userRatesSnapshotRetrieve:(e={})=>this.request({path:"/user/rates/snapshot/",method:"GET",secure:!0,format:"json",...e}),userRatesSnapshotsList:(e={})=>this.request({path:"/user/rates/snapshots/",method:"GET",secure:!0,format:"json",...e}),userSettingsRetrieve:(e={})=>this.request({path:"/user/settings/",method:"GET",secure:!0,format:"json",...e}),userSettingsUpdate:(e,t={})=>this.request({path:"/user/settings/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),userSettingsPartialUpdate:(e,t={})=>this.request({path:"/user/settings/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var ce={};b(ce,{Api:()=>H,ContentType:()=>ue,HttpClient:()=>E});var ue,E,H,de=R(()=>{"use strict";ue=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(ue||{}),E=class{constructor(r={}){this.baseUrl="https://mass-send.services.rehive.com/api/1/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},H=class extends E{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminUploadsList:(e,t={})=>this.request({path:"/admin/uploads/",method:"GET",query:e,secure:!0,format:"json",...t}),adminUploadsCreate:(e,t={})=>this.request({path:"/admin/uploads/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminUploadsRetrieve:(e,t={})=>this.request({path:`/admin/uploads/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminUploadsUpdate:(e,t,s={})=>this.request({path:`/admin/uploads/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUploadsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/uploads/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUploadsTransactionsList:({batchId:e,...t},s={})=>this.request({path:`/admin/uploads/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.uploads={uploadsList:(e,t={})=>this.request({path:"/uploads/",method:"GET",query:e,secure:!0,format:"json",...t}),uploadsCreate:(e,t={})=>this.request({path:"/uploads/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),uploadsRetrieve:(e,t={})=>this.request({path:`/uploads/${e}/`,method:"GET",secure:!0,format:"json",...t}),uploadsUpdate:(e,t,s={})=>this.request({path:`/uploads/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),uploadsPartialUpdate:(e,t,s={})=>this.request({path:`/uploads/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),uploadsTransactionsList:({batchId:e,...t},s={})=>this.request({path:`/uploads/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var me={};b(me,{Api:()=>J,ContentType:()=>pe,HttpClient:()=>B});var pe,B,J,le=R(()=>{"use strict";pe=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(pe||{}),B=class{constructor(r={}){this.baseUrl="https://notification.services.rehive.com/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},J=class extends B{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCredentialsList:(e,t={})=>this.request({path:"/admin/credentials/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCredentialsCreate:(e,t={})=>this.request({path:"/admin/credentials/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCredentialsRetrieve:(e,t={})=>this.request({path:`/admin/credentials/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCredentialsUpdate:(e,t,s={})=>this.request({path:`/admin/credentials/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCredentialsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/credentials/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCredentialsDestroy:(e,t={})=>this.request({path:`/admin/credentials/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminLayoutTemplatesList:(e,t={})=>this.request({path:"/admin/layout-templates/",method:"GET",query:e,secure:!0,format:"json",...t}),adminLayoutTemplatesRetrieve:(e,t={})=>this.request({path:`/admin/layout-templates/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminLayoutsList:(e,t={})=>this.request({path:"/admin/layouts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminLayoutsCreate:(e,t={})=>this.request({path:"/admin/layouts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminLayoutsRetrieve:(e,t={})=>this.request({path:`/admin/layouts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminLayoutsUpdate:(e,t,s={})=>this.request({path:`/admin/layouts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminLayoutsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/layouts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminLayoutsDestroy:(e,t={})=>this.request({path:`/admin/layouts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminLogsList:(e,t={})=>this.request({path:"/admin/logs/",method:"GET",query:e,secure:!0,format:"json",...t}),adminLogsRetrieve:(e,t={})=>this.request({path:`/admin/logs/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminLogsSendCreate:(e,t,s={})=>this.request({path:`/admin/logs/${e}/send/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminNotificationsList:(e,t={})=>this.request({path:"/admin/notifications/",method:"GET",query:e,secure:!0,format:"json",...t}),adminNotificationsCreate:(e,t={})=>this.request({path:"/admin/notifications/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminNotificationsRetrieve:(e,t={})=>this.request({path:`/admin/notifications/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminNotificationsUpdate:(e,t,s={})=>this.request({path:`/admin/notifications/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminNotificationsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/notifications/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminNotificationsDestroy:(e,t={})=>this.request({path:`/admin/notifications/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminNotificationsTriggerCreate:(e,t,s={})=>this.request({path:`/admin/notifications/${e}/trigger/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminTemplatesList:(e,t={})=>this.request({path:"/admin/templates/",method:"GET",query:e,secure:!0,format:"json",...t}),adminTemplatesRetrieve:(e,t={})=>this.request({path:`/admin/templates/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminWebhookCreate:(e,t={})=>this.request({path:"/admin/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.user={userNotificationsList:(e,t={})=>this.request({path:"/user/notifications/",method:"GET",query:e,secure:!0,format:"json",...t}),userNotificationsRetrieve:(e,t={})=>this.request({path:`/user/notifications/${e}/`,method:"GET",secure:!0,format:"json",...t}),userNotificationsUpdate:(e,t,s={})=>this.request({path:`/user/notifications/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userNotificationsPartialUpdate:(e,t,s={})=>this.request({path:`/user/notifications/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var ye={};b(ye,{Api:()=>Z,ContentType:()=>ge,HttpClient:()=>I});var ge,I,Z,Ae=R(()=>{"use strict";ge=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(ge||{}),I=class{constructor(r={}){this.baseUrl="https://product.services.rehive.com/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},Z=class extends I{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCategoriesList:(e,t={})=>this.request({path:"/admin/categories/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCategoriesCreate:(e,t={})=>this.request({path:"/admin/categories/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCategoriesRetrieve:(e,t={})=>this.request({path:`/admin/categories/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCategoriesUpdate:(e,t,s={})=>this.request({path:`/admin/categories/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCategoriesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/categories/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCategoriesDestroy:(e,t={})=>this.request({path:`/admin/categories/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCurrenciesList:(e,t={})=>this.request({path:"/admin/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCurrenciesRetrieve:(e,t={})=>this.request({path:`/admin/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminIntegrationsList:(e,t={})=>this.request({path:"/admin/integrations/",method:"GET",query:e,secure:!0,format:"json",...t}),adminIntegrationsCreate:(e,t={})=>this.request({path:"/admin/integrations/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminIntegrationsRetrieve:(e,t={})=>this.request({path:`/admin/integrations/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminIntegrationsUpdate:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsDestroy:(e,t={})=>this.request({path:`/admin/integrations/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminIntegrationsWebhooksList:({identifier:e,...t},s={})=>this.request({path:`/admin/integrations/${e}/webhooks/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminIntegrationsWebhooksCreate:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/webhooks/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsWebhooksRetrieve:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/webhooks${t}/`,method:"GET",secure:!0,format:"json",...s}),adminIntegrationsWebhooksUpdate:(e,t,s,n={})=>this.request({path:`/admin/integrations/${e}/webhooks${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminIntegrationsWebhooksPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/integrations/${e}/webhooks${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminIntegrationsWebhooksDestroy:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/webhooks${t}/`,method:"DELETE",secure:!0,format:"json",...s}),adminOrdersList:(e,t={})=>this.request({path:"/admin/orders/",method:"GET",query:e,secure:!0,format:"json",...t}),adminOrdersCreate:(e,t={})=>this.request({path:"/admin/orders/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminOrdersRetrieve:(e,t={})=>this.request({path:`/admin/orders/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminOrdersUpdate:(e,t,s={})=>this.request({path:`/admin/orders/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminOrdersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/orders/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminOrdersDestroy:(e,t={})=>this.request({path:`/admin/orders/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminOrdersItemsList:({identifier:e,...t},s={})=>this.request({path:`/admin/orders/${e}/items/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminOrdersItemsCreate:(e,t,s={})=>this.request({path:`/admin/orders/${e}/items/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminOrdersPaymentsList:({identifier:e,...t},s={})=>this.request({path:`/admin/orders/${e}/payments/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminOrdersPaymentsCreate:(e,t,s={})=>this.request({path:`/admin/orders/${e}/payments/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminOrdersRefundsList:({identifier:e,...t},s={})=>this.request({path:`/admin/orders/${e}/refunds/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminOrdersRefundsCreate:(e,t,s={})=>this.request({path:`/admin/orders/${e}/refunds/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminOrdersItemsRetrieve:(e,t,s={})=>this.request({path:`/admin/orders/${t}/items/${e}/`,method:"GET",secure:!0,format:"json",...s}),adminOrdersItemsUpdate:(e,t,s,n={})=>this.request({path:`/admin/orders/${t}/items/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminOrdersItemsPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/orders/${t}/items/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminOrdersItemsDestroy:(e,t,s={})=>this.request({path:`/admin/orders/${t}/items/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),adminOrdersPaymentsRetrieve:(e,t,s={})=>this.request({path:`/admin/orders/${e}/payments/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminOrdersPaymentsUpdate:(e,t,s,n={})=>this.request({path:`/admin/orders/${e}/payments/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminOrdersPaymentsPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/orders/${e}/payments/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminOrdersRefundsRetrieve:(e,t,s={})=>this.request({path:`/admin/orders/${e}/refunds/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminOrdersRefundsUpdate:(e,t,s,n={})=>this.request({path:`/admin/orders/${e}/refunds/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminOrdersRefundsPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/orders/${e}/refunds/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsList:(e,t={})=>this.request({path:"/admin/products/",method:"GET",query:e,secure:!0,format:"json",...t}),adminProductsCreate:(e,t={})=>this.request({path:"/admin/products/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminProductsRetrieve:(e,t={})=>this.request({path:`/admin/products/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminProductsUpdate:(e,t,s={})=>this.request({path:`/admin/products/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/products/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsDestroy:(e,t={})=>this.request({path:`/admin/products/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminProductsCategoriesList:({identifier:e,...t},s={})=>this.request({path:`/admin/products/${e}/categories/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminProductsCategoriesCreate:(e,t,s={})=>this.request({path:`/admin/products/${e}/categories/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsOptionsList:({identifier:e,...t},s={})=>this.request({path:`/admin/products/${e}/options/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminProductsOptionsCreate:(e,t,s={})=>this.request({path:`/admin/products/${e}/options/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsPricesList:({identifier:e,...t},s={})=>this.request({path:`/admin/products/${e}/prices/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminProductsPricesCreate:(e,t,s={})=>this.request({path:`/admin/products/${e}/prices/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsVariantsList:({identifier:e,...t},s={})=>this.request({path:`/admin/products/${e}/variants/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminProductsVariantsCreate:(e,t,s={})=>this.request({path:`/admin/products/${e}/variants/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsCategoriesRetrieve:(e,t,s={})=>this.request({path:`/admin/products/${t}/categories/${e}/`,method:"GET",secure:!0,format:"json",...s}),adminProductsCategoriesDestroy:(e,t,s={})=>this.request({path:`/admin/products/${t}/categories/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),adminProductsImagesList:({productId:e,...t},s={})=>this.request({path:`/admin/products/${e}/images/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminProductsImagesCreate:(e,t,s={})=>this.request({path:`/admin/products/${e}/images/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsImagesRetrieve:(e,t,s={})=>this.request({path:`/admin/products/${t}/images/${e}/`,method:"GET",secure:!0,format:"json",...s}),adminProductsImagesUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/images/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsImagesPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/images/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsImagesDestroy:(e,t,s={})=>this.request({path:`/admin/products/${t}/images/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),adminProductsOptionsRetrieve:(e,t,s={})=>this.request({path:`/admin/products/${t}/options/${e}/`,method:"GET",secure:!0,format:"json",...s}),adminProductsOptionsUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/options/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsOptionsPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/options/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsOptionsDestroy:(e,t,s={})=>this.request({path:`/admin/products/${t}/options/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),adminProductsPricesRetrieve:(e,t,s={})=>this.request({path:`/admin/products/${t}/prices/${e}/`,method:"GET",secure:!0,format:"json",...s}),adminProductsPricesUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/prices/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsPricesPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/prices/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsPricesDestroy:(e,t,s={})=>this.request({path:`/admin/products/${t}/prices/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),adminProductsVariantsRetrieve:(e,t,s={})=>this.request({path:`/admin/products/${e}/variants/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminProductsVariantsUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${e}/variants/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsVariantsPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${e}/variants/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsVariantsDestroy:(e,t,s={})=>this.request({path:`/admin/products/${e}/variants/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),adminProductsVariantsPricesList:({productId:e,variantId:t,...s},n={})=>this.request({path:`/admin/products/${e}/variants/${t}/prices/`,method:"GET",query:s,secure:!0,format:"json",...n}),adminProductsVariantsPricesCreate:(e,t,s,n={})=>this.request({path:`/admin/products/${e}/variants/${t}/prices/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsVariantsPricesRetrieve:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/variants/${s}/prices/${e}/`,method:"GET",secure:!0,format:"json",...n}),adminProductsVariantsPricesUpdate:(e,t,s,n,a={})=>this.request({path:`/admin/products/${t}/variants/${s}/prices/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),adminProductsVariantsPricesPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/admin/products/${t}/variants/${s}/prices/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),adminProductsVariantsPricesDestroy:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/variants/${s}/prices/${e}/`,method:"DELETE",secure:!0,format:"json",...n}),adminRedemptionsList:(e,t={})=>this.request({path:"/admin/redemptions/",method:"GET",query:e,secure:!0,format:"json",...t}),adminRedemptionsCreate:(e,t={})=>this.request({path:"/admin/redemptions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminRedemptionsRetrieve:(e,t={})=>this.request({path:`/admin/redemptions/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminSellersList:(e,t={})=>this.request({path:"/admin/sellers/",method:"GET",query:e,secure:!0,format:"json",...t}),adminSellersRetrieve:(e,t={})=>this.request({path:`/admin/sellers/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminSellersUpdate:(e,t,s={})=>this.request({path:`/admin/sellers/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminSellersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/sellers/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminVoucherImportsList:(e,t={})=>this.request({path:"/admin/voucher-imports/",method:"GET",query:e,secure:!0,format:"json",...t}),adminVoucherImportsCreate:(e,t={})=>this.request({path:"/admin/voucher-imports/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminVoucherImportsRetrieve:(e,t={})=>this.request({path:`/admin/voucher-imports/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminVouchersList:(e,t={})=>this.request({path:"/admin/vouchers/",method:"GET",query:e,secure:!0,format:"json",...t}),adminVouchersCreate:(e,t={})=>this.request({path:"/admin/vouchers/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminVouchersRetrieve:(e,t={})=>this.request({path:`/admin/vouchers/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminVouchersUpdate:(e,t,s={})=>this.request({path:`/admin/vouchers/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminVouchersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/vouchers/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminVouchersDestroy:(e,t={})=>this.request({path:`/admin/vouchers/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminVouchersActionsList:({identifier:e,...t},s={})=>this.request({path:`/admin/vouchers/${e}/actions/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminVouchersActionsRetrieve:(e,t,s={})=>this.request({path:`/admin/vouchers/${t}/actions/${e}/`,method:"GET",secure:!0,format:"json",...s}),adminVouchersImportCreate:(e,t={})=>this.request({path:"/admin/vouchers/import/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminVouchersQueryCreate:(e,t={})=>this.request({path:"/admin/vouchers/query/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.manager={managerCategoriesList:(e,t={})=>this.request({path:"/manager/categories/",method:"GET",query:e,secure:!0,format:"json",...t}),managerCategoriesRetrieve:(e,t={})=>this.request({path:`/manager/categories/${e}/`,method:"GET",secure:!0,format:"json",...t}),managerCompanyRetrieve:(e={})=>this.request({path:"/manager/company/",method:"GET",secure:!0,format:"json",...e}),managerCurrenciesList:(e,t={})=>this.request({path:"/manager/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),managerCurrenciesRetrieve:(e,t={})=>this.request({path:`/manager/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),managerSellersList:(e,t={})=>this.request({path:"/manager/sellers/",method:"GET",query:e,secure:!0,format:"json",...t}),managerSellersCreate:(e,t={})=>this.request({path:"/manager/sellers/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),managerSellersRetrieve:(e,t={})=>this.request({path:`/manager/sellers/${e}/`,method:"GET",secure:!0,format:"json",...t}),managerSellersUpdate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersPartialUpdate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersIntegrationsList:({identifier:e,...t},s={})=>this.request({path:`/manager/sellers/${e}/integrations/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerSellersIntegrationsCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/integrations/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersIntegrationsRetrieve:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/`,method:"GET",secure:!0,format:"json",...s}),managerSellersIntegrationsUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersIntegrationsPartialUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersIntegrationsDestroy:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),managerSellersIntegrationsWebhooksList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/webhooks/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersIntegrationsWebhooksCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/webhooks/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersIntegrationsWebhooksRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/webhooks/${s}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersIntegrationsWebhooksUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/webhooks/${s}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersIntegrationsWebhooksPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/webhooks/${s}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersIntegrationsWebhooksDestroy:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/webhooks/${s}/`,method:"DELETE",secure:!0,format:"json",...n}),managerSellersOrdersList:({sellerId:e,...t},s={})=>this.request({path:`/manager/sellers/${e}/orders/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerSellersOrdersRetrieve:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/`,method:"GET",secure:!0,format:"json",...s}),managerSellersOrdersUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersOrdersPartialUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersOrdersItemsList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/items/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersOrdersPaymentsList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/payments/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersOrdersRefundsList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/refunds/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersOrdersRefundsCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/refunds/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersOrdersItemsRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/orders/${t}/items/${e}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersOrdersItemsUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/orders/${t}/items/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersOrdersItemsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/orders/${t}/items/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersOrdersPaymentsRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/orders/${e}/payments/${t}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersOrdersPaymentsUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/orders/${e}/payments/${t}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersOrdersPaymentsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/orders/${e}/payments/${t}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersOrdersRefundsRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/orders/${e}/refunds/${t}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersOrdersRefundsUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/orders/${e}/refunds/${t}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersOrdersRefundsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/orders/${e}/refunds/${t}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsList:({sellerId:e,...t},s={})=>this.request({path:`/manager/sellers/${e}/products/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerSellersProductsCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/products/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersProductsRetrieve:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/products/${e}/`,method:"GET",secure:!0,format:"json",...s}),managerSellersProductsUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsPartialUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsDestroy:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/products/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),managerSellersProductsCategoriesList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/categories/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersProductsCategoriesCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/categories/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsOptionsList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/options/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersProductsOptionsCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/options/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsPricesList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/prices/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersProductsPricesCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/prices/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsVariantsList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersProductsVariantsCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsCategoriesRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/categories/${e}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersProductsCategoriesDestroy:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/categories/${e}/`,method:"DELETE",secure:!0,format:"json",...n}),managerSellersProductsImagesList:({productId:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/images/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersProductsImagesCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/images/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsImagesRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/images/${e}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersProductsImagesUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/images/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsImagesPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/images/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsImagesDestroy:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/images/${e}/`,method:"DELETE",secure:!0,format:"json",...n}),managerSellersProductsOptionsRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/options/${e}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersProductsOptionsUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/options/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsOptionsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/options/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsOptionsDestroy:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/options/${e}/`,method:"DELETE",secure:!0,format:"json",...n}),managerSellersProductsPricesRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/prices/${e}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersProductsPricesUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/prices/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsPricesPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/prices/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsPricesDestroy:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/prices/${e}/`,method:"DELETE",secure:!0,format:"json",...n}),managerSellersProductsVariantsRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/${s}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersProductsVariantsUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/${s}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsVariantsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/${s}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsVariantsDestroy:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/${s}/`,method:"DELETE",secure:!0,format:"json",...n}),managerSellersProductsVariantsPricesList:({productId:e,sellerId:t,variantId:s,...n},a={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/${s}/prices/`,method:"GET",query:n,secure:!0,format:"json",...a}),managerSellersProductsVariantsPricesCreate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/${s}/prices/`,method:"POST",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsVariantsPricesRetrieve:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/variants/${n}/prices/${e}/`,method:"GET",secure:!0,format:"json",...a}),managerSellersProductsVariantsPricesUpdate:(e,t,s,n,a,d={})=>this.request({path:`/manager/sellers/${s}/products/${t}/variants/${n}/prices/${e}/`,method:"PUT",body:a,secure:!0,type:"application/json",format:"json",...d}),managerSellersProductsVariantsPricesPartialUpdate:(e,t,s,n,a,d={})=>this.request({path:`/manager/sellers/${s}/products/${t}/variants/${n}/prices/${e}/`,method:"PATCH",body:a,secure:!0,type:"application/json",format:"json",...d}),managerSellersProductsVariantsPricesDestroy:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/variants/${n}/prices/${e}/`,method:"DELETE",secure:!0,format:"json",...a}),managerSellersRedemptionsList:({sellerId:e,...t},s={})=>this.request({path:`/manager/sellers/${e}/redemptions/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerSellersRedemptionsCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/redemptions/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersRedemptionsRetrieve:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/redemptions/${e}/`,method:"GET",secure:!0,format:"json",...s}),managerSellersVoucherImportsList:({sellerId:e,...t},s={})=>this.request({path:`/manager/sellers/${e}/voucher-imports/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerSellersVoucherImportsCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/voucher-imports/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersVoucherImportsRetrieve:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/voucher-imports/${e}/`,method:"GET",secure:!0,format:"json",...s}),managerSellersVoucherImportCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/voucher/import/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersVouchersList:({sellerId:e,...t},s={})=>this.request({path:`/manager/sellers/${e}/vouchers/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerSellersVouchersCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/vouchers/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersVouchersRetrieve:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/vouchers/${e}/`,method:"GET",secure:!0,format:"json",...s}),managerSellersVouchersUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/vouchers/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersVouchersPartialUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/vouchers/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersVouchersDestroy:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/vouchers/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),managerSellersVouchersActionsList:({sellerId:e,voucherId:t,...s},n={})=>this.request({path:`/manager/sellers/${e}/vouchers/${t}/actions/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersVouchersActionsRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/vouchers/${s}/actions/${e}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersVouchersQueryCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/vouchers/query/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s})};this.user={userCategoriesList:(e,t={})=>this.request({path:"/user/categories/",method:"GET",query:e,secure:!0,format:"json",...t}),userCategoriesRetrieve:(e,t={})=>this.request({path:`/user/categories/${e}/`,method:"GET",secure:!0,format:"json",...t}),userCompanyRetrieve:(e={})=>this.request({path:"/user/company/",method:"GET",secure:!0,format:"json",...e}),userOrdersList:(e,t={})=>this.request({path:"/user/orders/",method:"GET",query:e,secure:!0,format:"json",...t}),userOrdersCreate:(e,t={})=>this.request({path:"/user/orders/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userOrdersRetrieve:(e,t={})=>this.request({path:`/user/orders/${e}/`,method:"GET",secure:!0,format:"json",...t}),userOrdersUpdate:(e,t,s={})=>this.request({path:`/user/orders/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userOrdersPartialUpdate:(e,t,s={})=>this.request({path:`/user/orders/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userOrdersDestroy:(e,t={})=>this.request({path:`/user/orders/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userOrdersItemsList:({identifier:e,...t},s={})=>this.request({path:`/user/orders/${e}/items/`,method:"GET",query:t,secure:!0,format:"json",...s}),userOrdersItemsCreate:(e,t,s={})=>this.request({path:`/user/orders/${e}/items/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userOrdersPaymentsList:({identifier:e,...t},s={})=>this.request({path:`/user/orders/${e}/payments/`,method:"GET",query:t,secure:!0,format:"json",...s}),userOrdersPaymentsCreate:(e,t,s={})=>this.request({path:`/user/orders/${e}/payments/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userOrdersRefundsList:({identifier:e,...t},s={})=>this.request({path:`/user/orders/${e}/refunds/`,method:"GET",query:t,secure:!0,format:"json",...s}),userOrdersItemsRetrieve:(e,t,s={})=>this.request({path:`/user/orders/${t}/items/${e}/`,method:"GET",secure:!0,format:"json",...s}),userOrdersItemsUpdate:(e,t,s,n={})=>this.request({path:`/user/orders/${t}/items/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),userOrdersItemsPartialUpdate:(e,t,s,n={})=>this.request({path:`/user/orders/${t}/items/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),userOrdersItemsDestroy:(e,t,s={})=>this.request({path:`/user/orders/${t}/items/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userOrdersPaymentsRetrieve:(e,t,s={})=>this.request({path:`/user/orders/${e}/payments/${t}/`,method:"GET",secure:!0,format:"json",...s}),userOrdersRefundsRetrieve:(e,t,s={})=>this.request({path:`/user/orders/${e}/refunds/${t}/`,method:"GET",secure:!0,format:"json",...s}),userProductsList:(e,t={})=>this.request({path:"/user/products/",method:"GET",query:e,secure:!0,format:"json",...t}),userProductsRetrieve:(e,t={})=>this.request({path:`/user/products/${e}/`,method:"GET",secure:!0,format:"json",...t}),userProductsPricesList:({identifier:e,...t},s={})=>this.request({path:`/user/products/${e}/prices/`,method:"GET",query:t,secure:!0,format:"json",...s}),userProductsVariantsList:({identifier:e,...t},s={})=>this.request({path:`/user/products/${e}/variants/`,method:"GET",query:t,secure:!0,format:"json",...s}),userProductsImagesList:({productId:e,...t},s={})=>this.request({path:`/user/products/${e}/images/`,method:"GET",query:t,secure:!0,format:"json",...s}),userProductsImagesRetrieve:(e,t,s={})=>this.request({path:`/user/products/${t}/images/${e}/`,method:"GET",secure:!0,format:"json",...s}),userProductsPricesRetrieve:(e,t,s={})=>this.request({path:`/user/products/${t}/prices/${e}/`,method:"GET",secure:!0,format:"json",...s}),userProductsVariantsRetrieve:(e,t,s={})=>this.request({path:`/user/products/${e}/variants/${t}/`,method:"GET",secure:!0,format:"json",...s}),userRedemptionsList:(e,t={})=>this.request({path:"/user/redemptions/",method:"GET",query:e,secure:!0,format:"json",...t}),userRedemptionsCreate:(e,t={})=>this.request({path:"/user/redemptions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userRedemptionsRetrieve:(e,t={})=>this.request({path:`/user/redemptions/${e}/`,method:"GET",secure:!0,format:"json",...t}),userSellersList:(e,t={})=>this.request({path:"/user/sellers/",method:"GET",query:e,secure:!0,format:"json",...t}),userSellersRetrieve:(e,t={})=>this.request({path:`/user/sellers/${e}/`,method:"GET",secure:!0,format:"json",...t}),userVouchersList:(e,t={})=>this.request({path:"/user/vouchers/",method:"GET",query:e,secure:!0,format:"json",...t}),userVouchersRetrieve:(e,t={})=>this.request({path:`/user/vouchers/${e}/`,method:"GET",secure:!0,format:"json",...t}),userVouchersActionsList:({identifier:e,...t},s={})=>this.request({path:`/user/vouchers/${e}/actions/`,method:"GET",query:t,secure:!0,format:"json",...s}),userVouchersActionsRetrieve:(e,t,s={})=>this.request({path:`/user/vouchers/${t}/actions/${e}/`,method:"GET",secure:!0,format:"json",...s}),userVouchersQueryCreate:(e,t={})=>this.request({path:"/user/vouchers/query/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var he={};b(he,{Api:()=>Y,ContentType:()=>Pe,HttpClient:()=>O});var Pe,O,Y,Re=R(()=>{"use strict";Pe=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(Pe||{}),O=class{constructor(r={}){this.baseUrl="https://reward.services.rehive.io/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},Y=class extends O{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCampaignsList:(e,t={})=>this.request({path:"/admin/campaigns/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCampaignsCreate:(e,t={})=>this.request({path:"/admin/campaigns/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCampaignsRetrieve:(e,t={})=>this.request({path:`/admin/campaigns/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCampaignsUpdate:(e,t,s={})=>this.request({path:`/admin/campaigns/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCampaignsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/campaigns/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCampaignsDestroy:(e,t={})=>this.request({path:`/admin/campaigns/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCurrenciesList:(e,t={})=>this.request({path:"/admin/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCurrenciesRetrieve:(e,t={})=>this.request({path:`/admin/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminRewardsList:(e,t={})=>this.request({path:"/admin/rewards/",method:"GET",query:e,secure:!0,format:"json",...t}),adminRewardsCreate:(e,t={})=>this.request({path:"/admin/rewards/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminRewardsRetrieve:(e,t={})=>this.request({path:`/admin/rewards/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminRewardsUpdate:(e,t,s={})=>this.request({path:`/admin/rewards/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminRewardsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/rewards/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersList:(e,t={})=>this.request({path:"/admin/users/",method:"GET",query:e,secure:!0,format:"json",...t}),adminUsersRetrieve:(e,t={})=>this.request({path:`/admin/users/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminWebhookCreate:(e,t={})=>this.request({path:"/admin/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.user={userRetrieve:(e={})=>this.request({path:"/user/",method:"GET",secure:!0,format:"json",...e}),userUpdate:(e,t={})=>this.request({path:"/user/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),userPartialUpdate:(e,t={})=>this.request({path:"/user/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),userCampaignsList:(e,t={})=>this.request({path:"/user/campaigns/",method:"GET",query:e,secure:!0,format:"json",...t}),userCampaignsRetrieve:(e,t={})=>this.request({path:`/user/campaigns/${e}/`,method:"GET",secure:!0,format:"json",...t}),userRewardsList:(e,t={})=>this.request({path:"/user/rewards/",method:"GET",query:e,secure:!0,format:"json",...t}),userRewardsCreate:(e,t={})=>this.request({path:"/user/rewards/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userRewardsRetrieve:(e,t={})=>this.request({path:`/user/rewards/${e}/`,method:"GET",secure:!0,format:"json",...t})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var Ce={};b(Ce,{Api:()=>Q,ContentType:()=>be,HttpClient:()=>N});var be,N,Q,fe=R(()=>{"use strict";be=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(be||{}),N=class{constructor(r={}){this.baseUrl="https://stellar.services.rehive.com/api/1";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},Q=class extends N{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminAssetList:(e={})=>this.request({path:"/admin/asset/",method:"GET",secure:!0,format:"json",...e}),adminAssetCreate:(e,t={})=>this.request({path:"/admin/asset/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminAssetRead:(e,t={})=>this.request({path:`/admin/asset/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminAssetPartialUpdate:(e,t,s={})=>this.request({path:`/admin/asset/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminAssetAuthoriseHolderCreate:(e,t,s={})=>this.request({path:`/admin/asset/${e}/authorise_holder/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminAssetFundCreate:(e,t,s={})=>this.request({path:`/admin/asset/${e}/fund/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBlacklistedAccountRead:(e,t={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminBlacklistedAccountUpdate:(e,t,s={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBlacklistedAccountPartialUpdate:(e,t,s={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBlacklistedAccountDelete:(e,t={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"DELETE",secure:!0,...t}),adminBlacklistedAccountsList:(e={})=>this.request({path:"/admin/blacklisted-accounts/",method:"GET",secure:!0,format:"json",...e}),adminBlacklistedAccountsCreate:(e,t={})=>this.request({path:"/admin/blacklisted-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminColdstorageList:(e,t={})=>this.request({path:"/admin/coldstorage/",method:"GET",query:e,secure:!0,format:"json",...t}),adminColdstorageAccountsList:(e,t={})=>this.request({path:"/admin/coldstorage/accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminColdstorageAccountsCreate:(e,t={})=>this.request({path:"/admin/coldstorage/accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminColdstorageAccountsRead:(e,t={})=>this.request({path:`/admin/coldstorage/accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminColdstorageAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/coldstorage/accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyList:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationList:(e={})=>this.request({path:"/admin/company/configuration/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationPartialUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationAccountGroupsList:(e={})=>this.request({path:"/admin/company/configuration/account-groups/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationAccountGroupsCreate:(e,t={})=>this.request({path:"/admin/company/configuration/account-groups/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationAccountGroupsRead:(e,t={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCompanyConfigurationAccountGroupsUpdate:(e,t,s={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyConfigurationAccountGroupsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyConfigurationAccountGroupsDelete:(e,t={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"DELETE",secure:!0,...t}),adminCompanyConfigurationAnchorPlatformList:(e={})=>this.request({path:"/admin/company/configuration/anchor_platform/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationAnchorPlatformUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/anchor_platform/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationAnchorPlatformPartialUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/anchor_platform/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyStellarTomlList:(e={})=>this.request({path:"/admin/company/stellar-toml/",method:"GET",secure:!0,format:"json",...e}),adminFederationList:(e={})=>this.request({path:"/admin/federation/",method:"GET",secure:!0,format:"json",...e}),adminFederationCreate:(e,t={})=>this.request({path:"/admin/federation/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletList:(e={})=>this.request({path:"/admin/hotwallet/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletCreate:(e,t={})=>this.request({path:"/admin/hotwallet/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletPartialUpdate:(e,t={})=>this.request({path:"/admin/hotwallet/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletActiveList:(e={})=>this.request({path:"/admin/hotwallet/active/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletEnableMssCreate:(e,t={})=>this.request({path:"/admin/hotwallet/enable_mss/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletFeesList:(e={})=>this.request({path:"/admin/hotwallet/fees/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletFundList:(e={})=>this.request({path:"/admin/hotwallet/fund/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletMergeCreate:(e,t={})=>this.request({path:"/admin/hotwallet/merge/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletSendCreate:(e,t={})=>this.request({path:"/admin/hotwallet/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminKnownPublicAddressesList:(e={})=>this.request({path:"/admin/known-public-addresses/",method:"GET",secure:!0,format:"json",...e}),adminKnownPublicAddressesCreate:(e,t={})=>this.request({path:"/admin/known-public-addresses/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminKnownPublicAddressesRead:(e,t={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminKnownPublicAddressesUpdate:(e,t,s={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminKnownPublicAddressesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminKnownPublicAddressesDelete:(e,t={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"DELETE",secure:!0,...t}),adminMemosList:(e={})=>this.request({path:"/admin/memos/",method:"GET",secure:!0,format:"json",...e}),adminMemosCreate:(e,t={})=>this.request({path:"/admin/memos/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminSep10AuthenticatedAccountsList:(e,t={})=>this.request({path:"/admin/sep10-authenticated-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminSep10AuthenticatedAccountsRead:(e,t={})=>this.request({path:`/admin/sep10-authenticated-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminSep24TransactionsList:(e,t={})=>this.request({path:"/admin/sep24-transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),adminSep24TransactionsRead:(e,t={})=>this.request({path:`/admin/sep24-transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminStellarAccountsList:(e,t={})=>this.request({path:"/admin/stellar_accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminStellarAccountsGenerateCreate:(e,t={})=>this.request({path:"/admin/stellar_accounts/generate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminStellarAccountsRead:(e,t={})=>this.request({path:`/admin/stellar_accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminStellarAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/stellar_accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminStellarAccountsChangeOwnershipCreate:(e,t,s={})=>this.request({path:`/admin/stellar_accounts/${e}/change_ownership/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminTransactionsList:(e,t={})=>this.request({path:"/admin/transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),adminTransactionsSendCreate:(e,t={})=>this.request({path:"/admin/transactions/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminTransactionsRead:(e,t={})=>this.request({path:`/admin/transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminTransactionsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/transactions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersList:(e,t={})=>this.request({path:"/admin/users/",method:"GET",query:e,secure:!0,format:"json",...t}),adminUsersCreate:(e,t={})=>this.request({path:"/admin/users/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminUsersRead:(e,t={})=>this.request({path:`/admin/users/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminUsersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/users/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersMemosList:(e,t={})=>this.request({path:`/admin/users/${e}/memos/`,method:"GET",secure:!0,format:"json",...t}),adminUsersMemosCreate:(e,t,s={})=>this.request({path:`/admin/users/${e}/memos/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminWarmstorageList:(e,t={})=>this.request({path:"/admin/warmstorage/",method:"GET",query:e,secure:!0,format:"json",...t}),adminWarmstorageAccountsList:(e,t={})=>this.request({path:"/admin/warmstorage/accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminWarmstorageAccountsCreate:(e,t={})=>this.request({path:"/admin/warmstorage/accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminWarmstorageAccountsRead:(e,t={})=>this.request({path:`/admin/warmstorage/accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminWarmstorageAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/warmstorage/accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s})};this.company={companyList:(e={})=>this.request({path:"/company/",method:"GET",secure:!0,format:"json",...e}),companyAssetsList:(e={})=>this.request({path:"/company/assets/",method:"GET",secure:!0,format:"json",...e})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.hooks={hooksPrsCreate:(e,t={})=>this.request({path:"/hooks/prs/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.info={infoList:(e={})=>this.request({path:"/info/",method:"GET",secure:!0,format:"json",...e})};this.knownAssets={knownAssetsList:(e,t={})=>this.request({path:"/known-assets/",method:"GET",query:e,secure:!0,format:"json",...t})};this.stellarFederation={stellarFederationRead:(e,t={})=>this.request({path:`/stellar_federation/${e}/`,method:"GET",secure:!0,...t})};this.transactions={transactionsList:(e,t={})=>this.request({path:"/transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionsSendCreate:(e,t={})=>this.request({path:"/transactions/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.user={userList:(e={})=>this.request({path:"/user/",method:"GET",secure:!0,format:"json",...e}),userPartialUpdate:(e,t={})=>this.request({path:"/user/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),userAccountList:(e={})=>this.request({path:"/user/account/",method:"GET",secure:!0,...e}),userAnchorSessionsValidateCreate:(e,t,s={})=>this.request({path:`/user/anchor/sessions/${e}/validate/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorSessionsValidateAccountCreate:(e,t,s={})=>this.request({path:`/user/anchor/sessions/${e}/validate_account/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorSessionsValidateSessionCreate:(e,t,s={})=>this.request({path:`/user/anchor/sessions/${e}/validate_session/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorTransactionsList:(e={})=>this.request({path:"/user/anchor/transactions/",method:"GET",secure:!0,format:"json",...e}),userAnchorTransactionsRead:(e,t={})=>this.request({path:`/user/anchor/transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),userAnchorTransactionsCreate:(e,t,s={})=>this.request({path:`/user/anchor/transactions/${e}/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorTransactionsPartialUpdate:(e,t,s={})=>this.request({path:`/user/anchor/transactions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorAuthCreate:(e,t={})=>this.request({path:`/user/anchor/${e}/auth/`,method:"POST",secure:!0,...t}),userKnownPublicAddressesList:(e={})=>this.request({path:"/user/known-public-addresses/",method:"GET",secure:!0,format:"json",...e}),userMemosList:(e={})=>this.request({path:"/user/memos/",method:"GET",secure:!0,format:"json",...e}),userMemosCreate:(e,t={})=>this.request({path:"/user/memos/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userTransactionsSendCreate:(e,t={})=>this.request({path:"/user/transactions/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userUsernameSetCreate:(e,t={})=>this.request({path:"/user/username/set/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var De={};b(De,{Api:()=>z,ContentType:()=>Te,HttpClient:()=>j});var Te,j,z,_e=R(()=>{"use strict";Te=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(Te||{}),j=class{constructor(r={}){this.baseUrl="https://stellar-testnet.services.rehive.com/api/1";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},z=class extends j{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminAssetList:(e={})=>this.request({path:"/admin/asset/",method:"GET",secure:!0,format:"json",...e}),adminAssetCreate:(e,t={})=>this.request({path:"/admin/asset/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminAssetRead:(e,t={})=>this.request({path:`/admin/asset/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminAssetPartialUpdate:(e,t,s={})=>this.request({path:`/admin/asset/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminAssetAuthoriseHolderCreate:(e,t,s={})=>this.request({path:`/admin/asset/${e}/authorise_holder/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminAssetFundCreate:(e,t,s={})=>this.request({path:`/admin/asset/${e}/fund/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBlacklistedAccountRead:(e,t={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminBlacklistedAccountUpdate:(e,t,s={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBlacklistedAccountPartialUpdate:(e,t,s={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBlacklistedAccountDelete:(e,t={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"DELETE",secure:!0,...t}),adminBlacklistedAccountsList:(e={})=>this.request({path:"/admin/blacklisted-accounts/",method:"GET",secure:!0,format:"json",...e}),adminBlacklistedAccountsCreate:(e,t={})=>this.request({path:"/admin/blacklisted-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminColdstorageList:(e,t={})=>this.request({path:"/admin/coldstorage/",method:"GET",query:e,secure:!0,format:"json",...t}),adminColdstorageAccountsList:(e,t={})=>this.request({path:"/admin/coldstorage/accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminColdstorageAccountsCreate:(e,t={})=>this.request({path:"/admin/coldstorage/accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminColdstorageAccountsRead:(e,t={})=>this.request({path:`/admin/coldstorage/accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminColdstorageAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/coldstorage/accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyList:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationList:(e={})=>this.request({path:"/admin/company/configuration/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationPartialUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationAccountGroupsList:(e={})=>this.request({path:"/admin/company/configuration/account-groups/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationAccountGroupsCreate:(e,t={})=>this.request({path:"/admin/company/configuration/account-groups/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationAccountGroupsRead:(e,t={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCompanyConfigurationAccountGroupsUpdate:(e,t,s={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyConfigurationAccountGroupsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyConfigurationAccountGroupsDelete:(e,t={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"DELETE",secure:!0,...t}),adminCompanyConfigurationAnchorPlatformList:(e={})=>this.request({path:"/admin/company/configuration/anchor_platform/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationAnchorPlatformUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/anchor_platform/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationAnchorPlatformPartialUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/anchor_platform/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyStellarTomlList:(e={})=>this.request({path:"/admin/company/stellar-toml/",method:"GET",secure:!0,format:"json",...e}),adminFederationList:(e={})=>this.request({path:"/admin/federation/",method:"GET",secure:!0,format:"json",...e}),adminFederationCreate:(e,t={})=>this.request({path:"/admin/federation/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletList:(e={})=>this.request({path:"/admin/hotwallet/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletCreate:(e,t={})=>this.request({path:"/admin/hotwallet/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletPartialUpdate:(e,t={})=>this.request({path:"/admin/hotwallet/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletActiveList:(e={})=>this.request({path:"/admin/hotwallet/active/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletEnableMssCreate:(e,t={})=>this.request({path:"/admin/hotwallet/enable_mss/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletFeesList:(e={})=>this.request({path:"/admin/hotwallet/fees/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletFundList:(e={})=>this.request({path:"/admin/hotwallet/fund/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletMergeCreate:(e,t={})=>this.request({path:"/admin/hotwallet/merge/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletSendCreate:(e,t={})=>this.request({path:"/admin/hotwallet/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminKnownPublicAddressesList:(e={})=>this.request({path:"/admin/known-public-addresses/",method:"GET",secure:!0,format:"json",...e}),adminKnownPublicAddressesCreate:(e,t={})=>this.request({path:"/admin/known-public-addresses/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminKnownPublicAddressesRead:(e,t={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminKnownPublicAddressesUpdate:(e,t,s={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminKnownPublicAddressesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminKnownPublicAddressesDelete:(e,t={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"DELETE",secure:!0,...t}),adminMemosList:(e={})=>this.request({path:"/admin/memos/",method:"GET",secure:!0,format:"json",...e}),adminMemosCreate:(e,t={})=>this.request({path:"/admin/memos/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminSep10AuthenticatedAccountsList:(e,t={})=>this.request({path:"/admin/sep10-authenticated-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminSep10AuthenticatedAccountsRead:(e,t={})=>this.request({path:`/admin/sep10-authenticated-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminSep24TransactionsList:(e,t={})=>this.request({path:"/admin/sep24-transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),adminSep24TransactionsRead:(e,t={})=>this.request({path:`/admin/sep24-transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminStellarAccountsList:(e,t={})=>this.request({path:"/admin/stellar_accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminStellarAccountsGenerateCreate:(e,t={})=>this.request({path:"/admin/stellar_accounts/generate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminStellarAccountsRead:(e,t={})=>this.request({path:`/admin/stellar_accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminStellarAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/stellar_accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminStellarAccountsChangeOwnershipCreate:(e,t,s={})=>this.request({path:`/admin/stellar_accounts/${e}/change_ownership/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminTransactionsList:(e,t={})=>this.request({path:"/admin/transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),adminTransactionsSendCreate:(e,t={})=>this.request({path:"/admin/transactions/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminTransactionsRead:(e,t={})=>this.request({path:`/admin/transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminTransactionsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/transactions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersList:(e,t={})=>this.request({path:"/admin/users/",method:"GET",query:e,secure:!0,format:"json",...t}),adminUsersCreate:(e,t={})=>this.request({path:"/admin/users/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminUsersRead:(e,t={})=>this.request({path:`/admin/users/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminUsersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/users/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersMemosList:(e,t={})=>this.request({path:`/admin/users/${e}/memos/`,method:"GET",secure:!0,format:"json",...t}),adminUsersMemosCreate:(e,t,s={})=>this.request({path:`/admin/users/${e}/memos/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminWarmstorageList:(e,t={})=>this.request({path:"/admin/warmstorage/",method:"GET",query:e,secure:!0,format:"json",...t}),adminWarmstorageAccountsList:(e,t={})=>this.request({path:"/admin/warmstorage/accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminWarmstorageAccountsCreate:(e,t={})=>this.request({path:"/admin/warmstorage/accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminWarmstorageAccountsRead:(e,t={})=>this.request({path:`/admin/warmstorage/accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminWarmstorageAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/warmstorage/accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s})};this.company={companyList:(e={})=>this.request({path:"/company/",method:"GET",secure:!0,format:"json",...e}),companyAssetsList:(e={})=>this.request({path:"/company/assets/",method:"GET",secure:!0,format:"json",...e})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.hooks={hooksPrsCreate:(e,t={})=>this.request({path:"/hooks/prs/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.info={infoList:(e={})=>this.request({path:"/info/",method:"GET",secure:!0,format:"json",...e})};this.knownAssets={knownAssetsList:(e,t={})=>this.request({path:"/known-assets/",method:"GET",query:e,secure:!0,format:"json",...t})};this.stellarFederation={stellarFederationRead:(e,t={})=>this.request({path:`/stellar_federation/${e}/`,method:"GET",secure:!0,...t})};this.transactions={transactionsList:(e,t={})=>this.request({path:"/transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionsSendCreate:(e,t={})=>this.request({path:"/transactions/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.user={userList:(e={})=>this.request({path:"/user/",method:"GET",secure:!0,format:"json",...e}),userPartialUpdate:(e,t={})=>this.request({path:"/user/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),userAccountList:(e={})=>this.request({path:"/user/account/",method:"GET",secure:!0,...e}),userAnchorSessionsValidateCreate:(e,t,s={})=>this.request({path:`/user/anchor/sessions/${e}/validate/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorSessionsValidateAccountCreate:(e,t,s={})=>this.request({path:`/user/anchor/sessions/${e}/validate_account/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorSessionsValidateSessionCreate:(e,t,s={})=>this.request({path:`/user/anchor/sessions/${e}/validate_session/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorTransactionsList:(e={})=>this.request({path:"/user/anchor/transactions/",method:"GET",secure:!0,format:"json",...e}),userAnchorTransactionsRead:(e,t={})=>this.request({path:`/user/anchor/transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),userAnchorTransactionsCreate:(e,t,s={})=>this.request({path:`/user/anchor/transactions/${e}/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorTransactionsPartialUpdate:(e,t,s={})=>this.request({path:`/user/anchor/transactions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorAuthCreate:(e,t={})=>this.request({path:`/user/anchor/${e}/auth/`,method:"POST",secure:!0,...t}),userKnownPublicAddressesList:(e={})=>this.request({path:"/user/known-public-addresses/",method:"GET",secure:!0,format:"json",...e}),userMemosList:(e={})=>this.request({path:"/user/memos/",method:"GET",secure:!0,format:"json",...e}),userMemosCreate:(e,t={})=>this.request({path:"/user/memos/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userTransactionsSendCreate:(e,t={})=>this.request({path:"/user/transactions/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userUsernameSetCreate:(e,t={})=>this.request({path:"/user/username/set/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var Ue={};b(Ue,{Api:()=>X,ContentType:()=>Le,HttpClient:()=>k});var Le,k,X,xe=R(()=>{"use strict";Le=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(Le||{}),k=class{constructor(r={}){this.baseUrl="https://business.services.rehive.com/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},X=class extends k{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminBusinessCategoriesList:(e,t={})=>this.request({path:"/admin/business-categories/",method:"GET",query:e,secure:!0,format:"json",...t}),adminBusinessCategoriesCreate:(e,t={})=>this.request({path:"/admin/business-categories/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminBusinessCategoriesRetrieve:(e,t={})=>this.request({path:`/admin/business-categories/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminBusinessCategoriesUpdate:(e,t,s={})=>this.request({path:`/admin/business-categories/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessCategoriesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/business-categories/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessCategoriesDestroy:(e,t={})=>this.request({path:`/admin/business-categories/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminBusinessUsersList:(e,t={})=>this.request({path:"/admin/business-users/",method:"GET",query:e,secure:!0,format:"json",...t}),adminBusinessUsersCreate:(e,t={})=>this.request({path:"/admin/business-users/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminBusinessUsersRetrieve:(e,t={})=>this.request({path:`/admin/business-users/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminBusinessUsersUpdate:(e,t,s={})=>this.request({path:`/admin/business-users/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessUsersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/business-users/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessesList:(e,t={})=>this.request({path:"/admin/businesses/",method:"GET",query:e,secure:!0,format:"json",...t}),adminBusinessesRetrieve:(e,t={})=>this.request({path:`/admin/businesses/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminBusinessesUpdate:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessesCategoriesRetrieve:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/categories/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminBusinessesCategoriesDestroy:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/categories/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),adminBusinessesDocumentsList:({businessId:e,...t},s={})=>this.request({path:`/admin/businesses/${e}/documents/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminBusinessesDocumentsCreate:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/documents/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessesDocumentsRetrieve:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/documents/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminBusinessesDocumentsUpdate:(e,t,s,n={})=>this.request({path:`/admin/businesses/${e}/documents/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminBusinessesDocumentsPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/businesses/${e}/documents/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminBusinessesDocumentsDestroy:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/documents/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),adminBusinessesPayoutsList:({businessId:e,...t},s={})=>this.request({path:`/admin/businesses/${e}/payouts/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminBusinessesPayoutsCreate:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/payouts/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessesPayoutsRetrieve:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/payouts/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminBusinessesPayoutsTransactionsList:({businessId:e,payoutId:t,...s},n={})=>this.request({path:`/admin/businesses/${e}/payouts/${t}/transactions/`,method:"GET",query:s,secure:!0,format:"json",...n}),adminBusinessesCategoriesList:({identifier:e,...t},s={})=>this.request({path:`/admin/businesses/${e}/categories/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminBusinessesCategoriesCreate:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/categories/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCurrenciesList:(e,t={})=>this.request({path:"/admin/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCurrenciesRetrieve:(e,t={})=>this.request({path:`/admin/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminWebhookCreate:(e,t={})=>this.request({path:"/admin/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.customer={customerBusinessesList:(e,t={})=>this.request({path:"/customer/businesses/",method:"GET",query:e,secure:!0,format:"json",...t}),customerBusinessesRetrieve:(e,t={})=>this.request({path:`/customer/businesses/${e}/`,method:"GET",secure:!0,format:"json",...t}),customerEnrollCreate:(e,t={})=>this.request({path:"/customer/enroll/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.manager={managerBusinessCategoriesList:(e,t={})=>this.request({path:"/manager/business-categories/",method:"GET",query:e,secure:!0,format:"json",...t}),managerBusinessCategoriesRetrieve:(e,t={})=>this.request({path:`/manager/business-categories/${e}/`,method:"GET",secure:!0,format:"json",...t}),managerBusinessesList:(e,t={})=>this.request({path:"/manager/businesses/",method:"GET",query:e,secure:!0,format:"json",...t}),managerBusinessesCreate:(e,t={})=>this.request({path:"/manager/businesses/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),managerBusinessesRetrieve:(e,t={})=>this.request({path:`/manager/businesses/${e}/`,method:"GET",secure:!0,format:"json",...t}),managerBusinessesUpdate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),managerBusinessesPartialUpdate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),managerBusinessesCategoriesRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/categories/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesCategoriesDestroy:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/categories/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),managerBusinessesDocumentsList:({businessId:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/documents/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesDocumentsCreate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/documents/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerBusinessesDocumentsRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/documents/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesInvoicesList:({businessId:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/invoices/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesInvoicesCreate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/invoices/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerBusinessesInvoicesRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesInvoicesUpdate:(e,t,s,n={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),managerBusinessesInvoicesPartialUpdate:(e,t,s,n={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),managerBusinessesInvoicesLogsList:({businessId:e,invoiceId:t,...s},n={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/logs/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerBusinessesInvoicesRefundsList:({businessId:e,invoiceId:t,...s},n={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/refunds/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerBusinessesInvoicesRefundsCreate:(e,t,s,n={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/refunds/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerBusinessesInvoicesTransactionsList:({businessId:e,invoiceId:t,...s},n={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/transactions/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerBusinessesMetricsList:({businessId:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/metrics/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesMetricsRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/metrics/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesMetricsPointsList:({businessId:e,metricId:t,...s},n={})=>this.request({path:`/manager/businesses/${e}/metrics/${t}/points/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerBusinessesPayoutsList:({businessId:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/payouts/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesPayoutsCreate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/payouts/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerBusinessesPayoutsRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/payouts/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesPayoutsTransactionsList:({businessId:e,payoutId:t,...s},n={})=>this.request({path:`/manager/businesses/${e}/payouts/${t}/transactions/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerBusinessesTransactionsList:({businessId:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesTransactionsRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/transactions/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesUsersList:({businessId:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/users/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesUsersCreate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/users/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerBusinessesUsersRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/users/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesUsersUpdate:(e,t,s,n={})=>this.request({path:`/manager/businesses/${e}/users/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),managerBusinessesUsersPartialUpdate:(e,t,s,n={})=>this.request({path:`/manager/businesses/${e}/users/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),managerBusinessesCategoriesList:({identifier:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/categories/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesCategoriesCreate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/categories/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerCompanyRetrieve:(e={})=>this.request({path:"/manager/company/",method:"GET",secure:!0,format:"json",...e})};this.user={userBusinessCategoriesList:(e,t={})=>this.request({path:"/user/business-categories/",method:"GET",query:e,secure:!0,format:"json",...t}),userBusinessCategoriesRetrieve:(e,t={})=>this.request({path:`/user/business-categories/${e}/`,method:"GET",secure:!0,format:"json",...t}),userBusinessesList:(e,t={})=>this.request({path:"/user/businesses/",method:"GET",query:e,secure:!0,format:"json",...t}),userBusinessesRetrieve:(e,t={})=>this.request({path:`/user/businesses/${e}/`,method:"GET",secure:!0,format:"json",...t}),userCompanyRetrieve:(e={})=>this.request({path:"/user/company/",method:"GET",secure:!0,format:"json",...e})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var qe={};b(qe,{Api:()=>ee,ContentType:()=>Se,HttpClient:()=>F});var Se,F,ee,Me=R(()=>{"use strict";Se=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(Se||{}),F=class{constructor(r={}){this.baseUrl="https://payment-requests.services.rehive.com/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},ee=class extends F{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationRetrieve:(e={})=>this.request({path:"/admin/company/configuration/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationPartialUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPaymentProcessorsList:(e,t={})=>this.request({path:"/admin/company_payment_processors/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCompanyPaymentProcessorsCreate:(e,t={})=>this.request({path:"/admin/company_payment_processors/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPaymentProcessorsRetrieve:(e,t={})=>this.request({path:`/admin/company_payment_processors/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCompanyPaymentProcessorsUpdate:(e,t,s={})=>this.request({path:`/admin/company_payment_processors/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyPaymentProcessorsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/company_payment_processors/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyPaymentProcessorsDestroy:(e,t={})=>this.request({path:`/admin/company_payment_processors/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminPaymentProcessorQuoteList:(e,t={})=>this.request({path:"/admin/payment_processor_quote/",method:"GET",query:e,secure:!0,format:"json",...t}),adminPaymentProcessorsList:(e,t={})=>this.request({path:"/admin/payment_processors/",method:"GET",query:e,secure:!0,format:"json",...t}),adminPaymentProcessorsCreate:(e,t={})=>this.request({path:"/admin/payment_processors/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminPaymentProcessorsRetrieve:(e,t={})=>this.request({path:`/admin/payment_processors/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminPaymentProcessorsUpdate:(e,t,s={})=>this.request({path:`/admin/payment_processors/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminPaymentProcessorsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/payment_processors/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminPaymentProcessorsDestroy:(e,t={})=>this.request({path:`/admin/payment_processors/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminRequestsList:(e,t={})=>this.request({path:"/admin/requests/",method:"GET",query:e,secure:!0,format:"json",...t}),adminRequestsCreate:(e,t={})=>this.request({path:"/admin/requests/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminRequestsRetrieve:(e,t={})=>this.request({path:`/admin/requests/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminRequestsUpdate:(e,t,s={})=>this.request({path:`/admin/requests/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminRequestsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/requests/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminRequestsLogsList:({identifier:e,...t},s={})=>this.request({path:`/admin/requests/${e}/logs/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminRequestsPaymentProcessQuotesList:({identifier:e,...t},s={})=>this.request({path:`/admin/requests/${e}/payment-process-quotes/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminRequestsPaymentProcessQuotesRetrieve:(e,t,s={})=>this.request({path:`/admin/requests/${e}/payment-process-quotes/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminRequestsPaymentProcessQuotesExecuteRetrieve:(e,t,s={})=>this.request({path:`/admin/requests/${e}/payment-process-quotes/${t}/execute/`,method:"GET",secure:!0,format:"json",...s}),adminRequestsRefundsList:({identifier:e,...t},s={})=>this.request({path:`/admin/requests/${e}/refunds/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminRequestsRefundsCreate:(e,t,s={})=>this.request({path:`/admin/requests/${e}/refunds/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminRequestsTransactionsList:({identifier:e,...t},s={})=>this.request({path:`/admin/requests/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminUsersList:(e,t={})=>this.request({path:"/admin/users/",method:"GET",query:e,secure:!0,format:"json",...t}),adminUsersRetrieve:(e,t={})=>this.request({path:`/admin/users/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminUsersUpdate:(e,t,s={})=>this.request({path:`/admin/users/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/users/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminWebhooksList:(e,t={})=>this.request({path:"/admin/webhooks/",method:"GET",query:e,secure:!0,format:"json",...t}),adminWebhooksCreate:(e,t={})=>this.request({path:"/admin/webhooks/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminWebhooksRetrieve:(e,t={})=>this.request({path:`/admin/webhooks/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminWebhooksUpdate:(e,t,s={})=>this.request({path:`/admin/webhooks/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminWebhooksPartialUpdate:(e,t,s={})=>this.request({path:`/admin/webhooks/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminWebhooksDestroy:(e,t={})=>this.request({path:`/admin/webhooks/${e}/`,method:"DELETE",secure:!0,format:"json",...t})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.requests={requestsRetrieve:(e,t={})=>this.request({path:`/requests/${e}/`,method:"GET",secure:!0,format:"json",...t}),requestsUpdate:(e,t,s={})=>this.request({path:`/requests/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),requestsPartialUpdate:(e,t,s={})=>this.request({path:`/requests/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),requestsOtpChallengeCreate:(e,t,s={})=>this.request({path:`/requests/${e}/otp_challenge/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),requestsPaymentProcessorsList:({identifier:e,...t},s={})=>this.request({path:`/requests/${e}/payment_processors/`,method:"GET",query:t,secure:!0,format:"json",...s}),requestsResendOtpCreate:(e,t={})=>this.request({path:`/requests/${e}/resend_otp/`,method:"POST",secure:!0,format:"json",...t}),requestsTransactionsList:({identifier:e,...t},s={})=>this.request({path:`/requests/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s})};this.user={userPaymentProcessorsList:(e,t={})=>this.request({path:"/user/payment_processors/",method:"GET",query:e,secure:!0,format:"json",...t}),userPaymentProcessorsCreate:(e,t={})=>this.request({path:"/user/payment_processors/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userPaymentProcessorsRetrieve:(e,t={})=>this.request({path:`/user/payment_processors/${e}/`,method:"GET",secure:!0,format:"json",...t}),userPaymentProcessorsUpdate:(e,t,s={})=>this.request({path:`/user/payment_processors/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userPaymentProcessorsPartialUpdate:(e,t,s={})=>this.request({path:`/user/payment_processors/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userPaymentProcessorsDestroy:(e,t={})=>this.request({path:`/user/payment_processors/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userRequestsList:(e,t={})=>this.request({path:"/user/requests/",method:"GET",query:e,secure:!0,format:"json",...t}),userRequestsCreate:(e,t={})=>this.request({path:"/user/requests/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userRequestsRetrieve:(e,t={})=>this.request({path:`/user/requests/${e}/`,method:"GET",secure:!0,format:"json",...t}),userRequestsUpdate:(e,t,s={})=>this.request({path:`/user/requests/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userRequestsPartialUpdate:(e,t,s={})=>this.request({path:`/user/requests/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userRequestsNotifyCreate:(e,t={})=>this.request({path:`/user/requests/${e}/notify/`,method:"POST",secure:!0,format:"json",...t}),userRequestsRefundsList:({identifier:e,...t},s={})=>this.request({path:`/user/requests/${e}/refunds/`,method:"GET",query:t,secure:!0,format:"json",...s}),userRequestsRefundsCreate:(e,t,s={})=>this.request({path:`/user/requests/${e}/refunds/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userRequestsTransactionsList:({identifier:e,...t},s={})=>this.request({path:`/user/requests/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s}),userWebhooksList:(e,t={})=>this.request({path:"/user/webhooks/",method:"GET",query:e,secure:!0,format:"json",...t}),userWebhooksCreate:(e,t={})=>this.request({path:"/user/webhooks/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userWebhooksRetrieve:(e,t={})=>this.request({path:`/user/webhooks/${e}/`,method:"GET",secure:!0,format:"json",...t}),userWebhooksUpdate:(e,t,s={})=>this.request({path:`/user/webhooks/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userWebhooksPartialUpdate:(e,t,s={})=>this.request({path:`/user/webhooks/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userWebhooksDestroy:(e,t={})=>this.request({path:`/user/webhooks/${e}/`,method:"DELETE",secure:!0,format:"json",...t})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.webhooks={webhooksRehiveTransactionExecutedCreate:(e,t={})=>this.request({path:"/webhooks/rehive_transaction/executed/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),webhooksRehiveTransactionInitiatedCreate:(e,t={})=>this.request({path:"/webhooks/rehive_transaction/initiated/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),webhooksRehiveUserCreateCreate:(e,t={})=>this.request({path:"/webhooks/rehive_user/create/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),webhooksRehiveUserEmailUpdateCreate:(e,t={})=>this.request({path:"/webhooks/rehive_user/email_update/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),webhooksRehiveUserUpdateCreate:(e,t={})=>this.request({path:"/webhooks/rehive_user/update/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var ve={};b(ve,{Api:()=>te,ContentType:()=>Ge,HttpClient:()=>V});var Ge,V,te,Ee=R(()=>{"use strict";Ge=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(Ge||{}),V=class{constructor(r={}){this.baseUrl="https://bridge.services.rehive.com/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},te=class extends V{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCardsList:(e,t={})=>this.request({path:"/admin/cards/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCardsRetrieve:(e,t={})=>this.request({path:`/admin/cards/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCryptoReturnPoliciesList:(e={})=>this.request({path:"/admin/crypto-return-policies/",method:"GET",secure:!0,format:"json",...e}),adminCryptoReturnPoliciesCreate:(e,t={})=>this.request({path:"/admin/crypto-return-policies/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCryptoReturnPoliciesRetrieve:(e,t={})=>this.request({path:`/admin/crypto-return-policies/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCryptoReturnPoliciesUpdate:(e,t,s={})=>this.request({path:`/admin/crypto-return-policies/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCryptoReturnPoliciesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/crypto-return-policies/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCryptoReturnPoliciesDestroy:(e,t={})=>this.request({path:`/admin/crypto-return-policies/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminCurrenciesList:(e,t={})=>this.request({path:"/admin/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCurrenciesRetrieve:(e,t={})=>this.request({path:`/admin/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCurrenciesUpdate:(e,t,s={})=>this.request({path:`/admin/currencies/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCurrenciesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/currencies/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminPaymentProcessorQuoteCreate:(e,t={})=>this.request({path:"/admin/payment-processor-quote/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminWalletsList:(e,t={})=>this.request({path:"/admin/wallets/",method:"GET",query:e,secure:!0,format:"json",...t}),adminWalletsRetrieve:(e,t={})=>this.request({path:`/admin/wallets/${e}/`,method:"GET",secure:!0,format:"json",...t})};this.bridge={bridgeWebhookCreate:(e,t,s={})=>this.request({path:`/bridge/webhook/${e}/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.user={userRetrieve:(e={})=>this.request({path:"/user/",method:"GET",secure:!0,format:"json",...e}),userUpdate:(e,t={})=>this.request({path:"/user/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),userPartialUpdate:(e,t={})=>this.request({path:"/user/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),userCryptoDepositCreate:(e,t={})=>this.request({path:"/user/crypto-deposit/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userKycLinksCreate:(e,t={})=>this.request({path:"/user/kyc-links/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var Be={};b(Be,{Api:()=>se,ContentType:()=>ne,HttpClient:()=>T});var se,Ie=R(()=>{"use strict";x();x();se=class extends T{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminAndroidAppsList:(e,t={})=>this.request({path:"/admin/android-apps/",method:"GET",query:e,secure:!0,format:"json",...t}),adminAndroidAppsCreate:(e,t={})=>this.request({path:"/admin/android-apps/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminAndroidAppsRetrieve:(e,t={})=>this.request({path:`/admin/android-apps/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminAndroidAppsUpdate:(e,t,s={})=>this.request({path:`/admin/android-apps/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminAndroidAppsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/android-apps/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminAndroidAppsDestroy:(e,t={})=>this.request({path:`/admin/android-apps/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminAppCodebasesList:(e,t={})=>this.request({path:"/admin/app-codebases/",method:"GET",query:e,secure:!0,format:"json",...t}),adminAppCodebasesRetrieve:(e,t={})=>this.request({path:`/admin/app-codebases/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminDomainsList:(e,t={})=>this.request({path:"/admin/domains/",method:"GET",query:e,secure:!0,format:"json",...t}),adminDomainsCreate:(e,t={})=>this.request({path:"/admin/domains/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminDomainsRetrieve:(e,t={})=>this.request({path:`/admin/domains/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminDomainsUpdate:(e,t,s={})=>this.request({path:`/admin/domains/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminDomainsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/domains/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminDomainsDestroy:(e,t={})=>this.request({path:`/admin/domains/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminIosAppsList:(e,t={})=>this.request({path:"/admin/ios-apps/",method:"GET",query:e,secure:!0,format:"json",...t}),adminIosAppsCreate:(e,t={})=>this.request({path:"/admin/ios-apps/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminIosAppsRetrieve:(e,t={})=>this.request({path:`/admin/ios-apps/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminIosAppsUpdate:(e,t,s={})=>this.request({path:`/admin/ios-apps/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIosAppsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/ios-apps/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIosAppsDestroy:(e,t={})=>this.request({path:`/admin/ios-apps/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminLocalesList:(e,t={})=>this.request({path:"/admin/locales/",method:"GET",query:e,secure:!0,format:"json",...t}),adminLocalesCreate:(e,t={})=>this.request({path:"/admin/locales/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminLocalesRetrieve:(e,t={})=>this.request({path:`/admin/locales/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminLocalesUpdate:(e,t,s={})=>this.request({path:`/admin/locales/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminLocalesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/locales/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminLocalesDestroy:(e,t={})=>this.request({path:`/admin/locales/${e}/`,method:"DELETE",secure:!0,format:"json",...t})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.public={publicCompanyRetrieve:(e={})=>this.request({path:"/public/company/",method:"GET",secure:!0,format:"json",...e}),publicCompanyLocalesList:({companyId:e,...t},s={})=>this.request({path:`/public/company/${e}/locales/`,method:"GET",query:t,secure:!0,format:"json",...s}),publicCompanyLocalesRetrieve:(e,t,s={})=>this.request({path:`/public/company/${e}/locales/${t}/`,method:"GET",secure:!0,format:"json",...s})};this.superadmin={superadminAppCodebasesList:(e,t={})=>this.request({path:"/superadmin/app-codebases/",method:"GET",query:e,secure:!0,format:"json",...t}),superadminAppCodebasesCreate:(e,t={})=>this.request({path:"/superadmin/app-codebases/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),superadminAppCodebasesRetrieve:(e,t={})=>this.request({path:`/superadmin/app-codebases/${e}/`,method:"GET",secure:!0,format:"json",...t}),superadminAppCodebasesUpdate:(e,t,s={})=>this.request({path:`/superadmin/app-codebases/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),superadminAppCodebasesPartialUpdate:(e,t,s={})=>this.request({path:`/superadmin/app-codebases/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),superadminAppCodebasesDestroy:(e,t={})=>this.request({path:`/superadmin/app-codebases/${e}/`,method:"DELETE",secure:!0,format:"json",...t})};this.user={userRetrieve:(e={})=>this.request({path:"/user/",method:"GET",secure:!0,format:"json",...e}),userUpdate:(e,t={})=>this.request({path:"/user/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),userPartialUpdate:(e,t={})=>this.request({path:"/user/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),userCompanyRetrieve:(e={})=>this.request({path:"/user/company/",method:"GET",secure:!0,format:"json",...e}),userLocalesList:(e,t={})=>this.request({path:"/user/locales/",method:"GET",query:e,secure:!0,format:"json",...t}),userLocalesRetrieve:(e,t={})=>this.request({path:`/user/locales/${e}/`,method:"GET",secure:!0,format:"json",...t})}}}});var Fe={};b(Fe,{ApiError:()=>f,AsyncStorageAdapter:()=>M,MemoryStorageAdapter:()=>_,RehiveClient:()=>W,RehivePlatformAdminApi:()=>U,RehivePlatformUserApi:()=>L,WebStorageAdapter:()=>D});module.exports=C(Fe);var D=class{async getItem(r){return typeof window<"u"&&window.localStorage?window.localStorage.getItem(r):null}async setItem(r,e){typeof window<"u"&&window.localStorage&&window.localStorage.setItem(r,e)}async removeItem(r){typeof window<"u"&&window.localStorage&&window.localStorage.removeItem(r)}},_=class{constructor(){this.storage=new Map}async getItem(r){return this.storage.get(r)||null}async setItem(r,e){this.storage.set(r,e)}async removeItem(r){this.storage.delete(r)}},M=class{constructor(r){this.asyncStorage=r}async getItem(r){return this.asyncStorage.getItem(r)}async setItem(r,e){return this.asyncStorage.setItem(r,e)}async removeItem(r){return this.asyncStorage.removeItem(r)}};G();x();x();var S=class extends T{constructor(){super(...arguments);this.v3={accountCurrenciesList:(e,t={})=>this.request({path:"/3/account-currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),accountDefinitionsList:(e,t={})=>this.request({path:"/3/account-definitions/",method:"GET",query:e,secure:!0,format:"json",...t}),accountDefinitionsRetrieve:(e,t={})=>this.request({path:`/3/account-definitions/${e}/`,method:"GET",secure:!0,format:"json",...t}),accountsList:(e,t={})=>this.request({path:"/3/accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),accountsCreate:(e,t={})=>this.request({path:"/3/accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),accountsRetrieve:(e,t={})=>this.request({path:`/3/accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),accountsCurrenciesList:({reference:e,...t},s={})=>this.request({path:`/3/accounts/${e}/currencies/`,method:"GET",query:t,secure:!0,format:"json",...s}),accountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),accountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),accountsCurrenciesUpdate:(e,t,s,n={})=>this.request({path:`/3/accounts/${t}/currencies/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/accounts/${t}/currencies/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesFeesList:({code:e,reference:t,...s},n={})=>this.request({path:`/3/accounts/${t}/currencies/${e}/fees/`,method:"GET",query:s,secure:!0,format:"json",...n}),accountsCurrenciesFeesRetrieve:(e,t,s,n={})=>this.request({path:`/3/accounts/${s}/currencies/${e}/fees/${t}/`,method:"GET",secure:!0,format:"json",...n}),accountsCurrenciesLimitsList:({code:e,reference:t,...s},n={})=>this.request({path:`/3/accounts/${t}/currencies/${e}/limits/`,method:"GET",query:s,secure:!0,format:"json",...n}),accountsCurrenciesLimitsRetrieve:(e,t,s,n={})=>this.request({path:`/3/accounts/${s}/currencies/${e}/limits/${t}/`,method:"GET",secure:!0,format:"json",...n}),authRetrieve:(e={})=>this.request({path:"/3/auth/",method:"GET",secure:!0,format:"json",...e}),authRegisterCompany:(e,t={})=>this.request({path:"/3/auth/company/register/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authDeactivate:(e,t={})=>this.request({path:"/3/auth/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authDeactivateVerify:(e,t={})=>this.request({path:"/3/auth/deactivate/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authEmailVerify:(e,t={})=>this.request({path:"/3/auth/email/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authEmailVerifyResend:(e,t={})=>this.request({path:"/3/auth/email/verify/resend/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authJwtCreate:(e,t={})=>this.request({path:"/3/auth/jwt/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authLogin:(e,t={})=>this.request({path:"/3/auth/login/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authLogout:(e,t={})=>this.request({path:"/3/auth/logout/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authMfaAuthenticatorsList:(e,t={})=>this.request({path:"/3/auth/mfa/authenticators/",method:"GET",query:e,secure:!0,format:"json",...t}),authMfaAuthenticatorsCreate:(e,t={})=>this.request({path:"/3/auth/mfa/authenticators/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authMfaAuthenticatorsRetrieve:(e,t={})=>this.request({path:`/3/auth/mfa/authenticators/${e}/`,method:"GET",secure:!0,format:"json",...t}),authMfaAuthenticatorsDestroy:(e,t={})=>this.request({path:`/3/auth/mfa/authenticators/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),authMfaDeliver:(e,t={})=>this.request({path:"/3/auth/mfa/deliver/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authMfaVerify:(e,t={})=>this.request({path:"/3/auth/mfa/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authMobileVerify:(e,t={})=>this.request({path:"/3/auth/mobile/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authMobileVerifyResend:(e,t={})=>this.request({path:"/3/auth/mobile/verify/resend/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authOauthAuthorizeCreate:(e,t={})=>this.request({path:"/3/auth/oauth/authorize/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authOauthLoginCreate:(e,t={})=>this.request({path:"/3/auth/oauth/login/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authOauthRegisterCreate:(e,t={})=>this.request({path:"/3/auth/oauth/register/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authOauthSessionCreate:(e,t={})=>this.request({path:"/3/auth/oauth/session/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authOauthVerifyCreate:(e,t={})=>this.request({path:"/3/auth/oauth/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authPasswordChange:(e,t={})=>this.request({path:"/3/auth/password/change/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authPasswordReset:(e,t={})=>this.request({path:"/3/auth/password/reset/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authPasswordResetConfirm:(e,t={})=>this.request({path:"/3/auth/password/reset/confirm/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRefreshCreate:(e,t={})=>this.request({path:"/3/auth/refresh/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRegister:(e,t={})=>this.request({path:"/3/auth/register/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRequestDelete:(e,t={})=>this.request({path:"/3/auth/request-delete/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRequestDeleteVerify:(e,t={})=>this.request({path:"/3/auth/request-delete/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authTokensList:(e,t={})=>this.request({path:"/3/auth/tokens/",method:"GET",query:e,secure:!0,format:"json",...t}),authTokensCreate:(e,t={})=>this.request({path:"/3/auth/tokens/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authTokensListDestroy:(e={})=>this.request({path:"/3/auth/tokens/",method:"DELETE",secure:!0,format:"json",...e}),authTokensRetrieve:(e,t={})=>this.request({path:`/3/auth/tokens/${e}/`,method:"GET",secure:!0,format:"json",...t}),authTokensDestroy:(e,t={})=>this.request({path:`/3/auth/tokens/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),companyRetrieve:(e={})=>this.request({path:"/3/company/",method:"GET",secure:!0,format:"json",...e}),companyBankAccountsList:(e,t={})=>this.request({path:"/3/company/bank-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),companyCurrenciesList:(e,t={})=>this.request({path:"/3/company/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),companyCurrenciesRetrieve:(e,t={})=>this.request({path:`/3/company/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),companyWalletAccountsList:(e,t={})=>this.request({path:"/3/company/wallet-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),documentTypesList:(e,t={})=>this.request({path:"/3/document-types/",method:"GET",query:e,secure:!0,format:"json",...t}),documentTypesRetrieve:(e,t={})=>this.request({path:`/3/document-types/${e}/`,method:"GET",secure:!0,format:"json",...t}),exportsList:(e,t={})=>this.request({path:"/3/exports/",method:"GET",query:e,secure:!0,format:"json",...t}),exportsCreate:(e,t={})=>this.request({path:"/3/exports/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),exportsRetrieve:(e,t={})=>this.request({path:`/3/exports/${e}/`,method:"GET",secure:!0,format:"json",...t}),groupsList:(e,t={})=>this.request({path:"/3/groups/",method:"GET",query:e,secure:!0,format:"json",...t}),groupsRetrieve:(e,t={})=>this.request({path:`/3/groups/${e}/`,method:"GET",secure:!0,format:"json",...t}),groupsFeesList:({groupName:e,...t},s={})=>this.request({path:`/3/groups/${e}/fees/`,method:"GET",query:t,secure:!0,format:"json",...s}),groupsFeesRetrieve:(e,t,s={})=>this.request({path:`/3/groups/${t}/fees/${e}/`,method:"GET",secure:!0,format:"json",...s}),groupsPermissionsList:({groupName:e,...t},s={})=>this.request({path:`/3/groups/${e}/permissions/`,method:"GET",query:t,secure:!0,format:"json",...s}),groupsPermissionsRetrieve:(e,t,s={})=>this.request({path:`/3/groups/${e}/permissions/${t}/`,method:"GET",secure:!0,format:"json",...s}),groupsTiersList:({groupName:e,...t},s={})=>this.request({path:`/3/groups/${e}/tiers/`,method:"GET",query:t,secure:!0,format:"json",...s}),groupsTiersRetrieve:(e,t,s={})=>this.request({path:`/3/groups/${e}/tiers/${t}/`,method:"GET",secure:!0,format:"json",...s}),groupsTiersFeesList:({groupName:e,tierId:t,...s},n={})=>this.request({path:`/3/groups/${e}/tiers/${t}/fees/`,method:"GET",query:s,secure:!0,format:"json",...n}),groupsTiersFeesRetrieve:(e,t,s,n={})=>this.request({path:`/3/groups/${t}/tiers/${s}/fees/${e}/`,method:"GET",secure:!0,format:"json",...n}),groupsTiersLimitsList:({groupName:e,tierId:t,...s},n={})=>this.request({path:`/3/groups/${e}/tiers/${t}/limits/`,method:"GET",query:s,secure:!0,format:"json",...n}),groupsTiersLimitsRetrieve:(e,t,s,n={})=>this.request({path:`/3/groups/${e}/tiers/${s}/limits/${t}/`,method:"GET",secure:!0,format:"json",...n}),groupsTiersRequirementSetsList:({groupName:e,tierId:t,...s},n={})=>this.request({path:`/3/groups/${e}/tiers/${t}/requirement-sets/`,method:"GET",query:s,secure:!0,format:"json",...n}),groupsTiersRequirementSetsRetrieve:(e,t,s,n={})=>this.request({path:`/3/groups/${e}/tiers/${s}/requirement-sets/${t}/`,method:"GET",secure:!0,format:"json",...n}),groupsTiersRequirementSetsItemsList:({groupName:e,reqSetId:t,tierId:s,...n},a={})=>this.request({path:`/3/groups/${e}/tiers/${s}/requirement-sets/${t}/items/`,method:"GET",query:n,secure:!0,format:"json",...a}),groupsTiersRequirementSetsItemsRetrieve:(e,t,s,n,a={})=>this.request({path:`/3/groups/${e}/tiers/${n}/requirement-sets/${s}/items/${t}/`,method:"GET",secure:!0,format:"json",...a}),metricsList:(e,t={})=>this.request({path:"/3/metrics/",method:"GET",query:e,secure:!0,format:"json",...t}),metricsCreate:(e,t={})=>this.request({path:"/3/metrics/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),metricsRetrieve:(e,t={})=>this.request({path:`/3/metrics/${e}/`,method:"GET",secure:!0,format:"json",...t}),metricsDestroy:(e,t={})=>this.request({path:`/3/metrics/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),metricsPointsList:({identifier:e,...t},s={})=>this.request({path:`/3/metrics/${e}/points/`,method:"GET",query:t,secure:!0,format:"json",...s}),permissionsList:(e,t={})=>this.request({path:"/3/permissions/",method:"GET",query:e,secure:!0,format:"json",...t}),permissionsRetrieve:(e,t={})=>this.request({path:`/3/permissions/${e}/`,method:"GET",secure:!0,format:"json",...t}),publicCompaniesList:(e,t={})=>this.request({path:"/3/public/companies/",method:"GET",query:e,secure:!0,format:"json",...t}),publicCompaniesRetrieve:(e,t={})=>this.request({path:`/3/public/companies/${e}/`,method:"GET",secure:!0,format:"json",...t}),publicCompaniesGroupsList:({id:e,...t},s={})=>this.request({path:`/3/public/companies/${e}/groups/`,method:"GET",query:t,secure:!0,format:"json",...s}),publicCompaniesGroupsRetrieve:(e,t,s={})=>this.request({path:`/3/public/companies/${t}/groups/${e}/`,method:"GET",secure:!0,format:"json",...s}),publicCompaniesLegalTermsList:({id:e,...t},s={})=>this.request({path:`/3/public/companies/${e}/legal-terms/`,method:"GET",query:t,secure:!0,format:"json",...s}),publicCompaniesLegalTermsRetrieve:(e,t,s={})=>this.request({path:`/3/public/companies/${e}/legal-terms/${t}/`,method:"GET",secure:!0,format:"json",...s}),publicCompaniesLegalTermsVersionsList:({id:e,termId:t,...s},n={})=>this.request({path:`/3/public/companies/${e}/legal-terms/${t}/versions/`,method:"GET",query:s,secure:!0,format:"json",...n}),publicCompaniesLegalTermsVersionsRetrieve:(e,t,s,n={})=>this.request({path:`/3/public/companies/${e}/legal-terms/${t}/versions/${s}/`,method:"GET",secure:!0,format:"json",...n}),publicCompaniesOauthClientsList:({id:e,...t},s={})=>this.request({path:`/3/public/companies/${e}/oauth-clients/`,method:"GET",query:t,secure:!0,format:"json",...s}),publicCompaniesOauthClientsRetrieve:(e,t,s={})=>this.request({path:`/3/public/companies/${e}/oauth-clients/${t}/`,method:"GET",secure:!0,format:"json",...s}),publicLegalTermsList:(e,t={})=>this.request({path:"/3/public/legal-terms/",method:"GET",query:e,secure:!0,format:"json",...t}),publicLegalTermsRetrieve:(e,t={})=>this.request({path:`/3/public/legal-terms/${e}/`,method:"GET",secure:!0,format:"json",...t}),publicLegalTermsVersionsList:({termId:e,...t},s={})=>this.request({path:`/3/public/legal-terms/${e}/versions/`,method:"GET",query:t,secure:!0,format:"json",...s}),publicLegalTermsVersionsRetrieve:(e,t,s={})=>this.request({path:`/3/public/legal-terms/${e}/versions/${t}/`,method:"GET",secure:!0,format:"json",...s}),statementsList:(e,t={})=>this.request({path:"/3/statements/",method:"GET",query:e,secure:!0,format:"json",...t}),statementsCreate:(e,t={})=>this.request({path:"/3/statements/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),statementsRetrieve:(e,t={})=>this.request({path:`/3/statements/${e}/`,method:"GET",secure:!0,format:"json",...t}),statementsDestroy:(e,t={})=>this.request({path:`/3/statements/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),subtypesList:(e,t={})=>this.request({path:"/3/subtypes/",method:"GET",query:e,secure:!0,format:"json",...t}),subtypesRetrieve:(e,t={})=>this.request({path:`/3/subtypes/${e}/`,method:"GET",secure:!0,format:"json",...t}),transactionCollectionsList:(e,t={})=>this.request({path:"/3/transaction-collections/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionCollectionsCreate:(e,t={})=>this.request({path:"/3/transaction-collections/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionCollectionsRetrieve:(e,t={})=>this.request({path:`/3/transaction-collections/${e}/`,method:"GET",secure:!0,format:"json",...t}),transactionsList:(e,t={})=>this.request({path:"/3/transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionsCreate:(e,t={})=>this.request({path:"/3/transactions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionsRetrieve:(e,t={})=>this.request({path:`/3/transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),transactionsUpdate:(e,t,s={})=>this.request({path:`/3/transactions/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionsPartialUpdate:(e,t,s={})=>this.request({path:`/3/transactions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionsMessagesList:({txCode:e,...t},s={})=>this.request({path:`/3/transactions/${e}/messages/`,method:"GET",query:t,secure:!0,format:"json",...s}),transactionsMessagesRetrieve:(e,t,s={})=>this.request({path:`/3/transactions/${t}/messages/${e}/`,method:"GET",secure:!0,format:"json",...s}),transactionsCreditCreate:(e,t={})=>this.request({path:"/3/transactions/credit/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionsDebitCreate:(e,t={})=>this.request({path:"/3/transactions/debit/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionTotalsRetrieve:(e={})=>this.request({path:"/3/transactions/totals/",method:"GET",secure:!0,format:"json",...e}),transactionsTransferCreate:(e,t={})=>this.request({path:"/3/transactions/transfer/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userRetrieve:(e={})=>this.request({path:"/3/user/",method:"GET",secure:!0,format:"json",...e}),userUpdate:(e,t={})=>this.request({path:"/3/user/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),userPartialUpdate:(e,t={})=>this.request({path:"/3/user/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),userAddressesList:(e={})=>this.request({path:"/3/user/addresses/",method:"GET",secure:!0,format:"json",...e}),userAddressesCreate:(e,t={})=>this.request({path:"/3/user/addresses/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userAddressesRetrieve:(e,t={})=>this.request({path:`/3/user/addresses/${e}/`,method:"GET",secure:!0,format:"json",...t}),userAddressesUpdate:(e,t,s={})=>this.request({path:`/3/user/addresses/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userAddressesPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/addresses/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userAddressesDestroy:(e,t={})=>this.request({path:`/3/user/addresses/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userBankAccountsList:(e,t={})=>this.request({path:"/3/user/bank-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),userBankAccountsCreate:(e,t={})=>this.request({path:"/3/user/bank-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userBankAccountsRetrieve:(e,t={})=>this.request({path:`/3/user/bank-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),userBankAccountsUpdate:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userBankAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userBankAccountsDestroy:(e,t={})=>this.request({path:`/3/user/bank-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userBankAccountsAccountCurrenciesList:(e,t={})=>this.request({path:`/3/user/bank-accounts/${e}/account-currencies/`,method:"GET",secure:!0,format:"json",...t}),userBankAccountsAccountCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${e}/account-currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userBankAccountsAccountCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${t}/account-currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),userBankAccountsAccountCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${t}/account-currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userBankAccountsCurrenciesList:(e,t={})=>this.request({path:`/3/user/bank-accounts/${e}/currencies/`,method:"GET",secure:!0,format:"json",...t}),userBankAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userBankAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),userBankAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userCryptoAccountsList:(e,t={})=>this.request({path:"/3/user/crypto-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),userCryptoAccountsCreate:(e,t={})=>this.request({path:"/3/user/crypto-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userCryptoAccountsRetrieve:(e,t={})=>this.request({path:`/3/user/crypto-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),userCryptoAccountsUpdate:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userCryptoAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userCryptoAccountsDestroy:(e,t={})=>this.request({path:`/3/user/crypto-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userCryptoAccountsAccountCurrenciesList:(e,t={})=>this.request({path:`/3/user/crypto-accounts/${e}/account-currencies/`,method:"GET",secure:!0,format:"json",...t}),userCryptoAccountsAccountCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${e}/account-currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userCryptoAccountsAccountCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${t}/account-currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),userCryptoAccountsAccountCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${t}/account-currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userCryptoAccountsCurrenciesList:(e,t={})=>this.request({path:`/3/user/crypto-accounts/${e}/currencies/`,method:"GET",secure:!0,format:"json",...t}),userCryptoAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userCryptoAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),userCryptoAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userDevicesList:(e,t={})=>this.request({path:"/3/user/devices/",method:"GET",query:e,secure:!0,format:"json",...t}),userDevicesCreate:(e,t={})=>this.request({path:"/3/user/devices/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userDevicesAppsRetrieve:(e,t,s={})=>this.request({path:`/3/user/devices/${t}/apps/${e}/`,method:"GET",secure:!0,format:"json",...s}),userDevicesAppsUpdate:(e,t,s,n={})=>this.request({path:`/3/user/devices/${t}/apps/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),userDevicesAppsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/user/devices/${t}/apps/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),userDevicesAppsDestroy:(e,t,s={})=>this.request({path:`/3/user/devices/${t}/apps/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userDevicesRetrieve:(e,t={})=>this.request({path:`/3/user/devices/${e}/`,method:"GET",secure:!0,format:"json",...t}),userDevicesUpdate:(e,t,s={})=>this.request({path:`/3/user/devices/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userDevicesPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/devices/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userDevicesDestroy:(e,t={})=>this.request({path:`/3/user/devices/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userDevicesAppsList:({id:e,...t},s={})=>this.request({path:`/3/user/devices/${e}/apps/`,method:"GET",query:t,secure:!0,format:"json",...s}),userDevicesAppsCreate:(e,t,s={})=>this.request({path:`/3/user/devices/${e}/apps/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userDocumentsList:(e,t={})=>this.request({path:"/3/user/documents/",method:"GET",query:e,secure:!0,format:"json",...t}),userDocumentsCreate:(e,t={})=>this.request({path:"/3/user/documents/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userDocumentsRetrieve:(e,t={})=>this.request({path:`/3/user/documents/${e}/`,method:"GET",secure:!0,format:"json",...t}),userDocumentsDestroy:(e,t={})=>this.request({path:`/3/user/documents/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userEmailsList:(e={})=>this.request({path:"/3/user/emails/",method:"GET",secure:!0,format:"json",...e}),userEmailsCreate:(e,t={})=>this.request({path:"/3/user/emails/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userEmailsRetrieve:(e,t={})=>this.request({path:`/3/user/emails/${e}/`,method:"GET",secure:!0,format:"json",...t}),userEmailsUpdate:(e,t,s={})=>this.request({path:`/3/user/emails/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userEmailsPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/emails/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userEmailsDestroy:(e,t={})=>this.request({path:`/3/user/emails/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userLegalTermsList:(e,t={})=>this.request({path:"/3/user/legal-terms/",method:"GET",query:e,secure:!0,format:"json",...t}),userLegalTermsRetrieve:(e,t={})=>this.request({path:`/3/user/legal-terms/${e}/`,method:"GET",secure:!0,format:"json",...t}),userLegalTermsVersionsList:({id:e,...t},s={})=>this.request({path:`/3/user/legal-terms/${e}/versions/`,method:"GET",query:t,secure:!0,format:"json",...s}),userLegalTermsVersionsRetrieve:(e,t,s={})=>this.request({path:`/3/user/legal-terms/${e}/versions/${t}/`,method:"GET",secure:!0,format:"json",...s}),userLegalTermsVersionsUpdate:(e,t,s,n={})=>this.request({path:`/3/user/legal-terms/${e}/versions/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),userLegalTermsVersionsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/user/legal-terms/${e}/versions/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),userMessagesList:(e,t={})=>this.request({path:"/3/user/messages/",method:"GET",query:e,secure:!0,format:"json",...t}),userMessagesRetrieve:(e,t={})=>this.request({path:`/3/user/messages/${e}/`,method:"GET",secure:!0,format:"json",...t}),userMobilesList:(e={})=>this.request({path:"/3/user/mobiles/",method:"GET",secure:!0,format:"json",...e}),userMobilesCreate:(e,t={})=>this.request({path:"/3/user/mobiles/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userMobilesRetrieve:(e,t={})=>this.request({path:`/3/user/mobiles/${e}/`,method:"GET",secure:!0,format:"json",...t}),userMobilesUpdate:(e,t,s={})=>this.request({path:`/3/user/mobiles/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userMobilesPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/mobiles/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userMobilesDestroy:(e,t={})=>this.request({path:`/3/user/mobiles/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userWalletAccountsList:(e,t={})=>this.request({path:"/3/user/wallet-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),userWalletAccountsCreate:(e,t={})=>this.request({path:"/3/user/wallet-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userWalletAccountsRetrieve:(e,t={})=>this.request({path:`/3/user/wallet-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),userWalletAccountsUpdate:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userWalletAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userWalletAccountsDestroy:(e,t={})=>this.request({path:`/3/user/wallet-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userWalletAccountsAccountCurrenciesList:(e,t={})=>this.request({path:`/3/user/wallet-accounts/${e}/account-currencies/`,method:"GET",secure:!0,format:"json",...t}),userWalletAccountsAccountCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${e}/account-currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userWalletAccountsAccountCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${t}/account-currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),userWalletAccountsAccountCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${t}/account-currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userWalletAccountsCurrenciesList:({id:e,...t},s={})=>this.request({path:`/3/user/wallet-accounts/${e}/currencies/`,method:"GET",query:t,secure:!0,format:"json",...s}),userWalletAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userWalletAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),userWalletAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s})}}};var L=class extends S{constructor(r){super(r),this.v3&&Object.keys(this.v3).forEach(e=>{typeof this.v3[e]=="function"&&(this[e]=this.v3[e])})}};var w=class{constructor(r={}){this.baseUrl="https://api.rehive.com";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},q=class extends w{constructor(){super(...arguments);this.v3={accessControlRulesList:(e,t={})=>this.request({path:"/3/admin/access-control-rules/",method:"GET",query:e,secure:!0,format:"json",...t}),accessControlRulesCreate:(e,t={})=>this.request({path:"/3/admin/access-control-rules/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),accessControlRulesRetrieve:(e,t={})=>this.request({path:`/3/admin/access-control-rules/${e}/`,method:"GET",secure:!0,format:"json",...t}),accessControlRulesUpdate:(e,t,s={})=>this.request({path:`/3/admin/access-control-rules/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),accessControlRulesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/access-control-rules/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),accessControlRulesDestroy:(e,t={})=>this.request({path:`/3/admin/access-control-rules/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),accountCurrenciesList:(e,t={})=>this.request({path:"/3/admin/account-currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),accountDefinitionsList:(e,t={})=>this.request({path:"/3/admin/account-definitions/",method:"GET",query:e,secure:!0,format:"json",...t}),accountDefinitionsCreate:(e,t={})=>this.request({path:"/3/admin/account-definitions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),accountDefinitionsRetrieve:(e,t={})=>this.request({path:`/3/admin/account-definitions/${e}/`,method:"GET",secure:!0,format:"json",...t}),accountDefinitionsUpdate:(e,t,s={})=>this.request({path:`/3/admin/account-definitions/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),accountDefinitionsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/account-definitions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),accountDefinitionsGroupsList:({definitionName:e,...t},s={})=>this.request({path:`/3/admin/account-definitions/${e}/groups/`,method:"GET",query:t,secure:!0,format:"json",...s}),accountDefinitionsGroupsCreate:(e,t,s={})=>this.request({path:`/3/admin/account-definitions/${e}/groups/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),accountDefinitionsGroupsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/account-definitions/${t}/groups/${e}/`,method:"GET",secure:!0,format:"json",...s}),accountDefinitionsGroupsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/account-definitions/${t}/groups/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),accountDefinitionsGroupsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/account-definitions/${t}/groups/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),accountDefinitionsGroupsCurrenciesList:({definitionGroupName:e,definitionName:t,...s},n={})=>this.request({path:`/3/admin/account-definitions/${t}/groups/${e}/currencies/`,method:"GET",query:s,secure:!0,format:"json",...n}),accountDefinitionsGroupsCurrenciesCreate:(e,t,s,n={})=>this.request({path:`/3/admin/account-definitions/${t}/groups/${e}/currencies/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),accountDefinitionsGroupsCurrenciesRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/account-definitions/${s}/groups/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...n}),accountDefinitionsGroupsCurrenciesUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/account-definitions/${s}/groups/${t}/currencies/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),accountDefinitionsGroupsCurrenciesPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/account-definitions/${s}/groups/${t}/currencies/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),accountsList:(e,t={})=>this.request({path:"/3/admin/accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),accountsCreate:(e,t={})=>this.request({path:"/3/admin/accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),accountsRetrieve:(e,t={})=>this.request({path:`/3/admin/accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),accountsUpdate:(e,t,s={})=>this.request({path:`/3/admin/accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),accountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),accountsCurrenciesList:({reference:e,...t},s={})=>this.request({path:`/3/admin/accounts/${e}/currencies/`,method:"GET",query:t,secure:!0,format:"json",...s}),accountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),accountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),accountsCurrenciesUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesFeesList:(e,t,s={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/fees/`,method:"GET",secure:!0,format:"json",...s}),accountsCurrenciesFeesCreate:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/fees/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesFeesRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/fees/${t}/`,method:"GET",secure:!0,format:"json",...n}),accountsCurrenciesFeesUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/fees/${t}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),accountsCurrenciesFeesPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/fees/${t}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),accountsCurrenciesFeesDestroy:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/fees/${t}/`,method:"DELETE",secure:!0,format:"json",...n}),accountsCurrenciesLimitsList:({code:e,reference:t,...s},n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/limits/`,method:"GET",query:s,secure:!0,format:"json",...n}),accountsCurrenciesLimitsCreate:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/limits/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesLimitsRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/limits/${t}/`,method:"GET",secure:!0,format:"json",...n}),accountsCurrenciesLimitsUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/limits/${t}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),accountsCurrenciesLimitsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/limits/${t}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),accountsCurrenciesLimitsDestroy:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/limits/${t}/`,method:"DELETE",secure:!0,format:"json",...n}),accountsCurrenciesSettingsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/settings/`,method:"GET",secure:!0,format:"json",...s}),accountsCurrenciesSettingsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/settings/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesSettingsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/settings/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),authDeactivateCreate:(e,t={})=>this.request({path:"/3/admin/auth/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authDeactivateVerifyCreate:(e,t={})=>this.request({path:"/3/admin/auth/deactivate/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authLoginCreate:(e,t={})=>this.request({path:"/3/admin/auth/login/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authPasswordResetCreate:(e,t={})=>this.request({path:"/3/admin/auth/password/reset/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authPasswordResetConfirmCreate:(e,t={})=>this.request({path:"/3/admin/auth/password/reset/confirm/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRegisterCreate:(e,t={})=>this.request({path:"/3/admin/auth/register/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRequestDeleteCreate:(e,t={})=>this.request({path:"/3/admin/auth/request-delete/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRequestDeleteVerifyCreate:(e,t={})=>this.request({path:"/3/admin/auth/request-delete/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authenticatorRulesList:(e,t={})=>this.request({path:"/3/admin/authenticator-rules/",method:"GET",query:e,secure:!0,format:"json",...t}),authenticatorRulesCreate:(e,t={})=>this.request({path:"/3/admin/authenticator-rules/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authenticatorRulesRetrieve:(e,t={})=>this.request({path:`/3/admin/authenticator-rules/${e}/`,method:"GET",secure:!0,format:"json",...t}),authenticatorRulesUpdate:(e,t,s={})=>this.request({path:`/3/admin/authenticator-rules/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),authenticatorRulesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/authenticator-rules/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),authenticatorRulesDestroy:(e,t={})=>this.request({path:`/3/admin/authenticator-rules/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),bankAccountsList:(e,t={})=>this.request({path:"/3/admin/bank-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),bankAccountsCreate:(e,t={})=>this.request({path:"/3/admin/bank-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),bankAccountsRetrieve:(e,t={})=>this.request({path:`/3/admin/bank-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),bankAccountsUpdate:(e,t,s={})=>this.request({path:`/3/admin/bank-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),bankAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/bank-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),bankAccountsDestroy:(e,t={})=>this.request({path:`/3/admin/bank-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),bankAccountsCurrenciesList:({id:e,...t},s={})=>this.request({path:`/3/admin/bank-accounts/${e}/currencies/`,method:"GET",query:t,secure:!0,format:"json",...s}),bankAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/bank-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),bankAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/bank-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),bankAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/bank-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),companyRetrieve:(e={})=>this.request({path:"/3/admin/company/",method:"GET",secure:!0,format:"json",...e}),companyUpdate:(e,t={})=>this.request({path:"/3/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),companyPartialUpdate:(e,t={})=>this.request({path:"/3/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),companyAddressRetrieve:(e={})=>this.request({path:"/3/admin/company/address/",method:"GET",secure:!0,format:"json",...e}),companyAddressUpdate:(e,t={})=>this.request({path:"/3/admin/company/address/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),companyAddressPartialUpdate:(e,t={})=>this.request({path:"/3/admin/company/address/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),companyLinksList:(e,t={})=>this.request({path:"/3/admin/company/links/",method:"GET",query:e,secure:!0,format:"json",...t}),companyLinksCreate:(e,t={})=>this.request({path:"/3/admin/company/links/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),companyLinksRetrieve:(e,t={})=>this.request({path:`/3/admin/company/links/${e}/`,method:"GET",secure:!0,format:"json",...t}),companyLinksUpdate:(e,t,s={})=>this.request({path:`/3/admin/company/links/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),companyLinksPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/company/links/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),companyLinksDestroy:(e,t={})=>this.request({path:`/3/admin/company/links/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),companySettingsRetrieve:(e={})=>this.request({path:"/3/admin/company/settings/",method:"GET",secure:!0,format:"json",...e}),companySettingsUpdate:(e,t={})=>this.request({path:"/3/admin/company/settings/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),companySettingsPartialUpdate:(e,t={})=>this.request({path:"/3/admin/company/settings/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),currenciesList:(e,t={})=>this.request({path:"/3/admin/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),currenciesCreate:(e,t={})=>this.request({path:"/3/admin/currencies/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),currenciesRetrieve:(e,t={})=>this.request({path:`/3/admin/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),currenciesUpdate:(e,t,s={})=>this.request({path:`/3/admin/currencies/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),currenciesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/currencies/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),currenciesOverviewRetrieve:(e,t={})=>this.request({path:`/3/admin/currencies/${e}/overview/`,method:"GET",secure:!0,format:"json",...t}),documentTypesList:(e,t={})=>this.request({path:"/3/admin/document-types/",method:"GET",query:e,secure:!0,format:"json",...t}),documentTypesCreate:(e,t={})=>this.request({path:"/3/admin/document-types/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),documentTypesRetrieve:(e,t={})=>this.request({path:`/3/admin/document-types/${e}/`,method:"GET",secure:!0,format:"json",...t}),documentTypesUpdate:(e,t,s={})=>this.request({path:`/3/admin/document-types/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),documentTypesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/document-types/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),documentTypesDestroy:(e,t={})=>this.request({path:`/3/admin/document-types/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),exportsList:(e,t={})=>this.request({path:"/3/admin/exports/",method:"GET",query:e,secure:!0,format:"json",...t}),exportsCreate:(e,t={})=>this.request({path:"/3/admin/exports/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),exportsRetrieve:(e,t={})=>this.request({path:`/3/admin/exports/${e}/`,method:"GET",secure:!0,format:"json",...t}),exportsDestroy:(e,t={})=>this.request({path:`/3/admin/exports/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),groupsList:(e,t={})=>this.request({path:"/3/admin/groups/",method:"GET",query:e,secure:!0,format:"json",...t}),groupsCreate:(e,t={})=>this.request({path:"/3/admin/groups/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),groupsRetrieve:(e,t={})=>this.request({path:`/3/admin/groups/${e}/`,method:"GET",secure:!0,format:"json",...t}),groupsUpdate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsFeesList:(e,t={})=>this.request({path:`/3/admin/groups/${e}/fees/`,method:"GET",secure:!0,format:"json",...t}),groupsFeesCreate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/fees/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsFeesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/groups/${t}/fees/${e}/`,method:"GET",secure:!0,format:"json",...s}),groupsFeesUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${t}/fees/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsFeesPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${t}/fees/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsFeesDestroy:(e,t,s={})=>this.request({path:`/3/admin/groups/${t}/fees/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),groupsPermissionsList:({groupName:e,...t},s={})=>this.request({path:`/3/admin/groups/${e}/permissions/`,method:"GET",query:t,secure:!0,format:"json",...s}),groupsPermissionsCreate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/permissions/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsPermissionsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/permissions/${t}/`,method:"GET",secure:!0,format:"json",...s}),groupsPermissionsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/permissions/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsPermissionsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/permissions/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsPermissionsDestroy:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/permissions/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),groupsSettingsRetrieve:(e,t={})=>this.request({path:`/3/admin/groups/${e}/settings/`,method:"GET",secure:!0,format:"json",...t}),groupsSettingsUpdate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/settings/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsSettingsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/settings/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsTiersList:({groupName:e,...t},s={})=>this.request({path:`/3/admin/groups/${e}/tiers/`,method:"GET",query:t,secure:!0,format:"json",...s}),groupsTiersCreate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/tiers/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsTiersRetrieve:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/`,method:"GET",secure:!0,format:"json",...s}),groupsTiersUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsTiersPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsTiersDestroy:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),groupsTiersFeesList:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/fees/`,method:"GET",secure:!0,format:"json",...s}),groupsTiersFeesCreate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/fees/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsTiersFeesRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${t}/tiers/${s}/fees/${e}/`,method:"GET",secure:!0,format:"json",...n}),groupsTiersFeesUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${t}/tiers/${s}/fees/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersFeesPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${t}/tiers/${s}/fees/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersFeesDestroy:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${t}/tiers/${s}/fees/${e}/`,method:"DELETE",secure:!0,format:"json",...n}),groupsTiersLimitsList:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/limits/`,method:"GET",secure:!0,format:"json",...s}),groupsTiersLimitsCreate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/limits/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsTiersLimitsRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/limits/${t}/`,method:"GET",secure:!0,format:"json",...n}),groupsTiersLimitsUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/limits/${t}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersLimitsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/limits/${t}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersLimitsDestroy:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/limits/${t}/`,method:"DELETE",secure:!0,format:"json",...n}),groupsTiersRequirementSetsList:({groupName:e,tierId:t,...s},n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/requirement-sets/`,method:"GET",query:s,secure:!0,format:"json",...n}),groupsTiersRequirementSetsCreate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/requirement-sets/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsTiersRequirementSetsRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/requirement-sets/${t}/`,method:"GET",secure:!0,format:"json",...n}),groupsTiersRequirementSetsUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/requirement-sets/${t}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersRequirementSetsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/requirement-sets/${t}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersRequirementSetsDestroy:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/requirement-sets/${t}/`,method:"DELETE",secure:!0,format:"json",...n}),groupsTiersRequirementSetsItemsList:({groupName:e,reqSetId:t,tierId:s,...n},a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/requirement-sets/${t}/items/`,method:"GET",query:n,secure:!0,format:"json",...a}),groupsTiersRequirementSetsItemsCreate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/requirement-sets/${t}/items/`,method:"POST",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersRequirementSetsItemsRetrieve:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${n}/requirement-sets/${s}/items/${t}/`,method:"GET",secure:!0,format:"json",...a}),groupsTiersRequirementSetsItemsUpdate:(e,t,s,n,a,d={})=>this.request({path:`/3/admin/groups/${e}/tiers/${n}/requirement-sets/${s}/items/${t}/`,method:"PUT",body:a,secure:!0,type:"application/json",format:"json",...d}),groupsTiersRequirementSetsItemsPartialUpdate:(e,t,s,n,a,d={})=>this.request({path:`/3/admin/groups/${e}/tiers/${n}/requirement-sets/${s}/items/${t}/`,method:"PATCH",body:a,secure:!0,type:"application/json",format:"json",...d}),groupsTiersRequirementSetsItemsDestroy:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${n}/requirement-sets/${s}/items/${t}/`,method:"DELETE",secure:!0,format:"json",...a}),groupsTiersSettingsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/settings/`,method:"GET",secure:!0,format:"json",...s}),groupsTiersSettingsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/settings/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsTiersSettingsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/settings/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),legalTermsList:(e,t={})=>this.request({path:"/3/admin/legal-terms/",method:"GET",query:e,secure:!0,format:"json",...t}),legalTermsCreate:(e,t={})=>this.request({path:"/3/admin/legal-terms/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),legalTermsRetrieve:(e,t={})=>this.request({path:`/3/admin/legal-terms/${e}/`,method:"GET",secure:!0,format:"json",...t}),legalTermsUpdate:(e,t,s={})=>this.request({path:`/3/admin/legal-terms/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),legalTermsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/legal-terms/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),legalTermsDestroy:(e,t={})=>this.request({path:`/3/admin/legal-terms/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),legalTermsVersionsList:({id:e,...t},s={})=>this.request({path:`/3/admin/legal-terms/${e}/versions/`,method:"GET",query:t,secure:!0,format:"json",...s}),legalTermsVersionsCreate:(e,t,s={})=>this.request({path:`/3/admin/legal-terms/${e}/versions/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),legalTermsVersionsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/legal-terms/${e}/versions/${t}/`,method:"GET",secure:!0,format:"json",...s}),legalTermsVersionsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/legal-terms/${e}/versions/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),legalTermsVersionsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/legal-terms/${e}/versions/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),legalTermsVersionsDestroy:(e,t,s={})=>this.request({path:`/3/admin/legal-terms/${e}/versions/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),metricsList:(e,t={})=>this.request({path:"/3/admin/metrics/",method:"GET",query:e,secure:!0,format:"json",...t}),metricsCreate:(e,t={})=>this.request({path:"/3/admin/metrics/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),metricsRetrieve:(e,t={})=>this.request({path:`/3/admin/metrics/${e}/`,method:"GET",secure:!0,format:"json",...t}),metricsDestroy:(e,t={})=>this.request({path:`/3/admin/metrics/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),metricsPointsList:({identifier:e,...t},s={})=>this.request({path:`/3/admin/metrics/${e}/points/`,method:"GET",query:t,secure:!0,format:"json",...s}),oauthClientsList:(e,t={})=>this.request({path:"/3/admin/oauth-clients/",method:"GET",query:e,secure:!0,format:"json",...t}),oauthClientsCreate:(e,t={})=>this.request({path:"/3/admin/oauth-clients/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),oauthClientsRetrieve:(e,t={})=>this.request({path:`/3/admin/oauth-clients/${e}/`,method:"GET",secure:!0,format:"json",...t}),oauthClientsUpdate:(e,t,s={})=>this.request({path:`/3/admin/oauth-clients/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),oauthClientsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/oauth-clients/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),oauthClientsDestroy:(e,t={})=>this.request({path:`/3/admin/oauth-clients/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),permissionsList:(e,t={})=>this.request({path:"/3/admin/permissions/",method:"GET",query:e,secure:!0,format:"json",...t}),permissionsRetrieve:(e,t={})=>this.request({path:`/3/admin/permissions/${e}/`,method:"GET",secure:!0,format:"json",...t}),requestsList:(e,t={})=>this.request({path:"/3/admin/requests/",method:"GET",query:e,secure:!0,format:"json",...t}),requestsRetrieve:(e,t={})=>this.request({path:`/3/admin/requests/${e}/`,method:"GET",secure:!0,format:"json",...t}),searchRetrieve:(e,t={})=>this.request({path:"/3/admin/search/",method:"GET",query:e,secure:!0,format:"json",...t}),servicesList:(e,t={})=>this.request({path:"/3/admin/services/",method:"GET",query:e,secure:!0,format:"json",...t}),servicesCreate:(e,t={})=>this.request({path:"/3/admin/services/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),servicesRetrieve:(e,t={})=>this.request({path:`/3/admin/services/${e}/`,method:"GET",secure:!0,format:"json",...t}),servicesUpdate:(e,t,s={})=>this.request({path:`/3/admin/services/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),servicesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/services/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),servicesDestroy:(e,t={})=>this.request({path:`/3/admin/services/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),servicesPermissionsList:({serviceId:e,...t},s={})=>this.request({path:`/3/admin/services/${e}/permissions/`,method:"GET",query:t,secure:!0,format:"json",...s}),servicesPermissionsCreate:(e,t,s={})=>this.request({path:`/3/admin/services/${e}/permissions/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),servicesPermissionsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/services/${t}/permissions/${e}/`,method:"GET",secure:!0,format:"json",...s}),servicesPermissionsDestroy:(e,t,s={})=>this.request({path:`/3/admin/services/${t}/permissions/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),statementsList:(e,t={})=>this.request({path:"/3/admin/statements/",method:"GET",query:e,secure:!0,format:"json",...t}),statementsCreate:(e,t={})=>this.request({path:"/3/admin/statements/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),statementsRetrieve:(e,t={})=>this.request({path:`/3/admin/statements/${e}/`,method:"GET",secure:!0,format:"json",...t}),statementsDestroy:(e,t={})=>this.request({path:`/3/admin/statements/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),subtypesList:(e,t={})=>this.request({path:"/3/admin/subtypes/",method:"GET",query:e,secure:!0,format:"json",...t}),subtypesCreate:(e,t={})=>this.request({path:"/3/admin/subtypes/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),subtypesRetrieve:(e,t={})=>this.request({path:`/3/admin/subtypes/${e}/`,method:"GET",secure:!0,format:"json",...t}),subtypesUpdate:(e,t,s={})=>this.request({path:`/3/admin/subtypes/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),subtypesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/subtypes/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),subtypesDestroy:(e,t={})=>this.request({path:`/3/admin/subtypes/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),transactionCollectionsList:(e,t={})=>this.request({path:"/3/admin/transaction-collections/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionCollectionsCreate:(e,t={})=>this.request({path:"/3/admin/transaction-collections/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionCollectionsRetrieve:(e,t={})=>this.request({path:`/3/admin/transaction-collections/${e}/`,method:"GET",secure:!0,format:"json",...t}),transactionCollectionsUpdate:(e,t,s={})=>this.request({path:`/3/admin/transaction-collections/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionCollectionsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/transaction-collections/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionCollectionsTransactionsList:({identifier:e,...t},s={})=>this.request({path:`/3/admin/transaction-collections/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s}),transactionCollectionsTransactionsCreate:(e,t,s={})=>this.request({path:`/3/admin/transaction-collections/${e}/transactions/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionTransitionsList:(e,t={})=>this.request({path:"/3/admin/transaction-transitions/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionTransitionsRetrieve:(e,t={})=>this.request({path:`/3/admin/transaction-transitions/${e}/`,method:"GET",secure:!0,format:"json",...t}),transactionTransitionsUpdate:(e,t,s={})=>this.request({path:`/3/admin/transaction-transitions/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionTransitionsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/transaction-transitions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionsList:(e,t={})=>this.request({path:"/3/admin/transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionsCreate:(e,t={})=>this.request({path:"/3/admin/transactions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionsRetrieve:(e,t={})=>this.request({path:`/3/admin/transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),transactionsUpdate:(e,t,s={})=>this.request({path:`/3/admin/transactions/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/transactions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionsMessagesList:({txCode:e,...t},s={})=>this.request({path:`/3/admin/transactions/${e}/messages/`,method:"GET",query:t,secure:!0,format:"json",...s}),transactionsMessagesCreate:(e,t,s={})=>this.request({path:`/3/admin/transactions/${e}/messages/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionsMessagesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/transactions/${t}/messages/${e}/`,method:"GET",secure:!0,format:"json",...s}),transactionsCreditCreate:(e,t={})=>this.request({path:"/3/admin/transactions/credit/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionsDebitCreate:(e,t={})=>this.request({path:"/3/admin/transactions/debit/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionsTotalsRetrieve:(e={})=>this.request({path:"/3/admin/transactions/totals/",method:"GET",secure:!0,format:"json",...e}),transactionsTransferCreate:(e,t={})=>this.request({path:"/3/admin/transactions/transfer/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersList:(e,t={})=>this.request({path:"/3/admin/users/",method:"GET",query:e,secure:!0,format:"json",...t}),usersCreate:(e,t={})=>this.request({path:"/3/admin/users/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersRetrieve:(e,t={})=>this.request({path:`/3/admin/users/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersGroupsList:({identifier:e,...t},s={})=>this.request({path:`/3/admin/users/${e}/groups/`,method:"GET",query:t,secure:!0,format:"json",...s}),usersGroupsCreate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/groups/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersGroupsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/${t}/groups/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersGroupsDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/${t}/groups/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersLegalTermsList:({identifier:e,...t},s={})=>this.request({path:`/3/admin/users/${e}/legal-terms/`,method:"GET",query:t,secure:!0,format:"json",...s}),usersLegalTermsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/legal-terms/${t}/`,method:"GET",secure:!0,format:"json",...s}),usersLegalTermsVersionsList:({identifier:e,termId:t,...s},n={})=>this.request({path:`/3/admin/users/${e}/legal-terms/${t}/versions/`,method:"GET",query:s,secure:!0,format:"json",...n}),usersLegalTermsVersionsRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/users/${e}/legal-terms/${t}/versions/${s}/`,method:"GET",secure:!0,format:"json",...n}),usersMessagesList:({identifier:e,...t},s={})=>this.request({path:`/3/admin/users/${e}/messages/`,method:"GET",query:t,secure:!0,format:"json",...s}),usersMessagesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/messages/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersMessagesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/${t}/messages/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersPermissionsList:({identifier:e,...t},s={})=>this.request({path:`/3/admin/users/${e}/permissions/`,method:"GET",query:t,secure:!0,format:"json",...s}),usersPermissionsCreate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/permissions/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersPermissionsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/permissions/${t}/`,method:"GET",secure:!0,format:"json",...s}),usersPermissionsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/users/${e}/permissions/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),usersPermissionsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/users/${e}/permissions/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),usersPermissionsDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/permissions/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),usersSettingsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/${e}/settings/`,method:"GET",secure:!0,format:"json",...t}),usersSettingsUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/settings/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersSettingsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/settings/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersAddressesList:(e,t={})=>this.request({path:"/3/admin/users/addresses/",method:"GET",query:e,secure:!0,format:"json",...t}),usersAddressesCreate:(e,t={})=>this.request({path:"/3/admin/users/addresses/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersAddressesRetrieve:(e,t={})=>this.request({path:`/3/admin/users/addresses/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersAddressesUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/addresses/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersAddressesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/addresses/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersAddressesDestroy:(e,t={})=>this.request({path:`/3/admin/users/addresses/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersBankAccountsList:(e,t={})=>this.request({path:"/3/admin/users/bank-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),usersBankAccountsCreate:(e,t={})=>this.request({path:"/3/admin/users/bank-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersBankAccountsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersBankAccountsUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersBankAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersBankAccountsDestroy:(e,t={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersBankAccountsAccountCurrenciesList:(e,t={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/account-currencies/`,method:"GET",secure:!0,format:"json",...t}),usersBankAccountsAccountCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/account-currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersBankAccountsAccountCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${t}/account-currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersBankAccountsAccountCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${t}/account-currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersBankAccountsCurrenciesList:(e,t={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/currencies/`,method:"GET",secure:!0,format:"json",...t}),usersBankAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersBankAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersBankAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersCryptoAccountsList:(e,t={})=>this.request({path:"/3/admin/users/crypto-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),usersCryptoAccountsCreate:(e,t={})=>this.request({path:"/3/admin/users/crypto-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersCryptoAccountsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersCryptoAccountsUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersCryptoAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersCryptoAccountsDestroy:(e,t={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersCryptoAccountsAccountCurrenciesList:(e,t={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/account-currencies/`,method:"GET",secure:!0,format:"json",...t}),usersCryptoAccountsAccountCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/account-currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersCryptoAccountsAccountCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${t}/account-currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersCryptoAccountsAccountCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${t}/account-currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersCryptoAccountsCurrenciesList:(e,t={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/currencies/`,method:"GET",secure:!0,format:"json",...t}),usersCryptoAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersCryptoAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersCryptoAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersDevicesList:(e,t={})=>this.request({path:"/3/admin/users/devices/",method:"GET",query:e,secure:!0,format:"json",...t}),usersDevicesCreate:(e,t={})=>this.request({path:"/3/admin/users/devices/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersDevicesAppsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/devices/${t}/apps/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersDevicesAppsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/users/devices/${t}/apps/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),usersDevicesAppsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/users/devices/${t}/apps/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),usersDevicesAppsDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/devices/${t}/apps/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersDevicesRetrieve:(e,t={})=>this.request({path:`/3/admin/users/devices/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersDevicesUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/devices/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersDevicesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/devices/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersDevicesDestroy:(e,t={})=>this.request({path:`/3/admin/users/devices/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersDevicesAppsList:({id:e,...t},s={})=>this.request({path:`/3/admin/users/devices/${e}/apps/`,method:"GET",query:t,secure:!0,format:"json",...s}),usersDevicesAppsCreate:(e,t,s={})=>this.request({path:`/3/admin/users/devices/${e}/apps/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersDocumentsList:(e,t={})=>this.request({path:"/3/admin/users/documents/",method:"GET",query:e,secure:!0,format:"json",...t}),usersDocumentsCreate:(e,t={})=>this.request({path:"/3/admin/users/documents/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersDocumentsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/documents/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersDocumentsUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/documents/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersDocumentsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/documents/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersDocumentsDestroy:(e,t={})=>this.request({path:`/3/admin/users/documents/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersEmailsList:(e,t={})=>this.request({path:"/3/admin/users/emails/",method:"GET",query:e,secure:!0,format:"json",...t}),usersEmailsCreate:(e,t={})=>this.request({path:"/3/admin/users/emails/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersEmailsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/emails/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersEmailsUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/emails/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersEmailsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/emails/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersEmailsDestroy:(e,t={})=>this.request({path:`/3/admin/users/emails/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersMfaAuthenticatorsList:(e,t={})=>this.request({path:"/3/admin/users/mfa/authenticators/",method:"GET",query:e,secure:!0,format:"json",...t}),usersMfaAuthenticatorsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/mfa/authenticators/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersMfaAuthenticatorsDestroy:(e,t={})=>this.request({path:`/3/admin/users/mfa/authenticators/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersMobilesList:(e,t={})=>this.request({path:"/3/admin/users/mobiles/",method:"GET",query:e,secure:!0,format:"json",...t}),usersMobilesCreate:(e,t={})=>this.request({path:"/3/admin/users/mobiles/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersMobilesRetrieve:(e,t={})=>this.request({path:`/3/admin/users/mobiles/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersMobilesUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/mobiles/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersMobilesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/mobiles/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersMobilesDestroy:(e,t={})=>this.request({path:`/3/admin/users/mobiles/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersOverviewRetrieve:(e={})=>this.request({path:"/3/admin/users/overview/",method:"GET",secure:!0,format:"json",...e}),usersTokensList:(e,t={})=>this.request({path:"/3/admin/users/tokens/",method:"GET",query:e,secure:!0,format:"json",...t}),usersTokensCreate:(e,t={})=>this.request({path:"/3/admin/users/tokens/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminUsersTokensListDestroy:(e={})=>this.request({path:"/3/admin/users/tokens/",method:"DELETE",secure:!0,format:"json",...e}),usersTokensRetrieve:(e,t={})=>this.request({path:`/3/admin/users/tokens/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersTokensUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/tokens/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersTokensPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/tokens/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersTokensDestroy:(e,t={})=>this.request({path:`/3/admin/users/tokens/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersWalletAccountsList:(e,t={})=>this.request({path:"/3/admin/users/wallet-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),usersWalletAccountsCreate:(e,t={})=>this.request({path:"/3/admin/users/wallet-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersWalletAccountsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersWalletAccountsUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersWalletAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersWalletAccountsDestroy:(e,t={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersWalletAccountsAccountCurrenciesList:(e,t={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/account-currencies/`,method:"GET",secure:!0,format:"json",...t}),usersWalletAccountsAccountCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/account-currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersWalletAccountsAccountCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${t}/account-currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersWalletAccountsAccountCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${t}/account-currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersWalletAccountsCurrenciesList:(e,t={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/currencies/`,method:"GET",secure:!0,format:"json",...t}),usersWalletAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersWalletAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersWalletAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),walletAccountsList:(e,t={})=>this.request({path:"/3/admin/wallet-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),walletAccountsCreate:(e,t={})=>this.request({path:"/3/admin/wallet-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),walletAccountsRetrieve:(e,t={})=>this.request({path:`/3/admin/wallet-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),walletAccountsUpdate:(e,t,s={})=>this.request({path:`/3/admin/wallet-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),walletAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/wallet-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),walletAccountsDestroy:(e,t={})=>this.request({path:`/3/admin/wallet-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),walletAccountsCurrenciesList:({id:e,...t},s={})=>this.request({path:`/3/admin/wallet-accounts/${e}/currencies/`,method:"GET",query:t,secure:!0,format:"json",...s}),walletAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/wallet-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),walletAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/wallet-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),walletAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/wallet-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),webhookTasksList:(e,t={})=>this.request({path:"/3/admin/webhook-tasks/",method:"GET",query:e,secure:!0,format:"json",...t}),webhookTasksRetrieve:(e,t={})=>this.request({path:`/3/admin/webhook-tasks/${e}/`,method:"GET",secure:!0,format:"json",...t}),webhookTasksRequestsList:({webhhookTaskId:e,...t},s={})=>this.request({path:`/3/admin/webhook-tasks/${e}/requests/`,method:"GET",query:t,secure:!0,format:"json",...s}),webhookTasksRequestsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/webhook-tasks/${e}/requests/${t}/`,method:"GET",secure:!0,format:"json",...s}),webhooksList:(e,t={})=>this.request({path:"/3/admin/webhooks/",method:"GET",query:e,secure:!0,format:"json",...t}),webhooksCreate:(e,t={})=>this.request({path:"/3/admin/webhooks/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),webhooksRetrieve:(e,t={})=>this.request({path:`/3/admin/webhooks/${e}/`,method:"GET",secure:!0,format:"json",...t}),webhooksUpdate:(e,t,s={})=>this.request({path:`/3/admin/webhooks/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),webhooksPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/webhooks/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),webhooksDestroy:(e,t={})=>this.request({path:`/3/admin/webhooks/${e}/`,method:"DELETE",secure:!0,format:"json",...t})}}};var U=class extends q{constructor(r){super(r),this.v3&&Object.keys(this.v3).forEach(e=>{typeof this.v3[e]=="function"&&(this[e]=this.v3[e])})}};var W=class{constructor(r={}){this.refreshPromise=null;this.loadAuthStatePromise=null;this.sessions=[];this.activeSessionIndex=-1;this.sessionListeners=[];this.errorListeners=[];this.currentError=null;this.storageKey="rehive_auth_state";this.isRefreshing=!1;this.apiInstances=new Set;this.auth={login:r=>this.login(r),register:r=>this.register(r),logout:()=>this.logout(),refresh:()=>this.refresh(),getActiveSession:()=>this.getActiveSession(),getSessions:()=>this.getSessions(),getSessionsByCompany:r=>this.getSessionsByCompany(r),switchToSession:(r,e)=>this.switchToSession(r,e),clearAllSessions:()=>this.clearAllSessions(),logoutAll:()=>this.logoutAll(),subscribeToSession:r=>this.subscribeToSession(r),subscribeToErrors:r=>this.subscribeToErrors(r),deleteChallenge:r=>this.deleteChallenge(r)};this.extensions={conversion:(r={})=>this.createConversionApi(r),massSend:(r={})=>this.createMassSendApi(r),notifications:(r={})=>this.createNotificationsApi(r),products:(r={})=>this.createProductsApi(r),rewards:(r={})=>this.createRewardsApi(r),stellar:(r={})=>this.createStellarApi(r),stellarTestnet:(r={})=>this.createStellarTestnetApi(r),business:(r={})=>this.createBusinessApi(r),paymentRequests:(r={})=>this.createPaymentRequestsApi(r),bridge:(r={})=>this.createBridgeApi(r),app:(r={})=>this.createAppApi(r),fetch:(r,e)=>this.authenticatedFetch(r,e)};this.config=r,this.storage=r.storage||this.getDefaultStorage(),this.enableCrossTabSync=r.enableCrossTabSync??!0,this.user=new L({baseUrl:r.baseUrl||"",securityWorker:this.createSecurityWorker()}),this.admin=new U({baseUrl:r.baseUrl||"",securityWorker:this.createSecurityWorker()}),this.apiInstances.add(this.user),this.apiInstances.add(this.admin),r.token?this.setPermanentToken(r.token):this.initializeClientAuth().catch(console.error)}setPermanentToken(r){this.syncTokensToAllInstances(r,null)}async initializeClientAuth(){this.enableCrossTabSync&&this.setupCrossTabSync(),await this.loadAuthState();let r=this.getActiveSession();r&&this.syncTokensToAllInstances(r.token,r.expires),this.notifySessionListeners()}createSecurityWorker(){return async r=>{if(this.config.token)return{headers:{Authorization:`Token ${this.config.token}`}};if(this.isRefreshing&&r)return{headers:{Authorization:r}};let e=this.getActiveSession();if(e){if(e.expires&&this.isTokenExpired(e.expires)){await this.refresh();let n=this.getActiveSession()?.token;return n?{headers:{Authorization:`Token ${n}`}}:{}}return{headers:{Authorization:r||`Token ${e.token}`}}}return{}}}getDefaultStorage(){return typeof window<"u"?new D:new _}setupCrossTabSync(){if(typeof window<"u"){let r=e=>{if(e.key===this.storageKey&&e.newValue)try{let t=JSON.parse(e.newValue);this.sessions=Array.isArray(t.sessions)?t.sessions:[],this.activeSessionIndex=typeof t.activeSessionIndex=="number"?t.activeSessionIndex:-1,this.notifySessionListeners()}catch(t){console.error("Failed to sync auth state from storage event:",t)}};window.addEventListener("storage",r)}}async loadAuthState(){if(this.loadAuthStatePromise)return this.loadAuthStatePromise;this.loadAuthStatePromise=(async()=>{let r={sessions:[],activeSessionIndex:-1};try{let e=await this.storage.getItem(this.storageKey);if(e){let t=JSON.parse(e);r.sessions=Array.isArray(t.sessions)?t.sessions:[],r.activeSessionIndex=typeof t.activeSessionIndex=="number"?t.activeSessionIndex:-1}}catch(e){console.error("Failed to load auth state:",e)}return this.sessions=r.sessions,this.activeSessionIndex=r.activeSessionIndex,r})();try{return await this.loadAuthStatePromise}finally{this.loadAuthStatePromise=null}}async saveAuthState(r){try{await this.storage.setItem(this.storageKey,JSON.stringify(r)),this.sessions=r.sessions,this.activeSessionIndex=r.activeSessionIndex,this.notifySessionListeners()}catch(e){console.error("Failed to save auth state:",e)}}notifySessionListeners(){let r=this.getActiveSession();this.syncTokensToAllInstances(r?.token||null,r?.expires),this.sessionListeners.forEach(e=>e(r))}notifyErrorListeners(r){this.currentError=r,this.errorListeners.forEach(e=>e(r))}syncTokensToAllInstances(r,e){for(let t of this.apiInstances)r?(t.setSecurityData(`Token ${r}`),e&&typeof t.setExpires=="function"&&t.setExpires(e)):(t.setSecurityData(null),typeof t.setExpires=="function"&&t.setExpires(null))}isTokenExpired(r){return Date.now()>=r-30*1e3}getActiveSession(){return this.activeSessionIndex>=0&&this.activeSessionIndex<this.sessions.length?this.sessions[this.activeSessionIndex]:null}getCurrentError(){return this.currentError}createExtensionApi(r,e={baseUrl:""}){let t=new r({...e,securityWorker:this.createSecurityWorker(),refreshCallback:()=>this.isRefreshing?Promise.resolve():this.refresh()});this.apiInstances.add(t);let s=this.getActiveSession();return s&&(typeof t.setSecurityData=="function"&&t.setSecurityData(`Token ${s.token}`),s.expires&&typeof t.setExpires=="function"&&t.setExpires(s.expires)),t}createConversionApi(r={}){let{Api:e}=(oe(),C(ie));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://conversion.services.rehive.com/api/"})}createMassSendApi(r={}){let{Api:e}=(de(),C(ce));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://mass-send.services.rehive.com/api/"})}createNotificationsApi(r={}){let{Api:e}=(le(),C(me));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://notification.services.rehive.com/api/"})}createProductsApi(r={}){let{Api:e}=(Ae(),C(ye));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://product.services.rehive.com/api/"})}createRewardsApi(r={}){let{Api:e}=(Re(),C(he));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://reward.services.rehive.com/api/"})}createStellarApi(r={}){let{Api:e}=(fe(),C(Ce));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://stellar.services.rehive.com/api/"})}createStellarTestnetApi(r={}){let{Api:e}=(_e(),C(De));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://stellar-testnet.services.rehive.com/api/"})}createBusinessApi(r={}){let{Api:e}=(xe(),C(Ue));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://business.services.rehive.com/api/"})}createPaymentRequestsApi(r={}){let{Api:e}=(Me(),C(qe));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://payment-requests.services.rehive.com/api/"})}createBridgeApi(r={}){let{Api:e}=(Ee(),C(ve));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://bridge.services.rehive.com/api/"})}createAppApi(r={}){let{Api:e}=(Ie(),C(Be));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://app.services.rehive.com/api/"})}async authenticatedFetch(r,e={}){let s=await this.createSecurityWorker()(null),n=new Headers(e.headers);return s?.headers?.Authorization&&n.set("Authorization",s.headers.Authorization),fetch(r,{...e,headers:n})}async login(r){try{let e=r.session_duration??900,t={user:r.user,session_duration:e,password:r.password,company:r.company,auth_method:"token"},s=await this.user.authLogin(t);if(!s.data)throw new Error("Response data is missing");let n=s.data,a={user:n.user,token:n.token,refresh_token:n.refresh_token,challenges:n.challenges,expires:n.expires,session_duration:e,company:r.company},d=await this.loadAuthState(),o=d.sessions.findIndex(A=>A.user.id===a.user.id&&A.company===a.company),P;if(o!==-1){let A=[...d.sessions];A[o]=a,P={...d,sessions:A,activeSessionIndex:o}}else P={sessions:[...d.sessions,a],activeSessionIndex:d.sessions.length};return await this.saveAuthState(P),this.syncTokensToAllInstances(a.token,a.expires),this.notifyErrorListeners(null),a}catch(e){let t=e instanceof f?e:new Error("Login failed");throw this.notifyErrorListeners(t),e}}async register(r){try{let e=r.session_duration??900,t={email:r.email,session_duration:e,password:r.password,company:r.company,password1:r.password,password2:r.password,terms_and_conditions:r.terms_and_conditions,privacy_policy:r.privacy_policy},s=await this.user.authRegister(t);if(!s.data)throw new Error("Response data is missing");let n=s.data,a={user:n.user,token:n.token,refresh_token:n.refresh_token,challenges:n.challenges,expires:n.expires,session_duration:e,company:r.company},d=await this.loadAuthState(),o={sessions:[...d.sessions,a],activeSessionIndex:d.sessions.length};await this.saveAuthState(o),this.notifyErrorListeners(null)}catch(e){let t=e instanceof f?e:new Error("Registration failed");throw this.notifyErrorListeners(t),e}}async logout(){let r=await this.loadAuthState(),e={...r,sessions:r.sessions.filter((t,s)=>s!==r.activeSessionIndex),activeSessionIndex:-1};try{await this.user.authLogout({clear_session_option:"none"})}catch(t){console.warn("Logout API call failed, continuing with local logout:",t)}await this.saveAuthState(e),this.syncTokensToAllInstances(null),this.notifyErrorListeners(null)}async refresh(){return this.refreshPromise?this.refreshPromise:(this.refreshPromise=(async()=>{this.isRefreshing=!0;try{let r=await this.loadAuthState(),e=r.activeSessionIndex,t=r.sessions[e];if(!t||!t.token||!t.refresh_token)throw new Error("No active session, token, or refresh token found");this.user.setSecurityData(`Refresh-Token ${t.refresh_token}`);let s=await this.user.authRefreshCreate({session_duration:t.session_duration??900});if(!s.data)throw new Error("Refresh response data is missing");let n=s.data,a=[...r.sessions];a[e]={...t,refresh_token:n.refresh_token,expires:n.expires,session_duration:t.session_duration??900,company:t.company};let d={...r,sessions:a};await this.saveAuthState(d),this.syncTokensToAllInstances(t.token,n.expires),this.notifyErrorListeners(null)}catch(r){let e=r instanceof f?r:new Error("Refresh failed");this.notifyErrorListeners(e);let t=await this.loadAuthState(),s={...t,sessions:t.sessions.filter((n,a)=>a!==t.activeSessionIndex),activeSessionIndex:-1};throw await this.saveAuthState(s),this.syncTokensToAllInstances(null),r}finally{this.isRefreshing=!1,this.refreshPromise=null}})(),this.refreshPromise)}subscribeToSession(r){return this.sessionListeners.push(r),()=>{this.sessionListeners=this.sessionListeners.filter(e=>e!==r)}}subscribeToErrors(r){return this.errorListeners.push(r),()=>{this.errorListeners=this.errorListeners.filter(e=>e!==r)}}async deleteChallenge(r){let e=await this.loadAuthState(),t=e.activeSessionIndex;if(t>=0&&t<e.sessions.length){let s=e.sessions[t],n={...s,challenges:s.challenges?.filter(o=>o.id!==r)||[]},a=[...e.sessions];a[t]=n;let d={...e,sessions:a};await this.saveAuthState(d)}}getSessions(){return[...this.sessions]}getSessionsByCompany(r){return this.sessions.filter(e=>e.company===r)}async switchToSession(r,e){let t=await this.loadAuthState(),s=t.sessions.findIndex(d=>d.user.id===r&&d.company===e);if(s===-1)return null;let n=t.sessions[s],a={...t,activeSessionIndex:s};return await this.saveAuthState(a),n.expires&&this.isTokenExpired(n.expires)?(await this.refresh(),this.getActiveSession()):(this.syncTokensToAllInstances(n.token,n.expires),this.notifySessionListeners(),n)}async clearAllSessions(){let r={sessions:[],activeSessionIndex:-1};await this.saveAuthState(r),this.syncTokensToAllInstances(null),this.notifyErrorListeners(null)}async logoutAll(){let t=(await this.loadAuthState()).sessions.map(async n=>{try{this.user.setSecurityData(`Token ${n.token}`),await this.user.authLogout({clear_session_option:"none"})}catch(a){console.warn("Logout API call failed for session:",n.user.id,a)}});await Promise.all(t);let s={sessions:[],activeSessionIndex:-1};await this.saveAuthState(s),this.syncTokensToAllInstances(null),this.notifyErrorListeners(null)}};G();0&&(module.exports={ApiError,AsyncStorageAdapter,MemoryStorageAdapter,RehiveClient,RehivePlatformAdminApi,RehivePlatformUserApi,WebStorageAdapter});
|
|
1
|
+
"use strict";var K=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var je=Object.prototype.hasOwnProperty;var R=(p,r)=>()=>(p&&(r=p(p=0)),r);var b=(p,r)=>{for(var e in r)K(p,e,{get:r[e],enumerable:!0})},ke=(p,r,e,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of Ne(r))!je.call(p,s)&&s!==e&&K(p,s,{get:()=>r[s],enumerable:!(t=Oe(r,s))||t.enumerable});return p};var C=p=>ke(K({},"__esModule",{value:!0}),p);async function re(p){try{let r=await p;if(!r.ok){let e=await r.text(),t=null;try{t=JSON.parse(e)}catch{t=null}throw new f({status:r.status,error:t||e,message:t?.error||t?.message||"A server error occurred. HTTPStatus: "+r.status})}return r}catch(r){throw console.log("Error during fetch operation:",r),r}}var f,G=R(()=>{"use strict";f=class p extends Error{constructor({status:r,error:e,message:t}){super(t),this.status=r,this.error=e,Object.setPrototypeOf(this,p.prototype)}}});var ne,T,x=R(()=>{"use strict";G();ne=(s=>(s.Json="application/json",s.FormData="multipart/form-data",s.UrlEncoded="application/x-www-form-urlencoded",s.Text="text/plain",s))(ne||{}),T=class{constructor(r={}){this.baseUrl="https://api.rehive.com";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return re(this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)})).then(async m=>{let i=await m[g||"json"]();return o&&this.abortControllers.delete(o),i})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}}});var ie={};b(ie,{Api:()=>$,ContentType:()=>ae,HttpClient:()=>v});var ae,v,$,oe=R(()=>{"use strict";ae=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(ae||{}),v=class{constructor(r={}){this.baseUrl="https://conversion.services.rehive.com/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},$=class extends v{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminConversionPairsList:(e,t={})=>this.request({path:"/admin/conversion-pairs/",method:"GET",query:e,secure:!0,format:"json",...t}),adminConversionPairsCreate:(e,t={})=>this.request({path:"/admin/conversion-pairs/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminConversionPairsRetrieve:(e,t={})=>this.request({path:`/admin/conversion-pairs/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminConversionPairsUpdate:(e,t,s={})=>this.request({path:`/admin/conversion-pairs/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminConversionPairsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/conversion-pairs/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminConversionPairsDestroy:(e,t={})=>this.request({path:`/admin/conversion-pairs/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminConversionsList:(e,t={})=>this.request({path:"/admin/conversions/",method:"GET",query:e,secure:!0,format:"json",...t}),adminConversionsCreate:(e,t={})=>this.request({path:"/admin/conversions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminConversionsRetrieve:(e,t={})=>this.request({path:`/admin/conversions/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminConversionsUpdate:(e,t,s={})=>this.request({path:`/admin/conversions/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminConversionsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/conversions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCurrenciesList:(e,t={})=>this.request({path:"/admin/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCurrenciesCreate:(e,t={})=>this.request({path:"/admin/currencies/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCurrenciesRetrieve:(e,t={})=>this.request({path:`/admin/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCurrenciesUpdate:(e,t,s={})=>this.request({path:`/admin/currencies/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCurrenciesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/currencies/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsList:(e,t={})=>this.request({path:"/admin/integrations/",method:"GET",query:e,secure:!0,format:"json",...t}),adminIntegrationsCreate:(e,t={})=>this.request({path:"/admin/integrations/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminIntegrationsRetrieve:(e,t={})=>this.request({path:`/admin/integrations/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminIntegrationsUpdate:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsDestroy:(e,t={})=>this.request({path:`/admin/integrations/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminIntegrationsWebhooksList:({identifier:e,...t},s={})=>this.request({path:`/admin/integrations/${e}/webhooks/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminIntegrationsWebhooksCreate:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/webhooks/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsWebhooksRetrieve:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/webhooks/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminIntegrationsWebhooksUpdate:(e,t,s,n={})=>this.request({path:`/admin/integrations/${e}/webhooks/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminIntegrationsWebhooksPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/integrations/${e}/webhooks/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminIntegrationsWebhooksDestroy:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/webhooks/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),adminRatePairsList:(e,t={})=>this.request({path:"/admin/rate-pairs/",method:"GET",query:e,secure:!0,format:"json",...t}),adminRatePairsCreate:(e,t={})=>this.request({path:"/admin/rate-pairs/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminRatePairsRetrieve:(e,t={})=>this.request({path:`/admin/rate-pairs/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminRatePairsUpdate:(e,t,s={})=>this.request({path:`/admin/rate-pairs/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminRatePairsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/rate-pairs/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminRatePairsDestroy:(e,t={})=>this.request({path:`/admin/rate-pairs/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminUsersList:(e,t={})=>this.request({path:"/admin/users/",method:"GET",query:e,secure:!0,format:"json",...t}),adminUsersRetrieve:(e,t={})=>this.request({path:`/admin/users/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminUsersUpdate:(e,t,s={})=>this.request({path:`/admin/users/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/users/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.user={userConversionPairsList:(e,t={})=>this.request({path:"/user/conversion-pairs/",method:"GET",query:e,secure:!0,format:"json",...t}),userConversionPairsRetrieve:(e,t={})=>this.request({path:`/user/conversion-pairs/${e}/`,method:"GET",secure:!0,format:"json",...t}),userConversionsList:(e,t={})=>this.request({path:"/user/conversions/",method:"GET",query:e,secure:!0,format:"json",...t}),userConversionsCreate:(e,t={})=>this.request({path:"/user/conversions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userConversionsRetrieve:(e,t={})=>this.request({path:`/user/conversions/${e}/`,method:"GET",secure:!0,format:"json",...t}),userConversionsUpdate:(e,t,s={})=>this.request({path:`/user/conversions/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userConversionsPartialUpdate:(e,t,s={})=>this.request({path:`/user/conversions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userCurrenciesList:(e,t={})=>this.request({path:"/user/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),userCurrenciesRetrieve:(e,t={})=>this.request({path:`/user/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),userRatesList:(e,t={})=>this.request({path:"/user/rates/",method:"GET",query:e,secure:!0,format:"json",...t}),userRatesRetrieve:(e,t={})=>this.request({path:`/user/rates/${e}/`,method:"GET",secure:!0,format:"json",...t}),userRatesSnapshotRetrieve:(e={})=>this.request({path:"/user/rates/snapshot/",method:"GET",secure:!0,format:"json",...e}),userRatesSnapshotsList:(e={})=>this.request({path:"/user/rates/snapshots/",method:"GET",secure:!0,format:"json",...e}),userSettingsRetrieve:(e={})=>this.request({path:"/user/settings/",method:"GET",secure:!0,format:"json",...e}),userSettingsUpdate:(e,t={})=>this.request({path:"/user/settings/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),userSettingsPartialUpdate:(e,t={})=>this.request({path:"/user/settings/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var ce={};b(ce,{Api:()=>H,ContentType:()=>ue,HttpClient:()=>E});var ue,E,H,de=R(()=>{"use strict";ue=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(ue||{}),E=class{constructor(r={}){this.baseUrl="https://mass-send.services.rehive.com/api/1/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},H=class extends E{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminUploadsList:(e,t={})=>this.request({path:"/admin/uploads/",method:"GET",query:e,secure:!0,format:"json",...t}),adminUploadsCreate:(e,t={})=>this.request({path:"/admin/uploads/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminUploadsRetrieve:(e,t={})=>this.request({path:`/admin/uploads/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminUploadsUpdate:(e,t,s={})=>this.request({path:`/admin/uploads/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUploadsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/uploads/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUploadsTransactionsList:({batchId:e,...t},s={})=>this.request({path:`/admin/uploads/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.uploads={uploadsList:(e,t={})=>this.request({path:"/uploads/",method:"GET",query:e,secure:!0,format:"json",...t}),uploadsCreate:(e,t={})=>this.request({path:"/uploads/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),uploadsRetrieve:(e,t={})=>this.request({path:`/uploads/${e}/`,method:"GET",secure:!0,format:"json",...t}),uploadsUpdate:(e,t,s={})=>this.request({path:`/uploads/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),uploadsPartialUpdate:(e,t,s={})=>this.request({path:`/uploads/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),uploadsTransactionsList:({batchId:e,...t},s={})=>this.request({path:`/uploads/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var me={};b(me,{Api:()=>J,ContentType:()=>pe,HttpClient:()=>B});var pe,B,J,le=R(()=>{"use strict";pe=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(pe||{}),B=class{constructor(r={}){this.baseUrl="https://notification.services.rehive.com/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},J=class extends B{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCredentialsList:(e,t={})=>this.request({path:"/admin/credentials/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCredentialsCreate:(e,t={})=>this.request({path:"/admin/credentials/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCredentialsRetrieve:(e,t={})=>this.request({path:`/admin/credentials/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCredentialsUpdate:(e,t,s={})=>this.request({path:`/admin/credentials/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCredentialsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/credentials/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCredentialsDestroy:(e,t={})=>this.request({path:`/admin/credentials/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminLayoutTemplatesList:(e,t={})=>this.request({path:"/admin/layout-templates/",method:"GET",query:e,secure:!0,format:"json",...t}),adminLayoutTemplatesRetrieve:(e,t={})=>this.request({path:`/admin/layout-templates/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminLayoutsList:(e,t={})=>this.request({path:"/admin/layouts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminLayoutsCreate:(e,t={})=>this.request({path:"/admin/layouts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminLayoutsRetrieve:(e,t={})=>this.request({path:`/admin/layouts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminLayoutsUpdate:(e,t,s={})=>this.request({path:`/admin/layouts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminLayoutsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/layouts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminLayoutsDestroy:(e,t={})=>this.request({path:`/admin/layouts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminLogsList:(e,t={})=>this.request({path:"/admin/logs/",method:"GET",query:e,secure:!0,format:"json",...t}),adminLogsRetrieve:(e,t={})=>this.request({path:`/admin/logs/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminLogsSendCreate:(e,t,s={})=>this.request({path:`/admin/logs/${e}/send/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminNotificationsList:(e,t={})=>this.request({path:"/admin/notifications/",method:"GET",query:e,secure:!0,format:"json",...t}),adminNotificationsCreate:(e,t={})=>this.request({path:"/admin/notifications/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminNotificationsRetrieve:(e,t={})=>this.request({path:`/admin/notifications/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminNotificationsUpdate:(e,t,s={})=>this.request({path:`/admin/notifications/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminNotificationsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/notifications/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminNotificationsDestroy:(e,t={})=>this.request({path:`/admin/notifications/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminNotificationsTriggerCreate:(e,t,s={})=>this.request({path:`/admin/notifications/${e}/trigger/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminTemplatesList:(e,t={})=>this.request({path:"/admin/templates/",method:"GET",query:e,secure:!0,format:"json",...t}),adminTemplatesRetrieve:(e,t={})=>this.request({path:`/admin/templates/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminWebhookCreate:(e,t={})=>this.request({path:"/admin/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.user={userNotificationsList:(e,t={})=>this.request({path:"/user/notifications/",method:"GET",query:e,secure:!0,format:"json",...t}),userNotificationsRetrieve:(e,t={})=>this.request({path:`/user/notifications/${e}/`,method:"GET",secure:!0,format:"json",...t}),userNotificationsUpdate:(e,t,s={})=>this.request({path:`/user/notifications/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userNotificationsPartialUpdate:(e,t,s={})=>this.request({path:`/user/notifications/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var ye={};b(ye,{Api:()=>Z,ContentType:()=>ge,HttpClient:()=>I});var ge,I,Z,Ae=R(()=>{"use strict";ge=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(ge||{}),I=class{constructor(r={}){this.baseUrl="https://product.services.rehive.com/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},Z=class extends I{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCategoriesList:(e,t={})=>this.request({path:"/admin/categories/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCategoriesCreate:(e,t={})=>this.request({path:"/admin/categories/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCategoriesRetrieve:(e,t={})=>this.request({path:`/admin/categories/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCategoriesUpdate:(e,t,s={})=>this.request({path:`/admin/categories/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCategoriesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/categories/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCategoriesDestroy:(e,t={})=>this.request({path:`/admin/categories/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCurrenciesList:(e,t={})=>this.request({path:"/admin/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCurrenciesRetrieve:(e,t={})=>this.request({path:`/admin/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminIntegrationsList:(e,t={})=>this.request({path:"/admin/integrations/",method:"GET",query:e,secure:!0,format:"json",...t}),adminIntegrationsCreate:(e,t={})=>this.request({path:"/admin/integrations/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminIntegrationsRetrieve:(e,t={})=>this.request({path:`/admin/integrations/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminIntegrationsUpdate:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsDestroy:(e,t={})=>this.request({path:`/admin/integrations/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminIntegrationsWebhooksList:({identifier:e,...t},s={})=>this.request({path:`/admin/integrations/${e}/webhooks/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminIntegrationsWebhooksCreate:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/webhooks/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIntegrationsWebhooksRetrieve:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/webhooks${t}/`,method:"GET",secure:!0,format:"json",...s}),adminIntegrationsWebhooksUpdate:(e,t,s,n={})=>this.request({path:`/admin/integrations/${e}/webhooks${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminIntegrationsWebhooksPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/integrations/${e}/webhooks${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminIntegrationsWebhooksDestroy:(e,t,s={})=>this.request({path:`/admin/integrations/${e}/webhooks${t}/`,method:"DELETE",secure:!0,format:"json",...s}),adminOrdersList:(e,t={})=>this.request({path:"/admin/orders/",method:"GET",query:e,secure:!0,format:"json",...t}),adminOrdersCreate:(e,t={})=>this.request({path:"/admin/orders/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminOrdersRetrieve:(e,t={})=>this.request({path:`/admin/orders/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminOrdersUpdate:(e,t,s={})=>this.request({path:`/admin/orders/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminOrdersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/orders/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminOrdersDestroy:(e,t={})=>this.request({path:`/admin/orders/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminOrdersItemsList:({identifier:e,...t},s={})=>this.request({path:`/admin/orders/${e}/items/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminOrdersItemsCreate:(e,t,s={})=>this.request({path:`/admin/orders/${e}/items/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminOrdersPaymentsList:({identifier:e,...t},s={})=>this.request({path:`/admin/orders/${e}/payments/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminOrdersPaymentsCreate:(e,t,s={})=>this.request({path:`/admin/orders/${e}/payments/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminOrdersRefundsList:({identifier:e,...t},s={})=>this.request({path:`/admin/orders/${e}/refunds/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminOrdersRefundsCreate:(e,t,s={})=>this.request({path:`/admin/orders/${e}/refunds/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminOrdersItemsRetrieve:(e,t,s={})=>this.request({path:`/admin/orders/${t}/items/${e}/`,method:"GET",secure:!0,format:"json",...s}),adminOrdersItemsUpdate:(e,t,s,n={})=>this.request({path:`/admin/orders/${t}/items/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminOrdersItemsPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/orders/${t}/items/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminOrdersItemsDestroy:(e,t,s={})=>this.request({path:`/admin/orders/${t}/items/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),adminOrdersPaymentsRetrieve:(e,t,s={})=>this.request({path:`/admin/orders/${e}/payments/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminOrdersPaymentsUpdate:(e,t,s,n={})=>this.request({path:`/admin/orders/${e}/payments/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminOrdersPaymentsPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/orders/${e}/payments/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminOrdersRefundsRetrieve:(e,t,s={})=>this.request({path:`/admin/orders/${e}/refunds/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminOrdersRefundsUpdate:(e,t,s,n={})=>this.request({path:`/admin/orders/${e}/refunds/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminOrdersRefundsPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/orders/${e}/refunds/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsList:(e,t={})=>this.request({path:"/admin/products/",method:"GET",query:e,secure:!0,format:"json",...t}),adminProductsCreate:(e,t={})=>this.request({path:"/admin/products/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminProductsRetrieve:(e,t={})=>this.request({path:`/admin/products/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminProductsUpdate:(e,t,s={})=>this.request({path:`/admin/products/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/products/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsDestroy:(e,t={})=>this.request({path:`/admin/products/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminProductsCategoriesList:({identifier:e,...t},s={})=>this.request({path:`/admin/products/${e}/categories/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminProductsCategoriesCreate:(e,t,s={})=>this.request({path:`/admin/products/${e}/categories/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsOptionsList:({identifier:e,...t},s={})=>this.request({path:`/admin/products/${e}/options/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminProductsOptionsCreate:(e,t,s={})=>this.request({path:`/admin/products/${e}/options/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsPricesList:({identifier:e,...t},s={})=>this.request({path:`/admin/products/${e}/prices/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminProductsPricesCreate:(e,t,s={})=>this.request({path:`/admin/products/${e}/prices/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsVariantsList:({identifier:e,...t},s={})=>this.request({path:`/admin/products/${e}/variants/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminProductsVariantsCreate:(e,t,s={})=>this.request({path:`/admin/products/${e}/variants/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsCategoriesRetrieve:(e,t,s={})=>this.request({path:`/admin/products/${t}/categories/${e}/`,method:"GET",secure:!0,format:"json",...s}),adminProductsCategoriesDestroy:(e,t,s={})=>this.request({path:`/admin/products/${t}/categories/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),adminProductsImagesList:({productId:e,...t},s={})=>this.request({path:`/admin/products/${e}/images/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminProductsImagesCreate:(e,t,s={})=>this.request({path:`/admin/products/${e}/images/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminProductsImagesRetrieve:(e,t,s={})=>this.request({path:`/admin/products/${t}/images/${e}/`,method:"GET",secure:!0,format:"json",...s}),adminProductsImagesUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/images/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsImagesPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/images/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsImagesDestroy:(e,t,s={})=>this.request({path:`/admin/products/${t}/images/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),adminProductsOptionsRetrieve:(e,t,s={})=>this.request({path:`/admin/products/${t}/options/${e}/`,method:"GET",secure:!0,format:"json",...s}),adminProductsOptionsUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/options/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsOptionsPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/options/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsOptionsDestroy:(e,t,s={})=>this.request({path:`/admin/products/${t}/options/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),adminProductsPricesRetrieve:(e,t,s={})=>this.request({path:`/admin/products/${t}/prices/${e}/`,method:"GET",secure:!0,format:"json",...s}),adminProductsPricesUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/prices/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsPricesPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/prices/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsPricesDestroy:(e,t,s={})=>this.request({path:`/admin/products/${t}/prices/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),adminProductsVariantsRetrieve:(e,t,s={})=>this.request({path:`/admin/products/${e}/variants/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminProductsVariantsUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${e}/variants/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsVariantsPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/products/${e}/variants/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsVariantsDestroy:(e,t,s={})=>this.request({path:`/admin/products/${e}/variants/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),adminProductsVariantsPricesList:({productId:e,variantId:t,...s},n={})=>this.request({path:`/admin/products/${e}/variants/${t}/prices/`,method:"GET",query:s,secure:!0,format:"json",...n}),adminProductsVariantsPricesCreate:(e,t,s,n={})=>this.request({path:`/admin/products/${e}/variants/${t}/prices/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),adminProductsVariantsPricesRetrieve:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/variants/${s}/prices/${e}/`,method:"GET",secure:!0,format:"json",...n}),adminProductsVariantsPricesUpdate:(e,t,s,n,a={})=>this.request({path:`/admin/products/${t}/variants/${s}/prices/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),adminProductsVariantsPricesPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/admin/products/${t}/variants/${s}/prices/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),adminProductsVariantsPricesDestroy:(e,t,s,n={})=>this.request({path:`/admin/products/${t}/variants/${s}/prices/${e}/`,method:"DELETE",secure:!0,format:"json",...n}),adminRedemptionsList:(e,t={})=>this.request({path:"/admin/redemptions/",method:"GET",query:e,secure:!0,format:"json",...t}),adminRedemptionsCreate:(e,t={})=>this.request({path:"/admin/redemptions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminRedemptionsRetrieve:(e,t={})=>this.request({path:`/admin/redemptions/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminSellersList:(e,t={})=>this.request({path:"/admin/sellers/",method:"GET",query:e,secure:!0,format:"json",...t}),adminSellersRetrieve:(e,t={})=>this.request({path:`/admin/sellers/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminSellersUpdate:(e,t,s={})=>this.request({path:`/admin/sellers/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminSellersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/sellers/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminVoucherImportsList:(e,t={})=>this.request({path:"/admin/voucher-imports/",method:"GET",query:e,secure:!0,format:"json",...t}),adminVoucherImportsCreate:(e,t={})=>this.request({path:"/admin/voucher-imports/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminVoucherImportsRetrieve:(e,t={})=>this.request({path:`/admin/voucher-imports/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminVouchersList:(e,t={})=>this.request({path:"/admin/vouchers/",method:"GET",query:e,secure:!0,format:"json",...t}),adminVouchersCreate:(e,t={})=>this.request({path:"/admin/vouchers/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminVouchersRetrieve:(e,t={})=>this.request({path:`/admin/vouchers/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminVouchersUpdate:(e,t,s={})=>this.request({path:`/admin/vouchers/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminVouchersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/vouchers/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminVouchersDestroy:(e,t={})=>this.request({path:`/admin/vouchers/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminVouchersActionsList:({identifier:e,...t},s={})=>this.request({path:`/admin/vouchers/${e}/actions/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminVouchersActionsRetrieve:(e,t,s={})=>this.request({path:`/admin/vouchers/${t}/actions/${e}/`,method:"GET",secure:!0,format:"json",...s}),adminVouchersImportCreate:(e,t={})=>this.request({path:"/admin/vouchers/import/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminVouchersQueryCreate:(e,t={})=>this.request({path:"/admin/vouchers/query/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.manager={managerCategoriesList:(e,t={})=>this.request({path:"/manager/categories/",method:"GET",query:e,secure:!0,format:"json",...t}),managerCategoriesRetrieve:(e,t={})=>this.request({path:`/manager/categories/${e}/`,method:"GET",secure:!0,format:"json",...t}),managerCompanyRetrieve:(e={})=>this.request({path:"/manager/company/",method:"GET",secure:!0,format:"json",...e}),managerCurrenciesList:(e,t={})=>this.request({path:"/manager/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),managerCurrenciesRetrieve:(e,t={})=>this.request({path:`/manager/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),managerSellersList:(e,t={})=>this.request({path:"/manager/sellers/",method:"GET",query:e,secure:!0,format:"json",...t}),managerSellersCreate:(e,t={})=>this.request({path:"/manager/sellers/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),managerSellersRetrieve:(e,t={})=>this.request({path:`/manager/sellers/${e}/`,method:"GET",secure:!0,format:"json",...t}),managerSellersUpdate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersPartialUpdate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersIntegrationsList:({identifier:e,...t},s={})=>this.request({path:`/manager/sellers/${e}/integrations/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerSellersIntegrationsCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/integrations/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersIntegrationsRetrieve:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/`,method:"GET",secure:!0,format:"json",...s}),managerSellersIntegrationsUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersIntegrationsPartialUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersIntegrationsDestroy:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),managerSellersIntegrationsWebhooksList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/webhooks/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersIntegrationsWebhooksCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/webhooks/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersIntegrationsWebhooksRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/webhooks/${s}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersIntegrationsWebhooksUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/webhooks/${s}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersIntegrationsWebhooksPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/webhooks/${s}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersIntegrationsWebhooksDestroy:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/integrations/${e}/webhooks/${s}/`,method:"DELETE",secure:!0,format:"json",...n}),managerSellersOrdersList:({sellerId:e,...t},s={})=>this.request({path:`/manager/sellers/${e}/orders/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerSellersOrdersRetrieve:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/`,method:"GET",secure:!0,format:"json",...s}),managerSellersOrdersUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersOrdersPartialUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersOrdersItemsList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/items/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersOrdersPaymentsList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/payments/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersOrdersRefundsList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/refunds/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersOrdersRefundsCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/orders/${e}/refunds/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersOrdersItemsRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/orders/${t}/items/${e}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersOrdersItemsUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/orders/${t}/items/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersOrdersItemsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/orders/${t}/items/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersOrdersPaymentsRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/orders/${e}/payments/${t}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersOrdersPaymentsUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/orders/${e}/payments/${t}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersOrdersPaymentsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/orders/${e}/payments/${t}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersOrdersRefundsRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/orders/${e}/refunds/${t}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersOrdersRefundsUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/orders/${e}/refunds/${t}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersOrdersRefundsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/orders/${e}/refunds/${t}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsList:({sellerId:e,...t},s={})=>this.request({path:`/manager/sellers/${e}/products/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerSellersProductsCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/products/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersProductsRetrieve:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/products/${e}/`,method:"GET",secure:!0,format:"json",...s}),managerSellersProductsUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsPartialUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsDestroy:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/products/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),managerSellersProductsCategoriesList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/categories/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersProductsCategoriesCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/categories/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsOptionsList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/options/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersProductsOptionsCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/options/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsPricesList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/prices/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersProductsPricesCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/prices/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsVariantsList:({identifier:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersProductsVariantsCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsCategoriesRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/categories/${e}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersProductsCategoriesDestroy:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/categories/${e}/`,method:"DELETE",secure:!0,format:"json",...n}),managerSellersProductsImagesList:({productId:e,sellerId:t,...s},n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/images/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersProductsImagesCreate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/images/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersProductsImagesRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/images/${e}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersProductsImagesUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/images/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsImagesPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/images/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsImagesDestroy:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/images/${e}/`,method:"DELETE",secure:!0,format:"json",...n}),managerSellersProductsOptionsRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/options/${e}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersProductsOptionsUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/options/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsOptionsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/options/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsOptionsDestroy:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/options/${e}/`,method:"DELETE",secure:!0,format:"json",...n}),managerSellersProductsPricesRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/prices/${e}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersProductsPricesUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/prices/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsPricesPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/prices/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsPricesDestroy:(e,t,s,n={})=>this.request({path:`/manager/sellers/${s}/products/${t}/prices/${e}/`,method:"DELETE",secure:!0,format:"json",...n}),managerSellersProductsVariantsRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/${s}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersProductsVariantsUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/${s}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsVariantsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/${s}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsVariantsDestroy:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/${s}/`,method:"DELETE",secure:!0,format:"json",...n}),managerSellersProductsVariantsPricesList:({productId:e,sellerId:t,variantId:s,...n},a={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/${s}/prices/`,method:"GET",query:n,secure:!0,format:"json",...a}),managerSellersProductsVariantsPricesCreate:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${t}/products/${e}/variants/${s}/prices/`,method:"POST",body:n,secure:!0,type:"application/json",format:"json",...a}),managerSellersProductsVariantsPricesRetrieve:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/variants/${n}/prices/${e}/`,method:"GET",secure:!0,format:"json",...a}),managerSellersProductsVariantsPricesUpdate:(e,t,s,n,a,d={})=>this.request({path:`/manager/sellers/${s}/products/${t}/variants/${n}/prices/${e}/`,method:"PUT",body:a,secure:!0,type:"application/json",format:"json",...d}),managerSellersProductsVariantsPricesPartialUpdate:(e,t,s,n,a,d={})=>this.request({path:`/manager/sellers/${s}/products/${t}/variants/${n}/prices/${e}/`,method:"PATCH",body:a,secure:!0,type:"application/json",format:"json",...d}),managerSellersProductsVariantsPricesDestroy:(e,t,s,n,a={})=>this.request({path:`/manager/sellers/${s}/products/${t}/variants/${n}/prices/${e}/`,method:"DELETE",secure:!0,format:"json",...a}),managerSellersRedemptionsList:({sellerId:e,...t},s={})=>this.request({path:`/manager/sellers/${e}/redemptions/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerSellersRedemptionsCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/redemptions/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersRedemptionsRetrieve:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/redemptions/${e}/`,method:"GET",secure:!0,format:"json",...s}),managerSellersVoucherImportsList:({sellerId:e,...t},s={})=>this.request({path:`/manager/sellers/${e}/voucher-imports/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerSellersVoucherImportsCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/voucher-imports/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersVoucherImportsRetrieve:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/voucher-imports/${e}/`,method:"GET",secure:!0,format:"json",...s}),managerSellersVoucherImportCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/voucher/import/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersVouchersList:({sellerId:e,...t},s={})=>this.request({path:`/manager/sellers/${e}/vouchers/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerSellersVouchersCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/vouchers/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerSellersVouchersRetrieve:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/vouchers/${e}/`,method:"GET",secure:!0,format:"json",...s}),managerSellersVouchersUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/vouchers/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersVouchersPartialUpdate:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/vouchers/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),managerSellersVouchersDestroy:(e,t,s={})=>this.request({path:`/manager/sellers/${t}/vouchers/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),managerSellersVouchersActionsList:({sellerId:e,voucherId:t,...s},n={})=>this.request({path:`/manager/sellers/${e}/vouchers/${t}/actions/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerSellersVouchersActionsRetrieve:(e,t,s,n={})=>this.request({path:`/manager/sellers/${t}/vouchers/${s}/actions/${e}/`,method:"GET",secure:!0,format:"json",...n}),managerSellersVouchersQueryCreate:(e,t,s={})=>this.request({path:`/manager/sellers/${e}/vouchers/query/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s})};this.user={userCategoriesList:(e,t={})=>this.request({path:"/user/categories/",method:"GET",query:e,secure:!0,format:"json",...t}),userCategoriesRetrieve:(e,t={})=>this.request({path:`/user/categories/${e}/`,method:"GET",secure:!0,format:"json",...t}),userCompanyRetrieve:(e={})=>this.request({path:"/user/company/",method:"GET",secure:!0,format:"json",...e}),userOrdersList:(e,t={})=>this.request({path:"/user/orders/",method:"GET",query:e,secure:!0,format:"json",...t}),userOrdersCreate:(e,t={})=>this.request({path:"/user/orders/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userOrdersRetrieve:(e,t={})=>this.request({path:`/user/orders/${e}/`,method:"GET",secure:!0,format:"json",...t}),userOrdersUpdate:(e,t,s={})=>this.request({path:`/user/orders/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userOrdersPartialUpdate:(e,t,s={})=>this.request({path:`/user/orders/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userOrdersDestroy:(e,t={})=>this.request({path:`/user/orders/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userOrdersItemsList:({identifier:e,...t},s={})=>this.request({path:`/user/orders/${e}/items/`,method:"GET",query:t,secure:!0,format:"json",...s}),userOrdersItemsCreate:(e,t,s={})=>this.request({path:`/user/orders/${e}/items/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userOrdersPaymentsList:({identifier:e,...t},s={})=>this.request({path:`/user/orders/${e}/payments/`,method:"GET",query:t,secure:!0,format:"json",...s}),userOrdersPaymentsCreate:(e,t,s={})=>this.request({path:`/user/orders/${e}/payments/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userOrdersRefundsList:({identifier:e,...t},s={})=>this.request({path:`/user/orders/${e}/refunds/`,method:"GET",query:t,secure:!0,format:"json",...s}),userOrdersItemsRetrieve:(e,t,s={})=>this.request({path:`/user/orders/${t}/items/${e}/`,method:"GET",secure:!0,format:"json",...s}),userOrdersItemsUpdate:(e,t,s,n={})=>this.request({path:`/user/orders/${t}/items/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),userOrdersItemsPartialUpdate:(e,t,s,n={})=>this.request({path:`/user/orders/${t}/items/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),userOrdersItemsDestroy:(e,t,s={})=>this.request({path:`/user/orders/${t}/items/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userOrdersPaymentsRetrieve:(e,t,s={})=>this.request({path:`/user/orders/${e}/payments/${t}/`,method:"GET",secure:!0,format:"json",...s}),userOrdersRefundsRetrieve:(e,t,s={})=>this.request({path:`/user/orders/${e}/refunds/${t}/`,method:"GET",secure:!0,format:"json",...s}),userProductsList:(e,t={})=>this.request({path:"/user/products/",method:"GET",query:e,secure:!0,format:"json",...t}),userProductsRetrieve:(e,t={})=>this.request({path:`/user/products/${e}/`,method:"GET",secure:!0,format:"json",...t}),userProductsPricesList:({identifier:e,...t},s={})=>this.request({path:`/user/products/${e}/prices/`,method:"GET",query:t,secure:!0,format:"json",...s}),userProductsVariantsList:({identifier:e,...t},s={})=>this.request({path:`/user/products/${e}/variants/`,method:"GET",query:t,secure:!0,format:"json",...s}),userProductsImagesList:({productId:e,...t},s={})=>this.request({path:`/user/products/${e}/images/`,method:"GET",query:t,secure:!0,format:"json",...s}),userProductsImagesRetrieve:(e,t,s={})=>this.request({path:`/user/products/${t}/images/${e}/`,method:"GET",secure:!0,format:"json",...s}),userProductsPricesRetrieve:(e,t,s={})=>this.request({path:`/user/products/${t}/prices/${e}/`,method:"GET",secure:!0,format:"json",...s}),userProductsVariantsRetrieve:(e,t,s={})=>this.request({path:`/user/products/${e}/variants/${t}/`,method:"GET",secure:!0,format:"json",...s}),userRedemptionsList:(e,t={})=>this.request({path:"/user/redemptions/",method:"GET",query:e,secure:!0,format:"json",...t}),userRedemptionsCreate:(e,t={})=>this.request({path:"/user/redemptions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userRedemptionsRetrieve:(e,t={})=>this.request({path:`/user/redemptions/${e}/`,method:"GET",secure:!0,format:"json",...t}),userSellersList:(e,t={})=>this.request({path:"/user/sellers/",method:"GET",query:e,secure:!0,format:"json",...t}),userSellersRetrieve:(e,t={})=>this.request({path:`/user/sellers/${e}/`,method:"GET",secure:!0,format:"json",...t}),userVouchersList:(e,t={})=>this.request({path:"/user/vouchers/",method:"GET",query:e,secure:!0,format:"json",...t}),userVouchersRetrieve:(e,t={})=>this.request({path:`/user/vouchers/${e}/`,method:"GET",secure:!0,format:"json",...t}),userVouchersActionsList:({identifier:e,...t},s={})=>this.request({path:`/user/vouchers/${e}/actions/`,method:"GET",query:t,secure:!0,format:"json",...s}),userVouchersActionsRetrieve:(e,t,s={})=>this.request({path:`/user/vouchers/${t}/actions/${e}/`,method:"GET",secure:!0,format:"json",...s}),userVouchersQueryCreate:(e,t={})=>this.request({path:"/user/vouchers/query/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var he={};b(he,{Api:()=>Y,ContentType:()=>Pe,HttpClient:()=>O});var Pe,O,Y,Re=R(()=>{"use strict";Pe=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(Pe||{}),O=class{constructor(r={}){this.baseUrl="https://reward.services.rehive.io/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},Y=class extends O{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCampaignsList:(e,t={})=>this.request({path:"/admin/campaigns/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCampaignsCreate:(e,t={})=>this.request({path:"/admin/campaigns/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCampaignsRetrieve:(e,t={})=>this.request({path:`/admin/campaigns/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCampaignsUpdate:(e,t,s={})=>this.request({path:`/admin/campaigns/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCampaignsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/campaigns/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCampaignsDestroy:(e,t={})=>this.request({path:`/admin/campaigns/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCurrenciesList:(e,t={})=>this.request({path:"/admin/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCurrenciesRetrieve:(e,t={})=>this.request({path:`/admin/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminRewardsList:(e,t={})=>this.request({path:"/admin/rewards/",method:"GET",query:e,secure:!0,format:"json",...t}),adminRewardsCreate:(e,t={})=>this.request({path:"/admin/rewards/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminRewardsRetrieve:(e,t={})=>this.request({path:`/admin/rewards/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminRewardsUpdate:(e,t,s={})=>this.request({path:`/admin/rewards/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminRewardsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/rewards/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersList:(e,t={})=>this.request({path:"/admin/users/",method:"GET",query:e,secure:!0,format:"json",...t}),adminUsersRetrieve:(e,t={})=>this.request({path:`/admin/users/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminWebhookCreate:(e,t={})=>this.request({path:"/admin/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.user={userRetrieve:(e={})=>this.request({path:"/user/",method:"GET",secure:!0,format:"json",...e}),userUpdate:(e,t={})=>this.request({path:"/user/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),userPartialUpdate:(e,t={})=>this.request({path:"/user/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),userCampaignsList:(e,t={})=>this.request({path:"/user/campaigns/",method:"GET",query:e,secure:!0,format:"json",...t}),userCampaignsRetrieve:(e,t={})=>this.request({path:`/user/campaigns/${e}/`,method:"GET",secure:!0,format:"json",...t}),userRewardsList:(e,t={})=>this.request({path:"/user/rewards/",method:"GET",query:e,secure:!0,format:"json",...t}),userRewardsCreate:(e,t={})=>this.request({path:"/user/rewards/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userRewardsRetrieve:(e,t={})=>this.request({path:`/user/rewards/${e}/`,method:"GET",secure:!0,format:"json",...t})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var Ce={};b(Ce,{Api:()=>Q,ContentType:()=>be,HttpClient:()=>N});var be,N,Q,fe=R(()=>{"use strict";be=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(be||{}),N=class{constructor(r={}){this.baseUrl="https://stellar.services.rehive.com/api/1";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},Q=class extends N{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminAssetList:(e={})=>this.request({path:"/admin/asset/",method:"GET",secure:!0,format:"json",...e}),adminAssetCreate:(e,t={})=>this.request({path:"/admin/asset/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminAssetRead:(e,t={})=>this.request({path:`/admin/asset/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminAssetPartialUpdate:(e,t,s={})=>this.request({path:`/admin/asset/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminAssetAuthoriseHolderCreate:(e,t,s={})=>this.request({path:`/admin/asset/${e}/authorise_holder/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminAssetFundCreate:(e,t,s={})=>this.request({path:`/admin/asset/${e}/fund/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBlacklistedAccountRead:(e,t={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminBlacklistedAccountUpdate:(e,t,s={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBlacklistedAccountPartialUpdate:(e,t,s={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBlacklistedAccountDelete:(e,t={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"DELETE",secure:!0,...t}),adminBlacklistedAccountsList:(e={})=>this.request({path:"/admin/blacklisted-accounts/",method:"GET",secure:!0,format:"json",...e}),adminBlacklistedAccountsCreate:(e,t={})=>this.request({path:"/admin/blacklisted-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminColdstorageList:(e,t={})=>this.request({path:"/admin/coldstorage/",method:"GET",query:e,secure:!0,format:"json",...t}),adminColdstorageAccountsList:(e,t={})=>this.request({path:"/admin/coldstorage/accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminColdstorageAccountsCreate:(e,t={})=>this.request({path:"/admin/coldstorage/accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminColdstorageAccountsRead:(e,t={})=>this.request({path:`/admin/coldstorage/accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminColdstorageAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/coldstorage/accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyList:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationList:(e={})=>this.request({path:"/admin/company/configuration/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationPartialUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationAccountGroupsList:(e={})=>this.request({path:"/admin/company/configuration/account-groups/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationAccountGroupsCreate:(e,t={})=>this.request({path:"/admin/company/configuration/account-groups/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationAccountGroupsRead:(e,t={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCompanyConfigurationAccountGroupsUpdate:(e,t,s={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyConfigurationAccountGroupsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyConfigurationAccountGroupsDelete:(e,t={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"DELETE",secure:!0,...t}),adminCompanyConfigurationAnchorPlatformList:(e={})=>this.request({path:"/admin/company/configuration/anchor_platform/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationAnchorPlatformUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/anchor_platform/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationAnchorPlatformPartialUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/anchor_platform/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyStellarTomlList:(e={})=>this.request({path:"/admin/company/stellar-toml/",method:"GET",secure:!0,format:"json",...e}),adminFederationList:(e={})=>this.request({path:"/admin/federation/",method:"GET",secure:!0,format:"json",...e}),adminFederationCreate:(e,t={})=>this.request({path:"/admin/federation/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletList:(e={})=>this.request({path:"/admin/hotwallet/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletCreate:(e,t={})=>this.request({path:"/admin/hotwallet/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletPartialUpdate:(e,t={})=>this.request({path:"/admin/hotwallet/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletActiveList:(e={})=>this.request({path:"/admin/hotwallet/active/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletEnableMssCreate:(e,t={})=>this.request({path:"/admin/hotwallet/enable_mss/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletFeesList:(e={})=>this.request({path:"/admin/hotwallet/fees/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletFundList:(e={})=>this.request({path:"/admin/hotwallet/fund/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletMergeCreate:(e,t={})=>this.request({path:"/admin/hotwallet/merge/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletSendCreate:(e,t={})=>this.request({path:"/admin/hotwallet/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminKnownPublicAddressesList:(e={})=>this.request({path:"/admin/known-public-addresses/",method:"GET",secure:!0,format:"json",...e}),adminKnownPublicAddressesCreate:(e,t={})=>this.request({path:"/admin/known-public-addresses/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminKnownPublicAddressesRead:(e,t={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminKnownPublicAddressesUpdate:(e,t,s={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminKnownPublicAddressesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminKnownPublicAddressesDelete:(e,t={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"DELETE",secure:!0,...t}),adminMemosList:(e={})=>this.request({path:"/admin/memos/",method:"GET",secure:!0,format:"json",...e}),adminMemosCreate:(e,t={})=>this.request({path:"/admin/memos/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminSep10AuthenticatedAccountsList:(e,t={})=>this.request({path:"/admin/sep10-authenticated-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminSep10AuthenticatedAccountsRead:(e,t={})=>this.request({path:`/admin/sep10-authenticated-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminSep24TransactionsList:(e,t={})=>this.request({path:"/admin/sep24-transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),adminSep24TransactionsRead:(e,t={})=>this.request({path:`/admin/sep24-transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminStellarAccountsList:(e,t={})=>this.request({path:"/admin/stellar_accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminStellarAccountsGenerateCreate:(e,t={})=>this.request({path:"/admin/stellar_accounts/generate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminStellarAccountsRead:(e,t={})=>this.request({path:`/admin/stellar_accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminStellarAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/stellar_accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminStellarAccountsChangeOwnershipCreate:(e,t,s={})=>this.request({path:`/admin/stellar_accounts/${e}/change_ownership/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminTransactionsList:(e,t={})=>this.request({path:"/admin/transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),adminTransactionsSendCreate:(e,t={})=>this.request({path:"/admin/transactions/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminTransactionsRead:(e,t={})=>this.request({path:`/admin/transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminTransactionsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/transactions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersList:(e,t={})=>this.request({path:"/admin/users/",method:"GET",query:e,secure:!0,format:"json",...t}),adminUsersCreate:(e,t={})=>this.request({path:"/admin/users/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminUsersRead:(e,t={})=>this.request({path:`/admin/users/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminUsersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/users/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersMemosList:(e,t={})=>this.request({path:`/admin/users/${e}/memos/`,method:"GET",secure:!0,format:"json",...t}),adminUsersMemosCreate:(e,t,s={})=>this.request({path:`/admin/users/${e}/memos/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminWarmstorageList:(e,t={})=>this.request({path:"/admin/warmstorage/",method:"GET",query:e,secure:!0,format:"json",...t}),adminWarmstorageAccountsList:(e,t={})=>this.request({path:"/admin/warmstorage/accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminWarmstorageAccountsCreate:(e,t={})=>this.request({path:"/admin/warmstorage/accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminWarmstorageAccountsRead:(e,t={})=>this.request({path:`/admin/warmstorage/accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminWarmstorageAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/warmstorage/accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s})};this.company={companyList:(e={})=>this.request({path:"/company/",method:"GET",secure:!0,format:"json",...e}),companyAssetsList:(e={})=>this.request({path:"/company/assets/",method:"GET",secure:!0,format:"json",...e})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.hooks={hooksPrsCreate:(e,t={})=>this.request({path:"/hooks/prs/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.info={infoList:(e={})=>this.request({path:"/info/",method:"GET",secure:!0,format:"json",...e})};this.knownAssets={knownAssetsList:(e,t={})=>this.request({path:"/known-assets/",method:"GET",query:e,secure:!0,format:"json",...t})};this.stellarFederation={stellarFederationRead:(e,t={})=>this.request({path:`/stellar_federation/${e}/`,method:"GET",secure:!0,...t})};this.transactions={transactionsList:(e,t={})=>this.request({path:"/transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionsSendCreate:(e,t={})=>this.request({path:"/transactions/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.user={userList:(e={})=>this.request({path:"/user/",method:"GET",secure:!0,format:"json",...e}),userPartialUpdate:(e,t={})=>this.request({path:"/user/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),userAccountList:(e={})=>this.request({path:"/user/account/",method:"GET",secure:!0,...e}),userAnchorSessionsValidateCreate:(e,t,s={})=>this.request({path:`/user/anchor/sessions/${e}/validate/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorSessionsValidateAccountCreate:(e,t,s={})=>this.request({path:`/user/anchor/sessions/${e}/validate_account/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorSessionsValidateSessionCreate:(e,t,s={})=>this.request({path:`/user/anchor/sessions/${e}/validate_session/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorTransactionsList:(e={})=>this.request({path:"/user/anchor/transactions/",method:"GET",secure:!0,format:"json",...e}),userAnchorTransactionsRead:(e,t={})=>this.request({path:`/user/anchor/transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),userAnchorTransactionsCreate:(e,t,s={})=>this.request({path:`/user/anchor/transactions/${e}/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorTransactionsPartialUpdate:(e,t,s={})=>this.request({path:`/user/anchor/transactions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorAuthCreate:(e,t={})=>this.request({path:`/user/anchor/${e}/auth/`,method:"POST",secure:!0,...t}),userKnownPublicAddressesList:(e={})=>this.request({path:"/user/known-public-addresses/",method:"GET",secure:!0,format:"json",...e}),userMemosList:(e={})=>this.request({path:"/user/memos/",method:"GET",secure:!0,format:"json",...e}),userMemosCreate:(e,t={})=>this.request({path:"/user/memos/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userTransactionsSendCreate:(e,t={})=>this.request({path:"/user/transactions/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userUsernameSetCreate:(e,t={})=>this.request({path:"/user/username/set/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var De={};b(De,{Api:()=>z,ContentType:()=>Te,HttpClient:()=>j});var Te,j,z,_e=R(()=>{"use strict";Te=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(Te||{}),j=class{constructor(r={}){this.baseUrl="https://stellar-testnet.services.rehive.com/api/1";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},z=class extends j{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminAssetList:(e={})=>this.request({path:"/admin/asset/",method:"GET",secure:!0,format:"json",...e}),adminAssetCreate:(e,t={})=>this.request({path:"/admin/asset/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminAssetRead:(e,t={})=>this.request({path:`/admin/asset/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminAssetPartialUpdate:(e,t,s={})=>this.request({path:`/admin/asset/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminAssetAuthoriseHolderCreate:(e,t,s={})=>this.request({path:`/admin/asset/${e}/authorise_holder/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminAssetFundCreate:(e,t,s={})=>this.request({path:`/admin/asset/${e}/fund/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBlacklistedAccountRead:(e,t={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminBlacklistedAccountUpdate:(e,t,s={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBlacklistedAccountPartialUpdate:(e,t,s={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBlacklistedAccountDelete:(e,t={})=>this.request({path:`/admin/blacklisted-account/${e}/`,method:"DELETE",secure:!0,...t}),adminBlacklistedAccountsList:(e={})=>this.request({path:"/admin/blacklisted-accounts/",method:"GET",secure:!0,format:"json",...e}),adminBlacklistedAccountsCreate:(e,t={})=>this.request({path:"/admin/blacklisted-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminColdstorageList:(e,t={})=>this.request({path:"/admin/coldstorage/",method:"GET",query:e,secure:!0,format:"json",...t}),adminColdstorageAccountsList:(e,t={})=>this.request({path:"/admin/coldstorage/accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminColdstorageAccountsCreate:(e,t={})=>this.request({path:"/admin/coldstorage/accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminColdstorageAccountsRead:(e,t={})=>this.request({path:`/admin/coldstorage/accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminColdstorageAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/coldstorage/accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyList:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationList:(e={})=>this.request({path:"/admin/company/configuration/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationPartialUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationAccountGroupsList:(e={})=>this.request({path:"/admin/company/configuration/account-groups/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationAccountGroupsCreate:(e,t={})=>this.request({path:"/admin/company/configuration/account-groups/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationAccountGroupsRead:(e,t={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCompanyConfigurationAccountGroupsUpdate:(e,t,s={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyConfigurationAccountGroupsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyConfigurationAccountGroupsDelete:(e,t={})=>this.request({path:`/admin/company/configuration/account-groups/${e}/`,method:"DELETE",secure:!0,...t}),adminCompanyConfigurationAnchorPlatformList:(e={})=>this.request({path:"/admin/company/configuration/anchor_platform/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationAnchorPlatformUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/anchor_platform/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationAnchorPlatformPartialUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/anchor_platform/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyStellarTomlList:(e={})=>this.request({path:"/admin/company/stellar-toml/",method:"GET",secure:!0,format:"json",...e}),adminFederationList:(e={})=>this.request({path:"/admin/federation/",method:"GET",secure:!0,format:"json",...e}),adminFederationCreate:(e,t={})=>this.request({path:"/admin/federation/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletList:(e={})=>this.request({path:"/admin/hotwallet/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletCreate:(e,t={})=>this.request({path:"/admin/hotwallet/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletPartialUpdate:(e,t={})=>this.request({path:"/admin/hotwallet/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletActiveList:(e={})=>this.request({path:"/admin/hotwallet/active/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletEnableMssCreate:(e,t={})=>this.request({path:"/admin/hotwallet/enable_mss/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletFeesList:(e={})=>this.request({path:"/admin/hotwallet/fees/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletFundList:(e={})=>this.request({path:"/admin/hotwallet/fund/",method:"GET",secure:!0,format:"json",...e}),adminHotwalletMergeCreate:(e,t={})=>this.request({path:"/admin/hotwallet/merge/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminHotwalletSendCreate:(e,t={})=>this.request({path:"/admin/hotwallet/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminKnownPublicAddressesList:(e={})=>this.request({path:"/admin/known-public-addresses/",method:"GET",secure:!0,format:"json",...e}),adminKnownPublicAddressesCreate:(e,t={})=>this.request({path:"/admin/known-public-addresses/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminKnownPublicAddressesRead:(e,t={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminKnownPublicAddressesUpdate:(e,t,s={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminKnownPublicAddressesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminKnownPublicAddressesDelete:(e,t={})=>this.request({path:`/admin/known-public-addresses/${e}/`,method:"DELETE",secure:!0,...t}),adminMemosList:(e={})=>this.request({path:"/admin/memos/",method:"GET",secure:!0,format:"json",...e}),adminMemosCreate:(e,t={})=>this.request({path:"/admin/memos/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminSep10AuthenticatedAccountsList:(e,t={})=>this.request({path:"/admin/sep10-authenticated-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminSep10AuthenticatedAccountsRead:(e,t={})=>this.request({path:`/admin/sep10-authenticated-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminSep24TransactionsList:(e,t={})=>this.request({path:"/admin/sep24-transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),adminSep24TransactionsRead:(e,t={})=>this.request({path:`/admin/sep24-transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminStellarAccountsList:(e,t={})=>this.request({path:"/admin/stellar_accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminStellarAccountsGenerateCreate:(e,t={})=>this.request({path:"/admin/stellar_accounts/generate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminStellarAccountsRead:(e,t={})=>this.request({path:`/admin/stellar_accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminStellarAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/stellar_accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminStellarAccountsChangeOwnershipCreate:(e,t,s={})=>this.request({path:`/admin/stellar_accounts/${e}/change_ownership/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminTransactionsList:(e,t={})=>this.request({path:"/admin/transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),adminTransactionsSendCreate:(e,t={})=>this.request({path:"/admin/transactions/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminTransactionsRead:(e,t={})=>this.request({path:`/admin/transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminTransactionsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/transactions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersList:(e,t={})=>this.request({path:"/admin/users/",method:"GET",query:e,secure:!0,format:"json",...t}),adminUsersCreate:(e,t={})=>this.request({path:"/admin/users/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminUsersRead:(e,t={})=>this.request({path:`/admin/users/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminUsersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/users/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersMemosList:(e,t={})=>this.request({path:`/admin/users/${e}/memos/`,method:"GET",secure:!0,format:"json",...t}),adminUsersMemosCreate:(e,t,s={})=>this.request({path:`/admin/users/${e}/memos/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminWarmstorageList:(e,t={})=>this.request({path:"/admin/warmstorage/",method:"GET",query:e,secure:!0,format:"json",...t}),adminWarmstorageAccountsList:(e,t={})=>this.request({path:"/admin/warmstorage/accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),adminWarmstorageAccountsCreate:(e,t={})=>this.request({path:"/admin/warmstorage/accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminWarmstorageAccountsRead:(e,t={})=>this.request({path:`/admin/warmstorage/accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminWarmstorageAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/warmstorage/accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s})};this.company={companyList:(e={})=>this.request({path:"/company/",method:"GET",secure:!0,format:"json",...e}),companyAssetsList:(e={})=>this.request({path:"/company/assets/",method:"GET",secure:!0,format:"json",...e})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.hooks={hooksPrsCreate:(e,t={})=>this.request({path:"/hooks/prs/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.info={infoList:(e={})=>this.request({path:"/info/",method:"GET",secure:!0,format:"json",...e})};this.knownAssets={knownAssetsList:(e,t={})=>this.request({path:"/known-assets/",method:"GET",query:e,secure:!0,format:"json",...t})};this.stellarFederation={stellarFederationRead:(e,t={})=>this.request({path:`/stellar_federation/${e}/`,method:"GET",secure:!0,...t})};this.transactions={transactionsList:(e,t={})=>this.request({path:"/transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionsSendCreate:(e,t={})=>this.request({path:"/transactions/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.user={userList:(e={})=>this.request({path:"/user/",method:"GET",secure:!0,format:"json",...e}),userPartialUpdate:(e,t={})=>this.request({path:"/user/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),userAccountList:(e={})=>this.request({path:"/user/account/",method:"GET",secure:!0,...e}),userAnchorSessionsValidateCreate:(e,t,s={})=>this.request({path:`/user/anchor/sessions/${e}/validate/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorSessionsValidateAccountCreate:(e,t,s={})=>this.request({path:`/user/anchor/sessions/${e}/validate_account/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorSessionsValidateSessionCreate:(e,t,s={})=>this.request({path:`/user/anchor/sessions/${e}/validate_session/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorTransactionsList:(e={})=>this.request({path:"/user/anchor/transactions/",method:"GET",secure:!0,format:"json",...e}),userAnchorTransactionsRead:(e,t={})=>this.request({path:`/user/anchor/transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),userAnchorTransactionsCreate:(e,t,s={})=>this.request({path:`/user/anchor/transactions/${e}/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorTransactionsPartialUpdate:(e,t,s={})=>this.request({path:`/user/anchor/transactions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userAnchorAuthCreate:(e,t={})=>this.request({path:`/user/anchor/${e}/auth/`,method:"POST",secure:!0,...t}),userKnownPublicAddressesList:(e={})=>this.request({path:"/user/known-public-addresses/",method:"GET",secure:!0,format:"json",...e}),userMemosList:(e={})=>this.request({path:"/user/memos/",method:"GET",secure:!0,format:"json",...e}),userMemosCreate:(e,t={})=>this.request({path:"/user/memos/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userTransactionsSendCreate:(e,t={})=>this.request({path:"/user/transactions/send/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userUsernameSetCreate:(e,t={})=>this.request({path:"/user/username/set/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var Ue={};b(Ue,{Api:()=>X,ContentType:()=>Le,HttpClient:()=>k});var Le,k,X,xe=R(()=>{"use strict";Le=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(Le||{}),k=class{constructor(r={}){this.baseUrl="https://business.services.rehive.com/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},X=class extends k{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminBusinessCategoriesList:(e,t={})=>this.request({path:"/admin/business-categories/",method:"GET",query:e,secure:!0,format:"json",...t}),adminBusinessCategoriesCreate:(e,t={})=>this.request({path:"/admin/business-categories/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminBusinessCategoriesRetrieve:(e,t={})=>this.request({path:`/admin/business-categories/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminBusinessCategoriesUpdate:(e,t,s={})=>this.request({path:`/admin/business-categories/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessCategoriesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/business-categories/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessCategoriesDestroy:(e,t={})=>this.request({path:`/admin/business-categories/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminBusinessUsersList:(e,t={})=>this.request({path:"/admin/business-users/",method:"GET",query:e,secure:!0,format:"json",...t}),adminBusinessUsersCreate:(e,t={})=>this.request({path:"/admin/business-users/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminBusinessUsersRetrieve:(e,t={})=>this.request({path:`/admin/business-users/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminBusinessUsersUpdate:(e,t,s={})=>this.request({path:`/admin/business-users/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessUsersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/business-users/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessesList:(e,t={})=>this.request({path:"/admin/businesses/",method:"GET",query:e,secure:!0,format:"json",...t}),adminBusinessesRetrieve:(e,t={})=>this.request({path:`/admin/businesses/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminBusinessesUpdate:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessesCategoriesRetrieve:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/categories/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminBusinessesCategoriesDestroy:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/categories/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),adminBusinessesDocumentsList:({businessId:e,...t},s={})=>this.request({path:`/admin/businesses/${e}/documents/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminBusinessesDocumentsCreate:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/documents/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessesDocumentsRetrieve:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/documents/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminBusinessesDocumentsUpdate:(e,t,s,n={})=>this.request({path:`/admin/businesses/${e}/documents/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),adminBusinessesDocumentsPartialUpdate:(e,t,s,n={})=>this.request({path:`/admin/businesses/${e}/documents/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),adminBusinessesDocumentsDestroy:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/documents/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),adminBusinessesPayoutsList:({businessId:e,...t},s={})=>this.request({path:`/admin/businesses/${e}/payouts/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminBusinessesPayoutsCreate:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/payouts/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminBusinessesPayoutsRetrieve:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/payouts/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminBusinessesPayoutsTransactionsList:({businessId:e,payoutId:t,...s},n={})=>this.request({path:`/admin/businesses/${e}/payouts/${t}/transactions/`,method:"GET",query:s,secure:!0,format:"json",...n}),adminBusinessesCategoriesList:({identifier:e,...t},s={})=>this.request({path:`/admin/businesses/${e}/categories/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminBusinessesCategoriesCreate:(e,t,s={})=>this.request({path:`/admin/businesses/${e}/categories/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCurrenciesList:(e,t={})=>this.request({path:"/admin/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCurrenciesRetrieve:(e,t={})=>this.request({path:`/admin/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminWebhookCreate:(e,t={})=>this.request({path:"/admin/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.customer={customerBusinessesList:(e,t={})=>this.request({path:"/customer/businesses/",method:"GET",query:e,secure:!0,format:"json",...t}),customerBusinessesRetrieve:(e,t={})=>this.request({path:`/customer/businesses/${e}/`,method:"GET",secure:!0,format:"json",...t}),customerEnrollCreate:(e,t={})=>this.request({path:"/customer/enroll/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.manager={managerBusinessCategoriesList:(e,t={})=>this.request({path:"/manager/business-categories/",method:"GET",query:e,secure:!0,format:"json",...t}),managerBusinessCategoriesRetrieve:(e,t={})=>this.request({path:`/manager/business-categories/${e}/`,method:"GET",secure:!0,format:"json",...t}),managerBusinessesList:(e,t={})=>this.request({path:"/manager/businesses/",method:"GET",query:e,secure:!0,format:"json",...t}),managerBusinessesCreate:(e,t={})=>this.request({path:"/manager/businesses/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),managerBusinessesRetrieve:(e,t={})=>this.request({path:`/manager/businesses/${e}/`,method:"GET",secure:!0,format:"json",...t}),managerBusinessesUpdate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),managerBusinessesPartialUpdate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),managerBusinessesCategoriesRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/categories/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesCategoriesDestroy:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/categories/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),managerBusinessesDocumentsList:({businessId:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/documents/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesDocumentsCreate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/documents/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerBusinessesDocumentsRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/documents/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesInvoicesList:({businessId:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/invoices/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesInvoicesCreate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/invoices/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerBusinessesInvoicesRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesInvoicesUpdate:(e,t,s,n={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),managerBusinessesInvoicesPartialUpdate:(e,t,s,n={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),managerBusinessesInvoicesLogsList:({businessId:e,invoiceId:t,...s},n={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/logs/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerBusinessesInvoicesRefundsList:({businessId:e,invoiceId:t,...s},n={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/refunds/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerBusinessesInvoicesRefundsCreate:(e,t,s,n={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/refunds/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),managerBusinessesInvoicesTransactionsList:({businessId:e,invoiceId:t,...s},n={})=>this.request({path:`/manager/businesses/${e}/invoices/${t}/transactions/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerBusinessesMetricsList:({businessId:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/metrics/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesMetricsRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/metrics/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesMetricsPointsList:({businessId:e,metricId:t,...s},n={})=>this.request({path:`/manager/businesses/${e}/metrics/${t}/points/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerBusinessesPayoutsList:({businessId:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/payouts/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesPayoutsCreate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/payouts/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerBusinessesPayoutsRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/payouts/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesPayoutsTransactionsList:({businessId:e,payoutId:t,...s},n={})=>this.request({path:`/manager/businesses/${e}/payouts/${t}/transactions/`,method:"GET",query:s,secure:!0,format:"json",...n}),managerBusinessesTransactionsList:({businessId:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesTransactionsRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/transactions/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesUsersList:({businessId:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/users/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesUsersCreate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/users/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerBusinessesUsersRetrieve:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/users/${t}/`,method:"GET",secure:!0,format:"json",...s}),managerBusinessesUsersUpdate:(e,t,s,n={})=>this.request({path:`/manager/businesses/${e}/users/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),managerBusinessesUsersPartialUpdate:(e,t,s,n={})=>this.request({path:`/manager/businesses/${e}/users/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),managerBusinessesCategoriesList:({identifier:e,...t},s={})=>this.request({path:`/manager/businesses/${e}/categories/`,method:"GET",query:t,secure:!0,format:"json",...s}),managerBusinessesCategoriesCreate:(e,t,s={})=>this.request({path:`/manager/businesses/${e}/categories/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),managerCompanyRetrieve:(e={})=>this.request({path:"/manager/company/",method:"GET",secure:!0,format:"json",...e})};this.user={userBusinessCategoriesList:(e,t={})=>this.request({path:"/user/business-categories/",method:"GET",query:e,secure:!0,format:"json",...t}),userBusinessCategoriesRetrieve:(e,t={})=>this.request({path:`/user/business-categories/${e}/`,method:"GET",secure:!0,format:"json",...t}),userBusinessesList:(e,t={})=>this.request({path:"/user/businesses/",method:"GET",query:e,secure:!0,format:"json",...t}),userBusinessesRetrieve:(e,t={})=>this.request({path:`/user/businesses/${e}/`,method:"GET",secure:!0,format:"json",...t}),userCompanyRetrieve:(e={})=>this.request({path:"/user/company/",method:"GET",secure:!0,format:"json",...e})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var qe={};b(qe,{Api:()=>ee,ContentType:()=>Se,HttpClient:()=>F});var Se,F,ee,Me=R(()=>{"use strict";Se=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(Se||{}),F=class{constructor(r={}){this.baseUrl="https://payment-requests.services.rehive.com/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},ee=class extends F{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationRetrieve:(e={})=>this.request({path:"/admin/company/configuration/",method:"GET",secure:!0,format:"json",...e}),adminCompanyConfigurationUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyConfigurationPartialUpdate:(e,t={})=>this.request({path:"/admin/company/configuration/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPaymentProcessorsList:(e,t={})=>this.request({path:"/admin/company_payment_processors/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCompanyPaymentProcessorsCreate:(e,t={})=>this.request({path:"/admin/company_payment_processors/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPaymentProcessorsRetrieve:(e,t={})=>this.request({path:`/admin/company_payment_processors/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCompanyPaymentProcessorsUpdate:(e,t,s={})=>this.request({path:`/admin/company_payment_processors/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyPaymentProcessorsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/company_payment_processors/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCompanyPaymentProcessorsDestroy:(e,t={})=>this.request({path:`/admin/company_payment_processors/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminPaymentProcessorQuoteList:(e,t={})=>this.request({path:"/admin/payment_processor_quote/",method:"GET",query:e,secure:!0,format:"json",...t}),adminPaymentProcessorsList:(e,t={})=>this.request({path:"/admin/payment_processors/",method:"GET",query:e,secure:!0,format:"json",...t}),adminPaymentProcessorsCreate:(e,t={})=>this.request({path:"/admin/payment_processors/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminPaymentProcessorsRetrieve:(e,t={})=>this.request({path:`/admin/payment_processors/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminPaymentProcessorsUpdate:(e,t,s={})=>this.request({path:`/admin/payment_processors/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminPaymentProcessorsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/payment_processors/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminPaymentProcessorsDestroy:(e,t={})=>this.request({path:`/admin/payment_processors/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminRequestsList:(e,t={})=>this.request({path:"/admin/requests/",method:"GET",query:e,secure:!0,format:"json",...t}),adminRequestsCreate:(e,t={})=>this.request({path:"/admin/requests/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminRequestsRetrieve:(e,t={})=>this.request({path:`/admin/requests/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminRequestsUpdate:(e,t,s={})=>this.request({path:`/admin/requests/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminRequestsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/requests/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminRequestsLogsList:({identifier:e,...t},s={})=>this.request({path:`/admin/requests/${e}/logs/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminRequestsPaymentProcessQuotesList:({identifier:e,...t},s={})=>this.request({path:`/admin/requests/${e}/payment-process-quotes/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminRequestsPaymentProcessQuotesRetrieve:(e,t,s={})=>this.request({path:`/admin/requests/${e}/payment-process-quotes/${t}/`,method:"GET",secure:!0,format:"json",...s}),adminRequestsPaymentProcessQuotesExecuteRetrieve:(e,t,s={})=>this.request({path:`/admin/requests/${e}/payment-process-quotes/${t}/execute/`,method:"GET",secure:!0,format:"json",...s}),adminRequestsRefundsList:({identifier:e,...t},s={})=>this.request({path:`/admin/requests/${e}/refunds/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminRequestsRefundsCreate:(e,t,s={})=>this.request({path:`/admin/requests/${e}/refunds/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),adminRequestsTransactionsList:({identifier:e,...t},s={})=>this.request({path:`/admin/requests/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s}),adminUsersList:(e,t={})=>this.request({path:"/admin/users/",method:"GET",query:e,secure:!0,format:"json",...t}),adminUsersRetrieve:(e,t={})=>this.request({path:`/admin/users/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminUsersUpdate:(e,t,s={})=>this.request({path:`/admin/users/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminUsersPartialUpdate:(e,t,s={})=>this.request({path:`/admin/users/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminWebhooksList:(e,t={})=>this.request({path:"/admin/webhooks/",method:"GET",query:e,secure:!0,format:"json",...t}),adminWebhooksCreate:(e,t={})=>this.request({path:"/admin/webhooks/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminWebhooksRetrieve:(e,t={})=>this.request({path:`/admin/webhooks/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminWebhooksUpdate:(e,t,s={})=>this.request({path:`/admin/webhooks/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminWebhooksPartialUpdate:(e,t,s={})=>this.request({path:`/admin/webhooks/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminWebhooksDestroy:(e,t={})=>this.request({path:`/admin/webhooks/${e}/`,method:"DELETE",secure:!0,format:"json",...t})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.requests={requestsRetrieve:(e,t={})=>this.request({path:`/requests/${e}/`,method:"GET",secure:!0,format:"json",...t}),requestsUpdate:(e,t,s={})=>this.request({path:`/requests/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),requestsPartialUpdate:(e,t,s={})=>this.request({path:`/requests/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),requestsOtpChallengeCreate:(e,t,s={})=>this.request({path:`/requests/${e}/otp_challenge/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),requestsPaymentProcessorsList:({identifier:e,...t},s={})=>this.request({path:`/requests/${e}/payment_processors/`,method:"GET",query:t,secure:!0,format:"json",...s}),requestsResendOtpCreate:(e,t={})=>this.request({path:`/requests/${e}/resend_otp/`,method:"POST",secure:!0,format:"json",...t}),requestsTransactionsList:({identifier:e,...t},s={})=>this.request({path:`/requests/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s})};this.user={userPaymentProcessorsList:(e,t={})=>this.request({path:"/user/payment_processors/",method:"GET",query:e,secure:!0,format:"json",...t}),userPaymentProcessorsCreate:(e,t={})=>this.request({path:"/user/payment_processors/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userPaymentProcessorsRetrieve:(e,t={})=>this.request({path:`/user/payment_processors/${e}/`,method:"GET",secure:!0,format:"json",...t}),userPaymentProcessorsUpdate:(e,t,s={})=>this.request({path:`/user/payment_processors/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userPaymentProcessorsPartialUpdate:(e,t,s={})=>this.request({path:`/user/payment_processors/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userPaymentProcessorsDestroy:(e,t={})=>this.request({path:`/user/payment_processors/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userRequestsList:(e,t={})=>this.request({path:"/user/requests/",method:"GET",query:e,secure:!0,format:"json",...t}),userRequestsCreate:(e,t={})=>this.request({path:"/user/requests/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userRequestsRetrieve:(e,t={})=>this.request({path:`/user/requests/${e}/`,method:"GET",secure:!0,format:"json",...t}),userRequestsUpdate:(e,t,s={})=>this.request({path:`/user/requests/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userRequestsPartialUpdate:(e,t,s={})=>this.request({path:`/user/requests/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userRequestsNotifyCreate:(e,t={})=>this.request({path:`/user/requests/${e}/notify/`,method:"POST",secure:!0,format:"json",...t}),userRequestsRefundsList:({identifier:e,...t},s={})=>this.request({path:`/user/requests/${e}/refunds/`,method:"GET",query:t,secure:!0,format:"json",...s}),userRequestsRefundsCreate:(e,t,s={})=>this.request({path:`/user/requests/${e}/refunds/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userRequestsTransactionsList:({identifier:e,...t},s={})=>this.request({path:`/user/requests/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s}),userWebhooksList:(e,t={})=>this.request({path:"/user/webhooks/",method:"GET",query:e,secure:!0,format:"json",...t}),userWebhooksCreate:(e,t={})=>this.request({path:"/user/webhooks/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userWebhooksRetrieve:(e,t={})=>this.request({path:`/user/webhooks/${e}/`,method:"GET",secure:!0,format:"json",...t}),userWebhooksUpdate:(e,t,s={})=>this.request({path:`/user/webhooks/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userWebhooksPartialUpdate:(e,t,s={})=>this.request({path:`/user/webhooks/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userWebhooksDestroy:(e,t={})=>this.request({path:`/user/webhooks/${e}/`,method:"DELETE",secure:!0,format:"json",...t})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.webhooks={webhooksRehiveTransactionExecutedCreate:(e,t={})=>this.request({path:"/webhooks/rehive_transaction/executed/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),webhooksRehiveTransactionInitiatedCreate:(e,t={})=>this.request({path:"/webhooks/rehive_transaction/initiated/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),webhooksRehiveUserCreateCreate:(e,t={})=>this.request({path:"/webhooks/rehive_user/create/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),webhooksRehiveUserEmailUpdateCreate:(e,t={})=>this.request({path:"/webhooks/rehive_user/email_update/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),webhooksRehiveUserUpdateCreate:(e,t={})=>this.request({path:"/webhooks/rehive_user/update/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var ve={};b(ve,{Api:()=>te,ContentType:()=>Ge,HttpClient:()=>V});var Ge,V,te,Ee=R(()=>{"use strict";Ge=(n=>(n.Json="application/json",n.JsonApi="application/vnd.api+json",n.FormData="multipart/form-data",n.UrlEncoded="application/x-www-form-urlencoded",n.Text="text/plain",n))(Ge||{}),V=class{constructor(r={}){this.baseUrl="https://bridge.services.rehive.com/api/";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},te=class extends V{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminCardsList:(e,t={})=>this.request({path:"/admin/cards/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCardsRetrieve:(e,t={})=>this.request({path:`/admin/cards/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCryptoReturnPoliciesList:(e={})=>this.request({path:"/admin/crypto-return-policies/",method:"GET",secure:!0,format:"json",...e}),adminCryptoReturnPoliciesCreate:(e,t={})=>this.request({path:"/admin/crypto-return-policies/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCryptoReturnPoliciesRetrieve:(e,t={})=>this.request({path:`/admin/crypto-return-policies/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCryptoReturnPoliciesUpdate:(e,t,s={})=>this.request({path:`/admin/crypto-return-policies/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCryptoReturnPoliciesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/crypto-return-policies/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCryptoReturnPoliciesDestroy:(e,t={})=>this.request({path:`/admin/crypto-return-policies/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminCurrenciesList:(e,t={})=>this.request({path:"/admin/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),adminCurrenciesRetrieve:(e,t={})=>this.request({path:`/admin/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCurrenciesUpdate:(e,t,s={})=>this.request({path:`/admin/currencies/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminCurrenciesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/currencies/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminPaymentProcessorQuoteCreate:(e,t={})=>this.request({path:"/admin/payment-processor-quote/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminWalletsList:(e,t={})=>this.request({path:"/admin/wallets/",method:"GET",query:e,secure:!0,format:"json",...t}),adminWalletsRetrieve:(e,t={})=>this.request({path:`/admin/wallets/${e}/`,method:"GET",secure:!0,format:"json",...t})};this.bridge={bridgeWebhookCreate:(e,t,s={})=>this.request({path:`/bridge/webhook/${e}/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.user={userRetrieve:(e={})=>this.request({path:"/user/",method:"GET",secure:!0,format:"json",...e}),userUpdate:(e,t={})=>this.request({path:"/user/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),userPartialUpdate:(e,t={})=>this.request({path:"/user/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),userCryptoDepositCreate:(e,t={})=>this.request({path:"/user/crypto-deposit/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userKycLinksCreate:(e,t={})=>this.request({path:"/user/kyc-links/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.webhook={webhookCreate:(e,t={})=>this.request({path:"/webhook/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})}}}});var Be={};b(Be,{Api:()=>se,ContentType:()=>ne,HttpClient:()=>T});var se,Ie=R(()=>{"use strict";x();x();se=class extends T{constructor(){super(...arguments);this.activate={activateCreate:(e,t={})=>this.request({path:"/activate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.admin={adminAndroidAppsList:(e,t={})=>this.request({path:"/admin/android-apps/",method:"GET",query:e,secure:!0,format:"json",...t}),adminAndroidAppsCreate:(e,t={})=>this.request({path:"/admin/android-apps/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminAndroidAppsRetrieve:(e,t={})=>this.request({path:`/admin/android-apps/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminAndroidAppsUpdate:(e,t,s={})=>this.request({path:`/admin/android-apps/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminAndroidAppsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/android-apps/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminAndroidAppsDestroy:(e,t={})=>this.request({path:`/admin/android-apps/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminAppCodebasesList:(e,t={})=>this.request({path:"/admin/app-codebases/",method:"GET",query:e,secure:!0,format:"json",...t}),adminAppCodebasesRetrieve:(e,t={})=>this.request({path:`/admin/app-codebases/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminCompanyRetrieve:(e={})=>this.request({path:"/admin/company/",method:"GET",secure:!0,format:"json",...e}),adminCompanyUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),adminCompanyPartialUpdate:(e,t={})=>this.request({path:"/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),adminDomainsList:(e,t={})=>this.request({path:"/admin/domains/",method:"GET",query:e,secure:!0,format:"json",...t}),adminDomainsCreate:(e,t={})=>this.request({path:"/admin/domains/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminDomainsRetrieve:(e,t={})=>this.request({path:`/admin/domains/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminDomainsUpdate:(e,t,s={})=>this.request({path:`/admin/domains/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminDomainsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/domains/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminDomainsDestroy:(e,t={})=>this.request({path:`/admin/domains/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminIosAppsList:(e,t={})=>this.request({path:"/admin/ios-apps/",method:"GET",query:e,secure:!0,format:"json",...t}),adminIosAppsCreate:(e,t={})=>this.request({path:"/admin/ios-apps/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminIosAppsRetrieve:(e,t={})=>this.request({path:`/admin/ios-apps/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminIosAppsUpdate:(e,t,s={})=>this.request({path:`/admin/ios-apps/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIosAppsPartialUpdate:(e,t,s={})=>this.request({path:`/admin/ios-apps/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminIosAppsDestroy:(e,t={})=>this.request({path:`/admin/ios-apps/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),adminLocalesList:(e,t={})=>this.request({path:"/admin/locales/",method:"GET",query:e,secure:!0,format:"json",...t}),adminLocalesCreate:(e,t={})=>this.request({path:"/admin/locales/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminLocalesRetrieve:(e,t={})=>this.request({path:`/admin/locales/${e}/`,method:"GET",secure:!0,format:"json",...t}),adminLocalesUpdate:(e,t,s={})=>this.request({path:`/admin/locales/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),adminLocalesPartialUpdate:(e,t,s={})=>this.request({path:`/admin/locales/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),adminLocalesDestroy:(e,t={})=>this.request({path:`/admin/locales/${e}/`,method:"DELETE",secure:!0,format:"json",...t})};this.deactivate={deactivateCreate:(e,t={})=>this.request({path:"/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};this.public={publicCompanyRetrieve:(e={})=>this.request({path:"/public/company/",method:"GET",secure:!0,format:"json",...e}),publicCompanyLocalesList:({companyId:e,...t},s={})=>this.request({path:`/public/company/${e}/locales/`,method:"GET",query:t,secure:!0,format:"json",...s}),publicCompanyLocalesRetrieve:(e,t,s={})=>this.request({path:`/public/company/${e}/locales/${t}/`,method:"GET",secure:!0,format:"json",...s})};this.superadmin={superadminAppCodebasesList:(e,t={})=>this.request({path:"/superadmin/app-codebases/",method:"GET",query:e,secure:!0,format:"json",...t}),superadminAppCodebasesCreate:(e,t={})=>this.request({path:"/superadmin/app-codebases/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),superadminAppCodebasesRetrieve:(e,t={})=>this.request({path:`/superadmin/app-codebases/${e}/`,method:"GET",secure:!0,format:"json",...t}),superadminAppCodebasesUpdate:(e,t,s={})=>this.request({path:`/superadmin/app-codebases/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),superadminAppCodebasesPartialUpdate:(e,t,s={})=>this.request({path:`/superadmin/app-codebases/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),superadminAppCodebasesDestroy:(e,t={})=>this.request({path:`/superadmin/app-codebases/${e}/`,method:"DELETE",secure:!0,format:"json",...t})};this.user={userRetrieve:(e={})=>this.request({path:"/user/",method:"GET",secure:!0,format:"json",...e}),userUpdate:(e,t={})=>this.request({path:"/user/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),userPartialUpdate:(e,t={})=>this.request({path:"/user/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),userCompanyRetrieve:(e={})=>this.request({path:"/user/company/",method:"GET",secure:!0,format:"json",...e}),userLocalesList:(e,t={})=>this.request({path:"/user/locales/",method:"GET",query:e,secure:!0,format:"json",...t}),userLocalesRetrieve:(e,t={})=>this.request({path:`/user/locales/${e}/`,method:"GET",secure:!0,format:"json",...t})}}}});var Fe={};b(Fe,{ApiError:()=>f,AsyncStorageAdapter:()=>M,MemoryStorageAdapter:()=>_,RehiveClient:()=>W,RehivePlatformAdminApi:()=>U,RehivePlatformUserApi:()=>L,WebStorageAdapter:()=>D});module.exports=C(Fe);var D=class{async getItem(r){return typeof window<"u"&&window.localStorage?window.localStorage.getItem(r):null}async setItem(r,e){typeof window<"u"&&window.localStorage&&window.localStorage.setItem(r,e)}async removeItem(r){typeof window<"u"&&window.localStorage&&window.localStorage.removeItem(r)}},_=class{constructor(){this.storage=new Map}async getItem(r){return this.storage.get(r)||null}async setItem(r,e){this.storage.set(r,e)}async removeItem(r){this.storage.delete(r)}},M=class{constructor(r){this.asyncStorage=r}async getItem(r){return this.asyncStorage.getItem(r)}async setItem(r,e){return this.asyncStorage.setItem(r,e)}async removeItem(r){return this.asyncStorage.removeItem(r)}};G();x();x();var S=class extends T{constructor(){super(...arguments);this.v3={accountCurrenciesList:(e,t={})=>this.request({path:"/3/account-currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),accountDefinitionsList:(e,t={})=>this.request({path:"/3/account-definitions/",method:"GET",query:e,secure:!0,format:"json",...t}),accountDefinitionsRetrieve:(e,t={})=>this.request({path:`/3/account-definitions/${e}/`,method:"GET",secure:!0,format:"json",...t}),accountsList:(e,t={})=>this.request({path:"/3/accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),accountsCreate:(e,t={})=>this.request({path:"/3/accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),accountsRetrieve:(e,t={})=>this.request({path:`/3/accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),accountsCurrenciesList:({reference:e,...t},s={})=>this.request({path:`/3/accounts/${e}/currencies/`,method:"GET",query:t,secure:!0,format:"json",...s}),accountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),accountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),accountsCurrenciesUpdate:(e,t,s,n={})=>this.request({path:`/3/accounts/${t}/currencies/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/accounts/${t}/currencies/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesFeesList:({code:e,reference:t,...s},n={})=>this.request({path:`/3/accounts/${t}/currencies/${e}/fees/`,method:"GET",query:s,secure:!0,format:"json",...n}),accountsCurrenciesFeesRetrieve:(e,t,s,n={})=>this.request({path:`/3/accounts/${s}/currencies/${e}/fees/${t}/`,method:"GET",secure:!0,format:"json",...n}),accountsCurrenciesLimitsList:({code:e,reference:t,...s},n={})=>this.request({path:`/3/accounts/${t}/currencies/${e}/limits/`,method:"GET",query:s,secure:!0,format:"json",...n}),accountsCurrenciesLimitsRetrieve:(e,t,s,n={})=>this.request({path:`/3/accounts/${s}/currencies/${e}/limits/${t}/`,method:"GET",secure:!0,format:"json",...n}),authRetrieve:(e={})=>this.request({path:"/3/auth/",method:"GET",secure:!0,format:"json",...e}),authRegisterCompany:(e,t={})=>this.request({path:"/3/auth/company/register/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authDeactivate:(e,t={})=>this.request({path:"/3/auth/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authDeactivateVerify:(e,t={})=>this.request({path:"/3/auth/deactivate/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authEmailVerify:(e,t={})=>this.request({path:"/3/auth/email/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authEmailVerifyResend:(e,t={})=>this.request({path:"/3/auth/email/verify/resend/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authJwtCreate:(e,t={})=>this.request({path:"/3/auth/jwt/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authLogin:(e,t={})=>this.request({path:"/3/auth/login/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authLogout:(e,t={})=>this.request({path:"/3/auth/logout/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authMfaAuthenticatorsList:(e,t={})=>this.request({path:"/3/auth/mfa/authenticators/",method:"GET",query:e,secure:!0,format:"json",...t}),authMfaAuthenticatorsCreate:(e,t={})=>this.request({path:"/3/auth/mfa/authenticators/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authMfaAuthenticatorsRetrieve:(e,t={})=>this.request({path:`/3/auth/mfa/authenticators/${e}/`,method:"GET",secure:!0,format:"json",...t}),authMfaAuthenticatorsDestroy:(e,t={})=>this.request({path:`/3/auth/mfa/authenticators/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),authMfaDeliver:(e,t={})=>this.request({path:"/3/auth/mfa/deliver/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authMfaVerify:(e,t={})=>this.request({path:"/3/auth/mfa/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authMobileVerify:(e,t={})=>this.request({path:"/3/auth/mobile/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authMobileVerifyResend:(e,t={})=>this.request({path:"/3/auth/mobile/verify/resend/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authOauthAuthorizeCreate:(e,t={})=>this.request({path:"/3/auth/oauth/authorize/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authOauthLoginCreate:(e,t={})=>this.request({path:"/3/auth/oauth/login/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authOauthRegisterCreate:(e,t={})=>this.request({path:"/3/auth/oauth/register/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authOauthSessionCreate:(e,t={})=>this.request({path:"/3/auth/oauth/session/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authOauthVerifyCreate:(e,t={})=>this.request({path:"/3/auth/oauth/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authPasswordChange:(e,t={})=>this.request({path:"/3/auth/password/change/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authPasswordReset:(e,t={})=>this.request({path:"/3/auth/password/reset/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authPasswordResetConfirm:(e,t={})=>this.request({path:"/3/auth/password/reset/confirm/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRefreshCreate:(e,t={})=>this.request({path:"/3/auth/refresh/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRegister:(e,t={})=>this.request({path:"/3/auth/register/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRequestDelete:(e,t={})=>this.request({path:"/3/auth/request-delete/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRequestDeleteVerify:(e,t={})=>this.request({path:"/3/auth/request-delete/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authTokensList:(e,t={})=>this.request({path:"/3/auth/tokens/",method:"GET",query:e,secure:!0,format:"json",...t}),authTokensCreate:(e,t={})=>this.request({path:"/3/auth/tokens/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authTokensListDestroy:(e={})=>this.request({path:"/3/auth/tokens/",method:"DELETE",secure:!0,format:"json",...e}),authTokensRetrieve:(e,t={})=>this.request({path:`/3/auth/tokens/${e}/`,method:"GET",secure:!0,format:"json",...t}),authTokensDestroy:(e,t={})=>this.request({path:`/3/auth/tokens/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),companyRetrieve:(e={})=>this.request({path:"/3/company/",method:"GET",secure:!0,format:"json",...e}),companyBankAccountsList:(e,t={})=>this.request({path:"/3/company/bank-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),companyCurrenciesList:(e,t={})=>this.request({path:"/3/company/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),companyCurrenciesRetrieve:(e,t={})=>this.request({path:`/3/company/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),companyWalletAccountsList:(e,t={})=>this.request({path:"/3/company/wallet-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),documentTypesList:(e,t={})=>this.request({path:"/3/document-types/",method:"GET",query:e,secure:!0,format:"json",...t}),documentTypesRetrieve:(e,t={})=>this.request({path:`/3/document-types/${e}/`,method:"GET",secure:!0,format:"json",...t}),exportsList:(e,t={})=>this.request({path:"/3/exports/",method:"GET",query:e,secure:!0,format:"json",...t}),exportsCreate:(e,t={})=>this.request({path:"/3/exports/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),exportsRetrieve:(e,t={})=>this.request({path:`/3/exports/${e}/`,method:"GET",secure:!0,format:"json",...t}),groupsList:(e,t={})=>this.request({path:"/3/groups/",method:"GET",query:e,secure:!0,format:"json",...t}),groupsRetrieve:(e,t={})=>this.request({path:`/3/groups/${e}/`,method:"GET",secure:!0,format:"json",...t}),groupsFeesList:({groupName:e,...t},s={})=>this.request({path:`/3/groups/${e}/fees/`,method:"GET",query:t,secure:!0,format:"json",...s}),groupsFeesRetrieve:(e,t,s={})=>this.request({path:`/3/groups/${t}/fees/${e}/`,method:"GET",secure:!0,format:"json",...s}),groupsPermissionsList:({groupName:e,...t},s={})=>this.request({path:`/3/groups/${e}/permissions/`,method:"GET",query:t,secure:!0,format:"json",...s}),groupsPermissionsRetrieve:(e,t,s={})=>this.request({path:`/3/groups/${e}/permissions/${t}/`,method:"GET",secure:!0,format:"json",...s}),groupsTiersList:({groupName:e,...t},s={})=>this.request({path:`/3/groups/${e}/tiers/`,method:"GET",query:t,secure:!0,format:"json",...s}),groupsTiersRetrieve:(e,t,s={})=>this.request({path:`/3/groups/${e}/tiers/${t}/`,method:"GET",secure:!0,format:"json",...s}),groupsTiersFeesList:({groupName:e,tierId:t,...s},n={})=>this.request({path:`/3/groups/${e}/tiers/${t}/fees/`,method:"GET",query:s,secure:!0,format:"json",...n}),groupsTiersFeesRetrieve:(e,t,s,n={})=>this.request({path:`/3/groups/${t}/tiers/${s}/fees/${e}/`,method:"GET",secure:!0,format:"json",...n}),groupsTiersLimitsList:({groupName:e,tierId:t,...s},n={})=>this.request({path:`/3/groups/${e}/tiers/${t}/limits/`,method:"GET",query:s,secure:!0,format:"json",...n}),groupsTiersLimitsRetrieve:(e,t,s,n={})=>this.request({path:`/3/groups/${e}/tiers/${s}/limits/${t}/`,method:"GET",secure:!0,format:"json",...n}),groupsTiersRequirementSetsList:({groupName:e,tierId:t,...s},n={})=>this.request({path:`/3/groups/${e}/tiers/${t}/requirement-sets/`,method:"GET",query:s,secure:!0,format:"json",...n}),groupsTiersRequirementSetsRetrieve:(e,t,s,n={})=>this.request({path:`/3/groups/${e}/tiers/${s}/requirement-sets/${t}/`,method:"GET",secure:!0,format:"json",...n}),groupsTiersRequirementSetsItemsList:({groupName:e,reqSetId:t,tierId:s,...n},a={})=>this.request({path:`/3/groups/${e}/tiers/${s}/requirement-sets/${t}/items/`,method:"GET",query:n,secure:!0,format:"json",...a}),groupsTiersRequirementSetsItemsRetrieve:(e,t,s,n,a={})=>this.request({path:`/3/groups/${e}/tiers/${n}/requirement-sets/${s}/items/${t}/`,method:"GET",secure:!0,format:"json",...a}),metricsList:(e,t={})=>this.request({path:"/3/metrics/",method:"GET",query:e,secure:!0,format:"json",...t}),metricsCreate:(e,t={})=>this.request({path:"/3/metrics/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),metricsRetrieve:(e,t={})=>this.request({path:`/3/metrics/${e}/`,method:"GET",secure:!0,format:"json",...t}),metricsDestroy:(e,t={})=>this.request({path:`/3/metrics/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),metricsPointsList:({identifier:e,...t},s={})=>this.request({path:`/3/metrics/${e}/points/`,method:"GET",query:t,secure:!0,format:"json",...s}),permissionsList:(e,t={})=>this.request({path:"/3/permissions/",method:"GET",query:e,secure:!0,format:"json",...t}),permissionsRetrieve:(e,t={})=>this.request({path:`/3/permissions/${e}/`,method:"GET",secure:!0,format:"json",...t}),publicCompaniesList:(e,t={})=>this.request({path:"/3/public/companies/",method:"GET",query:e,secure:!0,format:"json",...t}),publicCompaniesRetrieve:(e,t={})=>this.request({path:`/3/public/companies/${e}/`,method:"GET",secure:!0,format:"json",...t}),publicCompaniesGroupsList:({id:e,...t},s={})=>this.request({path:`/3/public/companies/${e}/groups/`,method:"GET",query:t,secure:!0,format:"json",...s}),publicCompaniesGroupsRetrieve:(e,t,s={})=>this.request({path:`/3/public/companies/${t}/groups/${e}/`,method:"GET",secure:!0,format:"json",...s}),publicCompaniesLegalTermsList:({id:e,...t},s={})=>this.request({path:`/3/public/companies/${e}/legal-terms/`,method:"GET",query:t,secure:!0,format:"json",...s}),publicCompaniesLegalTermsRetrieve:(e,t,s={})=>this.request({path:`/3/public/companies/${e}/legal-terms/${t}/`,method:"GET",secure:!0,format:"json",...s}),publicCompaniesLegalTermsVersionsList:({id:e,termId:t,...s},n={})=>this.request({path:`/3/public/companies/${e}/legal-terms/${t}/versions/`,method:"GET",query:s,secure:!0,format:"json",...n}),publicCompaniesLegalTermsVersionsRetrieve:(e,t,s,n={})=>this.request({path:`/3/public/companies/${e}/legal-terms/${t}/versions/${s}/`,method:"GET",secure:!0,format:"json",...n}),publicCompaniesOauthClientsList:({id:e,...t},s={})=>this.request({path:`/3/public/companies/${e}/oauth-clients/`,method:"GET",query:t,secure:!0,format:"json",...s}),publicCompaniesOauthClientsRetrieve:(e,t,s={})=>this.request({path:`/3/public/companies/${e}/oauth-clients/${t}/`,method:"GET",secure:!0,format:"json",...s}),publicLegalTermsList:(e,t={})=>this.request({path:"/3/public/legal-terms/",method:"GET",query:e,secure:!0,format:"json",...t}),publicLegalTermsRetrieve:(e,t={})=>this.request({path:`/3/public/legal-terms/${e}/`,method:"GET",secure:!0,format:"json",...t}),publicLegalTermsVersionsList:({termId:e,...t},s={})=>this.request({path:`/3/public/legal-terms/${e}/versions/`,method:"GET",query:t,secure:!0,format:"json",...s}),publicLegalTermsVersionsRetrieve:(e,t,s={})=>this.request({path:`/3/public/legal-terms/${e}/versions/${t}/`,method:"GET",secure:!0,format:"json",...s}),statementsList:(e,t={})=>this.request({path:"/3/statements/",method:"GET",query:e,secure:!0,format:"json",...t}),statementsCreate:(e,t={})=>this.request({path:"/3/statements/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),statementsRetrieve:(e,t={})=>this.request({path:`/3/statements/${e}/`,method:"GET",secure:!0,format:"json",...t}),statementsDestroy:(e,t={})=>this.request({path:`/3/statements/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),subtypesList:(e,t={})=>this.request({path:"/3/subtypes/",method:"GET",query:e,secure:!0,format:"json",...t}),subtypesRetrieve:(e,t={})=>this.request({path:`/3/subtypes/${e}/`,method:"GET",secure:!0,format:"json",...t}),transactionCollectionsList:(e,t={})=>this.request({path:"/3/transaction-collections/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionCollectionsCreate:(e,t={})=>this.request({path:"/3/transaction-collections/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionCollectionsRetrieve:(e,t={})=>this.request({path:`/3/transaction-collections/${e}/`,method:"GET",secure:!0,format:"json",...t}),transactionsList:(e,t={})=>this.request({path:"/3/transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionsCreate:(e,t={})=>this.request({path:"/3/transactions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionsRetrieve:(e,t={})=>this.request({path:`/3/transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),transactionsUpdate:(e,t,s={})=>this.request({path:`/3/transactions/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionsPartialUpdate:(e,t,s={})=>this.request({path:`/3/transactions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionsMessagesList:({txCode:e,...t},s={})=>this.request({path:`/3/transactions/${e}/messages/`,method:"GET",query:t,secure:!0,format:"json",...s}),transactionsMessagesRetrieve:(e,t,s={})=>this.request({path:`/3/transactions/${t}/messages/${e}/`,method:"GET",secure:!0,format:"json",...s}),transactionsCreditCreate:(e,t={})=>this.request({path:"/3/transactions/credit/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionsDebitCreate:(e,t={})=>this.request({path:"/3/transactions/debit/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionTotalsRetrieve:(e={})=>this.request({path:"/3/transactions/totals/",method:"GET",secure:!0,format:"json",...e}),transactionsTransferCreate:(e,t={})=>this.request({path:"/3/transactions/transfer/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userRetrieve:(e={})=>this.request({path:"/3/user/",method:"GET",secure:!0,format:"json",...e}),userUpdate:(e,t={})=>this.request({path:"/3/user/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),userPartialUpdate:(e,t={})=>this.request({path:"/3/user/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),userAddressesList:(e={})=>this.request({path:"/3/user/addresses/",method:"GET",secure:!0,format:"json",...e}),userAddressesCreate:(e,t={})=>this.request({path:"/3/user/addresses/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userAddressesRetrieve:(e,t={})=>this.request({path:`/3/user/addresses/${e}/`,method:"GET",secure:!0,format:"json",...t}),userAddressesUpdate:(e,t,s={})=>this.request({path:`/3/user/addresses/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userAddressesPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/addresses/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userAddressesDestroy:(e,t={})=>this.request({path:`/3/user/addresses/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userBankAccountsList:(e,t={})=>this.request({path:"/3/user/bank-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),userBankAccountsCreate:(e,t={})=>this.request({path:"/3/user/bank-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userBankAccountsRetrieve:(e,t={})=>this.request({path:`/3/user/bank-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),userBankAccountsUpdate:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userBankAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userBankAccountsDestroy:(e,t={})=>this.request({path:`/3/user/bank-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userBankAccountsAccountCurrenciesList:(e,t={})=>this.request({path:`/3/user/bank-accounts/${e}/account-currencies/`,method:"GET",secure:!0,format:"json",...t}),userBankAccountsAccountCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${e}/account-currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userBankAccountsAccountCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${t}/account-currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),userBankAccountsAccountCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${t}/account-currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userBankAccountsCurrenciesList:(e,t={})=>this.request({path:`/3/user/bank-accounts/${e}/currencies/`,method:"GET",secure:!0,format:"json",...t}),userBankAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userBankAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),userBankAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/user/bank-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userCryptoAccountsList:(e,t={})=>this.request({path:"/3/user/crypto-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),userCryptoAccountsCreate:(e,t={})=>this.request({path:"/3/user/crypto-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userCryptoAccountsRetrieve:(e,t={})=>this.request({path:`/3/user/crypto-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),userCryptoAccountsUpdate:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userCryptoAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userCryptoAccountsDestroy:(e,t={})=>this.request({path:`/3/user/crypto-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userCryptoAccountsAccountCurrenciesList:(e,t={})=>this.request({path:`/3/user/crypto-accounts/${e}/account-currencies/`,method:"GET",secure:!0,format:"json",...t}),userCryptoAccountsAccountCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${e}/account-currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userCryptoAccountsAccountCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${t}/account-currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),userCryptoAccountsAccountCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${t}/account-currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userCryptoAccountsCurrenciesList:(e,t={})=>this.request({path:`/3/user/crypto-accounts/${e}/currencies/`,method:"GET",secure:!0,format:"json",...t}),userCryptoAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userCryptoAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),userCryptoAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/user/crypto-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userDevicesList:(e,t={})=>this.request({path:"/3/user/devices/",method:"GET",query:e,secure:!0,format:"json",...t}),userDevicesCreate:(e,t={})=>this.request({path:"/3/user/devices/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userDevicesAppsRetrieve:(e,t,s={})=>this.request({path:`/3/user/devices/${t}/apps/${e}/`,method:"GET",secure:!0,format:"json",...s}),userDevicesAppsUpdate:(e,t,s,n={})=>this.request({path:`/3/user/devices/${t}/apps/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),userDevicesAppsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/user/devices/${t}/apps/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),userDevicesAppsDestroy:(e,t,s={})=>this.request({path:`/3/user/devices/${t}/apps/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userDevicesRetrieve:(e,t={})=>this.request({path:`/3/user/devices/${e}/`,method:"GET",secure:!0,format:"json",...t}),userDevicesUpdate:(e,t,s={})=>this.request({path:`/3/user/devices/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userDevicesPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/devices/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userDevicesDestroy:(e,t={})=>this.request({path:`/3/user/devices/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userDevicesAppsList:({id:e,...t},s={})=>this.request({path:`/3/user/devices/${e}/apps/`,method:"GET",query:t,secure:!0,format:"json",...s}),userDevicesAppsCreate:(e,t,s={})=>this.request({path:`/3/user/devices/${e}/apps/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userDocumentsList:(e,t={})=>this.request({path:"/3/user/documents/",method:"GET",query:e,secure:!0,format:"json",...t}),userDocumentsCreate:(e,t={})=>this.request({path:"/3/user/documents/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userDocumentsRetrieve:(e,t={})=>this.request({path:`/3/user/documents/${e}/`,method:"GET",secure:!0,format:"json",...t}),userDocumentsDestroy:(e,t={})=>this.request({path:`/3/user/documents/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userEmailsList:(e={})=>this.request({path:"/3/user/emails/",method:"GET",secure:!0,format:"json",...e}),userEmailsCreate:(e,t={})=>this.request({path:"/3/user/emails/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userEmailsRetrieve:(e,t={})=>this.request({path:`/3/user/emails/${e}/`,method:"GET",secure:!0,format:"json",...t}),userEmailsUpdate:(e,t,s={})=>this.request({path:`/3/user/emails/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userEmailsPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/emails/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userEmailsDestroy:(e,t={})=>this.request({path:`/3/user/emails/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userLegalTermsList:(e,t={})=>this.request({path:"/3/user/legal-terms/",method:"GET",query:e,secure:!0,format:"json",...t}),userLegalTermsRetrieve:(e,t={})=>this.request({path:`/3/user/legal-terms/${e}/`,method:"GET",secure:!0,format:"json",...t}),userLegalTermsVersionsList:({id:e,...t},s={})=>this.request({path:`/3/user/legal-terms/${e}/versions/`,method:"GET",query:t,secure:!0,format:"json",...s}),userLegalTermsVersionsRetrieve:(e,t,s={})=>this.request({path:`/3/user/legal-terms/${e}/versions/${t}/`,method:"GET",secure:!0,format:"json",...s}),userLegalTermsVersionsUpdate:(e,t,s,n={})=>this.request({path:`/3/user/legal-terms/${e}/versions/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),userLegalTermsVersionsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/user/legal-terms/${e}/versions/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),userMessagesList:(e,t={})=>this.request({path:"/3/user/messages/",method:"GET",query:e,secure:!0,format:"json",...t}),userMessagesRetrieve:(e,t={})=>this.request({path:`/3/user/messages/${e}/`,method:"GET",secure:!0,format:"json",...t}),userMobilesList:(e={})=>this.request({path:"/3/user/mobiles/",method:"GET",secure:!0,format:"json",...e}),userMobilesCreate:(e,t={})=>this.request({path:"/3/user/mobiles/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userMobilesRetrieve:(e,t={})=>this.request({path:`/3/user/mobiles/${e}/`,method:"GET",secure:!0,format:"json",...t}),userMobilesUpdate:(e,t,s={})=>this.request({path:`/3/user/mobiles/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userMobilesPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/mobiles/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userMobilesDestroy:(e,t={})=>this.request({path:`/3/user/mobiles/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userWalletAccountsList:(e,t={})=>this.request({path:"/3/user/wallet-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),userWalletAccountsCreate:(e,t={})=>this.request({path:"/3/user/wallet-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),userWalletAccountsRetrieve:(e,t={})=>this.request({path:`/3/user/wallet-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),userWalletAccountsUpdate:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),userWalletAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),userWalletAccountsDestroy:(e,t={})=>this.request({path:`/3/user/wallet-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),userWalletAccountsAccountCurrenciesList:(e,t={})=>this.request({path:`/3/user/wallet-accounts/${e}/account-currencies/`,method:"GET",secure:!0,format:"json",...t}),userWalletAccountsAccountCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${e}/account-currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userWalletAccountsAccountCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${t}/account-currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),userWalletAccountsAccountCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${t}/account-currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),userWalletAccountsCurrenciesList:({id:e,...t},s={})=>this.request({path:`/3/user/wallet-accounts/${e}/currencies/`,method:"GET",query:t,secure:!0,format:"json",...s}),userWalletAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),userWalletAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),userWalletAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/user/wallet-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s})}}};var L=class extends S{constructor(r){super(r),this.v3&&Object.keys(this.v3).forEach(e=>{typeof this.v3[e]=="function"&&(this[e]=this.v3[e])})}};var w=class{constructor(r={}){this.baseUrl="https://api.rehive.com";this.securityData=null;this.abortControllers=new Map;this.customFetch=(...r)=>fetch(...r);this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};this.setSecurityData=r=>{this.securityData=r};this.contentFormatters={"application/json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"application/vnd.api+json":r=>r!==null&&(typeof r=="object"||typeof r=="string")?JSON.stringify(r):r,"text/plain":r=>r!==null&&typeof r!="string"?JSON.stringify(r):r,"multipart/form-data":r=>Object.keys(r||{}).reduce((e,t)=>{let s=r[t];return e.append(t,s instanceof Blob?s:typeof s=="object"&&s!==null?JSON.stringify(s):`${s}`),e},new FormData),"application/x-www-form-urlencoded":r=>this.toQueryString(r)};this.createAbortSignal=r=>{if(this.abortControllers.has(r)){let t=this.abortControllers.get(r);return t?t.signal:void 0}let e=new AbortController;return this.abortControllers.set(r,e),e.signal};this.abortRequest=r=>{let e=this.abortControllers.get(r);e&&(e.abort(),this.abortControllers.delete(r))};this.request=async({body:r,secure:e,path:t,type:s,query:n,format:a,baseUrl:d,cancelToken:o,...P})=>{let A=(typeof e=="boolean"?e:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},u=this.mergeRequestParams(P,A),l=n&&this.toQueryString(n),h=this.contentFormatters[s||"application/json"],g=a||u.format;return this.customFetch(`${d||this.baseUrl||""}${t}${l?`?${l}`:""}`,{...u,headers:{...u.headers||{},...s&&s!=="multipart/form-data"?{"Content-Type":s}:{}},signal:(o?this.createAbortSignal(o):u.signal)||null,body:typeof r>"u"||r===null?null:h(r)}).then(async m=>{let i=m.clone();i.data=null,i.error=null;let y=g?await m[g]().then(c=>(i.ok?i.data=c:i.error=c,i)).catch(c=>(i.error=c,i)):i;if(o&&this.abortControllers.delete(o),!m.ok)throw y;return y})};Object.assign(this,r)}encodeQueryParam(r,e){return`${encodeURIComponent(r)}=${encodeURIComponent(typeof e=="number"?e:`${e}`)}`}addQueryParam(r,e){return this.encodeQueryParam(e,r[e])}addArrayQueryParam(r,e){return r[e].map(s=>this.encodeQueryParam(e,s)).join("&")}toQueryString(r){let e=r||{};return Object.keys(e).filter(s=>typeof e[s]<"u").map(s=>Array.isArray(e[s])?this.addArrayQueryParam(e,s):this.addQueryParam(e,s)).join("&")}addQueryParams(r){let e=this.toQueryString(r);return e?`?${e}`:""}mergeRequestParams(r,e){return{...this.baseApiParams,...r,...e||{},headers:{...this.baseApiParams.headers||{},...r.headers||{},...e&&e.headers||{}}}}},q=class extends w{constructor(){super(...arguments);this.v3={accessControlRulesList:(e,t={})=>this.request({path:"/3/admin/access-control-rules/",method:"GET",query:e,secure:!0,format:"json",...t}),accessControlRulesCreate:(e,t={})=>this.request({path:"/3/admin/access-control-rules/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),accessControlRulesRetrieve:(e,t={})=>this.request({path:`/3/admin/access-control-rules/${e}/`,method:"GET",secure:!0,format:"json",...t}),accessControlRulesUpdate:(e,t,s={})=>this.request({path:`/3/admin/access-control-rules/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),accessControlRulesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/access-control-rules/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),accessControlRulesDestroy:(e,t={})=>this.request({path:`/3/admin/access-control-rules/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),accountCurrenciesList:(e,t={})=>this.request({path:"/3/admin/account-currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),accountDefinitionsList:(e,t={})=>this.request({path:"/3/admin/account-definitions/",method:"GET",query:e,secure:!0,format:"json",...t}),accountDefinitionsCreate:(e,t={})=>this.request({path:"/3/admin/account-definitions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),accountDefinitionsRetrieve:(e,t={})=>this.request({path:`/3/admin/account-definitions/${e}/`,method:"GET",secure:!0,format:"json",...t}),accountDefinitionsUpdate:(e,t,s={})=>this.request({path:`/3/admin/account-definitions/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),accountDefinitionsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/account-definitions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),accountDefinitionsGroupsList:({definitionName:e,...t},s={})=>this.request({path:`/3/admin/account-definitions/${e}/groups/`,method:"GET",query:t,secure:!0,format:"json",...s}),accountDefinitionsGroupsCreate:(e,t,s={})=>this.request({path:`/3/admin/account-definitions/${e}/groups/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),accountDefinitionsGroupsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/account-definitions/${t}/groups/${e}/`,method:"GET",secure:!0,format:"json",...s}),accountDefinitionsGroupsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/account-definitions/${t}/groups/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),accountDefinitionsGroupsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/account-definitions/${t}/groups/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),accountDefinitionsGroupsCurrenciesList:({definitionGroupName:e,definitionName:t,...s},n={})=>this.request({path:`/3/admin/account-definitions/${t}/groups/${e}/currencies/`,method:"GET",query:s,secure:!0,format:"json",...n}),accountDefinitionsGroupsCurrenciesCreate:(e,t,s,n={})=>this.request({path:`/3/admin/account-definitions/${t}/groups/${e}/currencies/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),accountDefinitionsGroupsCurrenciesRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/account-definitions/${s}/groups/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...n}),accountDefinitionsGroupsCurrenciesUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/account-definitions/${s}/groups/${t}/currencies/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),accountDefinitionsGroupsCurrenciesPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/account-definitions/${s}/groups/${t}/currencies/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),accountsList:(e,t={})=>this.request({path:"/3/admin/accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),accountsCreate:(e,t={})=>this.request({path:"/3/admin/accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),accountsRetrieve:(e,t={})=>this.request({path:`/3/admin/accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),accountsUpdate:(e,t,s={})=>this.request({path:`/3/admin/accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),accountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),accountsCurrenciesList:({reference:e,...t},s={})=>this.request({path:`/3/admin/accounts/${e}/currencies/`,method:"GET",query:t,secure:!0,format:"json",...s}),accountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),accountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),accountsCurrenciesUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesFeesList:(e,t,s={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/fees/`,method:"GET",secure:!0,format:"json",...s}),accountsCurrenciesFeesCreate:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/fees/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesFeesRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/fees/${t}/`,method:"GET",secure:!0,format:"json",...n}),accountsCurrenciesFeesUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/fees/${t}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),accountsCurrenciesFeesPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/fees/${t}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),accountsCurrenciesFeesDestroy:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/fees/${t}/`,method:"DELETE",secure:!0,format:"json",...n}),accountsCurrenciesLimitsList:({code:e,reference:t,...s},n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/limits/`,method:"GET",query:s,secure:!0,format:"json",...n}),accountsCurrenciesLimitsCreate:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/limits/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesLimitsRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/limits/${t}/`,method:"GET",secure:!0,format:"json",...n}),accountsCurrenciesLimitsUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/limits/${t}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),accountsCurrenciesLimitsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/limits/${t}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),accountsCurrenciesLimitsDestroy:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${s}/currencies/${e}/limits/${t}/`,method:"DELETE",secure:!0,format:"json",...n}),accountsCurrenciesSettingsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/settings/`,method:"GET",secure:!0,format:"json",...s}),accountsCurrenciesSettingsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/settings/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),accountsCurrenciesSettingsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/accounts/${t}/currencies/${e}/settings/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),authDeactivateCreate:(e,t={})=>this.request({path:"/3/admin/auth/deactivate/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authDeactivateVerifyCreate:(e,t={})=>this.request({path:"/3/admin/auth/deactivate/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authLoginCreate:(e,t={})=>this.request({path:"/3/admin/auth/login/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authPasswordResetCreate:(e,t={})=>this.request({path:"/3/admin/auth/password/reset/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authPasswordResetConfirmCreate:(e,t={})=>this.request({path:"/3/admin/auth/password/reset/confirm/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRegisterCreate:(e,t={})=>this.request({path:"/3/admin/auth/register/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRequestDeleteCreate:(e,t={})=>this.request({path:"/3/admin/auth/request-delete/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authRequestDeleteVerifyCreate:(e,t={})=>this.request({path:"/3/admin/auth/request-delete/verify/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authenticatorRulesList:(e,t={})=>this.request({path:"/3/admin/authenticator-rules/",method:"GET",query:e,secure:!0,format:"json",...t}),authenticatorRulesCreate:(e,t={})=>this.request({path:"/3/admin/authenticator-rules/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),authenticatorRulesRetrieve:(e,t={})=>this.request({path:`/3/admin/authenticator-rules/${e}/`,method:"GET",secure:!0,format:"json",...t}),authenticatorRulesUpdate:(e,t,s={})=>this.request({path:`/3/admin/authenticator-rules/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),authenticatorRulesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/authenticator-rules/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),authenticatorRulesDestroy:(e,t={})=>this.request({path:`/3/admin/authenticator-rules/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),bankAccountsList:(e,t={})=>this.request({path:"/3/admin/bank-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),bankAccountsCreate:(e,t={})=>this.request({path:"/3/admin/bank-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),bankAccountsRetrieve:(e,t={})=>this.request({path:`/3/admin/bank-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),bankAccountsUpdate:(e,t,s={})=>this.request({path:`/3/admin/bank-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),bankAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/bank-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),bankAccountsDestroy:(e,t={})=>this.request({path:`/3/admin/bank-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),bankAccountsCurrenciesList:({id:e,...t},s={})=>this.request({path:`/3/admin/bank-accounts/${e}/currencies/`,method:"GET",query:t,secure:!0,format:"json",...s}),bankAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/bank-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),bankAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/bank-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),bankAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/bank-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),companyRetrieve:(e={})=>this.request({path:"/3/admin/company/",method:"GET",secure:!0,format:"json",...e}),companyUpdate:(e,t={})=>this.request({path:"/3/admin/company/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),companyPartialUpdate:(e,t={})=>this.request({path:"/3/admin/company/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),companyAddressRetrieve:(e={})=>this.request({path:"/3/admin/company/address/",method:"GET",secure:!0,format:"json",...e}),companyAddressUpdate:(e,t={})=>this.request({path:"/3/admin/company/address/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),companyAddressPartialUpdate:(e,t={})=>this.request({path:"/3/admin/company/address/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),companyLinksList:(e,t={})=>this.request({path:"/3/admin/company/links/",method:"GET",query:e,secure:!0,format:"json",...t}),companyLinksCreate:(e,t={})=>this.request({path:"/3/admin/company/links/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),companyLinksRetrieve:(e,t={})=>this.request({path:`/3/admin/company/links/${e}/`,method:"GET",secure:!0,format:"json",...t}),companyLinksUpdate:(e,t,s={})=>this.request({path:`/3/admin/company/links/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),companyLinksPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/company/links/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),companyLinksDestroy:(e,t={})=>this.request({path:`/3/admin/company/links/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),companySettingsRetrieve:(e={})=>this.request({path:"/3/admin/company/settings/",method:"GET",secure:!0,format:"json",...e}),companySettingsUpdate:(e,t={})=>this.request({path:"/3/admin/company/settings/",method:"PUT",body:e,secure:!0,type:"application/json",format:"json",...t}),companySettingsPartialUpdate:(e,t={})=>this.request({path:"/3/admin/company/settings/",method:"PATCH",body:e,secure:!0,type:"application/json",format:"json",...t}),currenciesList:(e,t={})=>this.request({path:"/3/admin/currencies/",method:"GET",query:e,secure:!0,format:"json",...t}),currenciesCreate:(e,t={})=>this.request({path:"/3/admin/currencies/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),currenciesRetrieve:(e,t={})=>this.request({path:`/3/admin/currencies/${e}/`,method:"GET",secure:!0,format:"json",...t}),currenciesUpdate:(e,t,s={})=>this.request({path:`/3/admin/currencies/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),currenciesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/currencies/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),currenciesOverviewRetrieve:(e,t={})=>this.request({path:`/3/admin/currencies/${e}/overview/`,method:"GET",secure:!0,format:"json",...t}),documentTypesList:(e,t={})=>this.request({path:"/3/admin/document-types/",method:"GET",query:e,secure:!0,format:"json",...t}),documentTypesCreate:(e,t={})=>this.request({path:"/3/admin/document-types/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),documentTypesRetrieve:(e,t={})=>this.request({path:`/3/admin/document-types/${e}/`,method:"GET",secure:!0,format:"json",...t}),documentTypesUpdate:(e,t,s={})=>this.request({path:`/3/admin/document-types/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),documentTypesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/document-types/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),documentTypesDestroy:(e,t={})=>this.request({path:`/3/admin/document-types/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),exportsList:(e,t={})=>this.request({path:"/3/admin/exports/",method:"GET",query:e,secure:!0,format:"json",...t}),exportsCreate:(e,t={})=>this.request({path:"/3/admin/exports/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),exportsRetrieve:(e,t={})=>this.request({path:`/3/admin/exports/${e}/`,method:"GET",secure:!0,format:"json",...t}),exportsDestroy:(e,t={})=>this.request({path:`/3/admin/exports/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),groupsList:(e,t={})=>this.request({path:"/3/admin/groups/",method:"GET",query:e,secure:!0,format:"json",...t}),groupsCreate:(e,t={})=>this.request({path:"/3/admin/groups/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),groupsRetrieve:(e,t={})=>this.request({path:`/3/admin/groups/${e}/`,method:"GET",secure:!0,format:"json",...t}),groupsUpdate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsFeesList:(e,t={})=>this.request({path:`/3/admin/groups/${e}/fees/`,method:"GET",secure:!0,format:"json",...t}),groupsFeesCreate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/fees/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsFeesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/groups/${t}/fees/${e}/`,method:"GET",secure:!0,format:"json",...s}),groupsFeesUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${t}/fees/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsFeesPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${t}/fees/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsFeesDestroy:(e,t,s={})=>this.request({path:`/3/admin/groups/${t}/fees/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),groupsPermissionsList:({groupName:e,...t},s={})=>this.request({path:`/3/admin/groups/${e}/permissions/`,method:"GET",query:t,secure:!0,format:"json",...s}),groupsPermissionsCreate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/permissions/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsPermissionsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/permissions/${t}/`,method:"GET",secure:!0,format:"json",...s}),groupsPermissionsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/permissions/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsPermissionsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/permissions/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsPermissionsDestroy:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/permissions/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),groupsSettingsRetrieve:(e,t={})=>this.request({path:`/3/admin/groups/${e}/settings/`,method:"GET",secure:!0,format:"json",...t}),groupsSettingsUpdate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/settings/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsSettingsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/settings/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsTiersList:({groupName:e,...t},s={})=>this.request({path:`/3/admin/groups/${e}/tiers/`,method:"GET",query:t,secure:!0,format:"json",...s}),groupsTiersCreate:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/tiers/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),groupsTiersRetrieve:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/`,method:"GET",secure:!0,format:"json",...s}),groupsTiersUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsTiersPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsTiersDestroy:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),groupsTiersFeesList:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/fees/`,method:"GET",secure:!0,format:"json",...s}),groupsTiersFeesCreate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/fees/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsTiersFeesRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${t}/tiers/${s}/fees/${e}/`,method:"GET",secure:!0,format:"json",...n}),groupsTiersFeesUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${t}/tiers/${s}/fees/${e}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersFeesPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${t}/tiers/${s}/fees/${e}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersFeesDestroy:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${t}/tiers/${s}/fees/${e}/`,method:"DELETE",secure:!0,format:"json",...n}),groupsTiersLimitsList:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/limits/`,method:"GET",secure:!0,format:"json",...s}),groupsTiersLimitsCreate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/limits/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsTiersLimitsRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/limits/${t}/`,method:"GET",secure:!0,format:"json",...n}),groupsTiersLimitsUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/limits/${t}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersLimitsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/limits/${t}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersLimitsDestroy:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/limits/${t}/`,method:"DELETE",secure:!0,format:"json",...n}),groupsTiersRequirementSetsList:({groupName:e,tierId:t,...s},n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/requirement-sets/`,method:"GET",query:s,secure:!0,format:"json",...n}),groupsTiersRequirementSetsCreate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/requirement-sets/`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsTiersRequirementSetsRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/requirement-sets/${t}/`,method:"GET",secure:!0,format:"json",...n}),groupsTiersRequirementSetsUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/requirement-sets/${t}/`,method:"PUT",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersRequirementSetsPartialUpdate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/requirement-sets/${t}/`,method:"PATCH",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersRequirementSetsDestroy:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/requirement-sets/${t}/`,method:"DELETE",secure:!0,format:"json",...n}),groupsTiersRequirementSetsItemsList:({groupName:e,reqSetId:t,tierId:s,...n},a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/requirement-sets/${t}/items/`,method:"GET",query:n,secure:!0,format:"json",...a}),groupsTiersRequirementSetsItemsCreate:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${s}/requirement-sets/${t}/items/`,method:"POST",body:n,secure:!0,type:"application/json",format:"json",...a}),groupsTiersRequirementSetsItemsRetrieve:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${n}/requirement-sets/${s}/items/${t}/`,method:"GET",secure:!0,format:"json",...a}),groupsTiersRequirementSetsItemsUpdate:(e,t,s,n,a,d={})=>this.request({path:`/3/admin/groups/${e}/tiers/${n}/requirement-sets/${s}/items/${t}/`,method:"PUT",body:a,secure:!0,type:"application/json",format:"json",...d}),groupsTiersRequirementSetsItemsPartialUpdate:(e,t,s,n,a,d={})=>this.request({path:`/3/admin/groups/${e}/tiers/${n}/requirement-sets/${s}/items/${t}/`,method:"PATCH",body:a,secure:!0,type:"application/json",format:"json",...d}),groupsTiersRequirementSetsItemsDestroy:(e,t,s,n,a={})=>this.request({path:`/3/admin/groups/${e}/tiers/${n}/requirement-sets/${s}/items/${t}/`,method:"DELETE",secure:!0,format:"json",...a}),groupsTiersSettingsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/settings/`,method:"GET",secure:!0,format:"json",...s}),groupsTiersSettingsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/settings/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),groupsTiersSettingsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/groups/${e}/tiers/${t}/settings/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),legalTermsList:(e,t={})=>this.request({path:"/3/admin/legal-terms/",method:"GET",query:e,secure:!0,format:"json",...t}),legalTermsCreate:(e,t={})=>this.request({path:"/3/admin/legal-terms/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),legalTermsRetrieve:(e,t={})=>this.request({path:`/3/admin/legal-terms/${e}/`,method:"GET",secure:!0,format:"json",...t}),legalTermsUpdate:(e,t,s={})=>this.request({path:`/3/admin/legal-terms/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),legalTermsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/legal-terms/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),legalTermsDestroy:(e,t={})=>this.request({path:`/3/admin/legal-terms/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),legalTermsVersionsList:({id:e,...t},s={})=>this.request({path:`/3/admin/legal-terms/${e}/versions/`,method:"GET",query:t,secure:!0,format:"json",...s}),legalTermsVersionsCreate:(e,t,s={})=>this.request({path:`/3/admin/legal-terms/${e}/versions/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),legalTermsVersionsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/legal-terms/${e}/versions/${t}/`,method:"GET",secure:!0,format:"json",...s}),legalTermsVersionsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/legal-terms/${e}/versions/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),legalTermsVersionsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/legal-terms/${e}/versions/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),legalTermsVersionsDestroy:(e,t,s={})=>this.request({path:`/3/admin/legal-terms/${e}/versions/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),metricsList:(e,t={})=>this.request({path:"/3/admin/metrics/",method:"GET",query:e,secure:!0,format:"json",...t}),metricsCreate:(e,t={})=>this.request({path:"/3/admin/metrics/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),metricsRetrieve:(e,t={})=>this.request({path:`/3/admin/metrics/${e}/`,method:"GET",secure:!0,format:"json",...t}),metricsDestroy:(e,t={})=>this.request({path:`/3/admin/metrics/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),metricsPointsList:({identifier:e,...t},s={})=>this.request({path:`/3/admin/metrics/${e}/points/`,method:"GET",query:t,secure:!0,format:"json",...s}),oauthClientsList:(e,t={})=>this.request({path:"/3/admin/oauth-clients/",method:"GET",query:e,secure:!0,format:"json",...t}),oauthClientsCreate:(e,t={})=>this.request({path:"/3/admin/oauth-clients/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),oauthClientsRetrieve:(e,t={})=>this.request({path:`/3/admin/oauth-clients/${e}/`,method:"GET",secure:!0,format:"json",...t}),oauthClientsUpdate:(e,t,s={})=>this.request({path:`/3/admin/oauth-clients/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),oauthClientsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/oauth-clients/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),oauthClientsDestroy:(e,t={})=>this.request({path:`/3/admin/oauth-clients/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),permissionsList:(e,t={})=>this.request({path:"/3/admin/permissions/",method:"GET",query:e,secure:!0,format:"json",...t}),permissionsRetrieve:(e,t={})=>this.request({path:`/3/admin/permissions/${e}/`,method:"GET",secure:!0,format:"json",...t}),requestsList:(e,t={})=>this.request({path:"/3/admin/requests/",method:"GET",query:e,secure:!0,format:"json",...t}),requestsRetrieve:(e,t={})=>this.request({path:`/3/admin/requests/${e}/`,method:"GET",secure:!0,format:"json",...t}),searchRetrieve:(e,t={})=>this.request({path:"/3/admin/search/",method:"GET",query:e,secure:!0,format:"json",...t}),servicesList:(e,t={})=>this.request({path:"/3/admin/services/",method:"GET",query:e,secure:!0,format:"json",...t}),servicesCreate:(e,t={})=>this.request({path:"/3/admin/services/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),servicesRetrieve:(e,t={})=>this.request({path:`/3/admin/services/${e}/`,method:"GET",secure:!0,format:"json",...t}),servicesUpdate:(e,t,s={})=>this.request({path:`/3/admin/services/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),servicesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/services/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),servicesDestroy:(e,t={})=>this.request({path:`/3/admin/services/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),servicesPermissionsList:({serviceId:e,...t},s={})=>this.request({path:`/3/admin/services/${e}/permissions/`,method:"GET",query:t,secure:!0,format:"json",...s}),servicesPermissionsCreate:(e,t,s={})=>this.request({path:`/3/admin/services/${e}/permissions/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),servicesPermissionsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/services/${t}/permissions/${e}/`,method:"GET",secure:!0,format:"json",...s}),servicesPermissionsDestroy:(e,t,s={})=>this.request({path:`/3/admin/services/${t}/permissions/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),statementsList:(e,t={})=>this.request({path:"/3/admin/statements/",method:"GET",query:e,secure:!0,format:"json",...t}),statementsCreate:(e,t={})=>this.request({path:"/3/admin/statements/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),statementsRetrieve:(e,t={})=>this.request({path:`/3/admin/statements/${e}/`,method:"GET",secure:!0,format:"json",...t}),statementsDestroy:(e,t={})=>this.request({path:`/3/admin/statements/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),subtypesList:(e,t={})=>this.request({path:"/3/admin/subtypes/",method:"GET",query:e,secure:!0,format:"json",...t}),subtypesCreate:(e,t={})=>this.request({path:"/3/admin/subtypes/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),subtypesRetrieve:(e,t={})=>this.request({path:`/3/admin/subtypes/${e}/`,method:"GET",secure:!0,format:"json",...t}),subtypesUpdate:(e,t,s={})=>this.request({path:`/3/admin/subtypes/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),subtypesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/subtypes/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),subtypesDestroy:(e,t={})=>this.request({path:`/3/admin/subtypes/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),transactionCollectionsList:(e,t={})=>this.request({path:"/3/admin/transaction-collections/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionCollectionsCreate:(e,t={})=>this.request({path:"/3/admin/transaction-collections/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionCollectionsRetrieve:(e,t={})=>this.request({path:`/3/admin/transaction-collections/${e}/`,method:"GET",secure:!0,format:"json",...t}),transactionCollectionsUpdate:(e,t,s={})=>this.request({path:`/3/admin/transaction-collections/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionCollectionsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/transaction-collections/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionCollectionsTransactionsList:({identifier:e,...t},s={})=>this.request({path:`/3/admin/transaction-collections/${e}/transactions/`,method:"GET",query:t,secure:!0,format:"json",...s}),transactionCollectionsTransactionsCreate:(e,t,s={})=>this.request({path:`/3/admin/transaction-collections/${e}/transactions/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionTransitionsList:(e,t={})=>this.request({path:"/3/admin/transaction-transitions/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionTransitionsRetrieve:(e,t={})=>this.request({path:`/3/admin/transaction-transitions/${e}/`,method:"GET",secure:!0,format:"json",...t}),transactionTransitionsUpdate:(e,t,s={})=>this.request({path:`/3/admin/transaction-transitions/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionTransitionsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/transaction-transitions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionsList:(e,t={})=>this.request({path:"/3/admin/transactions/",method:"GET",query:e,secure:!0,format:"json",...t}),transactionsCreate:(e,t={})=>this.request({path:"/3/admin/transactions/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionsRetrieve:(e,t={})=>this.request({path:`/3/admin/transactions/${e}/`,method:"GET",secure:!0,format:"json",...t}),transactionsUpdate:(e,t,s={})=>this.request({path:`/3/admin/transactions/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/transactions/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionsMessagesList:({txCode:e,...t},s={})=>this.request({path:`/3/admin/transactions/${e}/messages/`,method:"GET",query:t,secure:!0,format:"json",...s}),transactionsMessagesCreate:(e,t,s={})=>this.request({path:`/3/admin/transactions/${e}/messages/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),transactionsMessagesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/transactions/${t}/messages/${e}/`,method:"GET",secure:!0,format:"json",...s}),transactionsCreditCreate:(e,t={})=>this.request({path:"/3/admin/transactions/credit/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionsDebitCreate:(e,t={})=>this.request({path:"/3/admin/transactions/debit/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),transactionsTotalsRetrieve:(e={})=>this.request({path:"/3/admin/transactions/totals/",method:"GET",secure:!0,format:"json",...e}),transactionsTransferCreate:(e,t={})=>this.request({path:"/3/admin/transactions/transfer/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersList:(e,t={})=>this.request({path:"/3/admin/users/",method:"GET",query:e,secure:!0,format:"json",...t}),usersCreate:(e,t={})=>this.request({path:"/3/admin/users/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersRetrieve:(e,t={})=>this.request({path:`/3/admin/users/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersGroupsList:({identifier:e,...t},s={})=>this.request({path:`/3/admin/users/${e}/groups/`,method:"GET",query:t,secure:!0,format:"json",...s}),usersGroupsCreate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/groups/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersGroupsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/${t}/groups/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersGroupsDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/${t}/groups/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersLegalTermsList:({identifier:e,...t},s={})=>this.request({path:`/3/admin/users/${e}/legal-terms/`,method:"GET",query:t,secure:!0,format:"json",...s}),usersLegalTermsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/legal-terms/${t}/`,method:"GET",secure:!0,format:"json",...s}),usersLegalTermsVersionsList:({identifier:e,termId:t,...s},n={})=>this.request({path:`/3/admin/users/${e}/legal-terms/${t}/versions/`,method:"GET",query:s,secure:!0,format:"json",...n}),usersLegalTermsVersionsRetrieve:(e,t,s,n={})=>this.request({path:`/3/admin/users/${e}/legal-terms/${t}/versions/${s}/`,method:"GET",secure:!0,format:"json",...n}),usersMessagesList:({identifier:e,...t},s={})=>this.request({path:`/3/admin/users/${e}/messages/`,method:"GET",query:t,secure:!0,format:"json",...s}),usersMessagesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/messages/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersMessagesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/${t}/messages/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersPermissionsList:({identifier:e,...t},s={})=>this.request({path:`/3/admin/users/${e}/permissions/`,method:"GET",query:t,secure:!0,format:"json",...s}),usersPermissionsCreate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/permissions/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersPermissionsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/permissions/${t}/`,method:"GET",secure:!0,format:"json",...s}),usersPermissionsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/users/${e}/permissions/${t}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),usersPermissionsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/users/${e}/permissions/${t}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),usersPermissionsDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/permissions/${t}/`,method:"DELETE",secure:!0,format:"json",...s}),usersSettingsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/${e}/settings/`,method:"GET",secure:!0,format:"json",...t}),usersSettingsUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/settings/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersSettingsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/${e}/settings/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersAddressesList:(e,t={})=>this.request({path:"/3/admin/users/addresses/",method:"GET",query:e,secure:!0,format:"json",...t}),usersAddressesCreate:(e,t={})=>this.request({path:"/3/admin/users/addresses/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersAddressesRetrieve:(e,t={})=>this.request({path:`/3/admin/users/addresses/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersAddressesUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/addresses/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersAddressesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/addresses/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersAddressesDestroy:(e,t={})=>this.request({path:`/3/admin/users/addresses/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersBankAccountsList:(e,t={})=>this.request({path:"/3/admin/users/bank-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),usersBankAccountsCreate:(e,t={})=>this.request({path:"/3/admin/users/bank-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersBankAccountsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersBankAccountsUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersBankAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersBankAccountsDestroy:(e,t={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersBankAccountsAccountCurrenciesList:(e,t={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/account-currencies/`,method:"GET",secure:!0,format:"json",...t}),usersBankAccountsAccountCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/account-currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersBankAccountsAccountCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${t}/account-currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersBankAccountsAccountCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${t}/account-currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersBankAccountsCurrenciesList:(e,t={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/currencies/`,method:"GET",secure:!0,format:"json",...t}),usersBankAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersBankAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersBankAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/bank-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersCryptoAccountsList:(e,t={})=>this.request({path:"/3/admin/users/crypto-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),usersCryptoAccountsCreate:(e,t={})=>this.request({path:"/3/admin/users/crypto-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersCryptoAccountsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersCryptoAccountsUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersCryptoAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersCryptoAccountsDestroy:(e,t={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersCryptoAccountsAccountCurrenciesList:(e,t={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/account-currencies/`,method:"GET",secure:!0,format:"json",...t}),usersCryptoAccountsAccountCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/account-currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersCryptoAccountsAccountCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${t}/account-currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersCryptoAccountsAccountCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${t}/account-currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersCryptoAccountsCurrenciesList:(e,t={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/currencies/`,method:"GET",secure:!0,format:"json",...t}),usersCryptoAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersCryptoAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersCryptoAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/crypto-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersDevicesList:(e,t={})=>this.request({path:"/3/admin/users/devices/",method:"GET",query:e,secure:!0,format:"json",...t}),usersDevicesCreate:(e,t={})=>this.request({path:"/3/admin/users/devices/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersDevicesAppsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/devices/${t}/apps/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersDevicesAppsUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/users/devices/${t}/apps/${e}/`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...n}),usersDevicesAppsPartialUpdate:(e,t,s,n={})=>this.request({path:`/3/admin/users/devices/${t}/apps/${e}/`,method:"PATCH",body:s,secure:!0,type:"application/json",format:"json",...n}),usersDevicesAppsDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/devices/${t}/apps/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersDevicesRetrieve:(e,t={})=>this.request({path:`/3/admin/users/devices/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersDevicesUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/devices/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersDevicesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/devices/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersDevicesDestroy:(e,t={})=>this.request({path:`/3/admin/users/devices/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersDevicesAppsList:({id:e,...t},s={})=>this.request({path:`/3/admin/users/devices/${e}/apps/`,method:"GET",query:t,secure:!0,format:"json",...s}),usersDevicesAppsCreate:(e,t,s={})=>this.request({path:`/3/admin/users/devices/${e}/apps/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersDocumentsList:(e,t={})=>this.request({path:"/3/admin/users/documents/",method:"GET",query:e,secure:!0,format:"json",...t}),usersDocumentsCreate:(e,t={})=>this.request({path:"/3/admin/users/documents/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersDocumentsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/documents/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersDocumentsUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/documents/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersDocumentsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/documents/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersDocumentsDestroy:(e,t={})=>this.request({path:`/3/admin/users/documents/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersEmailsList:(e,t={})=>this.request({path:"/3/admin/users/emails/",method:"GET",query:e,secure:!0,format:"json",...t}),usersEmailsCreate:(e,t={})=>this.request({path:"/3/admin/users/emails/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersEmailsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/emails/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersEmailsUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/emails/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersEmailsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/emails/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersEmailsDestroy:(e,t={})=>this.request({path:`/3/admin/users/emails/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersMfaAuthenticatorsList:(e,t={})=>this.request({path:"/3/admin/users/mfa/authenticators/",method:"GET",query:e,secure:!0,format:"json",...t}),usersMfaAuthenticatorsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/mfa/authenticators/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersMfaAuthenticatorsDestroy:(e,t={})=>this.request({path:`/3/admin/users/mfa/authenticators/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersMobilesList:(e,t={})=>this.request({path:"/3/admin/users/mobiles/",method:"GET",query:e,secure:!0,format:"json",...t}),usersMobilesCreate:(e,t={})=>this.request({path:"/3/admin/users/mobiles/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersMobilesRetrieve:(e,t={})=>this.request({path:`/3/admin/users/mobiles/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersMobilesUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/mobiles/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersMobilesPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/mobiles/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersMobilesDestroy:(e,t={})=>this.request({path:`/3/admin/users/mobiles/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersOverviewRetrieve:(e={})=>this.request({path:"/3/admin/users/overview/",method:"GET",secure:!0,format:"json",...e}),usersTokensList:(e,t={})=>this.request({path:"/3/admin/users/tokens/",method:"GET",query:e,secure:!0,format:"json",...t}),usersTokensCreate:(e,t={})=>this.request({path:"/3/admin/users/tokens/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),adminUsersTokensListDestroy:(e={})=>this.request({path:"/3/admin/users/tokens/",method:"DELETE",secure:!0,format:"json",...e}),usersTokensRetrieve:(e,t={})=>this.request({path:`/3/admin/users/tokens/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersTokensUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/tokens/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersTokensPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/tokens/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersTokensDestroy:(e,t={})=>this.request({path:`/3/admin/users/tokens/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersWalletAccountsList:(e,t={})=>this.request({path:"/3/admin/users/wallet-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),usersWalletAccountsCreate:(e,t={})=>this.request({path:"/3/admin/users/wallet-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),usersWalletAccountsRetrieve:(e,t={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),usersWalletAccountsUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),usersWalletAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),usersWalletAccountsDestroy:(e,t={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),usersWalletAccountsAccountCurrenciesList:(e,t={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/account-currencies/`,method:"GET",secure:!0,format:"json",...t}),usersWalletAccountsAccountCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/account-currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersWalletAccountsAccountCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${t}/account-currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersWalletAccountsAccountCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${t}/account-currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),usersWalletAccountsCurrenciesList:(e,t={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/currencies/`,method:"GET",secure:!0,format:"json",...t}),usersWalletAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),usersWalletAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),usersWalletAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/users/wallet-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),walletAccountsList:(e,t={})=>this.request({path:"/3/admin/wallet-accounts/",method:"GET",query:e,secure:!0,format:"json",...t}),walletAccountsCreate:(e,t={})=>this.request({path:"/3/admin/wallet-accounts/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),walletAccountsRetrieve:(e,t={})=>this.request({path:`/3/admin/wallet-accounts/${e}/`,method:"GET",secure:!0,format:"json",...t}),walletAccountsUpdate:(e,t,s={})=>this.request({path:`/3/admin/wallet-accounts/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),walletAccountsPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/wallet-accounts/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),walletAccountsDestroy:(e,t={})=>this.request({path:`/3/admin/wallet-accounts/${e}/`,method:"DELETE",secure:!0,format:"json",...t}),walletAccountsCurrenciesList:({id:e,...t},s={})=>this.request({path:`/3/admin/wallet-accounts/${e}/currencies/`,method:"GET",query:t,secure:!0,format:"json",...s}),walletAccountsCurrenciesCreate:(e,t,s={})=>this.request({path:`/3/admin/wallet-accounts/${e}/currencies/`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s}),walletAccountsCurrenciesRetrieve:(e,t,s={})=>this.request({path:`/3/admin/wallet-accounts/${t}/currencies/${e}/`,method:"GET",secure:!0,format:"json",...s}),walletAccountsCurrenciesDestroy:(e,t,s={})=>this.request({path:`/3/admin/wallet-accounts/${t}/currencies/${e}/`,method:"DELETE",secure:!0,format:"json",...s}),webhookTasksList:(e,t={})=>this.request({path:"/3/admin/webhook-tasks/",method:"GET",query:e,secure:!0,format:"json",...t}),webhookTasksRetrieve:(e,t={})=>this.request({path:`/3/admin/webhook-tasks/${e}/`,method:"GET",secure:!0,format:"json",...t}),webhookTasksRequestsList:({webhhookTaskId:e,...t},s={})=>this.request({path:`/3/admin/webhook-tasks/${e}/requests/`,method:"GET",query:t,secure:!0,format:"json",...s}),webhookTasksRequestsRetrieve:(e,t,s={})=>this.request({path:`/3/admin/webhook-tasks/${e}/requests/${t}/`,method:"GET",secure:!0,format:"json",...s}),webhooksList:(e,t={})=>this.request({path:"/3/admin/webhooks/",method:"GET",query:e,secure:!0,format:"json",...t}),webhooksCreate:(e,t={})=>this.request({path:"/3/admin/webhooks/",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t}),webhooksRetrieve:(e,t={})=>this.request({path:`/3/admin/webhooks/${e}/`,method:"GET",secure:!0,format:"json",...t}),webhooksUpdate:(e,t,s={})=>this.request({path:`/3/admin/webhooks/${e}/`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s}),webhooksPartialUpdate:(e,t,s={})=>this.request({path:`/3/admin/webhooks/${e}/`,method:"PATCH",body:t,secure:!0,type:"application/json",format:"json",...s}),webhooksDestroy:(e,t={})=>this.request({path:`/3/admin/webhooks/${e}/`,method:"DELETE",secure:!0,format:"json",...t})}}};var U=class extends q{constructor(r){super(r),this.v3&&Object.keys(this.v3).forEach(e=>{typeof this.v3[e]=="function"&&(this[e]=this.v3[e])})}};var W=class{constructor(r={}){this.refreshPromise=null;this.loadAuthStatePromise=null;this.sessions=[];this.activeSessionIndex=-1;this.sessionListeners=[];this.errorListeners=[];this.currentError=null;this.storageKey="rehive_auth_state";this.isRefreshing=!1;this.apiInstances=new Set;this.auth={login:r=>this.login(r),register:r=>this.register(r),registerCompany:r=>this.registerCompany(r),logout:()=>this.logout(),refresh:()=>this.refresh(),getActiveSession:()=>this.getActiveSession(),getSessions:()=>this.getSessions(),getSessionsByCompany:r=>this.getSessionsByCompany(r),switchToSession:(r,e)=>this.switchToSession(r,e),clearAllSessions:()=>this.clearAllSessions(),logoutAll:()=>this.logoutAll(),subscribeToSession:r=>this.subscribeToSession(r),subscribeToErrors:r=>this.subscribeToErrors(r),deleteChallenge:r=>this.deleteChallenge(r)};this.extensions={conversion:(r={})=>this.createConversionApi(r),massSend:(r={})=>this.createMassSendApi(r),notifications:(r={})=>this.createNotificationsApi(r),products:(r={})=>this.createProductsApi(r),rewards:(r={})=>this.createRewardsApi(r),stellar:(r={})=>this.createStellarApi(r),stellarTestnet:(r={})=>this.createStellarTestnetApi(r),business:(r={})=>this.createBusinessApi(r),paymentRequests:(r={})=>this.createPaymentRequestsApi(r),bridge:(r={})=>this.createBridgeApi(r),app:(r={})=>this.createAppApi(r),fetch:(r,e)=>this.authenticatedFetch(r,e)};this.config=r,this.storage=r.storage||this.getDefaultStorage(),this.enableCrossTabSync=r.enableCrossTabSync??!0,this.user=new L({baseUrl:r.baseUrl||"",securityWorker:this.createSecurityWorker()}),this.admin=new U({baseUrl:r.baseUrl||"",securityWorker:this.createSecurityWorker()}),this.apiInstances.add(this.user),this.apiInstances.add(this.admin),r.token?this.setPermanentToken(r.token):this.initializeClientAuth().catch(console.error)}setPermanentToken(r){this.syncTokensToAllInstances(r,null)}async initializeClientAuth(){this.enableCrossTabSync&&this.setupCrossTabSync(),await this.loadAuthState();let r=this.getActiveSession();r&&this.syncTokensToAllInstances(r.token,r.expires),this.notifySessionListeners()}createSecurityWorker(){return async r=>{if(this.config.token)return{headers:{Authorization:`Token ${this.config.token}`}};if(this.isRefreshing&&r)return{headers:{Authorization:r}};let e=this.getActiveSession();if(e){if(e.expires&&this.isTokenExpired(e.expires)){await this.refresh();let n=this.getActiveSession()?.token;return n?{headers:{Authorization:`Token ${n}`}}:{}}return{headers:{Authorization:r||`Token ${e.token}`}}}return{}}}getDefaultStorage(){return typeof window<"u"?new D:new _}setupCrossTabSync(){if(typeof window<"u"){let r=e=>{if(e.key===this.storageKey&&e.newValue)try{let t=JSON.parse(e.newValue);this.sessions=Array.isArray(t.sessions)?t.sessions:[],this.activeSessionIndex=typeof t.activeSessionIndex=="number"?t.activeSessionIndex:-1,this.notifySessionListeners()}catch(t){console.error("Failed to sync auth state from storage event:",t)}};window.addEventListener("storage",r)}}async loadAuthState(){if(this.loadAuthStatePromise)return this.loadAuthStatePromise;this.loadAuthStatePromise=(async()=>{let r={sessions:[],activeSessionIndex:-1};try{let e=await this.storage.getItem(this.storageKey);if(e){let t=JSON.parse(e);r.sessions=Array.isArray(t.sessions)?t.sessions:[],r.activeSessionIndex=typeof t.activeSessionIndex=="number"?t.activeSessionIndex:-1}}catch(e){console.error("Failed to load auth state:",e)}return this.sessions=r.sessions,this.activeSessionIndex=r.activeSessionIndex,r})();try{return await this.loadAuthStatePromise}finally{this.loadAuthStatePromise=null}}async saveAuthState(r){try{await this.storage.setItem(this.storageKey,JSON.stringify(r)),this.sessions=r.sessions,this.activeSessionIndex=r.activeSessionIndex,this.notifySessionListeners()}catch(e){console.error("Failed to save auth state:",e)}}notifySessionListeners(){let r=this.getActiveSession();this.syncTokensToAllInstances(r?.token||null,r?.expires),this.sessionListeners.forEach(e=>e(r))}notifyErrorListeners(r){this.currentError=r,this.errorListeners.forEach(e=>e(r))}syncTokensToAllInstances(r,e){for(let t of this.apiInstances)r?(t.setSecurityData(`Token ${r}`),e&&typeof t.setExpires=="function"&&t.setExpires(e)):(t.setSecurityData(null),typeof t.setExpires=="function"&&t.setExpires(null))}isTokenExpired(r){return Date.now()>=r-30*1e3}getActiveSession(){return this.activeSessionIndex>=0&&this.activeSessionIndex<this.sessions.length?this.sessions[this.activeSessionIndex]:null}getCurrentError(){return this.currentError}createExtensionApi(r,e={baseUrl:""}){let t=new r({...e,securityWorker:this.createSecurityWorker(),refreshCallback:()=>this.isRefreshing?Promise.resolve():this.refresh()});this.apiInstances.add(t);let s=this.getActiveSession();return s&&(typeof t.setSecurityData=="function"&&t.setSecurityData(`Token ${s.token}`),s.expires&&typeof t.setExpires=="function"&&t.setExpires(s.expires)),t}createConversionApi(r={}){let{Api:e}=(oe(),C(ie));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://conversion.services.rehive.com/api/"})}createMassSendApi(r={}){let{Api:e}=(de(),C(ce));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://mass-send.services.rehive.com/api/"})}createNotificationsApi(r={}){let{Api:e}=(le(),C(me));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://notification.services.rehive.com/api/"})}createProductsApi(r={}){let{Api:e}=(Ae(),C(ye));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://product.services.rehive.com/api/"})}createRewardsApi(r={}){let{Api:e}=(Re(),C(he));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://reward.services.rehive.com/api/"})}createStellarApi(r={}){let{Api:e}=(fe(),C(Ce));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://stellar.services.rehive.com/api/"})}createStellarTestnetApi(r={}){let{Api:e}=(_e(),C(De));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://stellar-testnet.services.rehive.com/api/"})}createBusinessApi(r={}){let{Api:e}=(xe(),C(Ue));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://business.services.rehive.com/api/"})}createPaymentRequestsApi(r={}){let{Api:e}=(Me(),C(qe));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://payment-requests.services.rehive.com/api/"})}createBridgeApi(r={}){let{Api:e}=(Ee(),C(ve));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://bridge.services.rehive.com/api/"})}createAppApi(r={}){let{Api:e}=(Ie(),C(Be));return this.createExtensionApi(e,{baseUrl:r.baseUrl||"https://app.services.rehive.com/api/"})}async authenticatedFetch(r,e={}){let s=await this.createSecurityWorker()(null),n=new Headers(e.headers);return s?.headers?.Authorization&&n.set("Authorization",s.headers.Authorization),fetch(r,{...e,headers:n})}async login(r){try{let e=r.session_duration??900,t={user:r.user,session_duration:e,password:r.password,company:r.company,auth_method:"token"},s=await this.user.authLogin(t);if(!s.data)throw new Error("Response data is missing");let n=s.data,a={user:n.user,token:n.token,refresh_token:n.refresh_token,challenges:n.challenges,expires:n.expires,session_duration:e,company:r.company},d=await this.loadAuthState(),o=d.sessions.findIndex(A=>A.user.id===a.user.id&&A.company===a.company),P;if(o!==-1){let A=[...d.sessions];A[o]=a,P={...d,sessions:A,activeSessionIndex:o}}else P={sessions:[...d.sessions,a],activeSessionIndex:d.sessions.length};return await this.saveAuthState(P),this.syncTokensToAllInstances(a.token,a.expires),this.notifyErrorListeners(null),a}catch(e){let t=e instanceof f?e:new Error("Login failed");throw this.notifyErrorListeners(t),e}}async register(r){try{let e=r.session_duration??900,t={email:r.email,session_duration:e,password:r.password,company:r.company,password1:r.password,password2:r.password,terms_and_conditions:r.terms_and_conditions,privacy_policy:r.privacy_policy},s=await this.user.authRegister(t);if(!s.data)throw new Error("Response data is missing");let n=s.data,a={user:n.user,token:n.token,refresh_token:n.refresh_token,challenges:n.challenges,expires:n.expires,session_duration:e,company:r.company},d=await this.loadAuthState(),o={sessions:[...d.sessions,a],activeSessionIndex:d.sessions.length};await this.saveAuthState(o),this.notifyErrorListeners(null)}catch(e){let t=e instanceof f?e:new Error("Registration failed");throw this.notifyErrorListeners(t),e}}async registerCompany(r){try{let e=await this.user.authRegisterCompany(r);if(!e.data)throw new Error("Response data is missing");let t=e.data,s={user:t.user,token:t.token,refresh_token:t.refresh_token,challenges:t.challenges,expires:t.expires,session_duration:900,company:r.company.id},n=await this.loadAuthState(),a={sessions:[...n.sessions,s],activeSessionIndex:n.sessions.length};await this.saveAuthState(a),this.notifyErrorListeners(null)}catch(e){let t=e instanceof f?e:new Error("Company registration failed");throw this.notifyErrorListeners(t),e}}async logout(){let r=await this.loadAuthState(),e={...r,sessions:r.sessions.filter((t,s)=>s!==r.activeSessionIndex),activeSessionIndex:-1};try{await this.user.authLogout({clear_session_option:"none"})}catch(t){console.warn("Logout API call failed, continuing with local logout:",t)}await this.saveAuthState(e),this.syncTokensToAllInstances(null),this.notifyErrorListeners(null)}async refresh(){return this.refreshPromise?this.refreshPromise:(this.refreshPromise=(async()=>{this.isRefreshing=!0;try{let r=await this.loadAuthState(),e=r.activeSessionIndex,t=r.sessions[e];if(!t||!t.token||!t.refresh_token)throw new Error("No active session, token, or refresh token found");this.user.setSecurityData(`Refresh-Token ${t.refresh_token}`);let s=await this.user.authRefreshCreate({session_duration:t.session_duration??900});if(!s.data)throw new Error("Refresh response data is missing");let n=s.data,a=[...r.sessions];a[e]={...t,refresh_token:n.refresh_token,expires:n.expires,session_duration:t.session_duration??900,company:t.company};let d={...r,sessions:a};await this.saveAuthState(d),this.syncTokensToAllInstances(t.token,n.expires),this.notifyErrorListeners(null)}catch(r){let e=r instanceof f?r:new Error("Refresh failed");this.notifyErrorListeners(e);let t=await this.loadAuthState(),s={...t,sessions:t.sessions.filter((n,a)=>a!==t.activeSessionIndex),activeSessionIndex:-1};throw await this.saveAuthState(s),this.syncTokensToAllInstances(null),r}finally{this.isRefreshing=!1,this.refreshPromise=null}})(),this.refreshPromise)}subscribeToSession(r){return this.sessionListeners.push(r),()=>{this.sessionListeners=this.sessionListeners.filter(e=>e!==r)}}subscribeToErrors(r){return this.errorListeners.push(r),()=>{this.errorListeners=this.errorListeners.filter(e=>e!==r)}}async deleteChallenge(r){let e=await this.loadAuthState(),t=e.activeSessionIndex;if(t>=0&&t<e.sessions.length){let s=e.sessions[t],n={...s,challenges:s.challenges?.filter(o=>o.id!==r)||[]},a=[...e.sessions];a[t]=n;let d={...e,sessions:a};await this.saveAuthState(d)}}getSessions(){return[...this.sessions]}getSessionsByCompany(r){return this.sessions.filter(e=>e.company===r)}async switchToSession(r,e){let t=await this.loadAuthState(),s=t.sessions.findIndex(d=>d.user.id===r&&d.company===e);if(s===-1)return null;let n=t.sessions[s],a={...t,activeSessionIndex:s};return await this.saveAuthState(a),n.expires&&this.isTokenExpired(n.expires)?(await this.refresh(),this.getActiveSession()):(this.syncTokensToAllInstances(n.token,n.expires),this.notifySessionListeners(),n)}async clearAllSessions(){let r={sessions:[],activeSessionIndex:-1};await this.saveAuthState(r),this.syncTokensToAllInstances(null),this.notifyErrorListeners(null)}async logoutAll(){let t=(await this.loadAuthState()).sessions.map(async n=>{try{this.user.setSecurityData(`Token ${n.token}`),await this.user.authLogout({clear_session_option:"none"})}catch(a){console.warn("Logout API call failed for session:",n.user.id,a)}});await Promise.all(t);let s={sessions:[],activeSessionIndex:-1};await this.saveAuthState(s),this.syncTokensToAllInstances(null),this.notifyErrorListeners(null)}};G();0&&(module.exports={ApiError,AsyncStorageAdapter,MemoryStorageAdapter,RehiveClient,RehivePlatformAdminApi,RehivePlatformUserApi,WebStorageAdapter});
|