PageSourceSearch

https://infrared.finance/_next/static/chunks/5eee4d15-8c97e0730bcd726e.js?dpl=dpl_J8s7dhV3pnjLJvkh4T8ae8F5JfcE

js infrared.finance collected 2026-09-28 11:55:15 UTC 232,495 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2765],{73405:(e,n,t)=>{t.d(n,{l:()=>nN});var r=t(56007),a=t(42175),i=t(68569);t(98448),t(80772),t(54490),t(64606),t(58678),t(38555),t(59484);var o=t(25564),s=t(4192);t(65936);var d=t(96261);t(26612),t(49229);var l=t(70975),u=t(10743);t(72886),t(1568),t(24891),t(29652),t(2224),t(15016),t(45121),t(62392),t(68225),t(20033),t(2583),t(56513),t(54883),t(39680),t(51029),t(61174),t(95899),t(48210),t(48669),t(57513),t(99756);var c=t(8388),m=t(89489),w=t(85299);t(20688),t(36575);var h=t(12635),v=t(57053);t(27494),t(94721);var p=t(97864);t(16771);var I=t(57012),R=t(98811),g=t(99691);t(1261),t(33531);var f=t(35089),q=t(12887),y=t(21397),k=t(88527),O=t(6681),T=t(60427);t(77597),t(7388);var S=t(89132),P=t(23373),C=t(13934),U=t(85402),A=t(46619);t(1347),t(51582);var b=t(32205),Q=t(75460),W=t(84131),E=t(73714),K=t(19357),D=t(63655);t(75402);var V=t(17878),x=t(83616),N=t(268),M=t(64868),B=t(33564),z=t(13955),j=t(41810);t(99933);var $=t(49742),G=t(74131),L=t(85343);t(12148),t(97664),t(29361);var F=t(15047),H=t(80437),J=t(58670),Y=t(76254),X=t(5136),_=t(87360);t(41261),t(68062);var Z=t(66572);t(67873);var ee=t(67773),en=t(40153),et=t(80903),er=t(80749);t(24788);var ea=t(75290),ei=t(73739);t(24637);var eo=t(82584),es=t(54141);t(22148);var ed=t(45224),el=t(9753),eu=t(75851),ec=t(57838),em=t(16962),ew=t(23726);t(23051),t(39308),t(57365),t(252);var eh=t(40907),ev=t(80744),ep=t(77174),eI=t(58108),eR=t(66662),eg=t(53326),ef=t(76707),eq=t(36641),ey=t(65822),ek=t(80466),eO=t(33847),eT=t(20563);t(51826);var eS=t(10350),eP=t(14660);t(65177);var eC=t(32296),eU=t(70215),eA=t(34669);t(7038);var eb=t(87415);t(7873);var eQ=t(50192),eW=t(63247),eE=t(38744),eK=t(58072),eD=t(99248),eV=t(76187),ex=t(33565);t(49380);var eN=t(8292),eM=t(6509),eB=t(40274);t(26285),t(92816),t(35389);var ez=t(338),ej=t(58388),e$=t(80251),eG=t(88776);t(59730),t(12709),t(48356),t(92705),t(90720),t(70689),t(10432);var eL=t(43550);t(7339);var eF=t(73689),eH=t(96735),eJ=t(49393),eY=t(38379),eX=t(95533),e_=t(95742),eZ=t(85447),e0=t(29585);t(22986);var e8=t(8564),e2=t(31368),e5=t(16750),e3=t(88329),e7=t(22945),e6=t(95915),e4=t(20493),e1=t(77711),e9=t(35563),ne=t(78893),nn=t(64953),nt=t(71144),nr=t(97570),na=t(9678),ni=t(69023),no=t(16121);t(8235);var ns=t(28212),nd=t(46161),nl=t(17150),nu=t(85202),nc=t(2355),nm=t(82975),nw=t(51254),nh=t(34234),nv=t(33182),np=t(1458),nI=t(48358);t(18727);var nR=t(53635),ng=t(72885),nf=t(66894),nq=t(3357),ny=t(25972);t(54586);var nk=t(94499),nO=t(94824),nT=t(51347),nS=t(53562),nP=t(37462),nC=t(50983),nU=t(64610);t(20891);var nA=t(48921),nb=t(67462),nQ=t(6901),nW=t(34525),nE=t(11370),nK=t(72742),nD=t(15863);t(67786);var nV=t(39250);t(55143);var nx=t(51663);class nN extends r.yi{async attachSourceRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling attachSource.");if(null===e.transactionId||void 0===e.transactionId)throw new r.Q0("transactionId","Required parameter requestParameters.transactionId was null or undefined when calling attachSource.");if(null===e.xDynamicCheckoutSessionToken||void 0===e.xDynamicCheckoutSessionToken)throw new r.Q0("xDynamicCheckoutSessionToken","Required parameter requestParameters.xDynamicCheckoutSessionToken was null or undefined when calling attachSource.");if(null===e.attachSourceRequest||void 0===e.attachSourceRequest)throw new r.Q0("attachSourceRequest","Required parameter requestParameters.attachSourceRequest was null or undefined when calling attachSource.");let t={};t["Content-Type"]="application/json",void 0!==e.xDynamicCheckoutSessionToken&&null!==e.xDynamicCheckoutSessionToken&&(t["X-Dynamic-Checkout-Session-Token"]=String(e.xDynamicCheckoutSessionToken));let a=await this.request({path:"/sdk/{environmentId}/transactions/{transactionId}/source".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{transactionId}",encodeURIComponent(String(e.transactionId))),method:"POST",headers:t,query:{},body:(0,i.D9)(e.attachSourceRequest)},n);return new r.ko(a,e=>(0,c.HF)(e))}async attachSource(e,n){let t=await this.attachSourceRaw(e,n);return await t.value()}async attachSourceOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling attachSourceOptions.");if(null===e.transactionId||void 0===e.transactionId)throw new r.Q0("transactionId","Required parameter requestParameters.transactionId was null or undefined when calling attachSourceOptions.");let t=await this.request({path:"/sdk/{environmentId}/transactions/{transactionId}/source".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{transactionId}",encodeURIComponent(String(e.transactionId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async attachSourceOptions(e,n){await this.attachSourceOptionsRaw(e,n)}async authMfaEmailDeviceOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling authMfaEmailDeviceOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/mfa/auth/email".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async authMfaEmailDeviceOptions(e,n){await this.authMfaEmailDeviceOptionsRaw(e,n)}async authMfaPasskeyDeviceOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling authMfaPasskeyDeviceOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/mfa/auth/passkey".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async authMfaPasskeyDeviceOptions(e,n){await this.authMfaPasskeyDeviceOptionsRaw(e,n)}async authMfaRecoveryRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling authMfaRecovery.");if(null===e.mFAAuthRecoveryDevicePostRequest||void 0===e.mFAAuthRecoveryDevicePostRequest)throw new r.Q0("mFAAuthRecoveryDevicePostRequest","Required parameter requestParameters.mFAAuthRecoveryDevicePostRequest was null or undefined when calling authMfaRecovery.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa/auth/recovery".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,ev.CP)(e.mFAAuthRecoveryDevicePostRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async authMfaRecovery(e,n){let t=await this.authMfaRecoveryRaw(e,n);return await t.value()}async authMfaRecoveryOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling authMfaRecoveryOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/mfa/auth/recovery".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async authMfaRecoveryOptions(e,n){await this.authMfaRecoveryOptionsRaw(e,n)}async authMfaTotpDeviceRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling authMfaTotpDevice.");if(null===e.mFAAuthTotpDevicePostRequest||void 0===e.mFAAuthTotpDevicePostRequest)throw new r.Q0("mFAAuthTotpDevicePostRequest","Required parameter requestParameters.mFAAuthTotpDevicePostRequest was null or undefined when calling authMfaTotpDevice.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa/auth/totp".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,ep.wl)(e.mFAAuthTotpDevicePostRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async authMfaTotpDevice(e,n){let t=await this.authMfaTotpDeviceRaw(e,n);return await t.value()}async authMfaTotpDeviceOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling authMfaTotpDeviceOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/mfa/auth/totp".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async authMfaTotpDeviceOptions(e,n){await this.authMfaTotpDeviceOptionsRaw(e,n)}async authenticateMfaEmailRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling authenticateMfaEmail.");if(null===e.emailVerificationMfaRequest||void 0===e.emailVerificationMfaRequest)throw new r.Q0("emailVerificationMfaRequest","Required parameter requestParameters.emailVerificationMfaRequest was null or undefined when calling authenticateMfaEmail.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa/auth/email".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,M.KA)(e.emailVerificationMfaRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async authenticateMfaEmail(e,n){let t=await this.authenticateMfaEmailRaw(e,n);return await t.value()}async authenticateMfaPasskeyDeviceRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling authenticateMfaPasskeyDevice.");if(null===e.passkeyAuthRequest||void 0===e.passkeyAuthRequest)throw new r.Q0("passkeyAuthRequest","Required parameter requestParameters.passkeyAuthRequest was null or undefined when calling authenticateMfaPasskeyDevice.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa/auth/passkey".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,eh.JS)(e.passkeyAuthRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async authenticateMfaPasskeyDevice(e,n){let t=await this.authenticateMfaPasskeyDeviceRaw(e,n);return await t.value()}async authenticatePasskeyOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling authenticatePasskeyOptions.");let t={};void 0!==e.relatedOriginRpId&&(t.relatedOriginRpId=e.relatedOriginRpId);let a=await this.request({path:"/sdk/{environmentId}/users/passkeys/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:t},n);return new r.cK(a)}async authenticatePasskeyOptions(e,n){await this.authenticatePasskeyOptionsRaw(e,n)}async backupKeySharesToGoogleDriveRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToGoogleDrive.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToGoogleDrive.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/keyShares/backup/googleDrive".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"POST",headers:t,query:{}},n);return new r.ko(a,e=>(0,u.QA)(e))}async backupKeySharesToGoogleDrive(e,n){let t=await this.backupKeySharesToGoogleDriveRaw(e,n);return await t.value()}async backupKeySharesToGoogleDriveOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToGoogleDriveOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToGoogleDriveOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/keyShares/backup/googleDrive".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async backupKeySharesToGoogleDriveOptions(e,n){await this.backupKeySharesToGoogleDriveOptionsRaw(e,n)}async backupKeySharesToLocationRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocation.");
1if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocation.");if(null===e.backupKeySharesToLocationRequest||void 0===e.backupKeySharesToLocationRequest)throw new r.Q0("backupKeySharesToLocationRequest","Required parameter requestParameters.backupKeySharesToLocationRequest was null or undefined when calling backupKeySharesToLocation.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/keyShares/backup/location".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"POST",headers:t,query:{},body:(0,o.YY)(e.backupKeySharesToLocationRequest)},n);return new r.ko(a,e=>(0,s.Je)(e))}async backupKeySharesToLocation(e,n){let t=await this.backupKeySharesToLocationRaw(e,n);return await t.value()}async backupKeySharesToLocationOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocationOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocationOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/keyShares/backup/location".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async backupKeySharesToLocationOptions(e,n){await this.backupKeySharesToLocationOptionsRaw(e,n)}async backupKeySharesToLocationsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocations.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocations.");if(null===e.backupKeySharesToLocationsRequest||void 0===e.backupKeySharesToLocationsRequest)throw new r.Q0("backupKeySharesToLocationsRequest","Required parameter requestParameters.backupKeySharesToLocationsRequest was null or undefined when calling backupKeySharesToLocations.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/keyShares/backup/locations".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"POST",headers:t,query:{},body:(0,d.vr)(e.backupKeySharesToLocationsRequest)},n);return new r.ko(a,e=>(0,l.eg)(e))}async backupKeySharesToLocations(e,n){let t=await this.backupKeySharesToLocationsRaw(e,n);return await t.value()}async backupKeySharesToLocationsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocationsOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocationsOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/keyShares/backup/locations".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async backupKeySharesToLocationsOptions(e,n){await this.backupKeySharesToLocationsOptionsRaw(e,n)}async broadcastCheckoutTransactionOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling broadcastCheckoutTransactionOptions.");if(null===e.transactionId||void 0===e.transactionId)throw new r.Q0("transactionId","Required parameter requestParameters.transactionId was null or undefined when calling broadcastCheckoutTransactionOptions.");let t=await this.request({path:"/sdk/{environmentId}/transactions/{transactionId}/broadcast".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{transactionId}",encodeURIComponent(String(e.transactionId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async broadcastCheckoutTransactionOptions(e,n){await this.broadcastCheckoutTransactionOptionsRaw(e,n)}async cancelCheckoutTransactionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling cancelCheckoutTransaction.");
1if(null===e.transactionId||void 0===e.transactionId)throw new r.Q0("transactionId","Required parameter requestParameters.transactionId was null or undefined when calling cancelCheckoutTransaction.");if(null===e.xDynamicCheckoutSessionToken||void 0===e.xDynamicCheckoutSessionToken)throw new r.Q0("xDynamicCheckoutSessionToken","Required parameter requestParameters.xDynamicCheckoutSessionToken was null or undefined when calling cancelCheckoutTransaction.");let t={};void 0!==e.xDynamicCheckoutSessionToken&&null!==e.xDynamicCheckoutSessionToken&&(t["X-Dynamic-Checkout-Session-Token"]=String(e.xDynamicCheckoutSessionToken));let a=await this.request({path:"/sdk/{environmentId}/transactions/{transactionId}/cancel".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{transactionId}",encodeURIComponent(String(e.transactionId))),method:"POST",headers:t,query:{}},n);return new r.ko(a,e=>(0,c.HF)(e))}async cancelCheckoutTransaction(e,n){let t=await this.cancelCheckoutTransactionRaw(e,n);return await t.value()}async cancelCheckoutTransactionOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling cancelCheckoutTransactionOptions.");if(null===e.transactionId||void 0===e.transactionId)throw new r.Q0("transactionId","Required parameter requestParameters.transactionId was null or undefined when calling cancelCheckoutTransactionOptions.");let t=await this.request({path:"/sdk/{environmentId}/transactions/{transactionId}/cancel".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{transactionId}",encodeURIComponent(String(e.transactionId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async cancelCheckoutTransactionOptions(e,n){await this.cancelCheckoutTransactionOptionsRaw(e,n)}async cbOauthRedirectRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling cbOauthRedirect.");let t={};void 0!==e.code&&(t.code=e.code),void 0!==e.scope&&(t.scope=e.scope),void 0!==e.state&&(t.state=e.state),void 0!==e.authuser&&(t.authuser=e.authuser),void 0!==e.prompt&&(t.prompt=e.prompt),void 0!==e.error&&(t.error=e.error);let a=await this.request({path:"/sdk/{environmentId}/providers/cbOauthRedirectUrl".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:t},n);return new r.Pf(a)}async cbOauthRedirect(e,n){let t=await this.cbOauthRedirectRaw(e,n);return await t.value()}async cbOauthRedirectOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling cbOauthRedirectOptions.");let t=await this.request({path:"/sdk/{environmentId}/providers/cbOauthRedirectUrl".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async cbOauthRedirectOptions(e,n){await this.cbOauthRedirectOptionsRaw(e,n)}
1async checkSsoProviderRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling checkSsoProvider.");if(null===e.ssoProviderCheckRequest||void 0===e.ssoProviderCheckRequest)throw new r.Q0("ssoProviderCheckRequest","Required parameter requestParameters.ssoProviderCheckRequest was null or undefined when calling checkSsoProvider.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/ssoProvider".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,ns.p3)(e.ssoProviderCheckRequest)},n);return new r.ko(a,e=>(0,nd.Eu)(e))}async checkSsoProvider(e,n){let t=await this.checkSsoProviderRaw(e,n);return await t.value()}async checkWalletSanctionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling checkWalletSanctions.");if(null===e.walletAddress||void 0===e.walletAddress)throw new r.Q0("walletAddress","Required parameter requestParameters.walletAddress was null or undefined when calling checkWalletSanctions.");if(null===e.chain||void 0===e.chain)throw new r.Q0("chain","Required parameter requestParameters.chain was null or undefined when calling checkWalletSanctions.");let t={};void 0!==e.walletAddress&&(t.walletAddress=e.walletAddress),void 0!==e.chain&&(t.chain=e.chain);let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(a.Authorization=`Bearer ${n}`)}let i=await this.request({path:"/sdk/{environmentId}/wallet/sanctions".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:a,query:t},n);return new r.ko(i,e=>(0,nV.Jd)(e))}async checkWalletSanctions(e,n){let t=await this.checkWalletSanctionsRaw(e,n);return await t.value()}async checkWalletSanctionsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling checkWalletSanctionsOptions.");let t=await this.request({path:"/sdk/{environmentId}/wallet/sanctions".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async checkWalletSanctionsOptions(e,n){await this.checkWalletSanctionsOptionsRaw(e,n)}async claimEmbeddedWalletRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling claimEmbeddedWallet.");if(null===e.embeddedWalletPasscodeClaimRequest||void 0===e.embeddedWalletPasscodeClaimRequest)throw new r.Q0("embeddedWalletPasscodeClaimRequest","Required parameter requestParameters.embeddedWalletPasscodeClaimRequest was null or undefined when calling claimEmbeddedWallet.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/passcode/claim".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"PUT",headers:t,query:{},body:(0,$.KU)(e.embeddedWalletPasscodeClaimRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async claimEmbeddedWallet(e,n){let t=await this.claimEmbeddedWalletRaw(e,n);return await t.value()}async claimEmbeddedWalletOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling claimEmbeddedWalletOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/passcode/claim".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async claimEmbeddedWalletOptions(e,n){await this.claimEmbeddedWalletOptionsRaw(e,n)}async coinbaseBuyOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling coinbaseBuyOptions.");let t=await this.request({path:"/sdk/{environmentId}/onramps/coinbase/buy".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async coinbaseBuyOptions(e,n){await this.coinbaseBuyOptionsRaw(e,n)}async coinbaseNetworksOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling coinbaseNetworksOptions.");let t=await this.request({path:"/sdk/{environmentId}/onramps/coinbase/networks".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async coinbaseNetworksOptions(e,n){await this.coinbaseNetworksOptionsRaw(e,n)}async coinbaseOrdersOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling coinbaseOrdersOptions.");let t=await this.request({path:"/sdk/{environmentId}/onramps/coinbase/orders".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async coinbaseOrdersOptions(e,n){await this.coinbaseOrdersOptionsRaw(e,n)}async completePasskeyRecoveryRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling completePasskeyRecovery.");if(null===e.completePasskeyRecoveryRequest||void 0===e.completePasskeyRecoveryRequest)throw new r.Q0("c
1ompletePasskeyRecoveryRequest","Required parameter requestParameters.completePasskeyRecoveryRequest was null or undefined when calling completePasskeyRecovery.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/passkeyRecovery".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"PUT",headers:t,query:{},body:(0,R.jr)(e.completePasskeyRecoveryRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async completePasskeyRecovery(e,n){let t=await this.completePasskeyRecoveryRaw(e,n);return await t.value()}async createCheckoutTransactionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createCheckoutTransaction.");if(null===e.checkoutId||void 0===e.checkoutId)throw new r.Q0("checkoutId","Required parameter requestParameters.checkoutId was null or undefined when calling createCheckoutTransaction.");if(null===e.checkoutTransactionCreateRequest||void 0===e.checkoutTransactionCreateRequest)throw new r.Q0("checkoutTransactionCreateRequest","Required parameter requestParameters.checkoutTransactionCreateRequest was null or undefined when calling createCheckoutTransaction.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/checkouts/{checkoutId}/transactions".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{checkoutId}",encodeURIComponent(String(e.checkoutId))),method:"POST",headers:t,query:{},body:(0,m.BN)(e.checkoutTransactionCreateRequest)},n);return new r.ko(a,e=>(0,w.qJ)(e))}async createCheckoutTransaction(e,n){let t=await this.createCheckoutTransactionRaw(e,n);return await t.value()}async createCheckoutTransactionOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createCheckoutTransactionOptions.");if(null===e.checkoutId||void 0===e.checkoutId)throw new r.Q0("checkoutId","Required parameter requestParameters.checkoutId was null or undefined when calling createCheckoutTransactionOptions.");let t=await this.request({path:"/sdk/{environmentId}/checkouts/{checkoutId}/transactions".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{checkoutId}",encodeURIComponent(String(e.checkoutId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async createCheckoutTransactionOptions(e,n){await this.createCheckoutTransactionOptionsRaw(e,n)}async createCoinbaseOnrampOrderRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createCoinbaseOnrampOrder.");if(null===e.coinbaseOnrampOrderCreateRequest||void 0===e.coinbaseOnrampOrderCreateRequest)throw new r.Q0("coinbaseOnrampOrderCreateRequest","Required parameter requestParameters.coinbaseOnrampOrderCreateRequest was null or undefined when calling createCoinbaseOnrampOrder.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/onramps/coinbase/orders".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,p.oG)(e.coinbaseOnrampOrderCreateRequest)},n);return new r.ko(a,e=>(0,I.V)(e))}async createCoinbaseOnrampOrder(e,n){let t=await this.createCoinbaseOnrampOrderRaw(e,n);return await t.value()}async createCryptoDotComPaymentRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createCryptoDotComPayment.");if(null===e.cryptoDotComPaymentCreateRequest||void 0===e.cryptoDotComPaymentCreateRequest)throw new r.Q0("cryptoDotComPaymentCreateRequest","Required parameter requestParameters.cryptoDotComPaymentCreateRequest was null or undefined when calling createCryptoDotComPayment.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/onramps/cryptoDotCom/payment".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,C.W4)(e.cryptoDotComPaymentCreateRequest)},n);return new r.ko(a,e=>(0,U.vU)(e))}async createCryptoDotComPayment(e,n){let t=await this.createCryptoDotComPaymentRaw(e,n);return await t.value()}async createEmailVerificationRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createEmailVerification.");
1if(null===e.emailVerificationCreateRequest||void 0===e.emailVerificationCreateRequest)throw new r.Q0("emailVerificationCreateRequest","Required parameter requestParameters.emailVerificationCreateRequest was null or undefined when calling createEmailVerification.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/emailVerifications/create".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,x.k)(e.emailVerificationCreateRequest)},n);return new r.ko(a,e=>(0,N.VK)(e))}async createEmailVerification(e,n){let t=await this.createEmailVerificationRaw(e,n);return await t.value()}async createEmailVerificationOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createEmailVerificationOptions.");let t=await this.request({path:"/sdk/{environmentId}/emailVerifications/create".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async createEmailVerificationOptions(e,n){await this.createEmailVerificationOptionsRaw(e,n)}async createEmbeddedWalletsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createEmbeddedWallets.");if(null===e.createEmbeddedWalletsRequest||void 0===e.createEmbeddedWalletsRequest)throw new r.Q0("createEmbeddedWalletsRequest","Required parameter requestParameters.createEmbeddedWalletsRequest was null or undefined when calling createEmbeddedWallets.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,f.jW)(e.createEmbeddedWalletsRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async createEmbeddedWallets(e,n){let t=await this.createEmbeddedWalletsRaw(e,n);return await t.value()}async createEmbeddedWalletsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createEmbeddedWalletsOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async createEmbeddedWalletsOptions(e,n){await this.createEmbeddedWalletsOptionsRaw(e,n)}async createGlobalWalletConnectionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createGlobalWalletConnection.");if(null===e.globalWalletConnectionCreateRequest||void 0===e.globalWalletConnectionCreateRequest)throw new r.Q0("globalWalletConnectionCreateRequest","Required parameter requestParameters.globalWalletConnectionCreateRequest was null or undefined when calling createGlobalWalletConnection.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/globalWallets/connections".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,ei.bE)(e.globalWalletConnectionCreateRequest)},n);return new r.ko(a,e=>(0,ea.fP)(e))}async createGlobalWalletConnection(e,n){let t=await this.createGlobalWalletConnectionRaw(e,n);return await t.value()}async createNewRecoveryCodesRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createNewRecoveryCodes.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa/recovery".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{}},n);return new r.ko(a,e=>(0,eq.g3)(e))}async createNewRecoveryCodes(e,n){let t=await this.createNewRecoveryCodesRaw(e,n);return await t.value()}async createRoomsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createRooms.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling createRooms.");if(null===e.createRoomsRequest||void 0===e.createRoomsRequest)throw new r.Q0("createRoomsRequest","Required parameter requestParameters.createRoomsRequest was null or undefined when calling createRooms.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/createRooms".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"POST",headers:t,query:{},body:(0,y.pp)(e.createRoomsRequest)},n);return new r.ko(a,e=>(0,k.s_)(e))}async createRooms(e,n){let t=await this.createRoomsRaw(e,n);return await t.value()}async createRoomsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createRoomsOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling createRoomsOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/createRooms".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async createRoomsOptions(e,n){await this.createRoomsOptionsRaw(e,n)}async createRoomsWithoutWalletIdRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createRoomsWithoutWalletId.");if(null===e.createRoomsWithoutWalletIdRequest||void 0===e.createRoomsWithoutWalletIdRequest)throw new r.Q0("createRoomsWithoutWalletIdRequest","Required parameter requestParameters.createRoomsWithoutWalletIdRequest was null or undefined when calling createRoomsWithoutWalletId.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/createRooms".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,O.bZ)(e.createRoomsWithoutWalletIdRequest)},n);return new r.ko(a,e=>(0,T.us)(e))}async createRoomsWithoutWalletId(e,n){let t=await this.createRoomsWithoutWalletIdRaw(e,n);return await t.value()}async createRoomsWithoutWalletIdOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createRoomsWithoutWalletIdOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/createRooms".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async createRoomsWithoutWalletIdOptions(e,n){await this.createRoomsWithoutWalletIdOptionsRaw(e,n)}async createSmsVerificationRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createSmsVerification.");
1if(null===e.smsVerificationCreateRequest||void 0===e.smsVerificationCreateRequest)throw new r.Q0("smsVerificationCreateRequest","Required parameter requestParameters.smsVerificationCreateRequest was null or undefined when calling createSmsVerification.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/smsVerifications/create".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,e9.xe)(e.smsVerificationCreateRequest)},n);return new r.ko(a,e=>(0,ne.Yx)(e))}async createSmsVerification(e,n){let t=await this.createSmsVerificationRaw(e,n);return await t.value()}async createSmsVerificationOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createSmsVerificationOptions.");let t=await this.request({path:"/sdk/{environmentId}/smsVerifications/create".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async createSmsVerificationOptions(e,n){await this.createSmsVerificationOptionsRaw(e,n)}async createVisitRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createVisit.");if(null===e.connectRequest||void 0===e.connectRequest)throw new r.Q0("connectRequest","Required parameter requestParameters.connectRequest was null or undefined when calling createVisit.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/connect".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,g.XJ)(e.connectRequest)},n);return new r.cK(a)}async createVisit(e,n){await this.createVisitRaw(e,n)}async createWaasAccountRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createWaasAccount.");if(null===e.createWaasAccountRequest||void 0===e.createWaasAccountRequest)throw new r.Q0("createWaasAccountRequest","Required parameter requestParameters.createWaasAccountRequest was null or undefined when calling createWaasAccount.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/create".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,S.Gt)(e.createWaasAccountRequest)},n);return new r.ko(a,e=>(0,eB.Jz)(e))}async createWaasAccount(e,n){let t=await this.createWaasAccountRaw(e,n);return await t.value()}async createWaasAccountOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createWaasAccountOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/create".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async createWaasAccountOptions(e,n){await this.createWaasAccountOptionsRaw(e,n)}async createWalletAccountRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling createWalletAccount.");if(null===e.createWalletAccountRequest||void 0===e.createWalletAccountRequest)throw new r.Q0("createWalletAccountRequest","Required parameter requestParameters.createWalletAccountRequest was null or undefined when calling createWalletAccount.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/walletAccounts".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,P.XO)(e.createWalletAccountRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async createWalletAccount(e,n){let t=await this.createWalletAccountRaw(e,n);return await t.value()}async cryptoDotComPaymentOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling cryptoDotComPaymentOptions.");let t=await this.request({path:"/sdk/{environmentId}/onramps/cryptoDotCom/payment".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async cryptoDotComPaymentOptions(e,n){await this.cryptoDotComPaymentOptionsRaw(e,n)}async deleteAllDeviceRegistrationsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling deleteAllDeviceRegistrations.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/deviceRegistrations".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"DELETE",headers:t,query:{}},n);return new r.ko(a,e=>(0,W.Mf)(e))}async deleteAllDeviceRegistrations(e,n){let t=await this.deleteAllDeviceRegistrationsRaw(e,n);return await t.value()}async deleteDeviceRegistrationRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling deleteDeviceRegistration.");
1if(null===e.deviceRegistrationId||void 0===e.deviceRegistrationId)throw new r.Q0("deviceRegistrationId","Required parameter requestParameters.deviceRegistrationId was null or undefined when calling deleteDeviceRegistration.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/deviceRegistrations/{deviceRegistrationId}".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{deviceRegistrationId}",encodeURIComponent(String(e.deviceRegistrationId))),method:"DELETE",headers:t,query:{}},n);return new r.ko(a,e=>(0,W.Mf)(e))}async deleteDeviceRegistration(e,n){let t=await this.deleteDeviceRegistrationRaw(e,n);return await t.value()}async deleteEmbeddedWalletsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling deleteEmbeddedWallets.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"DELETE",headers:t,query:{},body:(0,E.Uv)(e.deleteEmbeddedWalletsRequest)},n);return new r.cK(a)}async deleteEmbeddedWallets(e,n){await this.deleteEmbeddedWalletsRaw(e,n)}async deleteMfaDeviceRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling deleteMfaDevice.");if(null===e.mfaDeviceId||void 0===e.mfaDeviceId)throw new r.Q0("mfaDeviceId","Required parameter requestParameters.mfaDeviceId was null or undefined when calling deleteMfaDevice.");if(null===e.xMfaAuthToken||void 0===e.xMfaAuthToken)throw new r.Q0("xMfaAuthToken","Required parameter requestParameters.xMfaAuthToken was null or undefined when calling deleteMfaDevice.");let t={};if(void 0!==e.xMfaAuthToken&&null!==e.xMfaAuthToken&&(t["x-mfa-auth-token"]=String(e.xMfaAuthToken)),this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa/{mfaDeviceId}".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{mfaDeviceId}",encodeURIComponent(String(e.mfaDeviceId))),method:"DELETE",headers:t,query:{}},n);return new r.cK(a)}async deleteMfaDevice(e,n){await this.deleteMfaDeviceRaw(e,n)}async deletePasskeyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling deletePasskey.");if(null===e.deleteUserPasskeyRequest||void 0===e.deleteUserPasskeyRequest)throw new r.Q0("deleteUserPasskeyRequest","Required parameter requestParameters.deleteUserPasskeyRequest was null or undefined when calling deletePasskey.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/passkeys".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"DELETE",headers:t,query:{},body:(0,K.xf)(e.deleteUserPasskeyRequest)},n);return new r.cK(a)}async deletePasskey(e,n){await this.deletePasskeyRaw(e,n)}async deliverDelegatedShareRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling deliverDelegatedShare.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling deliverDelegatedShare.");if(null===e.delegatedShareDeliveryRequest||void 0===e.delegatedShareDeliveryRequest)throw new r.Q0("delegatedShareDeliveryRequest","Required parameter requestParameters.delegatedShareDeliveryRequest was null or undefined when calling deliverDelegatedShare.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/delegatedAccess/delivery".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"POST",headers:t,query:{},body:(0,b.pU)(e.delegatedShareDeliveryRequest)},n);return new r.ko(a,e=>(0,Q.K6)(e))}async deliverDelegatedShare(e,n){let t=await this.deliverDelegatedShareRaw(e,n);return await t.value()}async deliverDelegatedShareOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling deliverDelegatedShareOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling deliverDelegatedShareOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/delegatedAccess/delivery".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async deliverDelegatedShareOptions(e,n){await this.deliverDelegatedShareOptionsRaw(e,n)}async deviceRegistrationRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistration.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/deviceRegistration".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{}},n);return new r.ko(a,e=>(0,nK.p8)(e))}async deviceRegistration(e,n){let t=await this.deviceRegistrationRaw(e,n);return await t.value()}async deviceRegistrationByIdOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationByIdOptions.");if(null===e.deviceRegistrationId||void 0===e.deviceRegistrationId)throw new r.Q0("deviceRegistrationId","Required parameter requestParameters.deviceRegistrationId was null or undefined when calling deviceRegistrationByIdOptions.");let t=await this.request({path:"/sdk/{environmentId}/deviceRegistrations/{deviceRegistrationId}".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{deviceRegistrationId}",encodeURIComponent(String(e.deviceRegistrationId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async deviceRegistrationByIdOptions(e,n){await this.deviceRegistrationByIdOptionsRaw(e,n)}async deviceRegistrationOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationOptions.");let t=await this.request({path:"/sdk/{environmentId}/deviceRegistration".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async deviceRegistrationOptions(e,n){await this.deviceRegistrationOptionsRaw(e,n)}async deviceRegistrationsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationsOptions.");let t=await this.request({path:"/sdk/{environmentId}/deviceRegistrations".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async deviceRegistrationsOptions(e,n){await this.deviceRegistrationsOptionsRaw(e,n)}async disconnectGlobalWalletConnectionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling disconnectGlobalWalletConnection.");
1if(null===e.globalWalletConnectionId||void 0===e.globalWalletConnectionId)throw new r.Q0("globalWalletConnectionId","Required parameter requestParameters.globalWalletConnectionId was null or undefined when calling disconnectGlobalWalletConnection.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/globalWallets/connections/{globalWalletConnectionId}/disconnect".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{globalWalletConnectionId}",encodeURIComponent(String(e.globalWalletConnectionId))),method:"PUT",headers:t,query:{}},n);return new r.ko(a,e=>(0,ea.fP)(e))}async disconnectGlobalWalletConnection(e,n){let t=await this.disconnectGlobalWalletConnectionRaw(e,n);return await t.value()}async disconnectGlobalWalletConnectionOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling disconnectGlobalWalletConnectionOptions.");if(null===e.globalWalletConnectionId||void 0===e.globalWalletConnectionId)throw new r.Q0("globalWalletConnectionId","Required parameter requestParameters.globalWalletConnectionId was null or undefined when calling disconnectGlobalWalletConnectionOptions.");let t=await this.request({path:"/sdk/{environmentId}/globalWallets/connections/{globalWalletConnectionId}/disconnect".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{globalWalletConnectionId}",encodeURIComponent(String(e.globalWalletConnectionId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async disconnectGlobalWalletConnectionOptions(e,n){await this.disconnectGlobalWalletConnectionOptionsRaw(e,n)}async emailAuthOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling emailAuthOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/emailAuth".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async emailAuthOptions(e,n){await this.emailAuthOptionsRaw(e,n)}async emailProviderOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling emailProviderOptions.");let t=await this.request({path:"/sdk/{environmentId}/emailProvider".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async emailProviderOptions(e,n){await this.emailProviderOptionsRaw(e,n)}async embeddedWalletDeleteRequestOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling embeddedWalletDeleteRequestOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling embeddedWalletDeleteRequestOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/{walletId}/deleteRequest".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async embeddedWalletDeleteRequestOptions(e,n){await this.embeddedWalletDeleteRequestOptionsRaw(e,n)}async embeddedWalletExportRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling embeddedWalletExport.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling embeddedWalletExport.");if(null===e.activityId||void 0===e.activityId)throw new r.Q0("activityId","Required parameter requestParameters.activityId was null or undefined when calling embeddedWalletExport.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/{walletId}/activities/{activityId}/export".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))).replace("{activityId}",encodeURIComponent(String(e.activityId))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,J.rJ)(e))}async embeddedWalletExport(e,n){let t=await this.embeddedWalletExportRaw(e,n);return await t.value()}async embeddedWalletExportOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling embeddedWalletExportOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling embeddedWalletExportOptions.");if(null===e.activityId||void 0===e.activityId)throw new r.Q0("activityId","Required parameter requestParameters.activityId was null or undefined when calling embeddedWalletExportOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/{walletId}/activities/{activityId}/export".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))).replace("{activityId}",encodeURIComponent(String(e.activityId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async embeddedWalletExportOptions(e,n){await this.embeddedWalletExportOptionsRaw(e,n)}async estimateTransactionFeeRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling estimateTransactionFee.");if(null===e.chainName||void 0===e.chainName)throw new r.Q0("chainName","Required parameter requestParameters.chainName was null or undefined when calling estimateTransactionFee.");if(null===e.transactionFeeEstimateRequest||void 0===e.transactionFeeEstimateRequest)throw new r.Q0("transactionFeeEstimateRequest","Required parameter requestParameters.transactionFeeEstimateRequest was null or undefined when calling estimateTransactionFee.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/chains/{chainName}/transactions/estimate".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{chainName}",encodeURIComponent(String(e.chainName))),method:"POST",headers:t,query:{},body:(0,nR.ry)(e.transactionFeeEstimateRequest)},n);return new r.ko(a,e=>(0,ng.SJ)(e))}async estimateTransactionFee(e,n){let t=await this.estimateTransactionFeeRaw(e,n);return await t.value()}async estimateTransactionFeeOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling estimateTransactionFeeOptions.");if(null===e.chainName||void 0===e.chainName)throw new r.Q0("chainName","Required parameter requestParameters.chainName was null or undefined when calling estimateTransactionFeeOptions.");if(null===e.networkId||void 0===e.networkId)throw new r.Q0("networkId","Required parameter requestParameters.networkId was null or undefined when calling estimateTransactionFeeOptions.");let t={};void 0!==e.networkId&&(t.networkId=e.networkId);let a=await this.request({path:"/sdk/{environmentId}/chains/{chainName}/transactions/estimate".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{chainName}",encodeURIComponent(String(e.chainName))),method:"OPTIONS",headers:{},query:t},n);return new r.cK(a)}async estimateTransactionFeeOptions(e,n){await this.estimateTransactionFeeOptionsRaw(e,n)}async eventsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling eventsOptions.");let t=await this.request({path:"/sdk/{environmentId}/events".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async eventsOptions(e,n){await this.eventsOptionsRaw(e,n)}async exportPrivateKeyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling exportPrivateKey.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling exportPrivateKey.");if(null===e.exportWaasWalletPrivateKeyRequest||void 0===e.exportWaasWalletPrivateKeyRequest)throw new r.Q0("exportWaasWalletPrivateKeyRequest","Required parameter requestParameters.exportWaasWalletPrivateKeyRequest was null or undefined when calling exportPrivateKey.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/privateKey/export".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"POST",headers:t,query:{},body:(0,Y.Ms)(e.exportWaasWalletPrivateKeyRequest)},n);return new r.ko(a,e=>(0,eB.Jz)(e))}async exportPrivateKey(e,n){let t=await this.exportPrivateKeyRaw(e,n);return await t.value()}async exportPrivateKeyOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling exportPrivateKeyOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling exportPrivateKeyOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/privateKey/export".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async exportPrivateKeyOptions(e,n){await this.exportPrivateKeyOptionsRaw(e,n)}async externalAuthSigninRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling externalAuthSignin.");if(null===e.externalAuthSigninRequest||void 0===e.externalAuthSigninRequest)throw new r.Q0("externalAuthSigninRequest","Required parameter requestParameters.externalAuthSigninRequest was null or undefined when calling externalAuthSignin.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/externalAuth/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,_.WY)(e.externalAuthSigninRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async externalAuthSignin(e,n){let t=await this.externalAuthSigninRaw(e,n);return await t.value()}async externalAuthSigninOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling externalAuthSigninOptions.");let t=await this.request({path:"/sdk/{environmentId}/externalAuth/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async externalAuthSigninOptions(e,n){await this.externalAuthSigninOptionsRaw(e,n)}async externalAuthVerifyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling externalAuthVerify.");if(null===e.externalAuthSigninRequest||void 0===e.externalAuthSigninRequest)throw new r.Q0("externalAuthSigninRequest","Required parameter requestParameters.externalAuthSigninRequest was null or undefined when calling externalAuthVerify.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/externalAuth/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,_.WY)(e.externalAuthSigninRequest)},n);return new r.ko(a,e=>(0,X.l2)(e))}
1async externalAuthVerify(e,n){let t=await this.externalAuthVerifyRaw(e,n);return await t.value()}async externalAuthVerifyOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling externalAuthVerifyOptions.");let t=await this.request({path:"/sdk/{environmentId}/externalAuth/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async externalAuthVerifyOptions(e,n){await this.externalAuthVerifyOptionsRaw(e,n)}async farcasterSignInRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling farcasterSignIn.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/farcaster/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,Z.mN)(e.farcasterSignInRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async farcasterSignIn(e,n){let t=await this.farcasterSignInRaw(e,n);return await t.value()}async farcasterSignInOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling farcasterSignInOptions.");let t=await this.request({path:"/sdk/{environmentId}/farcaster/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async farcasterSignInOptions(e,n){await this.farcasterSignInOptionsRaw(e,n)}async farcasterVerifyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling farcasterVerify.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/farcaster/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,Z.mN)(e.farcasterSignInRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async farcasterVerify(e,n){let t=await this.farcasterVerifyRaw(e,n);return await t.value()}async farcasterVerifyOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling farcasterVerifyOptions.");let t=await this.request({path:"/sdk/{environmentId}/farcaster/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async farcasterVerifyOptions(e,n){await this.farcasterVerifyOptionsRaw(e,n)}async generateCoinbaseOnrampBuyUrlRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling generateCoinbaseOnrampBuyUrl.");if(null===e.coinbaseOnrampGetBuyUrlRequest||void 0===e.coinbaseOnrampGetBuyUrlRequest)throw new r.Q0("coinbaseOnrampGetBuyUrlRequest","Required parameter requestParameters.coinbaseOnrampGetBuyUrlRequest was null or undefined when calling generateCoinbaseOnrampBuyUrl.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/onramps/coinbase/buy".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,h.$P)(e.coinbaseOnrampGetBuyUrlRequest)},n);return new r.ko(a,e=>(0,v.Ge)(e))}async generateCoinbaseOnrampBuyUrl(e,n){let t=await this.generateCoinbaseOnrampBuyUrlRaw(e,n);return await t.value()}async getAccountBalancesRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getAccountBalances.");if(null===e.chainName||void 0===e.chainName)throw new r.Q0("chainName","Required parameter requestParameters.chainName was null or undefined when calling getAccountBalances.");if(null===e.accountAddress||void 0===e.accountAddress)throw new r.Q0("accountAddress","Required parameter requestParameters.accountAddress was null or undefined when calling getAccountBalances.");let t={};void 0!==e.networkId&&(t.networkId=e.networkId),void 0!==e.accountAddress&&(t.accountAddress=e.accountAddress),void 0!==e.includePrices&&(t.includePrices=e.includePrices),void 0!==e.includeNative&&(t.includeNative=e.includeNative),void 0!==e.filterSpamTokens&&(t.filterSpamTokens=e.filterSpamTokens),e.
1whitelistedContracts&&(t.whitelistedContracts=e.whitelistedContracts),void 0!==e.forceRefresh&&(t.forceRefresh=e.forceRefresh);let a=await this.request({path:"/sdk/{environmentId}/chains/{chainName}/balances".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{chainName}",encodeURIComponent(String(e.chainName))),method:"GET",headers:{},query:t},n);return new r.ko(a,e=>e.map(eU.cB))}async getAccountBalances(e,n){let t=await this.getAccountBalancesRaw(e,n);return await t.value()}async getAccountBalancesOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getAccountBalancesOptions.");if(null===e.chainName||void 0===e.chainName)throw new r.Q0("chainName","Required parameter requestParameters.chainName was null or undefined when calling getAccountBalancesOptions.");if(null===e.networkId||void 0===e.networkId)throw new r.Q0("networkId","Required parameter requestParameters.networkId was null or undefined when calling getAccountBalancesOptions.");if(null===e.accountAddress||void 0===e.accountAddress)throw new r.Q0("accountAddress","Required parameter requestParameters.accountAddress was null or undefined when calling getAccountBalancesOptions.");let t={};void 0!==e.networkId&&(t.networkId=e.networkId),void 0!==e.accountAddress&&(t.accountAddress=e.accountAddress),void 0!==e.transactionHash&&(t.transactionHash=e.transactionHash);let a=await this.request({path:"/sdk/{environmentId}/chains/{chainName}/balances".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{chainName}",encodeURIComponent(String(e.chainName))),method:"OPTIONS",headers:{},query:t},n);return new r.cK(a)}async getAccountBalancesOptions(e,n){await this.getAccountBalancesOptionsRaw(e,n)}async getAuthTokenRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getAuthToken.");let t={};void 0!==e.type&&(t.type=e.type);let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(a.Authorization=`Bearer ${n}`)}let i=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/authToken".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:a,query:t},n);return new r.ko(i,e=>(0,j.ru)(e))}async getAuthToken(e,n){let t=await this.getAuthTokenRaw(e,n);return await t.value()}async getAuthTokenOptsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getAuthTokenOpts.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/authToken".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getAuthTokenOpts(e,n){await this.getAuthTokenOptsRaw(e,n)}async getAuthenticatedUserRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getAuthenticatedUser.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,L.kg)(e))}async getAuthenticatedUser(e,n){let t=await this.getAuthenticatedUserRaw(e,n);return await t.value()}async getBackupTokenRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getBackupToken.");let t=await this.request({path:"/sdk/{environmentId}/waas/keyShares/backup/token".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:{}},n);return new r.ko(t,e=>(0,ee.IK)(e))}async getBackupToken(e,n){let t=await this.getBackupTokenRaw(e,n);return await t.value()}async getBackupTokenOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getBackupTokenOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/keyShares/backup/token".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getBackupTokenOptions(e,n){await this.getBackupTokenOptionsRaw(e,n)}async getCheckoutTransactionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getCheckoutTransaction.");
1if(null===e.transactionId||void 0===e.transactionId)throw new r.Q0("transactionId","Required parameter requestParameters.transactionId was null or undefined when calling getCheckoutTransaction.");let t=await this.request({path:"/sdk/{environmentId}/transactions/{transactionId}".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{transactionId}",encodeURIComponent(String(e.transactionId))),method:"GET",headers:{},query:{}},n);return new r.ko(t,e=>(0,c.HF)(e))}async getCheckoutTransaction(e,n){let t=await this.getCheckoutTransactionRaw(e,n);return await t.value()}async getCheckoutTransactionOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getCheckoutTransactionOptions.");if(null===e.transactionId||void 0===e.transactionId)throw new r.Q0("transactionId","Required parameter requestParameters.transactionId was null or undefined when calling getCheckoutTransactionOptions.");let t=await this.request({path:"/sdk/{environmentId}/transactions/{transactionId}".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{transactionId}",encodeURIComponent(String(e.transactionId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getCheckoutTransactionOptions(e,n){await this.getCheckoutTransactionOptionsRaw(e,n)}async getCoinbaseSupportedNetworksRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getCoinbaseSupportedNetworks.");let t=await this.request({path:"/sdk/{environmentId}/onramps/coinbase/networks".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:{}},n);return new r.ko(t)}async getCoinbaseSupportedNetworks(e,n){let t=await this.getCoinbaseSupportedNetworksRaw(e,n);return await t.value()}async getCreateWalletAccountRequestRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getCreateWalletAccountRequest.");if(null===e.chain||void 0===e.chain)throw new r.Q0("chain","Required parameter requestParameters.chain was null or undefined when calling getCreateWalletAccountRequest.");let t={};void 0!==e.chain&&(t.chain=e.chain);let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(a.Authorization=`Bearer ${n}`)}let i=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/walletAccounts/createRequest".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:a,query:t},n);return new r.ko(i,e=>(0,nq.To)(e))}async getCreateWalletAccountRequest(e,n){let t=await this.getCreateWalletAccountRequestRaw(e,n);return await t.value()}async getCurrencyExchangeRatesRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getCurrencyExchangeRates.");let t=await this.request({path:"/sdk/{environmentId}/exchangeRates".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:{}},n);return new r.ko(t,e=>e.map(A.o5))}async getCurrencyExchangeRates(e,n){let t=await this.getCurrencyExchangeRatesRaw(e,n);return await t.value()}async getCurrencyExchangeRatesOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getCurrencyExchangeRatesOptions.");let t=await this.request({path:"/sdk/{environmentId}/exchangeRates".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getCurrencyExchangeRatesOptions(e,n){await this.getCurrencyExchangeRatesOptionsRaw(e,n)}async getEmailProviderRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getEmailProvider.");if(null===e.email||void 0===e.email)throw new r.Q0("email","Required parameter requestParameters.email was null or undefined when calling getEmailProvider.");let t={};void 0!==e.email&&(t.email=e.email);let a=await this.request({path:"/sdk/{environmentId}/emailProvider".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:t},n);return new r.ko(a,e=>(0,V.Rt)(e))}async getEmailProvider(e,n){let t=await this.getEmailProviderRaw(e,n);return await t.value()}async getEmbeddedWalletBackupOptionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getEmbeddedWalletBackupOption.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/backup".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getEmbeddedWalletBackupOption(e,n){await this.getEmbeddedWalletBackupOptionRaw(e,n)}async getEmbeddedWalletBackupsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getEmbeddedWalletBackups.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/backup".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,G.Kw)(e))}async getEmbeddedWalletBackups(e,n){let t=await this.getEmbeddedWalletBackupsRaw(e,n);return await t.value()}async getEmbeddedWalletPasscodeRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getEmbeddedWalletPasscode.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/passcode".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,G.Kw)(e))}async getEmbeddedWalletPasscode(e,n){let t=await this.getEmbeddedWalletPasscodeRaw(e,n);return await t.value()}async getEmbeddedWalletPasscodeOptionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getEmbeddedWalletPasscodeOption.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/passcode".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getEmbeddedWalletPasscodeOption(e,n){await this.getEmbeddedWalletPasscodeOptionRaw(e,n)}async getEmbeddedWalletsDeleteRequestRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getEmbeddedWalletsDeleteRequest.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling getEmbeddedWalletsDeleteRequest.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/{walletId}/deleteRequest".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,ny.DN)(e))}async getEmbeddedWalletsDeleteRequest(e,n){let t=await this.getEmbeddedWalletsDeleteRequestRaw(e,n);return await t.value()}async getEndUserOauthAccessTokenRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getEndUserOauthAccessToken.");if(null===e.oauthAccountId||void 0===e.oauthAccountId)throw new r.Q0("oauthAccountId","Required parameter requestParameters.oauthAccountId was null or undefined when calling getEndUserOauthAccessToken.");let t=await this.request({path:"/sdk/{environmentId}/oauthAccounts/{oauthAccountId}/accessToken".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{oauthAccountId}",encodeURIComponent(String(e.oauthAccountId))),method:"GET",headers:{},query:{}},n);return new r.ko(t,e=>(0,nb.$l)(e))}async getEndUserOauthAccessToken(e,n){let t=await this.getEndUserOauthAccessTokenRaw(e,n);return await t.value()}async getEndUserOauthAccessTokenOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getEndUserOauthAccessTokenOptions.");if(null===e.oauthAccountId||void 0===e.oauthAccountId)throw new r.Q0("oauthAccountId","Required parameter requestParameters.oauthAccountId was null or undefined when calling getEndUserOauthAccessTokenOptions.");let t=await this.request({path:"/sdk/{environmentId}/oauthAccounts/{oauthAccountId}/accessToken".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{oauthAccountId}",encodeURIComponent(String(e.oauthAccountId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getEndUserOauthAccessTokenOptions(e,n){await this.getEndUserOauthAccessTokenOptionsRaw(e,n)}async getEnvironmentSettingsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getEnvironmentSettings.");let t={};void 0!==e.sdkVersion&&(t.sdkVersion=e.sdkVersion);let a=await this.request({path:"/sdk/{environmentId}/settings".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:t},n);return new r.ko(a,e=>(0,eG.Dt)(e))}
1async getEnvironmentSettings(e,n){let t=await this.getEnvironmentSettingsRaw(e,n);return await t.value()}async getExchangeTransactionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getExchangeTransactions.");if(null===e.exchangeKey||void 0===e.exchangeKey)throw new r.Q0("exchangeKey","Required parameter requestParameters.exchangeKey was null or undefined when calling getExchangeTransactions.");let t={};void 0!==e.accountId&&(t.accountId=e.accountId);let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(a.Authorization=`Bearer ${n}`)}let i=await this.request({path:"/sdk/{environmentId}/exchange/{exchangeKey}/accounts/transactions".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{exchangeKey}",encodeURIComponent(String(e.exchangeKey))),method:"GET",headers:a,query:t},n);return new r.ko(i,e=>e.map(F.YQ))}async getExchangeTransactions(e,n){let t=await this.getExchangeTransactionsRaw(e,n);return await t.value()}async getExchangeTransactionsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getExchangeTransactionsOptions.");if(null===e.exchangeKey||void 0===e.exchangeKey)throw new r.Q0("exchangeKey","Required parameter requestParameters.exchangeKey was null or undefined when calling getExchangeTransactionsOptions.");let t=await this.request({path:"/sdk/{environmentId}/exchange/{exchangeKey}/accounts/transactions".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{exchangeKey}",encodeURIComponent(String(e.exchangeKey))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getExchangeTransactionsOptions(e,n){await this.getExchangeTransactionsOptionsRaw(e,n)}async getExchangeTransferDestinationsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getExchangeTransferDestinations.");if(null===e.exchangeKey||void 0===e.exchangeKey)throw new r.Q0("exchangeKey","Required parameter requestParameters.exchangeKey was null or undefined when calling getExchangeTransferDestinations.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/exchange/{exchangeKey}/accounts/transfer/destinations".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{exchangeKey}",encodeURIComponent(String(e.exchangeKey))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,nf.FR)(e))}async getExchangeTransferDestinations(e,n){let t=await this.getExchangeTransferDestinationsRaw(e,n);return await t.value()}async getExchangeTransferDestinationsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getExchangeTransferDestinationsOptions.");if(null===e.exchangeKey||void 0===e.exchangeKey)throw new r.Q0("exchangeKey","Required parameter requestParameters.exchangeKey was null or undefined when calling getExchangeTransferDestinationsOptions.");let t=await this.request({path:"/sdk/{environmentId}/exchange/{exchangeKey}/accounts/transfer/destinations".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{exchangeKey}",encodeURIComponent(String(e.exchangeKey))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getExchangeTransferDestinationsOptions(e,n){await this.getExchangeTransferDestinationsOptionsRaw(e,n)}async getGlobalWalletsSettingsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getGlobalWalletsSettings.");let t=await this.request({path:"/sdk/{environmentId}/globalWallets/settings".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:{}},n);return new r.ko(t,e=>(0,eo.S2)(e))}
1async getGlobalWalletsSettings(e,n){let t=await this.getGlobalWalletsSettingsRaw(e,n);return await t.value()}async getHealthcheckRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getHealthcheck.");let t=await this.request({path:"/sdk/{environmentId}/healthcheck".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:{}},n);return new r.ko(t,e=>(0,es.GK)(e))}async getHealthcheck(e,n){let t=await this.getHealthcheckRaw(e,n);return await t.value()}async getHealthcheckOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getHealthcheckOptions.");let t=await this.request({path:"/sdk/{environmentId}/healthcheck".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getHealthcheckOptions(e,n){await this.getHealthcheckOptionsRaw(e,n)}async getJwksByEnvironmentIdRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getJwksByEnvironmentId.");let t=await this.request({path:"/sdk/{environmentId}/.well-known/jwks".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:{}},n);return new r.ko(t,e=>(0,ew.RQ)(e))}async getJwksByEnvironmentId(e,n){let t=await this.getJwksByEnvironmentIdRaw(e,n);return await t.value()}async getJwksJsonByEnvironmentIdRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getJwksJsonByEnvironmentId.");let t=await this.request({path:"/sdk/{environmentId}/.well-known/jwks.json".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:{}},n);return new r.ko(t,e=>(0,ew.RQ)(e))}async getJwksJsonByEnvironmentId(e,n){let t=await this.getJwksJsonByEnvironmentIdRaw(e,n);return await t.value()}async getMfaDeviceRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getMfaDevice.");if(null===e.mfaDeviceId||void 0===e.mfaDeviceId)throw new r.Q0("mfaDeviceId","Required parameter requestParameters.mfaDeviceId was null or undefined when calling getMfaDevice.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa/{mfaDeviceId}".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{mfaDeviceId}",encodeURIComponent(String(e.mfaDeviceId))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,eI.P$)(e))}async getMfaDevice(e,n){let t=await this.getMfaDeviceRaw(e,n);return await t.value()}async getMfaDeviceOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getMfaDeviceOptions.");if(null===e.mfaDeviceId||void 0===e.mfaDeviceId)throw new r.Q0("mfaDeviceId","Required parameter requestParameters.mfaDeviceId was null or undefined when calling getMfaDeviceOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/mfa/{mfaDeviceId}".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{mfaDeviceId}",encodeURIComponent(String(e.mfaDeviceId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getMfaDeviceOptions(e,n){await this.getMfaDeviceOptionsRaw(e,n)}async getNetworksConfigurationByEnvIdRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getNetworksConfigurationByEnvId.");let t=await this.request({path:"/sdk/{environmentId}/networks".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:{}},n);return new r.ko(t,e=>e.map(eb.iS))}
1async getNetworksConfigurationByEnvId(e,n){let t=await this.getNetworksConfigurationByEnvIdRaw(e,n);return await t.value()}async getNonceRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getNonce.");let t=await this.request({path:"/sdk/{environmentId}/nonce".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:{}},n);return new r.ko(t,e=>(0,eQ.zJ)(e))}async getNonce(e,n){let t=await this.getNonceRaw(e,n);return await t.value()}async getNoncesRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getNonces.");let t={};void 0!==e.count&&(t.count=e.count);let a=await this.request({path:"/sdk/{environmentId}/nonces".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:t},n);return new r.ko(a,e=>(0,eW.wB)(e))}async getNonces(e,n){let t=await this.getNoncesRaw(e,n);return await t.value()}async getPasskeyAuthenticationOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getPasskeyAuthenticationOptions.");let t={};void 0!==e.relatedOriginRpId&&(t.relatedOriginRpId=e.relatedOriginRpId);let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(a.Authorization=`Bearer ${n}`)}let i=await this.request({path:"/sdk/{environmentId}/users/passkeys/authenticate".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:a,query:t},n);return new r.ko(i,e=>(0,en.ic)(e))}async getPasskeyAuthenticationOptions(e,n){let t=await this.getPasskeyAuthenticationOptionsRaw(e,n);return await t.value()}async getPasskeyAuthenticationOptionsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getPasskeyAuthenticationOptionsOptions.");let t={};void 0!==e.relatedOriginRpId&&(t.relatedOriginRpId=e.relatedOriginRpId);let a=await this.request({path:"/sdk/{environmentId}/users/passkeys/authenticate".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:t},n);return new r.cK(a)}async getPasskeyAuthenticationOptionsOptions(e,n){await this.getPasskeyAuthenticationOptionsOptionsRaw(e,n)}async getPasskeyAuthenticationSigninOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getPasskeyAuthenticationSigninOptions.");let t={};void 0!==e.relatedOriginRpId&&(t.relatedOriginRpId=e.relatedOriginRpId);let a=await this.request({path:"/sdk/{environmentId}/users/passkeys/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:t},n);return new r.ko(a,e=>(0,en.ic)(e))}async getPasskeyAuthenticationSigninOptions(e,n){let t=await this.getPasskeyAuthenticationSigninOptionsRaw(e,n);return await t.value()}async getPasskeyRegistrationOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getPasskeyRegistrationOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/passkeys/register".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:{}},n);return new r.ko(t,e=>(0,et.DU)(e))}async getPasskeyRegistrationOptions(e,n){let t=await this.getPasskeyRegistrationOptionsRaw(e,n);return await t.value()}async getPasskeyRegistrationOptionsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getPasskeyRegistrationOptionsOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/passkeys/register".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getPasskeyRegistrationOptionsOptions(e,n){await this.getPasskeyRegistrationOptionsOptionsRaw(e,n)}async getRealtimeAuthTokenRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getRealtimeAuthToken.");let t={};void 0!==e.capabilities&&(t.capabilities=e.capabilities);let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(a.Authorization=`Bearer ${n}`)}let i=await this.request({path:"/sdk/{environmentId}/realtime/auth".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:a,query:t},n);return new r.ko(i,e=>(0,eH.W7)(e))}async getRealtimeAuthToken(e,n){let t=await this.getRealtimeAuthTokenRaw(e,n);return await t.value()}async getRecoveryCodesRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getRecoveryCodes.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa/recovery".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,eR.dv)(e))}async getRecoveryCodes(e,n){let t=await this.getRecoveryCodesRaw(e,n);return await t.value()}
1async getSupportedOfframpsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getSupportedOfframps.");if(null===e.walletAddress||void 0===e.walletAddress)throw new r.Q0("walletAddress","Required parameter requestParameters.walletAddress was null or undefined when calling getSupportedOfframps.");if(null===e.chain||void 0===e.chain)throw new r.Q0("chain","Required parameter requestParameters.chain was null or undefined when calling getSupportedOfframps.");let t={};void 0!==e.walletAddress&&(t.walletAddress=e.walletAddress),void 0!==e.chain&&(t.chain=e.chain),void 0!==e.networkId&&(t.networkId=e.networkId),void 0!==e.token&&(t.token=e.token);let a=await this.request({path:"/sdk/{environmentId}/offramps".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:t},n);return new r.ko(a,e=>(0,nc.ed)(e))}async getSupportedOfframps(e,n){let t=await this.getSupportedOfframpsRaw(e,n);return await t.value()}async getSupportedOnrampsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getSupportedOnramps.");if(null===e.walletAddress||void 0===e.walletAddress)throw new r.Q0("walletAddress","Required parameter requestParameters.walletAddress was null or undefined when calling getSupportedOnramps.");if(null===e.chain||void 0===e.chain)throw new r.Q0("chain","Required parameter requestParameters.chain was null or undefined when calling getSupportedOnramps.");let t={};void 0!==e.walletAddress&&(t.walletAddress=e.walletAddress),void 0!==e.chain&&(t.chain=e.chain),void 0!==e.networkId&&(t.networkId=e.networkId),void 0!==e.token&&(t.token=e.token),void 0!==e.tokenAmount&&(t.tokenAmount=e.tokenAmount),void 0!==e.includeDisabled&&(t.includeDisabled=e.includeDisabled),void 0!==e.currency&&(t.currency=e.currency),void 0!==e.merchantName&&(t.merchantName=e.merchantName);let a=await this.request({path:"/sdk/{environmentId}/onramps".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:t},n);return new r.ko(a,e=>(0,nm.Mr)(e))}
1async getSupportedOnramps(e,n){let t=await this.getSupportedOnrampsRaw(e,n);return await t.value()}async getTelegramAuthRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getTelegramAuth.");if(null===e.state||void 0===e.state)throw new r.Q0("state","Required parameter requestParameters.state was null or undefined when calling getTelegramAuth.");let t={};void 0!==e.state&&(t.state=e.state);let a=await this.request({path:"/sdk/{environmentId}/telegram/auth".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:{},query:t},n);return new r.Pf(a)}async getTelegramAuth(e,n){let t=await this.getTelegramAuthRaw(e,n);return await t.value()}async getUserAccountsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getUserAccounts.");if(null===e.exchangeKey||void 0===e.exchangeKey)throw new r.Q0("exchangeKey","Required parameter requestParameters.exchangeKey was null or undefined when calling getUserAccounts.");let t={};void 0!==e.networkId&&(t.networkId=e.networkId),void 0!==e.chainName&&(t.chainName=e.chainName);let i={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(i.Authorization=`Bearer ${n}`)}let o=await this.request({path:"/sdk/{environmentId}/exchange/{exchangeKey}/accounts".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{exchangeKey}",encodeURIComponent(String(e.exchangeKey))),method:"GET",headers:i,query:t},n);return new r.ko(o,e=>e.map(a.Ug))}async getUserAccounts(e,n){let t=await this.getUserAccountsRaw(e,n);return await t.value()}async getUserAccountsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getUserAccountsOptions.");if(null===e.exchangeKey||void 0===e.exchangeKey)throw new r.Q0("exchangeKey","Required parameter requestParameters.exchangeKey was null or undefined when calling getUserAccountsOptions.");let t=await this.request({path:"/sdk/{environmentId}/exchange/{exchangeKey}/accounts".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{exchangeKey}",encodeURIComponent(String(e.exchangeKey))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getUserAccountsOptions(e,n){await this.getUserAccountsOptionsRaw(e,n)}async getUserFieldsCheckRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getUserFieldsCheck.");if(null===e.filter||void 0===e.filter)throw new r.Q0("filter","Required parameter requestParameters.filter was null or undefined when calling getUserFieldsCheck.");let t={};void 0!==e.filter&&(t.filter=e.filter);let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(a.Authorization=`Bearer ${n}`)}let i=await this.request({path:"/sdk/{environmentId}/users/check".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:a,query:t},n);return new r.ko(i,e=>(0,nA.Oq)(e))}async getUserFieldsCheck(e,n){let t=await this.getUserFieldsCheckRaw(e,n);return await t.value()}async getUserFieldsCheckOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getUserFieldsCheckOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/check".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getUserFieldsCheckOptions(e,n){await this.getUserFieldsCheckOptionsRaw(e,n)}async getUserMfaDevicesRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getUserMfaDevices.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,eg.fP)(e))}async getUserMfaDevices(e,n){let t=await this.getUserMfaDevicesRaw(e,n);return await t.value()}async getUserMfaMethodsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getUserMfaMethods.");let t={};void 0!==e.verifiedOnly&&(t.verifiedOnly=e.verifiedOnly);let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(a.Authorization=`Bearer ${n}`)}let i=await this.request({path:"/sdk/{environmentId}/users/mfa/methods".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:a,query:t},n);return new r.ko(i,e=>(0,ef.AB)(e))}async getUserMfaMethods(e,n){let t=await this.getUserMfaMethodsRaw(e,n);return await t.value()}async getUserPasskeysRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getUserPasskeys.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/passkeys".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,er.Oo)(e))}async getUserPasskeys(e,n){let t=await this.getUserPasskeysRaw(e,n);return await t.value()}async getWaasWalletWithVerifiedCredentialsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentials.");if(null===e.walletAddress||void 0===e.walletAddress)throw new r.Q0("walletAddress","Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentials.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletAddress}",encodeURIComponent(String(e.walletAddress))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,L.kg)(e))}async getWaasWalletWithVerifiedCredentials(e,n){let t=await this.getWaasWalletWithVerifiedCredentialsRaw(e,n);return await t.value()}async getWaasWalletWithVerifiedCredentialsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.");if(null===e.walletAddress||void 0===e.walletAddress)throw new r.Q0("walletAddress","Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletAddress}",encodeURIComponent(String(e.walletAddress))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async getWaasWalletWithVerifiedCredentialsOptions(e,n){await this.getWaasWalletWithVerifiedCredentialsOptionsRaw(e,n)}async getWalletTransactionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getWalletTransactions.");if(null===e.chainName||void 0===e.chainName)throw new r.Q0("chainName","Required parameter requestParameters.chainName was null or undefined when calling getWalletTransactions.");if(null===e.address||void 0===e.address)throw new r.Q0("address","Required parameter requestParameters.address was null or undefined when calling getWalletTransactions.");if(null===e.networkId||void 0===e.networkId)throw new r.Q0("networkId","Required parameter requestParameters.networkId was null or undefined when calling getWalletTransactions.");let t={};void 0!==e.networkId&&(t.networkId=e.networkId),void 0!==e.limit&&(t.limit=e.limit),void 0!==e.offset&&(t.offset=e.offset);let a={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(a.Authorization=`Bearer ${n}`)}let i=await this.request({path:"/sdk/{environmentId}/chains/{chainName}/transactions/{address}".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{chainName}",encodeURIComponent(String(e.chainName))).replace("{address}",encodeURIComponent(String(e.address))),method:"GET",headers:a,query:t},n);return new r.ko(i,e=>(0,nx.as)(e))}async getWalletTransactions(e,n){let t=await this.getWalletTransactionsRaw(e,n);return await t.value()}async getWalletTransactionsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling getWalletTransactionsOptions.");if(null===e.chainName||void 0===e.chainName)throw new r.Q0("chainName","Required parameter requestParameters.chainName was null or undefined when calling getWalletTransactionsOptions.");if(null===e.address||void 0===e.address)throw new r.Q0("address","Required parameter requestParameters.address was null or undefined when calling getWalletTransactionsOptions.");if(null===e.networkId||void 0===e.networkId)throw new r.Q0("networkId","Required parameter requestParameters.networkId was null or undefined when calling getWalletTransactionsOptions.");let t={};void 0!==e.networkId&&(t.networkId=e.networkId),void 0!==e.limit&&(t.limit=e.limit),void 0!==e.offset&&(t.offset=e.offset);let a=await this.request({path:"/sdk/{environmentId}/chains/{chainName}/transactions/{address}".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{chainName}",encodeURIComponent(String(e.chainName))).replace("{address}",encodeURIComponent(String(e.address))),method:"OPTIONS",headers:{},query:t},n);return new r.cK(a)}async getWalletTransactionsOptions(e,n){await this.getWalletTransactionsOptionsRaw(e,n)}async globalWalletConnectionsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling globalWalletConnectionsOptions.");let t=await this.request({path:"/sdk/{environmentId}/globalWallets/connections".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async globalWalletConnectionsOptions(e,n){await this.globalWalletConnectionsOptionsRaw(e,n)}async globalWalletsSettingsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling globalWalletsSettingsOptions.");let t=await this.request({path:"/sdk/{environmentId}/globalWallets/settings".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async globalWalletsSettingsOptions(e,n){await this.globalWalletsSettingsOptionsRaw(e,n)}async hardDeleteUserRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling hardDeleteUser.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"DELETE",headers:t,query:{}},n);return new r.cK(a)}async hardDeleteUser(e,n){await this.hardDeleteUserRaw(e,n)}async importPrivateKeyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKey.");if(null===e.importWaasPrivateKeyRequest||void 0===e.importWaasPrivateKeyRequest)throw new r.Q0("importWaasPrivateKeyRequest","Required parameter requestParameters.importWaasPrivateKeyRequest was null or undefined when calling importPrivateKey.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/privateKey/import".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,ed.sZ)(e.importWaasPrivateKeyRequest)},n);return new r.ko(a,e=>(0,eB.Jz)(e))}async importPrivateKey(e,n){let t=await this.importPrivateKeyRaw(e,n);return await t.value()}async importPrivateKeyOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKeyOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/privateKey/import".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async importPrivateKeyOptions(e,n){await this.importPrivateKeyOptionsRaw(e,n)}async initAuthRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling initAuth.");
1if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling initAuth.");if(null===e.oauthInitAuthRequest||void 0===e.oauthInitAuthRequest)throw new r.Q0("oauthInitAuthRequest","Required parameter requestParameters.oauthInitAuthRequest was null or undefined when calling initAuth.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/initAuth".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"POST",headers:t,query:{},body:(0,eE.kS)(e.oauthInitAuthRequest)},n);return new r.cK(a)}async initAuth(e,n){await this.initAuthRaw(e,n)}async initAuthOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling initAuthOptions.");if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling initAuthOptions.");let t=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/initAuth".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async initAuthOptions(e,n){await this.initAuthOptionsRaw(e,n)}async initEmailAuthRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling initEmailAuth.");if(null===e.initEmailAuthRequest||void 0===e.initEmailAuthRequest)throw new r.Q0("initEmailAuthRequest","Required parameter requestParameters.initEmailAuthRequest was null or undefined when calling initEmailAuth.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/emailAuth".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,el.xh)(e.initEmailAuthRequest)},n);return new r.ko(a,e=>(0,eu.oi)(e))}async initEmailAuth(e,n){let t=await this.initEmailAuthRaw(e,n);return await t.value()}async initPasskeyRecoveryRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling initPasskeyRecovery.");if(null===e.initPasskeyRecoveryRequest||void 0===e.initPasskeyRecoveryRequest)throw new r.Q0("initPasskeyRecoveryRequest","Required parameter requestParameters.initPasskeyRecoveryRequest was null or undefined when calling initPasskeyRecovery.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/passkeyRecovery".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,ec.Ex)(e.initPasskeyRecoveryRequest)},n);return new r.ko(a,e=>(0,em.Vb)(e))}async initPasskeyRecovery(e,n){let t=await this.initPasskeyRecoveryRaw(e,n);return await t.value()}async jwksOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling jwksOptions.");let t=await this.request({path:"/sdk/{environmentId}/.well-known/jwks".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async jwksOptions(e,n){await this.jwksOptionsRaw(e,n)}async legacyEmbeddedWalletDeleteRequestOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling legacyEmbeddedWalletDeleteRequestOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/deleteRequest".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async legacyEmbeddedWalletDeleteRequestOptions(e,n){await this.legacyEmbeddedWalletDeleteRequestOptionsRaw(e,n)}async legacyGetEmbeddedWalletsDeleteRequestRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling legacyGetEmbeddedWalletsDeleteRequest.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/deleteRequest".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,ny.DN)(e))}async legacyGetEmbeddedWalletsDeleteRequest(e,n){let t=await this.legacyGetEmbeddedWalletsDeleteRequestRaw(e,n);return await t.value()}async listDeviceRegistrationsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling listDeviceRegistrations.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/deviceRegistrations".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,D.e5)(e))}async listDeviceRegistrations(e,n){let t=await this.listDeviceRegistrationsRaw(e,n);return await t.value()}async listMfaDevicesOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling listMfaDevicesOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/mfa".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async listMfaDevicesOptions(e,n){await this.listMfaDevicesOptionsRaw(e,n)}async listMfaMethodsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling listMfaMethodsOptions.");let t={};void 0!==e.verifiedOnly&&(t.verifiedOnly=e.verifiedOnly);let a=await this.request({path:"/sdk/{environmentId}/users/mfa/methods".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:t},n);return new r.cK(a)}async listMfaMethodsOptions(e,n){await this.listMfaMethodsOptionsRaw(e,n)}async logDynamicSdkSettingsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling logDynamicSdkSettings.");if(null===e.sdkSettingsRequest||void 0===e.sdkSettingsRequest)throw new r.Q0("sdkSettingsRequest","Required parameter requestParameters.sdkSettingsRequest was null or undefined when calling logDynamicSdkSettings.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/sdkSettings".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,e5.ay)(e.sdkSettingsRequest)},n);return new r.cK(a)}
1async logDynamicSdkSettings(e,n){await this.logDynamicSdkSettingsRaw(e,n)}async mergeUsersRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling mergeUsers.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/merge".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{}},n);return new r.ko(a,e=>(0,nK.p8)(e))}async mergeUsers(e,n){let t=await this.mergeUsersRaw(e,n);return await t.value()}async mergeUsersOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling mergeUsersOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/merge".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async mergeUsersOptions(e,n){await this.mergeUsersOptionsRaw(e,n)}async networksOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling networksOptions.");let t=await this.request({path:"/sdk/{environmentId}/networks".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async networksOptions(e,n){await this.networksOptionsRaw(e,n)}async nonceOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling nonceOptions.");let t=await this.request({path:"/sdk/{environmentId}/nonce".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async nonceOptions(e,n){await this.nonceOptionsRaw(e,n)}async noncesOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling noncesOptions.");let t=await this.request({path:"/sdk/{environmentId}/nonces".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async noncesOptions(e,n){await this.noncesOptionsRaw(e,n)}async oauthAuthorizeHtmlRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthAuthorizeHtml.");if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthAuthorizeHtml.");let t={};void 0!==e.scope&&(t.scope=e.scope),void 0!==e.state&&(t.state=e.state),void 0!==e.redirectUri&&(t.redirect_uri=e.redirectUri);let a=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/authorizeHtml".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"GET",headers:{},query:t},n);return new r.Pf(a)}async oauthAuthorizeHtml(e,n){let t=await this.oauthAuthorizeHtmlRaw(e,n);return await t.value()}async oauthAuthorizeHtmlOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthAuthorizeHtmlOptions.");if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthAuthorizeHtmlOptions.");let t=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/authorizeHtml".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async oauthAuthorizeHtmlOptions(e,n){await this.oauthAuthorizeHtmlOptionsRaw(e,n)}async oauthLoginRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthLogin.");
1if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthLogin.");let t=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/login".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"GET",headers:{},query:{}},n);return new r.cK(t)}async oauthLogin(e,n){await this.oauthLoginRaw(e,n)}async oauthLoginOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthLoginOptions.");if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthLoginOptions.");let t=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/login".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async oauthLoginOptions(e,n){await this.oauthLoginOptionsRaw(e,n)}async oauthLoginUrlRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthLoginUrl.");if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthLoginUrl.");let t=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/loginUrl".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"GET",headers:{},query:{}},n);return new r.ko(t,e=>(0,eK.zR)(e))}async oauthLoginUrl(e,n){let t=await this.oauthLoginUrlRaw(e,n);return await t.value()}async oauthLoginUrlOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthLoginUrlOptions.");if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthLoginUrlOptions.");let t=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/loginUrl".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async oauthLoginUrlOptions(e,n){await this.oauthLoginUrlOptionsRaw(e,n)}async oauthRedirectAppleRaw(e,n){let t;if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthRedirectApple.");(0,r.Rb)([{contentType:"application/x-www-form-urlencoded"}]),t=new URLSearchParams,void 0!==e.code&&t.append("code",e.code),void 0!==e.state&&t.append("state",e.state),void 0!==e.idToken&&t.append("id_token",e.idToken),void 0!==e.error&&t.append("error",e.error);let a=await this.request({path:"/sdk/{environmentId}/providers/apple/redirect".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:{},query:{},body:t},n);return new r.Pf(a)}async oauthRedirectApple(e,n){let t=await this.oauthRedirectAppleRaw(e,n);return await t.value()}async oauthRedirectAppleOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthRedirectAppleOptions.");let t=await this.request({path:"/sdk/{environmentId}/providers/apple/redirect".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async oauthRedirectAppleOptions(e,n){await this.oauthRedirectAppleOptionsRaw(e,n)}async oauthRedirectCodeRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthRedirectCode.");if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthRedirectCode.");let t={};void 0!==e.code&&(t.code=e.code),void 0!==e.scope&&(t.scope=e.scope),void 0!==e.state&&(t.state=e.state),void 0!==e.authuser&&(t.authuser=e.authuser),void 0!==e.prompt&&(t.prompt=e.prompt),void 0!==e.error&&(t.error=e.error);let a=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/redirect".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"GET",headers:{},query:t},n);return new r.Pf(a)}async oauthRedirectCode(e,n){let t=await this.oauthRedirectCodeRaw(e,n);return await t.value()}async oauthRedirectOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthRedirectOptions.");if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthRedirectOptions.");let t=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/redirect".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async oauthRedirectOptions(e,n){await this.oauthRedirectOptionsRaw(e,n)}async oauthResultRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthResult.");if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthResult.");if(null===e.oauthResultRequest||void 0===e.oauthResultRequest)throw new r.Q0("oauthResultRequest","Required parameter requestParameters.oauthResultRequest was null or undefined when calling oauthResult.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/oauthResult".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"POST",headers:t,query:{},body:(0,eV.PD)(e.oauthResultRequest)},n);return new r.ko(a,e=>(0,ex.EP)(e))}async oauthResult(e,n){let t=await this.oauthResultRaw(e,n);return await t.value()}async oauthResultOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthResultOptions.");if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthResultOptions.");let t=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/oauthResult".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async oauthResultOptions(e,n){await this.oauthResultOptionsRaw(e,n)}async oauthSignInRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthSignIn.");
1if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthSignIn.");if(null===e.oauthRequest||void 0===e.oauthRequest)throw new r.Q0("oauthRequest","Required parameter requestParameters.oauthRequest was null or undefined when calling oauthSignIn.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/signIn".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"POST",headers:t,query:{},body:(0,eD.aV)(e.oauthRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async oauthSignIn(e,n){let t=await this.oauthSignInRaw(e,n);return await t.value()}async oauthSignInOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthSignInOptions.");if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthSignInOptions.");let t=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/signIn".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async oauthSignInOptions(e,n){await this.oauthSignInOptionsRaw(e,n)}async oauthVerifyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthVerify.");if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthVerify.");if(null===e.oauthRequest||void 0===e.oauthRequest)throw new r.Q0("oauthRequest","Required parameter requestParameters.oauthRequest was null or undefined when calling oauthVerify.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"POST",headers:t,query:{},body:(0,eD.aV)(e.oauthRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async oauthVerify(e,n){let t=await this.oauthVerifyRaw(e,n);return await t.value()}async oauthVerifyOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling oauthVerifyOptions.");if(null===e.providerType||void 0===e.providerType)throw new r.Q0("providerType","Required parameter requestParameters.providerType was null or undefined when calling oauthVerifyOptions.");let t=await this.request({path:"/sdk/{environmentId}/providers/{providerType}/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{providerType}",encodeURIComponent(String(e.providerType))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async oauthVerifyOptions(e,n){await this.oauthVerifyOptionsRaw(e,n)}async offrampsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling offrampsOptions.");let t=await this.request({path:"/sdk/{environmentId}/offramps".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async offrampsOptions(e,n){await this.offrampsOptionsRaw(e,n)}async onrampsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling onrampsOptions.");let t=await this.request({path:"/sdk/{environmentId}/onramps".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async onrampsOptions(e,n){await this.onrampsOptionsRaw(e,n)}async optimizeTransactionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling optimizeTransaction.");
1if(null===e.solanaTransactionOptimizationRequest||void 0===e.solanaTransactionOptimizationRequest)throw new r.Q0("solanaTransactionOptimizationRequest","Required parameter requestParameters.solanaTransactionOptimizationRequest was null or undefined when calling optimizeTransaction.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/solana/optimizeTransaction".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nr.kD)(e.solanaTransactionOptimizationRequest)},n);return new r.ko(a,e=>(0,na.Vj)(e))}async optimizeTransaction(e,n){let t=await this.optimizeTransactionRaw(e,n);return await t.value()}async optimizeTransactionOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling optimizeTransactionOptions.");let t=await this.request({path:"/sdk/{environmentId}/solana/optimizeTransaction".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async optimizeTransactionOptions(e,n){await this.optimizeTransactionOptionsRaw(e,n)}async optionsConnectRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling optionsConnect.");let t=await this.request({path:"/sdk/{environmentId}/connect".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async optionsConnect(e,n){await this.optionsConnectRaw(e,n)}async passkeyRecoveryOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling passkeyRecoveryOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/passkeyRecovery".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async passkeyRecoveryOptions(e,n){await this.passkeyRecoveryOptionsRaw(e,n)}async postExchangeAccountTransferRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling postExchangeAccountTransfer.");if(null===e.exchangeKey||void 0===e.exchangeKey)throw new r.Q0("exchangeKey","Required parameter requestParameters.exchangeKey was null or undefined when calling postExchangeAccountTransfer.");if(null===e.accountId||void 0===e.accountId)throw new r.Q0("accountId","Required parameter requestParameters.accountId was null or undefined when calling postExchangeAccountTransfer.");if(null===e.createExchangeTransferRequest||void 0===e.createExchangeTransferRequest)throw new r.Q0("createExchangeTransferRequest","Required parameter requestParameters.createExchangeTransferRequest was null or undefined when calling postExchangeAccountTransfer.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/exchange/{exchangeKey}/accounts/{accountId}/transfer".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{exchangeKey}",encodeURIComponent(String(e.exchangeKey))).replace("{accountId}",encodeURIComponent(String(e.accountId))),method:"POST",headers:t,query:{},body:(0,q.x3)(e.createExchangeTransferRequest)},n);return new r.ko(a,e=>(0,H.Sx)(e))}async postExchangeAccountTransfer(e,n){let t=await this.postExchangeAccountTransferRaw(e,n);return await t.value()}async postExchangeAccountTransferOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling postExchangeAccountTransferOptions.");if(null===e.exchangeKey||void 0===e.exchangeKey)throw new r.Q0("exch
1angeKey","Required parameter requestParameters.exchangeKey was null or undefined when calling postExchangeAccountTransferOptions.");if(null===e.accountId||void 0===e.accountId)throw new r.Q0("accountId","Required parameter requestParameters.accountId was null or undefined when calling postExchangeAccountTransferOptions.");let t=await this.request({path:"/sdk/{environmentId}/exchange/{exchangeKey}/accounts/{accountId}/transfer".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{exchangeKey}",encodeURIComponent(String(e.exchangeKey))).replace("{accountId}",encodeURIComponent(String(e.accountId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async postExchangeAccountTransferOptions(e,n){await this.postExchangeAccountTransferOptionsRaw(e,n)}async postMultichainAccountBalancesRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling postMultichainAccountBalances.");
1if(null===e.multichainAccountBalancesRequest||void 0===e.multichainAccountBalancesRequest)throw new r.Q0("multichainAccountBalancesRequest","Required parameter requestParameters.multichainAccountBalancesRequest was null or undefined when calling postMultichainAccountBalances.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/balances".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,eA.LC)(e.multichainAccountBalancesRequest)},n);return new r.ko(a,e=>(0,eC.BV)(e))}async postMultichainAccountBalances(e,n){let t=await this.postMultichainAccountBalancesRaw(e,n);return await t.value()}async postMultichainAccountBalancesOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling postMultichainAccountBalancesOptions.");if(null===e.multichainAccountBalancesRequest||void 0===e.multichainAccountBalancesRequest)throw new r.Q0("multichainAccountBalancesRequest","Required parameter requestParameters.multichainAccountBalancesRequest was null or undefined when calling postMultichainAccountBalancesOptions.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/balances".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:t,query:{}
1,body:(0,eA.LC)(e.multichainAccountBalancesRequest)},n);return new r.cK(a)}async postMultichainAccountBalancesOptions(e,n){await this.postMultichainAccountBalancesOptionsRaw(e,n)}async postTelegramAuthRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling postTelegramAuth.");if(null===e.telegramPostRequest||void 0===e.telegramPostRequest)throw new r.Q0("telegramPostRequest","Required parameter requestParameters.telegramPostRequest was null or undefined when calling postTelegramAuth.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/telegram/auth".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nI.QU)(e.telegramPostRequest)},n);return new r.cK(a)}async postTelegramAuth(e,n){await this.postTelegramAuthRaw(e,n)}async prefetchRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling prefetch.");if(null===e.prefetchRequest||void 0===e.prefetchRequest)throw new r.Q0("prefetchRequest","Required parameter requestParameters.prefetchRequest was null or undefined when calling prefetch.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/prefetch".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,ej.KG)(e.prefetchRequest)},n);return new r.cK(a)}async prefetch(e,n){await this.prefetchRaw(e,n)}async prepareCheckoutTransactionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling prepareCheckoutTransaction.");if(null===e.transactionId||void 0===e.transactionId)throw new r.Q0("transactionId","Required parameter requestParameters.transactionId was null or undefined when calling prepareCheckoutTransaction.");if(null===e.xDynamicCheckoutSessionToken||void 0===e.xDynamicCheckoutSessionToken)throw new r.Q0("xDynamicCheckoutSessionToken","Required parameter requestParameters.xDynamicCheckoutSessionToken was null or undefined when calling prepareCheckoutTransaction.");let t={};t["Content-Type"]="application/json",void 0!==e.xDynamicCheckoutSessionToken&&null!==e.xDynamicCheckoutSessionToken&&(t["X-Dynamic-Checkout-Session-Token"]=String(e.xDynamicCheckoutSessionToken));let a=await this.request({path:"/sdk/{environmentId}/transactions/{transactionId}/prepare".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{transactionId}",encodeURIComponent(String(e.transactionId))),method:"POST",headers:t,query:{},body:(0,e$.p$)(e.prepareSigningRequest)},n);return new r.ko(a,e=>(0,c.HF)(e))}async prepareCheckoutTransaction(e,n){let t=await this.prepareCheckoutTransactionRaw(e,n);return await t.value()}async prepareCheckoutTransactionOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling prepareCheckoutTransactionOptions.");if(null===e.transactionId||void 0===e.transactionId)throw new r.Q0("transactionId","Required parameter requestParameters.transactionId was null or undefined when calling prepareCheckoutTransactionOptions.");let t=await this.request({path:"/sdk/{environmentId}/transactions/{transactionId}/prepare".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{transactionId}",encodeURIComponent(String(e.transactionId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async prepareCheckoutTransactionOptions(e,n){await this.prepareCheckoutTransactionOptionsRaw(e,n)}async publishEventRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling publishEvent.");if(null===e.publishEvents||void 0===e.publishEvents)throw new r.Q0("publishEvents","Required parameter requestParameters.publishEvents was null or undefined when calling publishEvent.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/events".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,eL.Sd)(e.publishEvents)},n);return new r.cK(a)}async publishEvent(e,n){await this.publishEventRaw(e,n)}async quoteCheckoutTransactionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling quoteCheckoutTransaction.");
1if(null===e.transactionId||void 0===e.transactionId)throw new r.Q0("transactionId","Required parameter requestParameters.transactionId was null or undefined when calling quoteCheckoutTransaction.");if(null===e.xDynamicCheckoutSessionToken||void 0===e.xDynamicCheckoutSessionToken)throw new r.Q0("xDynamicCheckoutSessionToken","Required parameter requestParameters.xDynamicCheckoutSessionToken was null or undefined when calling quoteCheckoutTransaction.");if(null===e.quoteRequest||void 0===e.quoteRequest)throw new r.Q0("quoteRequest","Required parameter requestParameters.quoteRequest was null or undefined when calling quoteCheckoutTransaction.");let t={};t["Content-Type"]="application/json",void 0!==e.xDynamicCheckoutSessionToken&&null!==e.xDynamicCheckoutSessionToken&&(t["X-Dynamic-Checkout-Session-Token"]=String(e.xDynamicCheckoutSessionToken));let a=await this.request({path:"/sdk/{environmentId}/transactions/{transactionId}/quote".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{transactionId}",encodeURIComponent(String(e.transactionId))),method:"POST",headers:t,query:{},body:(0,eF.Nr)(e.quoteRequest)},n);return new r.ko(a,e=>(0,c.HF)(e))}async quoteCheckoutTransaction(e,n){let t=await this.quoteCheckoutTransactionRaw(e,n);return await t.value()}async quoteCheckoutTransactionOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling quoteCheckoutTransactionOptions.");if(null===e.transactionId||void 0===e.transactionId)throw new r.Q0("transactionId","Required parameter requestParameters.transactionId was null or undefined when calling quoteCheckoutTransactionOptions.");let t=await this.request({path:"/sdk/{environmentId}/transactions/{transactionId}/quote".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{transactionId}",encodeURIComponent(String(e.transactionId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async quoteCheckoutTransactionOptions(e,n){await this.quoteCheckoutTransactionOptionsRaw(e,n)}async recordCheckoutBroadcastRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling recordCheckoutBroadcast.");if(null===e.transactionId||void 0===e.transactionId)throw new r.Q0("transactionId","Required parameter requestParameters.transactionId was null or undefined when calling recordCheckoutBroadcast.");if(null===e.xDynamicCheckoutSessionToken||void 0===e.xDynamicCheckoutSessionToken)throw new r.Q0("xDynamicCheckoutSessionToken","Required parameter requestParameters.xDynamicCheckoutSessionToken was null or undefined when calling recordCheckoutBroadcast.");if(null===e.recordBroadcastRequest||void 0===e.recordBroadcastRequest)throw new r.Q0("recordBroadcastRequest","Required parameter requestParameters.recordBroadcastRequest was null or undefined when calling recordCheckoutBroadcast.");let t={};t["Content-Type"]="application/json",void 0!==e.xDynamicCheckoutSessionToken&&null!==e.xDynamicCheckoutSessionToken&&(t["X-Dynamic-Checkout-Session-Token"]=String(e.xDynamicCheckoutSessionToken));let a=await this.request({path:"/sdk/{environmentId}/transactions/{transactionId}/broadcast".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{transactionId}",encodeURIComponent(String(e.transactionId))),method:"POST",headers:t,query:{},body:(0,eJ.FL)(e.recordBroadcastRequest)},n);return new r.ko(a,e=>(0,c.HF)(e))}async recordCheckoutBroadcast(e,n){let t=await this.recordCheckoutBroadcastRaw(e,n);return await t.value()}async recoverKeySharesRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling recoverKeyShares.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling recoverKeyShares.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/keyShares/recover".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"POST",headers:t,query:{},body:(0,eY.f8)(e.recoverMultipleClientKeySharesRequest)},n);return new r.ko(a,e=>(0,eX.Ec)(e))}async recoverKeyShares(e,n){let t=await this.recoverKeySharesRaw(e,n);return await t.value()}async recoverKeySharesOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling recoverKeySharesOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling recoverKeySharesOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/keyShares/recover".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async recoverKeySharesOptions(e,n){await this.recoverKeySharesOptionsRaw(e,n)}async recoveryCodesOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling recoveryCodesOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/mfa/recovery".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async recoveryCodesOptions(e,n){await this.recoveryCodesOptionsRaw(e,n)}async recoveryEmailOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling recoveryEmailOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/recoveryEmail".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async recoveryEmailOptions(e,n){await this.recoveryEmailOptionsRaw(e,n)}async refreshAuthRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling refreshAuth.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/refresh".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{}},n);return new r.ko(a,e=>(0,nK.p8)(e))}async refreshAuth(e,n){let t=await this.refreshAuthRaw(e,n);return await t.value()}async refreshKeySharesRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling refreshKeyShares.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling refreshKeyShares.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/refresh".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"POST",headers:t,query:{}},n);return new r.ko(a,e=>(0,eB.Jz)(e))}async refreshKeyShares(e,n){let t=await this.refreshKeySharesRaw(e,n);return await t.value()}async refreshKeySharesOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling refreshKeySharesOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling refreshKeySharesOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/refresh".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async refreshKeySharesOptions(e,n){await this.refreshKeySharesOptionsRaw(e,n)}async refreshOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling refreshOptions.");let t=await this.request({path:"/sdk/{environmentId}/refresh".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async refreshOptions(e,n){await this.refreshOptionsRaw(e,n)}async registerPasskeyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling registerPasskey.");if(null===e.passkeyRegisterRequest||void 0===e.passkeyRegisterRequest)throw new r.Q0("passkeyRegisterRequest","Required parameter requestParameters.passkeyRegisterRequest was null or undefined when calling registerPasskey.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/passkeys/register".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,ez.oz)(e.passkeyRegisterRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async registerPasskey(e,n){let t=await this.registerPasskeyRaw(e,n);return await t.value()}async registerPasskeyMfaDeviceRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling registerPasskeyMfaDevice.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa/register/passkey".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,ey.lD)(e))}async registerPasskeyMfaDevice(e,n){let t=await this.registerPasskeyMfaDeviceRaw(e,n);return await t.value()}async registerPasskeyMfaDeviceOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling registerPasskeyMfaDeviceOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/mfa/register/passkey".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async registerPasskeyMfaDeviceOptions(e,n){await this.registerPasskeyMfaDeviceOptionsRaw(e,n)}async registerPasskeyMfaDeviceVerifyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling registerPasskeyMfaDeviceVerify.");if(null===e.mFARegisterPasskeyDevicePostRequest||void 0===e.mFARegisterPasskeyDevicePostRequest)throw new r.Q0("mFARegisterPasskeyDevicePostRequest","Required parameter requestParameters.mFARegisterPasskeyDevicePostRequest was null or undefined when calling registerPasskeyMfaDeviceVerify.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa/register/passkey".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,ek.gC)(e.mFARegisterPasskeyDevicePostRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}
1async registerPasskeyMfaDeviceVerify(e,n){let t=await this.registerPasskeyMfaDeviceVerifyRaw(e,n);return await t.value()}async registerSessionKeyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling registerSessionKey.");if(null===e.registerSessionKeyRequest||void 0===e.registerSessionKeyRequest)throw new r.Q0("registerSessionKeyRequest","Required parameter requestParameters.registerSessionKeyRequest was null or undefined when calling registerSessionKey.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/sessionKey".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,eZ.hV)(e.registerSessionKeyRequest)},n);return new r.ko(a,e=>(0,e_.Zg)(e))}async registerSessionKey(e,n){let t=await this.registerSessionKeyRaw(e,n);return await t.value()}async registerTotpMfaDeviceRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling registerTotpMfaDevice.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa/register/totp".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:t,query:{}},n);return new r.ko(a,e=>(0,eO.GS)(e))}async registerTotpMfaDevice(e,n){let t=await this.registerTotpMfaDeviceRaw(e,n);return await t.value()}async registerTotpMfaDeviceOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling registerTotpMfaDeviceOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/mfa/register/totp".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async registerTotpMfaDeviceOptions(e,n){await this.registerTotpMfaDeviceOptionsRaw(e,n)}async registerTotpMfaDeviceVerifyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling registerTotpMfaDeviceVerify.");if(null===e.mFARegisterTotpDevicePostRequest||void 0===e.mFARegisterTotpDevicePostRequest)throw new r.Q0("mFARegisterTotpDevicePostRequest","Required parameter requestParameters.mFARegisterTotpDevicePostRequest was null or undefined when calling registerTotpMfaDeviceVerify.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa/register/totp".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,eT.BS)(e.mFARegisterTotpDevicePostRequest)},n);return new r.ko(a,e=>(0,eI.P$)(e))}async registerTotpMfaDeviceVerify(e,n){let t=await this.registerTotpMfaDeviceVerifyRaw(e,n);return await t.value()}async reshareRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling reshare.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling reshare.");if(null===e.reshareRequest||void 0===e.reshareRequest)throw new r.Q0("reshareRequest","Required parameter requestParameters.reshareRequest was null or undefined when calling reshare.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/reshare".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"POST",headers:t,query:{},body:(0,e0.VZ)(e.reshareRequest)},n);return new r.ko(a,e=>(0,eM.oK)(e))}async reshare(e,n){let t=await this.reshareRaw(e,n);return await t.value()}async reshareOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling reshareOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling reshareOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/reshare".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async reshareOptions(e,n){await this.reshareOptionsRaw(e,n)}async restoreEmbeddedWalletRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling restoreEmbeddedWallet.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling restoreEmbeddedWallet.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/{walletId}/restore".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"PUT",headers:t,query:{}},n);return new r.cK(a)}async restoreEmbeddedWallet(e,n){await this.restoreEmbeddedWalletRaw(e,n)}async restoreEmbeddedWalletOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling restoreEmbeddedWalletOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling restoreEmbeddedWalletOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/{walletId}/restore".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async restoreEmbeddedWalletOptions(e,n){await this.restoreEmbeddedWalletOptionsRaw(e,n)}async retryEmailVerificationRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling retryEmailVerification.");
1if(null===e.emailVerificationRetryRequest||void 0===e.emailVerificationRetryRequest)throw new r.Q0("emailVerificationRetryRequest","Required parameter requestParameters.emailVerificationRetryRequest was null or undefined when calling retryEmailVerification.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/emailVerifications/retry".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,B.Wc)(e.emailVerificationRetryRequest)},n);return new r.ko(a,e=>(0,N.VK)(e))}async retryEmailVerification(e,n){let t=await this.retryEmailVerificationRaw(e,n);return await t.value()}async retryEmailVerificationOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling retryEmailVerificationOptions.");let t=await this.request({path:"/sdk/{environmentId}/emailVerifications/retry".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async retryEmailVerificationOptions(e,n){await this.retryEmailVerificationOptionsRaw(e,n)}async retrySmsVerificationRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling retrySmsVerification.");if(null===e.smsVerificationRetryRequest||void 0===e.smsVerificationRetryRequest)throw new r.Q0("smsVerificationRetryRequest","Required parameter requestParameters.smsVerificationRetryRequest was null or undefined when calling retrySmsVerification.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/smsVerifications/retry".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nn.xU)(e.smsVerificationRetryRequest)},n);return new r.ko(a,e=>(0,ne.Yx)(e))}async retrySmsVerification(e,n){let t=await this.retrySmsVerificationRaw(e,n);return await t.value()}async retrySmsVerificationOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling retrySmsVerificationOptions.");let t=await this.request({path:"/sdk/{environmentId}/smsVerifications/retry".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async retrySmsVerificationOptions(e,n){await this.retrySmsVerificationOptionsRaw(e,n)}async revokeSessionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling revokeSession.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/revoke".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{}},n);return new r.cK(a)}async revokeSession(e,n){await this.revokeSessionRaw(e,n)}async revokeSessionOptionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling revokeSessionOption.");let t=await this.request({path:"/sdk/{environmentId}/revoke".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async revokeSessionOption(e,n){await this.revokeSessionOptionRaw(e,n)}async scanUrlRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling scanUrl.");if(null===e.scanWebsiteUrlRequest||void 0===e.scanWebsiteUrlRequest)throw new r.Q0("scanWebsiteUrlRequest","Required parameter requestParameters.scanWebsiteUrlRequest was null or undefined when calling scanUrl.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/scan/websiteUrl".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,e8.g$)(e.scanWebsiteUrlRequest)},n);return new r.ko(a,e=>(0,e2.Xs)(e))}async scanUrl(e,n){let t=await this.scanUrlRaw(e,n);return await t.value()}async scanUrlOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling scanUrlOptions.");let t=await this.request({path:"/sdk/{environmentId}/scan/websiteUrl".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async scanUrlOptions(e,n){await this.scanUrlOptionsRaw(e,n)}async sdkSettingsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling sdkSettingsOptions.");let t=await this.request({path:"/sdk/{environmentId}/sdkSettings".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async sdkSettingsOptions(e,n){await this.sdkSettingsOptionsRaw(e,n)}async selectUserWalletRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling selectUserWallet.");if(null===e.userWalletSelectionRequest||void 0===e.userWalletSelectionRequest)throw new r.Q0("userWalletSelectionRequest","Required parameter requestParameters.userWalletSelectionRequest was null or undefined when calling selectUserWallet.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/wallets/selection".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"PUT",headers:t,query:{},body:(0,nW.Dm)(e.userWalletSelectionRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async selectUserWallet(e,n){let t=await this.selectUserWalletRaw(e,n);return await t.value()}async selectUserWalletOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling selectUserWalletOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/wallets/selection".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async selectUserWalletOptions(e,n){await this.selectUserWalletOptionsRaw(e,n)}async sessionCheckRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling sessionCheck.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/session".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"GET",headers:t,query:{}},n);return new r.cK(a)}async sessionCheck(e,n){await this.sessionCheckRaw(e,n)}async sessionCheckOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling sessionCheckOptions.");let t=await this.request({path:"/sdk/{environmentId}/session".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async sessionCheckOptions(e,n){await this.sessionCheckOptionsRaw(e,n)}async sessionKeyOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling sessionKeyOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/sessionKey".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async sessionKeyOptions(e,n){await this.sessionKeyOptionsRaw(e,n)}async settingsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling settingsOptions.");let t=await this.request({path:"/sdk/{environmentId}/settings".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async settingsOptions(e,n){await this.settingsOptionsRaw(e,n)}async signInWithEmailVerificationRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling sign
1InWithEmailVerification.");if(null===e.emailVerificationVerifyRequest||void 0===e.emailVerificationVerifyRequest)throw new r.Q0("emailVerificationVerifyRequest","Required parameter requestParameters.emailVerificationVerifyRequest was null or undefined when calling signInWithEmailVerification.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/emailVerifications/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,z.RA)(e.emailVerificationVerifyRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async signInWithEmailVerification(e,n){let t=await this.signInWithEmailVerificationRaw(e,n);return await t.value()}async signInWithEmailVerificationOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling signInWithEmailVerificationOptions.");let t=await this.request({path:"/sdk/{environmentId}/emailVerifications/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async signInWithEmailVerificationOptions(e,n){await this.signInWithEmailVerificationOptionsRaw(e,n)}async signInWithSmsVerificationRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling signInWithSmsVerification.");if(null===e.smsVerificationVerifyRequest||void 0===e.smsVerificationVerifyRequest)throw new r.Q0("smsVerificationVerifyRequest","Required parameter requestParameters.smsVerificationVerifyRequest was null or undefined when calling signInWithSmsVerification.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/smsVerifications/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nt.cy)(e.smsVerificationVerifyRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async signInWithSmsVerification(e,n){let t=await this.signInWithSmsVerificationRaw(e,n);return await t.value()}async signInWithSmsVerificationOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling signInWithSmsVerificationOptions.");let t=await this.request({path:"/sdk/{environmentId}/smsVerifications/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async signInWithSmsVerificationOptions(e,n){await this.signInWithSmsVerificationOptionsRaw(e,n)}async signMessageRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling signMessage.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling signMessage.");if(null===e.signMessageWithWaasRequest||void 0===e.signMessageWithWaasRequest)throw new r.Q0("signMessageWithWaasRequest","Required parameter requestParameters.signMessageWithWaasRequest was null or undefined when calling signMessage.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/signMessage".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"POST",headers:t,query:{},body:(0,e3.fI)(e.signMessageWithWaasRequest)},n);return new r.ko(a,e=>(0,eN.D4)(e))}async signMessage(e,n){let t=await this.signMessageRaw(e,n);return await t.value()}async signMessageOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling signMessageOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling signMessageOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/signMessage".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async signMessageOptions(e,n){await this.signMessageOptionsRaw(e,n)}async signinWithPasskeyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling signinWithPasskey.");if(null===e.passkeyAuthRequest||void 0===e.passkeyAuthRequest)throw new r.Q0("passkeyAuthRequest","Required parameter requestParameters.passkeyAuthRequest was null or undefined when calling signinWithPasskey.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/users/passkeys/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,eh.JS)(e.passkeyAuthRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async signinWithPasskey(e,n){let t=await this.signinWithPasskeyRaw(e,n);return await t.value()}async simulateEVMTransactionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling simulateEVMTransaction.");
1if(null===e.simulateEVMTransactionRequest||void 0===e.simulateEVMTransactionRequest)throw new r.Q0("simulateEVMTransactionRequest","Required parameter requestParameters.simulateEVMTransactionRequest was null or undefined when calling simulateEVMTransaction.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/evm/simulateTransaction".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,e7.vb)(e.simulateEVMTransactionRequest)},n);return new r.ko(a,e=>(0,e4.cz)(e))}async simulateEVMTransaction(e,n){let t=await this.simulateEVMTransactionRaw(e,n);return await t.value()}async simulateEVMTransactionOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling simulateEVMTransactionOptions.");let t=await this.request({path:"/sdk/{environmentId}/evm/simulateTransaction".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async simulateEVMTransactionOptions(e,n){await this.simulateEVMTransactionOptionsRaw(e,n)}async simulateSVMTransactionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling simulateSVMTransaction.");if(null===e.simulateSVMTransactionRequest||void 0===e.simulateSVMTransactionRequest)throw new r.Q0("simulateSVMTransactionRequest","Required parameter requestParameters.simulateSVMTransactionRequest was null or undefined when calling simulateSVMTransaction.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/solana/simulateTransaction".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,e6.RV)(e.simulateSVMTransactionRequest)},n);return new r.ko(a,e=>(0,e4.cz)(e))}async simulateSVMTransaction(e,n){let t=await this.simulateSVMTransactionRaw(e,n);return await t.value()}async simulateSVMTransactionOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling simulateSVMTransactionOptions.");let t=await this.request({path:"/sdk/{environmentId}/solana/simulateTransaction".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async simulateSVMTransactionOptions(e,n){await this.simulateSVMTransactionOptionsRaw(e,n)}async simulateUserOpRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling simulateUserOp.");if(null===e.simulateUserOpRequest||void 0===e.simulateUserOpRequest)throw new r.Q0("simulateUserOpRequest","Required parameter requestParameters.simulateUserOpRequest was null or undefined when calling simulateUserOp.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/evm/simulateUserOp".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,e1.lP)(e.simulateUserOpRequest)},n);return new r.ko(a,e=>(0,e4.cz)(e))}async simulateUserOp(e,n){let t=await this.simulateUserOpRaw(e,n);return await t.value()}async simulateUserOpOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling simulateUserOpOptions.");let t=await this.request({path:"/sdk/{environmentId}/evm/simulateUserOp".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async simulateUserOpOptions(e,n){await this.simulateUserOpOptionsRaw(e,n)}async softDeleteEmbeddedWalletRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling softDeleteEmbeddedWallet.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling softDeleteEmbeddedWallet.");let t={};if(this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/{walletId}/softDelete".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"DELETE",headers:t,query:{}},n);return new r.cK(a)}async softDeleteEmbeddedWallet(e,n){await this.softDeleteEmbeddedWalletRaw(e,n)}async softDeleteEmbeddedWalletOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling softDeleteEmbeddedWalletOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling softDeleteEmbeddedWalletOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/{walletId}/softDelete".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async softDeleteEmbeddedWalletOptions(e,n){await this.softDeleteEmbeddedWalletOptionsRaw(e,n)}async sponsorSVMTransactionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling sponsorSVMTransaction.");
1if(null===e.sponsorSVMTransactionRequest||void 0===e.sponsorSVMTransactionRequest)throw new r.Q0("sponsorSVMTransactionRequest","Required parameter requestParameters.sponsorSVMTransactionRequest was null or undefined when calling sponsorSVMTransaction.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/solana/sponsorTransaction".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,ni.j7)(e.sponsorSVMTransactionRequest)},n);return new r.ko(a,e=>(0,no.gR)(e))}async sponsorSVMTransaction(e,n){let t=await this.sponsorSVMTransactionRaw(e,n);return await t.value()}async sponsorSVMTransactionOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling sponsorSVMTransactionOptions.");let t=await this.request({path:"/sdk/{environmentId}/solana/sponsorTransaction".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async sponsorSVMTransactionOptions(e,n){await this.sponsorSVMTransactionOptionsRaw(e,n)}async stepUpCheckRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling stepUpCheck.");if(null===e.stepUpCheckRequest||void 0===e.stepUpCheckRequest)throw new r.Q0("stepUpCheckRequest","Required parameter requestParameters.stepUpCheckRequest was null or undefined when calling stepUpCheck.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/stepUp/check".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nl.Ah)(e.stepUpCheckRequest)},n);return new r.ko(a,e=>(0,nu.jS)(e))}async stepUpCheck(e,n){let t=await this.stepUpCheckRaw(e,n);return await t.value()}async stepUpCheckOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling stepUpCheckOptions.");let t=await this.request({path:"/sdk/{environmentId}/stepUp/check".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async stepUpCheckOptions(e,n){await this.stepUpCheckOptionsRaw(e,n)}async swapQuoteRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling swapQuote.");if(null===e.swapQuoteRequest||void 0===e.swapQuoteRequest)throw new r.Q0("swapQuoteRequest","Required parameter requestParameters.swapQuoteRequest was null or undefined when calling swapQuote.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/swap/quote".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nw.qs)(e.swapQuoteRequest)},n);return new r.ko(a,e=>(0,nh.dr)(e))}async swapQuote(e,n){let t=await this.swapQuoteRaw(e,n);return await t.value()}async swapQuoteOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling swapQuoteOptions.");let t=await this.request({path:"/sdk/{environmentId}/swap/quote".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async swapQuoteOptions(e,n){await this.swapQuoteOptionsRaw(e,n)}async swapStatusRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling swapStatus.");if(null===e.swapStatusRequest||void 0===e.swapStatusRequest)throw new r.Q0("swapStatusRequest","Required parameter requestParameters.swapStatusRequest was null or undefined when calling swapStatus.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/swap/status".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nv.i1)(e.swapStatusRequest)},n);return new r.ko(a,e=>(0,np.$9)(e))}
1async swapStatus(e,n){let t=await this.swapStatusRaw(e,n);return await t.value()}async swapStatusOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling swapStatusOptions.");let t=await this.request({path:"/sdk/{environmentId}/swap/status".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async swapStatusOptions(e,n){await this.swapStatusOptionsRaw(e,n)}async telegramAuthOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling telegramAuthOptions.");let t=await this.request({path:"/sdk/{environmentId}/telegram/auth".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async telegramAuthOptions(e,n){await this.telegramAuthOptionsRaw(e,n)}async telegramCheckAuthRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling telegramCheckAuth.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/checkTelegramAuth".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,eV.PD)(e.oauthResultRequest)},n);return new r.cK(a)}async telegramCheckAuth(e,n){await this.telegramCheckAuthRaw(e,n)}async telegramCheckAuthOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling telegramCheckAuthOptions.");let t=await this.request({path:"/sdk/{environmentId}/checkTelegramAuth".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async telegramCheckAuthOptions(e,n){await this.telegramCheckAuthOptionsRaw(e,n)}async telegramSignInRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling telegramSignIn.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/telegram/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,eV.PD)(e.oauthResultRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async telegramSignIn(e,n){let t=await this.telegramSignInRaw(e,n);return await t.value()}async telegramSignInOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling telegramSignInOptions.");let t=await this.request({path:"/sdk/{environmentId}/telegram/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async telegramSignInOptions(e,n){await this.telegramSignInOptionsRaw(e,n)}async telegramVerifyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling telegramVerify.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/telegram/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,eV.PD)(e.oauthResultRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async telegramVerify(e,n){let t=await this.telegramVerifyRaw(e,n);return await t.value()}async telegramVerifyOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling telegramVerifyOptions.");let t=await this.request({path:"/sdk/{environmentId}
1/telegram/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async telegramVerifyOptions(e,n){await this.telegramVerifyOptionsRaw(e,n)}async updateEmbeddedWalletRecoveryEmailRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling updateEmbeddedWalletRecoveryEmail.");if(null===e.updateRecoveryEmailRequest||void 0===e.updateRecoveryEmailRequest)throw new r.Q0("updateRecoveryEmailRequest","Required parameter requestParameters.updateRecoveryEmailRequest was null or undefined when calling updateEmbeddedWalletRecoveryEmail.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/recoveryEmail".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"PUT",headers:t,query:{},body:(0,nk.$1)(e.updateRecoveryEmailRequest)},n);return new r.cK(a)}async updateEmbeddedWalletRecoveryEmail(e,n){await this.updateEmbeddedWalletRecoveryEmailRaw(e,n)}async updatePasskeyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling updatePasskey.");if(null===e.updateUserPasskeyRequest||void 0===e.updateUserPasskeyRequest)throw new r.Q0("updateUserPasskeyRequest","Required parameter requestParameters.updateUserPasskeyRequest was null or undefined when calling updatePasskey.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/passkeys".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"PUT",headers:t,query:{},body:(0,nT.Fc)(e.updateUserPasskeyRequest)},n);return new r.ko(a,e=>(0,nQ.Ep)(e))}async updatePasskey(e,n){let t=await this.updatePasskeyRaw(e,n);return await t.value()}async updateSelfRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling updateSelf.");if(null===e.userFields||void 0===e.userFields)throw new r.Q0("userFields","Required parameter requestParameters.userFields was null or undefined when calling updateSelf.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"PUT",headers:t,query:{},body:(0,nU.eu)(e.userFields)},n);return new r.ko(a,e=>(0,nO.l7)(e))}async updateSelf(e,n){let t=await this.updateSelfRaw(e,n);return await t.value()}async updateUserMfaDeviceRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling updateUserMfaDevice.");if(null===e.mfaDeviceId||void 0===e.mfaDeviceId)throw new r.Q0("mfaDeviceId","Required parameter requestParameters.mfaDeviceId was null or undefined when calling updateUserMfaDevice.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/users/mfa/{mfaDeviceId}".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{mfaDeviceId}",encodeURIComponent(String(e.mfaDeviceId))),method:"PUT",headers:t,query:{},body:(0,eS.GU)(e.mFAUpdateDeviceRequest)},n);return new r.cK(a)}async updateUserMfaDevice(e,n){await this.updateUserMfaDeviceRaw(e,n)}async updateWaasWalletSettingsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling updateWaasWalletSettings.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling updateWaasWalletSettings.");if(null===e.updateWaasWalletSettingsRequest||void 0===e.updateWaasWalletSettingsRequest)throw new r.Q0("updateWaasWalletSettingsRequest","Required parameter requestParameters.updateWaasWalletSettingsRequest was null or undefined when calling updateWaasWalletSettings.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/settings".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"PUT",headers:t,query:{},body:(0,nS.in)(e.updateWaasWalletSettingsRequest)},n);return new r.ko(a,e=>(0,nP.xY)(e))}
1async updateWaasWalletSettings(e,n){let t=await this.updateWaasWalletSettingsRaw(e,n);return await t.value()}async upgradeEmbeddedWalletToV2Raw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling upgradeEmbeddedWalletToV2.");if(null===e.upgradeEmbeddedWalletToV2Request||void 0===e.upgradeEmbeddedWalletToV2Request)throw new r.Q0("upgradeEmbeddedWalletToV2Request","Required parameter requestParameters.upgradeEmbeddedWalletToV2Request was null or undefined when calling upgradeEmbeddedWalletToV2.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/upgradeToV2".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nC.$n)(e.upgradeEmbeddedWalletToV2Request)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async upgradeEmbeddedWalletToV2(e,n){let t=await this.upgradeEmbeddedWalletToV2Raw(e,n);return await t.value()}async upgradeEmbeddedWalletToV2OptionRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling upgradeEmbeddedWalletToV2Option.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/upgradeToV2".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async upgradeEmbeddedWalletToV2Option(e,n){await this.upgradeEmbeddedWalletToV2OptionRaw(e,n)}async userPasskeysOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling userPasskeysOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/passkeys".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async userPasskeysOptions(e,n){await this.userPasskeysOptionsRaw(e,n)}async usersOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling usersOptions.");let t=await this.request({path:"/sdk/{environmentId}/users".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async usersOptions(e,n){await this.usersOptionsRaw(e,n)}async verifyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verify.");if(null===e.verifyRequest||void 0===e.verifyRequest)throw new r.Q0("verifyRequest","Required parameter requestParameters.verifyRequest was null or undefined when calling verify.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nE.cu)(e.verifyRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}
1async verify(e,n){let t=await this.verifyRaw(e,n);return await t.value()}async verifyEmailVerificationRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifyEmailVerification.");if(null===e.emailVerificationVerifyRequest||void 0===e.emailVerificationVerifyRequest)throw new r.Q0("emailVerificationVerifyRequest","Required parameter requestParameters.emailVerificationVerifyRequest was null or undefined when calling verifyEmailVerification.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/emailVerifications/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,z.RA)(e.emailVerificationVerifyRequest)},n);return new r.ko(a,e=>(0,nO.l7)(e))}async verifyEmailVerification(e,n){let t=await this.verifyEmailVerificationRaw(e,n);return await t.value()}async verifyEmailVerificationOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifyEmailVerificationOptions.");let t=await this.request({path:"/sdk/{environmentId}/emailVerifications/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async verifyEmailVerificationOptions(e,n){await this.verifyEmailVerificationOptionsRaw(e,n)}async verifyLinkRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifyLink.");if(null===e.verifyRequest||void 0===e.verifyRequest)throw new r.Q0("verifyRequest","Required parameter requestParameters.verifyRequest was null or undefined when calling verifyLink.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/verify/link".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nE.cu)(e.verifyRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async verifyLink(e,n){let t=await this.verifyLinkRaw(e,n);return await t.value()}async verifyLinkOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifyLinkOptions.");let t=await this.request({path:"/sdk/{environmentId}/verify/link".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async verifyLinkOptions(e,n){await this.verifyLinkOptionsRaw(e,n)}async verifyMergeUsersRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifyMergeUsers.");if(null===e.mergeUserConflictResolutions||void 0===e.mergeUserConflictResolutions)throw new r.Q0("mergeUserConflictResolutions","Required parameter requestParameters.mergeUserConflictResolutions was null or undefined when calling verifyMergeUsers.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/verify/merge".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,eP.UY)(e.mergeUserConflictResolutions)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async verifyMergeUsers(e,n){let t=await this.verifyMergeUsersRaw(e,n);return await t.value()}async verifyMergeUsersOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifyMergeUsersOptions.");let t=await this.request({path:"/sdk/{environmentId}/verify/merge".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async verifyMergeUsersOptions(e,n){await this.verifyMergeUsersOptionsRaw(e,n)}async verifyOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifyOptions.");let t=await this.request({path:"/sdk/{environmentId}/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async verifyOptions(e,n){await this.verifyOptionsRaw(e,n)}async verifyPrefetchRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifyPrefetch.");let t=await this.request({path:"/sdk/{environmentId}/prefetch".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}
1async verifyPrefetch(e,n){await this.verifyPrefetchRaw(e,n)}async verifySmsVerificationRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifySmsVerification.");if(null===e.smsVerificationVerifyRequest||void 0===e.smsVerificationVerifyRequest)throw new r.Q0("smsVerificationVerifyRequest","Required parameter requestParameters.smsVerificationVerifyRequest was null or undefined when calling verifySmsVerification.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/smsVerifications/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nt.cy)(e.smsVerificationVerifyRequest)},n);return new r.ko(a,e=>(0,nO.l7)(e))}async verifySmsVerification(e,n){let t=await this.verifySmsVerificationRaw(e,n);return await t.value()}async verifySmsVerificationOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifySmsVerificationOptions.");let t=await this.request({path:"/sdk/{environmentId}/smsVerifications/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async verifySmsVerificationOptions(e,n){await this.verifySmsVerificationOptionsRaw(e,n)}async verifyTransferRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifyTransfer.");if(null===e.verifyRequest||void 0===e.verifyRequest)throw new r.Q0("verifyRequest","Required parameter requestParameters.verifyRequest was null or undefined when calling verifyTransfer.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/verify/transfer".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nE.cu)(e.verifyRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async verifyTransfer(e,n){let t=await this.verifyTransferRaw(e,n);return await t.value()}async verifyTransferOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifyTransferOptions.");let t=await this.request({path:"/sdk/{environmentId}/verify/transfer".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async verifyTransferOptions(e,n){await this.verifyTransferOptionsRaw(e,n)}async verifyUnlinkRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifyUnlink.");if(null===e.verifyUnlinkRequest||void 0===e.verifyUnlinkRequest)throw new r.Q0("verifyUnlinkRequest","Required parameter requestParameters.verifyUnlinkRequest was null or undefined when calling verifyUnlink.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/verify/unlink".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nD.ju)(e.verifyUnlinkRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async verifyUnlink(e,n){let t=await this.verifyUnlinkRaw(e,n);return await t.value()}async verifyUnlinkOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling verifyUnlinkOptions.");let t=await this.request({path:"/sdk/{environmentId}/verify/unlink".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async verifyUnlinkOptions(e,n){await this.verifyUnlinkOptionsRaw(e,n)}async waasWalletSettingsOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling waasWalletSettingsOptions.");if(null===e.walletId||void 0===e.walletId)throw new r.Q0("walletId","Required parameter requestParameters.walletId was null or undefined when calling waasWalletSettingsOptions.");let t=await this.request({path:"/sdk/{environmentId}/waas/{walletId}/settings".replace("{environmentId}",encodeURIComponent(String(e.environmentId))).replace("{walletId}",encodeURIComponent(String(e.walletId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async waasWalletSettingsOptions(e,n){await this.waasWalletSettingsOptionsRaw(e,n)}async walletAccountOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling walletAccountOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/walletAccounts".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async walletAccountOptions(e,n){await this.walletAccountOptionsRaw(e,n)}async walletAccountRequestOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling walletAccountRequestOptions.");let t=await this.request({path:"/sdk/{environmentId}/users/embeddedWallets/walletAccounts/createRequest".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async walletAccountRequestOptions(e,n){await this.walletAccountRequestOptionsRaw(e,n)}async walletsSigninRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling walletsSignin.");if(null===e.verifyRequest||void 0===e.verifyRequest)throw new r.Q0("verifyRequest","Required parameter requestParameters.verifyRequest was null or undefined when calling walletsSignin.");let t={};t["Content-Type"]="application/json";let a=await this.request({path:"/sdk/{environmentId}/wallets/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nE.cu)(e.verifyRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}async walletsSignin(e,n){let t=await this.walletsSigninRaw(e,n);return await t.value()}async walletsSigninOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling walletsSigninOptions.");let t=await this.request({path:"/sdk/{environmentId}/wallets/signin".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async walletsSigninOptions(e,n){await this.walletsSigninOptionsRaw(e,n)}async walletsVerifyRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling walletsVerify.");if(null===e.verifyRequest||void 0===e.verifyRequest)throw new r.Q0("verifyRequest","Required parameter requestParameters.verifyRequest was null or undefined when calling walletsVerify.");let t={};if(t["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let e=this.configuration.accessToken,n=await e("bearerAuth",[]);n&&(t.Authorization=`Bearer ${n}`)}let a=await this.request({path:"/sdk/{environmentId}/wallets/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"POST",headers:t,query:{},body:(0,nE.cu)(e.verifyRequest)},n);return new r.ko(a,e=>(0,nK.p8)(e))}
1async walletsVerify(e,n){let t=await this.walletsVerifyRaw(e,n);return await t.value()}async walletsVerifyOptionsRaw(e,n){if(null===e.environmentId||void 0===e.environmentId)throw new r.Q0("environmentId","Required parameter requestParameters.environmentId was null or undefined when calling walletsVerifyOptions.");let t=await this.request({path:"/sdk/{environmentId}/wallets/verify".replace("{environmentId}",encodeURIComponent(String(e.environmentId))),method:"OPTIONS",headers:{},query:{}},n);return new r.cK(t)}async walletsVerifyOptions(e,n){await this.walletsVerifyOptionsRaw(e,n)}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.