@orbis-systems/orbis-api-clients 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2115 -215
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"auto-bind";import{decode as t}from"jsonwebtoken";import{isString as s,isNil as r,merge as n}from"lodash";import i,{isAxiosError as a,HttpStatusCode as o}from"axios";import u from"axios-better-stacktrace";function E(e,t){return Object.keys(t).forEach(function(s){"default"===s||"__esModule"===s||Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[s]}})}),e}function l(e,t,s,r){Object.defineProperty(e,t,{get:s,set:r,enumerable:!0,configurable:!0})}function T(e){return e&&e.__esModule?e.default:e}var R,p,_,c,d,h,O,C,I,S,A,N,y,m,P,L,D,b,g,f,U,v,M={},B={};l(B,"MiddlewareApi",()=>er);class w{constructor(t){this.apiClient=t,e(this)}getApiClient(){return this.apiClient}}(R=N||(N={})).Json="application/json",R.FormData="multipart/form-data",R.UrlEncoded="application/x-www-form-urlencoded",R.Text="text/plain";class ${constructor(t){this.config=t,e(this),this.storage=t.storage??sessionStorage,this.axiosInstance=i.create({baseURL:t.baseUrl,headers:{"Content-Type":"application/json",...t.defaultHeaders}}),u(this.axiosInstance)}stringifyFormItem(e){return"object"==typeof e&&null!==e?JSON.stringify(e):`${e}`}createFormData(e){return e instanceof FormData?e:Object.keys(e||{}).reduce((t,s)=>{let r=e[s];for(let e of r instanceof Array?r:[r]){let r=e instanceof Blob||e instanceof File;t.append(s,r?e:this.stringifyFormItem(e))}return t},new FormData)}async request(e){let{contentType:t,data:s}=e;r(s)||("multipart/form-data"===t&&"object"==typeof s&&(e.data=this.createFormData(s)),"text/plain"===t&&"string"!=typeof s&&(e.data=JSON.stringify(s)));let i=n(e.secure?this.prepareAuthRequestConfig():{},t?{header:{"Content-Type":t}}:{},e);try{let{data:e,status:t,statusText:s}=await this.axiosInstance.request(i);return{success:!0,data:e,status:t,statusText:s}}catch(t){if(!this.config.errorHandling)throw t;let e={success:!1,status:-1,statusText:String(t),error:t};return a(t)&&(this.config.onAxiosError?.(t),e.data=t.response?.data,e.status=t.response?.status??e.status,e.statusText=t.response?.statusText??e.statusText),this.config.onError?.(t),e}}get(e,t){return this.request({...t,method:"GET",url:e})}delete(e,t){return this.request({...t,method:"DELETE",url:e})}head(e,t){return this.request({...t,method:"HEAD",url:e})}options(e,t){return this.request({...t,method:"OPTIONS",url:e})}post(e,t,s){return this.request({...s,method:"POST",url:e,data:t})}put(e,t,s){return this.request({...s,method:"PUT",url:e,data:t})}patch(e,t,s){return this.request({...s,method:"PATCH",url:e,data:t})}getAxios(){return this.axiosInstance}setAuthData(e){this.storage.setItem(this.config.authDataStorageKey||"auth",JSON.stringify(e))}getAuthData(){let e=this.storage.getItem(this.config.authDataStorageKey||"auth");return e?JSON.parse(e):null}getConfig(){return this.config}}class q extends ${constructor(e){super(e),this.config=e}getConfig(){return super.getConfig()}prepareAuthRequestConfig(){let{accessToken:e}=this.getAuthData()||{};return e?{headers:{Authorization:`${this.config.authSchema??"Bearer"} ${e}`}}:(console.warn("No access token found. Please set auth data after authorization."),{})}scheduleTokenRenewal(e){this.cancelTokenRenewal();let r=this.getAuthData(),n=t(r?.accessToken||"");if(!n||s(n)||!n.exp){console.warn("Could not schedule token renewal: invalid expiration time.");return}let i=1e3*n.exp-Date.now();this.tokenRenewalTimeout=setTimeout(async()=>{let t=await e();this.setAuthData(t),this.scheduleTokenRenewal(e)},i-6e4)}cancelTokenRenewal(){clearTimeout(this.tokenRenewalTimeout)}}var G={},k={};l(k,"AttributeApi",()=>F);class F{constructor(t){this.apiClient=t,e(this)}getAttributeValues(e){return this.apiClient.request({...e,url:"/v1/attributes",method:"GET",secure:!0,responseType:"json"})}getPublicAttributeValue(e,t){return this.apiClient.request({...t,url:`/v1/attributes/${e}`,method:"GET",secure:!0,responseType:"json"})}}var j={};l(j,"AuthenticationApi",()=>J);class J{constructor(t){this.apiClient=t,e(this)}authenticate(e,t){return this.apiClient.request({...t,url:"/v1/authenticate",method:"POST",headers:e,responseType:"json"})}refresh(e){return this.apiClient.request({...e,url:"/v1/refresh",method:"POST",secure:!0,responseType:"json"})}invalidate(e){return this.apiClient.request({...e,url:"/v1/invalidate",method:"POST",secure:!0})}}var x={};l(x,"AvatarApi",()=>Y);class Y{constructor(t){this.apiClient=t,e(this)}getUserAvatar(e,t){return this.apiClient.request({...t,url:`/v1/avatars/users/${e}`,method:"GET",secure:!0,responseType:"blob"})}uploadUserAvatar(e,t,s){return this.apiClient.request({...s,url:`/v1/avatars/users/${e}`,method:"POST",data:t,secure:!0,contentType:N.FormData})}deleteUserAvatar(e,t){return this.apiClient.request({...t,url:`/v1/avatars/users/${e}`,method:"DELETE",secure:!0})}getAccountAvatar(e,t){return this.apiClient.request({...t,url:`/v1/avatars/accounts/${e}`,method:"GET",secure:!0,responseType:"blob"})}uploadAccountAvatar(e,t,s){return this.apiClient.request({...s,url:`/v1/avatars/accounts/${e}`,method:"POST",data:t,secure:!0,contentType:N.FormData})}deleteAccountAvatar(e,t){return this.apiClient.request({...t,url:`/v1/avatars/accounts/${e}`,method:"DELETE",secure:!0})}}var V={};l(V,"ChartApi",()=>H);class H{constructor(t){this.apiClient=t,e(this)}getChartLayouts(e){return this.apiClient.request({...e,url:"/v1/charts/layouts",method:"GET",secure:!0,responseType:"json"})}updateChartLayout(e,t){return this.apiClient.request({...t,url:"/v1/charts/layouts",method:"PUT",data:e,secure:!0,contentType:N.Json,responseType:"json"})}getChartLayoutDetails(e,t){return this.apiClient.request({...t,url:`/v1/charts/layouts/${e}`,method:"GET",secure:!0,responseType:"json"})}deleteChartLayout(e,t){return this.apiClient.request({...t,url:`/v1/charts/layouts/${e}`,method:"DELETE",secure:!0})}getIndicatorTemplates(e){return this.apiClient.request({...e,url:"/v1/charts/indicator-templates",method:"GET",secure:!0,responseType:"json"})}updateIndicatorTemplate(e,t){return this.apiClient.request({...t,url:"/v1/charts/indicator-templates",method:"PUT",data:e,secure:!0,contentType:N.Json,responseType:"json"})}getIndicatorTemplateDetails(e,t){return this.apiClient.request({...t,url:`/v1/charts/indicator-templates/${e}`,method:"GET",secure:!0,responseType:"json"})}deleteIndicatorTemplate(e,t){return this.apiClient.request({...t,url:`/v1/charts/indicator-templates/${e}`,method:"DELETE",secure:!0})}getChartTemplates(e){return this.apiClient.request({...e,url:"/v1/charts/templates",method:"GET",secure:!0,responseType:"json"})}updateChartTemplate(e,t){return this.apiClient.request({...t,url:"/v1/charts/templates",method:"PUT",data:e,secure:!0,contentType:N.Json,responseType:"json"})}getChartTemplateDetails(e,t){return this.apiClient.request({...t,url:`/v1/charts/templates/${e}`,method:"GET",secure:!0,responseType:"json"})}deleteChartTemplate(e,t){return this.apiClient.request({...t,url:`/v1/charts/templates/${e}`,method:"DELETE",secure:!0})}}var W={};l(W,"MessageApi",()=>K);class K{constructor(t){this.apiClient=t,e(this)}getMessages(e,t){return this.apiClient.request({...t,url:"/v1/messages",method:"GET",params:e,secure:!0,responseType:"json"})}}var Q={};l(Q,"PreferenceApi",()=>X);class X{constructor(t){this.apiClient=t,e(this)}getPreferences(e){return this.apiClient.request({...e,url:"/v1/preferences",method:"GET",secure:!0,responseType:"json"})}savePreferences(e){return this.apiClient.request({...e,url:"/v1/preferences",method:"POST",secure:!0,responseType:"json"})}}var z={};l(z,"VersioningApi",()=>Z);class Z{constructor(t){this.apiClient=t,e(this)}getAppVersion(e,t){return this.apiClient.request({...t,url:`/versioning/${e}`,method:"GET",responseType:"json"})}updateAppVersion(e,t,s){return this.apiClient.request({...s,url:`/versioning/${e}`,method:"POST",data:t,contentType:N.Json})}}var ee={};l(ee,"WatchlistApi",()=>et);class et{constructor(t){this.apiClient=t,e(this)}getAllWatchlists(e){return this.apiClient.request({...e,url:"/v1/watchlists",method:"GET",secure:!0,responseType:"json"})}createWatchlist(e,t){return this.apiClient.request({...t,url:"/v1/watchlists",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}getWatchlist(e,t){return this.apiClient.request({...t,url:`/v1/watchlists/${e}`,method:"GET",secure:!0,responseType:"json"})}updateWatchlist(e,t,s){return this.apiClient.request({...s,url:`/v1/watchlists/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}deleteWatchlist(e,t){return this.apiClient.request({...t,url:`/v1/watchlists/${e}`,method:"DELETE",secure:!0})}addWatchlistEntries(e,t,s){return this.apiClient.request({...s,url:`/v1/watchlists/${e}/entries`,method:"POST",data:t,secure:!0,contentType:N.Json,responseType:"json"})}removeWatchlistEntries(e,t,s){return this.apiClient.request({...s,url:`/v1/watchlists/${e}/entries`,method:"DELETE",data:t,secure:!0,contentType:N.Json,responseType:"json"})}updateWatchlistEntries(e,t,s){return this.apiClient.request({...s,url:`/v1/watchlists/${e}/entries`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}updateWatchlistOrders(e,t){return this.apiClient.request({...t,url:"/v1/watchlists/orders",method:"POST",data:e,secure:!0,contentType:N.Json})}importWatchmenWatchlists(e){return this.apiClient.request({...e,url:"/v1/watchlists/import",method:"POST",secure:!0})}}E(G,k),E(G,j),E(G,x),E(G,V),E(G,W),E(G,Q),E(G,{}),E(G,z),E(G,ee);class es extends J{async authenticate(e,t){let s=await super.authenticate(e,t);return s.success&&(this.apiClient.setAuthData(s.data),this.apiClient.scheduleTokenRenewal(this.renewToken)),s}async renewToken(){let e=this.apiClient.getAuthData()?.refreshToken;if(!e)throw Error("Refresh token not found");let t=await this.refresh({headers:{Authorization:`${this.apiClient.getConfig().authSchema??"Bearer"} ${e}`}});if(t.success)return{accessToken:t.data.accessToken,refreshToken:t.data.refreshToken};throw Error(`Could not renew token: ${String(t.error)}`)}}class er extends w{constructor(e){super(new q(e)),this.config=e,this.attribute=new F(this.apiClient),this.authentication=new es(this.apiClient),this.avatar=new Y(this.apiClient),this.chart=new H(this.apiClient),this.message=new K(this.apiClient),this.preference=new X(this.apiClient),this.versioning=new Z(this.apiClient),this.watchlist=new et(this.apiClient)}}E(M,B),E(M,G);var en={};l(en,"OrbisApi",()=>eo);var ei={};ei=JSON.parse('{"ERR_UNKNOWN_ERROR":"Unknown Error","ERR_ESIGNATURE_REQUIRED":"E-Signature Required","ERR_ACH_NOT_ALLOWED":"Ach Not Allowed","ERR_ACH_WITHDRAWAL_NOT_ALLOWED":"Ach Withdrawal Not Allowed","ERR_ACH_DEPOSITS_NOT_ALLOWED":"Ach Deposits Not Allowed","ERR_WIRE_WITHDRAWAL_NOT_ALLOWED":"Wire Withdrawal Not Allowed","ERR_PLAID_ERROR":"Plaid Error","ERR_IDENTITIES_NOT_AVAILABLE":"Identities Not Available","ERR_NAMES_NOT_AVAILABLE":"Names Not Available","ERR_INSUFFICIENT_SHARES":"Insufficient Shares","ERR_INSUFFICIENT_FUNDS":"Insufficient Funds","ERR_INSUFFICIENT_CASH":"Insufficient Cash","ERR_MARGIN_ACCOUNT_ONLY":"Margin Account Only","ERR_NOT_SHORTABLE":"Not Shortable","ERR_SHORTABLE_LIMIT_EXCEEDED":"Shortable Limit Exceeded","ERR_NO_QUOTE":"No Quote","ERR_PURPOSE_NOT_SUPPORTED":"Purpose Not Supported","ERR_OPTION_EXPIRED":"Option Expired","ERR_CANNOT_BUY_TO_OPEN":"Cannot Buy To Open","ERR_CANNOT_SELL_TO_CLOSE":"Cannot Sell To Close","ERR_CANNOT_NAKED_SELL_TO_OPEN":"Cannot sell to open without spread","ERR_CANNOT_BUY_TO_CLOSE":"Cannot Buy To close","ERR_BUY_OPEN_SELL_OPEN":"Cannot Buy to Open and Sell to Open at same time","ERR_BUY_STRIKE_MORE_SELL_STRIKE":"Buy Strike higher than Sell Strike Price","ERR_QUANTITIES_NOT_EQUAL":"Spread Quantities are not Equal","ERR_MUST_BE_CALLS":"Must Be Calls","ERR_MUST_BE_PUTS":"Must Be Puts","ERR_MUST_BE_CREDIT":"Must Be Credit","ERR_SAME_UNDERLYING":"Same Underlying","ERR_MUST_ENTER_DEBIT_PRICE":"Debit price must be entered","ERR_MUST_ENTER_CREDIT_PRICE":"Credit price must be entered","ERR_MUST_BE_DEBIT":"Transaction must be Debit","ERR_SAME_EXPIRATION_MONTH":"Same expiration month","ERR_OPTIONS_NOT_PERMITTED":"Options not permitted","ERR_MUST_MARGIN_ACCOUNT":"Margin account is required to complete this transaction","ERR_NO_ILM_ACCOUNT":"No Ilm Account","ERR_NO_OTCBB":"Cannot short sell an OTC stock","ERR_LIMIT_ONLY":"Limit orders only","ERR_OUTSIDE_MARKET_HOURS":"Cannot trade outside market hours","ERR_MARKET_CLOSED":"Market is closed","ERR_BUY_STRIKE_LESS_SELL_STRIKE":"Buy Strike is less than Sell strike price","ERR_BUY_STRIKE_EQUAL_SELL_STRIKE":"Buy strike is equal to Sell strike price","ERR_BUY_EXPIRATION_LONGER":"Buy Expiration Longer","ERR_BUY_EXPIRATION_SHORTER":"Buy Expiration Shorter","ERR_BUY_OPTION_PRICE_GREATER_SELL_OPTION_PRICE":"Buy Option Price Greater Sell Option Price","ERR_BUY_OPTION_PRICE_LESSER_SELL_OPTION_PRICE":"Buy Option Price Lesser Sell Option Price","ERR_SELL_RESTRICTED":"Sell orders for this security are not allowed","ERR_BUY_RESTRICTED":"Buy orders for this security are not allowed","ERR_NEW_ORDERS_ARE_RESTRICTED":"New Orders Are Restricted","ERR_INVALID_BLOCK_SIZE":"Invalid Block Size","ERR_TRADING_RESTRICTED":"Trading Restricted","ERR_SELL_CLOSE_BUY_CLOSE":"Cannot Sell to Close and Buy to Close same position","ERR_LESS_OR_NO_SELL_TO_OPEN_POSN":"Less Or No Sell To Open Position","ERR_LESS_OR_NO_BUY_TO_OPEN_POSN":"Less Or No Buy To Open Position","ERR_STOP_GREATER_LAST":"Stop price must be less than the last price","ERR_STOP_LESS_LAST":"Stop price cannot be less than last price","ERR_TRADING_HALTED":"Trading has been halted temporarily","ERR_EXCHANGE_RESTRICTION":"Trading on this security has been restricted","ERR_SYMBOL_NOT_TRADABLE":"Symbol is not tradable","ERR_MISSING_RULE_5030_5131":"Missing Rule 50305131","ERR_DUPLICATE_ORDER_REFERENCE":"Duplicate order reference","ERR_LIMIT_LESS_STOP":"Limit price must be greater than the stop price","ERR_ORDER_TYPE_NOT_TRADABLE":"Cannot place market orders at this time","ERR_ORDER_TYPE_NOT_PERMITTED":"Order Type not permitted","ERR_ACCOUNT_NOT_TRADABLE":"Account is currently not tradable","ERR_INVALID_EXPECTED_VALUE":"Invalid expected value","ERR_LIMIT_GREATER_STOP":"Limit price must be less than the stop price","ERR_ORDER_NOT_FOUND":"Order not found","ERR_NO_SHARES_AVAILABLE":"No shares available","ERR_NO_CHANGES":"No changes","ERR_SHARES_LESS_EXECUTED":"Shares less executed","ERR_REQUEST_IN_PROGRESS":"Request in progress","ERR_REPLACE_IN_PROGRESS":"Replace in progress","ERR_TRANSACTION_NOT_SUPPORTED":"Transaction is not supported for this order type","ERR_START_TIME_BEFORE_END_TIME":"Start time before end time","ERR_ALGO_STRATEGY_NOT_SUPPORTED":"Algo Strategy not supported","ERR_DUPLICATE_ORDER_SUBMISSION":"Duplicate order. Please resubmit in at least 30 seconds","ERR_UNKNOWN_ORDER_TYPE":"Unknown Order Type","ERR_MAX_FLOOR_GREATER_THAN_QUANTITY":"Max Floor Greater than Quantity","ERR_MAX_FLOOR_NOT_ODD_LOT":"Max Floor Not Odd Lot","ERR_CANNOT_SELL_TO_OPEN":"Cannot Sell To Open","ERR_NO_GTC_ON_INET":"GTC orders are not allowed on ECN","ERR_NO_GTD_PERMITTED":"GTD Orders not Permitted","ERR_TOO_MANY_DECIMAL_PLACES":"Too many decimal places","ERR_LIQUIDATION_ONLY":"Liquidation only","ERR_INSUFFICIENT_EQUITY":"Insufficient Equity","ERR_MUST_BE_EVEN":"Must Be Even","ERR_ODD_LOT_ONLY":"This security trades in odd lots only","ERR_TOO_LATE_TO_ENTER":"Too late to enter","ERR_OPTION_TRADING_RESTRICTED":"Option trading restricted","ERR_TOO_EARLY_TO_ENTER":"Too early to enter","ERR_VOLUME_CONSTRAINT_NOT_NEEDED":"Volume Constraint not needed","ERR_VOLUME_CONSTRAINT_NEEDED":"Volume constraint needed","ERR_CANNOT_DO_SPREADS":"Spread trading is not available","ERR_OCO_NEED_SAME_SECURITY":"OCO Need same security","ERR_OCO_NEED_SAME_SIZE":"OCO needs same size","ERR_OCO_MUST_BE_STOP":"OCO must be stop","ERR_OCO_LIMIT_BELOW_STOP":"OCO limit below stop","ERR_OCO_MUST_BE_LIMIT":"OCO must be limit","ERR_OCO_STOP_BELOW_LIMIT":"OCO stop below limit","ERR_OCO_NEED_DIFFERENT_SECURITY":"OCO needs different security","ERR_OCO_VALUE_MUST_BE_EQUAL":"OCO value must be equal","ERR_NEGATIVE_MARKUP":"Markup cannot be negative","ERR_MARKUP_TOO_BIG":"Markup too big","ERR_DIMES_ONLY":"This option is traded in dimes (10c increments) only","ERR_NICKELS_ONLY":"Price must be in 5 cent spread","ERR_OCO_STOP_TOO_CLOSE":"Oco stop too close","ERR_CREATING_NAKED_POSITION":"This transaction will create a naked position your account is not allowed to have","ERR_INSUFFICIENT_SHORT_SHARES":"Insufficient short shares","ERR_OCO_INVALID_ORDER_TYPE":"OCO invalid order type","ERR_ORDER_NOT_FOUND_BUY_LEG":"Order cannot find BUY leg of spread","ERR_ORDER_NOT_FOUND_SELL_LEG":"Order cannot find SELL leg of spread","ERR_STATUS_NOT_IN_W_E_B":"Status Not In WEB","ERR_INSERT_REPLACE_BUY_LEG":"INSERT Replace buy leg","ERR_INSERT_REPLACE_SELL_LEG":"INSERT Replace sell leg","ERR_INSERT_REPLACE_HIST":"INSERT replace history","ERR_UPDATE_REPLACE_BUY_LEG":"UPDATE Replace buy leg","ERR_UPDATE_REPLACE_SELL_LEG":"UPDATE Replace sell leg","ERR_INSERT_G_EVENT_BUY_LEG":"Insert G-Event for SELL leg","ERR_INSERT_G_EVENT_SELL_LEG":"Insert G-Event for BUY leg","ERR_INSERT_V_EVENT_BUY_LEG":"Insert V-Event for BUY leg","ERR_INSERT_V_EVENT_SELL_LEG":"Insert V-Event for SELL leg","ERR_INSERT_REPLACE_SUCCESS_HIST":"INSERT Replace success history","ERR_REPLACE_ACTIVE_ZERO":"Replace active zero","ERR_UPDATE_STATUS_G":"Update status G","ERR_INVALID_USER":"Invalid user","ERR_INVALID_ACCOUNT":"Invalid account","ERR_INSUFFICIEND_LONG_TO_COVER":"Insufficiend long to cover","ERR_QUOTE_COUNTRY_NOT_SUPPORTED":"Quote country not supported","ERR_TRADING_LIMIT":"Trading limit error","ERR_STOP_AON":"Stop All-Or-None","ERR_AON_NOT_SUPPORTED":"All-Or-None not supported","ERR_INVALID_TRADING_PASSWORD":"Invalid trading password","ERR_EIP_BUYS_MIS":"This security cannot be acquired due to an SIP classification","ERR_ORDER_EXCEEDS_SHARE_LIMIT":"Order exceeds share limit","ERR_ORDER_EXCEEDS_VALUE_LIMIT":"Order exceeds value limit","ERR_ORDER_VALUE_TOO_SMALL":"Order value too small","ERR_ORDER_EXCEEDS_THRESHOLD":"Order exceeds threshold","ERR_WASH_TRADE":"Cannot place an order while order is open","ERR_POSITION_LOADER_NOT_AVAILABLE":"Position Loader not available","ERR_BALANCE_LOADER_NOT_AVAILABLE":"Balance Loader not available","ERR_NO_OTCBB_ON_PREPOST":"No OTCBB for pre and post market","ERR_LIMIT_MARKET_ONLY":"Only limit and market orders are supported","ERR_TOO_SMALL_FOR_AON":"Quantity too small of All-Or-None","ERR_MISSING_LIMIT":"Missing limit","ERR_MISSING_STOP":"Missing stop","ERR_PRICE_TOO_SMALL":"Price too small","ERR_GTC_NOT_ALLOWED":"GTC orders are not allowed","ERR_PRE_IPO":"Market orders are not allowed on pre-IPO stocks","ERR_UNKNOWN_STRATEGY":"Unknown Strategy","ERR_ESS":"ESS Error","ERR_UNREALISTIC_CREDIT_DEBIT":"Unrealistic credit debit","ERR_UNREALISTIC_CREDIT":"Unrealistic credit","ERR_ESTABLISHING_SHORT_ON_NONINTERMEDIARY_WTH_LONG":"Establishing Short on Non-Intermediary with Long","ERR_ESTABLISHING_LONG_ON_NONINTERMEDIARY_WTH_SHORT":"Establishing Long on Non-Intermediary with Short","ERR_DIFFERENT_STRIKE_DISTANCE":"Different strike distance","ERR_POSITION_NOT_FOUND":"Position not found","ERR_NAKED_PUTS_NOT_PERMITTED":"Naked Put Positions not Permitted","ERR_NAKED_CALLS_NOT_PERMITTED":"Naked Call Positions not Permitted","ERR_SHORT_SPREADS_NOT_PERMITTED":"Short Spreadsn not permitted","ERR_MICRO_CAP_THRESHOLD":"Micro cap threshold","ERR_INVALID_PEG_TYPE":"Invalid peg type","ERR_INVALID_PEG":"Invalid peg","ERR_ETH_NOT_SUPPORTED":"ETH not supported","ERR_TOO_MANY_REQUESTS":"Too many requests","ERR_TOO_MANY_IDENTICAL_REQUESTS":"Too many identical requests","ERR_OTC_PRICE_THRESHOLD":"OTC price threshold","ERR_BNP_OTC_THRESHOLD":"BNP OTC threshold","ERR_ORDER_TOO_LARGE":"Order too large","ERR_TOO_MANY_SHARES":"Too many shares","ERR_PRICE_MOVEMENT_THRESHOLD":"Price movement threshold","ERR_MISSING_QUANTITY":"Quantity missing from Order","ERR_CONTRACT_SIZE_UNAVAILABLE":"Contract size unavailable","ERR_OPERATION_NOT_SUPPORTED":"Operation not supported","ERR_ACCOUNT_UNDEFINED":"Account undefined","ERR_POLICY_UPDATE_NOT_SUPPORTED":"Policy Update not supported","ERR_UNREALISTIC_PERCENTAGE":"Unrealistic percentage","ERR_UNREALISTIC_TOTAL":"Unrealistic total","ERR_MISSING_ORDERS":"Missing orders","ERR_ORDER_MISMATCH":"Order mismatch","ERR_MULTIPLE_MODELS":"Multiple models","ERR_MULTIPLE_TRANSACTIONS":"Multiple transactions","ERR_MULTIPLE_SECURITIES":"Multiple securities","ERR_MULTIPLE_ACCOUNT_TYPES":"Multiple account types","ERR_MULTIPLE_CURRENCIES":"Multiple currencies","ERR_MULTIPLE_SIDES":"Multiple sides","ERR_UNALLOCATED_ORDERS":"Unallocated orders","ERR_INVENTORY_NOT_ALLOWED":"Inventory not Allowed","ERR_INSUFFICIENT_ARGUMENTS":"Insufficient arguments","ERR_MODEL_HAS_ACCOUNTS":"Model has accounts","ERR_MODEL_NOT_DEFINED":"Model not defined","ERR_VALIDATOR_NOT_AVAILABLE":"Validator not available","ERR_LESS_THAN_MINIMUM_QUANTITIES":"Quantity Less than Allowable Minimum","ERR_GREATER_THAN_MAXIMUM_QUANTITIES":"Quantity Greater than Allowable Maximum","ERR_QUANTITIES_INVALID_INCREMENT":"Invalid Qunatity Increment","ERR_ROUTES_NOT_AVAILABLE":"Routes not available","ERR_MISSING_VALUE":"Value missing","ERR_DOES_NOT_MEET_MINIMUM":"Does not meet minimum","ERR_ORDER_TIME_RESTRICTED":"Order Time restricted","ERR_FRACTIONAL_QUANTITY_NOT_SUPPORTED":"Fractional quantity not supported","ERR_QUANTITY_NOT_SUPPORTED":"Quantity not supported","ERR_DUPLICATE_QUANTTY":"Duplicate Quantty","ERR_FRACTIONAL_NOT_ALLOWED":"Fractional Not Allowed","ERR_FRACTIONAL_LIMITS_NOT_ALLOWED":"Fractional Limits Not Allowed","ERR_INVENTORY_NOT_DEFINED":"Inventory Not Defined","ERR_NOTIONAL_EXPECTED":"Notional expected","ERR_UNREALISTIC_VALUE":"Unrealistic value","ERR_MISSING_ORDER_TYPE":"Missing order type","ERR_TOO_MANY_DEPOSITS":"Too many deposits","ERR_TOO_MANY_WITHDRAWALS":"Too many withdrawals","ERR_TRANSFER_METHOD_NOT_SUPPORTED":"Transfer Method not supported","ERR_TRANSFER_REJECTED":"Transfer rejected","ERR_RESTRICTED_ITEM":"Restricted item","ERR_FEATURE_NOT_AVAILABLE":"Feature not available","ERR_INVALID_RELATIONSHIP":"Invalid relationship","ERR_MISSING_ID":"Missing ID","ERR_MISSING_CONTRIBUTION_YEAR":"Missing Contribution Year","ERR_MISSING_CONTRIBUTION_TYPE":"Missing Contribution Type","ERR_MISSING_DISTRIBUTION_REASON":"Missing Distribution Reason","ERR_MISSING_DISTRIBUTION_INSTITUTION":"Missing Distribution Institution","ERR_MISSING_VALUE_TYPE":"Missing Value Type","ERR_MISSING_TRANSFER_ID":"Missing Transfer Id","ERR_MISSING_TOKEN":"Missing Token","ERR_NAME_MISMATCH":"Name mismatch","ERR_BANK_RELATIONSHIP_CREATION_FAILURE":"Bank Relationship Creation Failure","ERR_BANK_RELATIONSHIP_DUPLICATE_NICKNAME":"Bank Relationship Duplicate Nickname","ERR_BANK_RELATIONSHIP_DUPLICATE_BENEFICIARY":"Bank Relationship Duplicate Beneficiary","ERR_BANK_RELATIONSHIP_NOT_SUPPORTED":"Bank Relationship Not Supported","ERR_BANK_RELATIONSHIP_NOT_APPROVED":"Bank Relationship Not Approved","ERR_BANK_ACCOUNT_TYPE_NOT_SUPPORTED":"Bank Account Type Not Supported","ERR_MISSING_NICKNAME":"Missing Nickname","ERR_BANK_RELATIONSHIP_LIMIT":"Bank Relationship Limit","ERR_INVALID_DISBURSEMENT_TYPE":"Invalid Disbursement Type","ERR_RECIPIENT_BANK_MISSING":"Recipient Bank Missing","ERR_RECIPIENT_BANK_PRESENT":"Recipient Bank Present","ERR_INVALID_IDENTIFIER_TYPE":"Invalid Identifier Type","ERR_IDENTIFIER_MISSING":"Identifier Missing","ERR_ACCOUNT_TYPE_MISSING":"Account Type Missing","ERR_BENEFICIARY_MISSING":"Beneficiary Missing","ERR_BENEFICIARY_PRESENT":"Beneficiary Present","ERR_INVALID_ABA_NUMBER":"Invalid Aba Number","ERR_MUTUAL_FUND_TRADING_RESTRICTED":"This fund is not allowed to be purchased in the account owner\'s US State","ERR_MUTUAL_FUND_NOT_ALLOWED":"This fund is not on the list of approved funds","ERR_THIRD_PARTY_XFER_RESTRICTED":"Third-Party Transfers restricted","ERR_MUTUAL_FUND_SUBSTITUTE_LIQUIDATION_NOT_SUPPORTED":"Mutual Fund Substitute Liquidation not supported","ERR_MUTUAL_FUND_SUBSTITUTE_VALUE":"Mutual Fund Substitute Value","ERR_MUTUAL_FUND_NOT_ALLOWED_TO_CANCEL":"Mutual Fund not allowed to cancel","ERR_MUTUAL_FUND_TIME_EXCEEDS_ORDER_CUTOFF":"Mutual Fund Time exceeds Order cutoff","ERR_LIQUIDATION_WITH_EXISTING_OPEN_SELL_ORDER":"Liquidation with existing Open Sell Order","ERR_TRANSFER_NOT_FOUND":"Transfer Not Found","ERR_ACCOUNT_NOT_ACTIVE":"Account Not Active","ERR_MUST_BE_OPTION":"Must Be Option","ERR_UNEVEN_BREADTH":"Uneven Breadth","ERR_PAST_DELIVERY_DATE":"Past Delivery Date","ERR_MISSING_LOA":"Missing Loa","ERR_JOURNAL_REQUEST_FAILED":"Journal Request Failed","ERR_UNEXPECTED_ERROR":"Unexpected Error","ERR_UNKNOWN_KEY_FOR_USER":"Unknown Key For User","ERR_UNKNOWN_PARAMETER_FOR_USER":"Unknown Parameter For User","ERR_NO_BANK_ACCOUNT_WITH_SAME_NAME":"No Bank Account With Same Name","ERR_OPEN_TRANSFERS":"Open Transfers","ERR_BANK_RELATIONSHIP_NOT_FOUND":"Bank Relationship Not Found","ERR_NO_BANK_ACCOUNT_FOUND":"No Bank Account Found","ERR_CFR_275_206_RESTRICTED":"Cfr 275206 Restricted","ERR_RECONFIRM_NOT_REQUESTED":"Reconfirm Not Requested","ERR_ACQUISITION_OF_CORP_ACT_OPTION":"Acquisition Of Corp Act Option","ERR_ENCRYPTION_FAILED":"Encryption Failed","ERR_MUTUAL_FUND_NO_NEW_INVESTORS_ALLOWED":"Mutual Fund No New Investors Allowed","ERR_LARGE_ORDER_REJECTION":"Large Order Rejection","ERR_CANCEL_FAILED":"Cancel Failed","ERR_TRIGGER_FAILURE":"Trigger Failure","ERR_ACAT_FAILURE":"Acat Failure","ERR_MULTIPLE_ACCOUNTS":"Multiple Accounts","ERR_ACAT_ASSETS_UNDEFINED":"Acat Assets Undefined","ERR_MISSING_CONTRA_ACCOUNT":"Missing Contra Account","ERR_MISSING_CONTRA_ACCOUNT_TYPE":"Missing Contra Account Type","ERR_MISSING_CONTRA_ACCOUNT_TITLE":"Missing Contra Account Title","ERR_MISSING_PRIMARY_TAX_ID":"Missing Primary Tax Id","ERR_MISSING_REMOTE_IP":"Missing Remote Ip","ERR_MISSING_REMOTE_DEVICE":"Missing Remote Device","ERR_STATE_RESTRICTED":"State Restricted","ERR_OPEN_ORDER_LIMIT":"Open Order Limit","ERR_EXCEEDED_NOTIONAL_LIMIT":"Exceeded Notional Limit","ERR_MINIMUM_ORDER_LIMIT":"Minimum Order Limit","ERR_ACAT_IN_PROGRESS":"Acat In Progress","ERR_ATTEMPTED_TRADE":"Attempted Trade","ERR_NO_VALUE":"No Value","ERR_MISSING_CONTROL_TRANSFER_ID":"Missing Control Transfer Id","ERR_MISSING_CONTROL_SOURCE":"Missing Control Source","ERR_MISSING_CONTROL_RESOLUTION":"Missing Control Resolution","ERR_MISSING_DIVIDENDS_INDICATOR":"Missing Dividends Indicator","ERR_MISSING_CAPITAL_GAINS_INDICATOR":"Missing Capital Gains Indicator","ERR_MISSING_BANK_NAME":"Missing Bank Name","ERR_MISSING_BANK_CITY":"Missing Bank City","ERR_MISSING_BANK_STATE_PROVINCE":"Missing Bank State Province","ERR_MISSING_BANK_COUNTRY":"Missing Bank Country","ERR_INVALID_BANK_COUNTRY":"Invalid Bank Country","ERR_MISSING_BANK_POSTAL_CODE":"Missing Bank Postal Code","ERR_INSTANT_DEPOSIT_DENIED":"Instant Deposit Denied","ERR_IDENTITY_ID_MISSING":"Identity Id Missing","ERR_DOMESTIC_NOT_SUPPORTED":"Domestic Not Supported","ERR_MISSING_BANK_CODE":"Missing Bank Code","ERR_MISSING_BANK_BRANCH":"Missing Bank Branch","ERR_INVALID_BANK_BRANCH":"Invalid Bank Branch","ERR_INVALID_BANK_ACCOUNT":"Invalid Bank Account","ERR_MISSING_ADDRESS":"Missing Address","ERR_MISSING_PAYMENT_METHOD":"Missing Payment Method","ERR_GIFT_MUST_HAVE_PURPOSE":"Gift Must Have Purpose","ERR_INVALID_STREET":"Invalid Street","ERR_INVALID_STREET_MATCH":"Invalid Street Match","ERR_INVALID_COUNTRY":"Invalid Country","ERR_INVALID_CITY":"Invalid City","ERR_PAYMENT_METHODS_NOT_AVAILABLE":"Payment Methods Not Available","ERR_PAYMENT_METHODS_NOT_SUPPORTED":"Payment Methods Not Supported","ERR_ACCOUNT_TRADING_HALTED":"Account Trading Halted","ERR_ADJUSTMENT_FAILURE":"Adjustment Failure","ERR_CRYPTO_NOT_ENABLED":"Crypto Not Enabled","ERR_CRYPTO_NOT_ALLOWED":"Crypto Not Allowed","ERR_INVALID_DOCUMENT_ID":"Invalid Document Id","ERR_MISSING_BANK_ACCOUNT":"Missing Bank Account","ERR_MARKET_ORDER_PRIOR_MARKET_OPEN_RESTRICTED":"Market Order Prior Market Open Restricted","ERR_LEGAL_NOT_SUPPORTED":"Legal Not Supported","ERR_DOCUMENT_CALL_NOT_SUPPORTED":"Document Call Not Supported","ERR_FEATURE_NOT_SUPPORTED":"Feature Not Supported","ERR_CRYPTO_SIGNUP_NOT_SUPPORTED":"Crypto Signup Not Supported","ERR_NOT_ACH":"Not Ach","ERR_AMOUNT_MUST_BE_GREATER_THAN_ZERO":"Amount Must Be Greater Than Zero","ERR_NOT_MICRODEPOSIT":"Not Microdeposit","ERR_LINK_IN_INVALID_STATUS":"Link In Invalid Status","ERR_OCT_CLOSING_PRICE_THRESHOLD":"Oct Closing Price Threshold","ERR_OTC_MARKET_CAP_THRESHOLD":"Otc Market Cap Threshold","ERR_FILE_UPLOAD_FAILED":"File Upload Failed","ERR_MISSING_CONTRIBUTION":"Missing Contribution","ERR_MISSING_DISTRIBUTION":"Missing Distribution","ERR_NON_CORE_DISALLOWED":"Non Core Disallowed","ERR_PRE_CORE_DISALLOWED":"Pre Core Disallowed","ERR_ALL_DISALLOWED":"All Disallowed","ERR_CORE_POST_DISALLOWED":"Core Post Disallowed","ERR_INVALID_2FA":"Invalid 2 Fa","ERR_PASSPHRASE_NOT_SUPPORTED":"Passphrase not supported","ERR_PASSWORD_TOO_SHORT":"Password is too short","ERR_PASSWORD_CONTAINS_USERNAME":"Password contains username","ERR_PASSWORD_INSUFFICIENT_DIGITS":"Password has insufficient digits","ERR_PASSWORD_DIGITS_ONLY":"Password cannot only contain digits","ERR_PASSWORD_NEEDS_MULTICASE":"Password needs multicase characters","ERR_PASSWORD_CONTAINS_SEQUENCE":"Password contains sequenced characters","ERR_PASSWORD_CONTAINS_SUBSEQUENCE":"Password cannot have a sequence of consecutive characters/numbers","ERR_PASSWORD_RECENTLY_USED":"Password was recently used","ERR_PASSWORD_COMMONLY_USED":"Password commonly used","ERR_PASSWORD_INVALID":"Incorrect old password"}');class ea extends q{parseOrbisError(e){let t=e?e.error||e.errors:void 0;if(t){let e=JSON.stringify(t);for(let t of Object.keys(/*@__PURE__*/T(ei)))if(e.toUpperCase().includes(t))return{orbisErrorCode:t,orbisErrorMessage:/*@__PURE__*/T(ei)[t]}}return{orbisErrorCode:null,orbisErrorMessage:null}}async request(e){try{let t=await super.request(e);return Object.assign(t,this.parseOrbisError(t.data)),t.success||this.handleAxiosError(t.error),t}catch(e){throw a(e)&&(Object.assign(e,this.parseOrbisError(e.response?.data)),this.handleAxiosError(e)),e}}handleAxiosError(e){a(e)&&(e.status===o.Unauthorized&&this.config.onUnauthorized?.(),440===e.status&&this.config.onLoginTimeout?.())}}class eo extends w{constructor(e){super(new ea({...e,authSchema:"SessionId"}))}async login(e,t){let s=await this.apiClient.post("auth/v2/login",{username:e,password:t});return s.success&&await this.saveTokenAndScheduleRenewal(s.data.sessionId),s}async sso(e,t){let s=await this.apiClient.post("auth/v1/sso/platform",{token:e,platform:t});return s.success&&await this.saveTokenAndScheduleRenewal(s.data.sessionId),s}async logout(){await this.apiClient.post("auth/logout"),this.apiClient.setAuthData(null),this.apiClient.cancelTokenRenewal()}async saveTokenAndScheduleRenewal(e){this.apiClient.setAuthData({accessToken:e,refreshToken:e}),this.apiClient.scheduleTokenRenewal(this.renewToken)}async renewToken(){let e=await this.apiClient.post("auth/v2/renew");if(e.success)return{accessToken:e.data.sessionId,refreshToken:e.data.sessionId};throw Error(`Could not renew token: ${String(e.error)}`)}}E({},en);var eu={},eE={};l(eE,"UmaApi",()=>tl);var el={},eT={};l(eT,"ActionLogs",()=>eR);class eR{constructor(t){this.apiClient=t,e(this)}getActionLogs(e,t){return this.apiClient.request({...t,url:"/v1/action-logs/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var ep={};l(ep,"ApiKeys",()=>e_);class e_{constructor(t){this.apiClient=t,e(this)}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/api-keys",method:"DELETE",data:e,secure:!0,contentType:N.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/api-keys/${e}`,method:"GET",secure:!0,responseType:"json"})}create(e,t){return this.apiClient.request({...t,url:"/v2/b2b/api-keys",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/api-keys/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v2/b2b/api-keys/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}}var ec={};l(ec,"AuthApps",()=>ed);class ed{constructor(t){this.apiClient=t,e(this)}get(e){return this.apiClient.request({...e,url:"/v1/auth-apps",method:"GET",secure:!0,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps",method:"DELETE",data:e,secure:!0,contentType:N.Json})}getRegistrationQr(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/totp/registration/qr",method:"POST",data:e,secure:!0,contentType:N.Json})}finishRegistration(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/totp/registration/response",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}getLoginChallenge(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/webauthn/login/request",method:"POST",data:e,contentType:N.Json,responseType:"json"})}getRegisterChallenge(e){return this.apiClient.request({...e,url:"/v1/auth-apps/webauthn/registration/request",method:"POST",secure:!0,responseType:"json"})}finishCredentialRegistration(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/webauthn/registration/response",method:"POST",data:e,secure:!0,contentType:N.Json})}register(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/yubico/otp/registration",method:"POST",data:e,secure:!0,contentType:N.Json})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/auth-apps/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}}var eh={};l(eh,"AuthForms",()=>eO);class eO{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/auth-forms",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/auth-forms",method:"DELETE",data:e,secure:!0,contentType:N.Json})}get(e,t){return this.apiClient.request({...t,url:"/v1/auth-forms/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}getBySlug(e,t){return this.apiClient.request({...t,url:`/v1/auth-forms/public/${e}`,method:"GET",responseType:"json"})}getById(e,t){return this.apiClient.request({...t,url:`/v1/auth-forms/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/auth-forms/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}}var eC={};l(eC,"B2BAuth",()=>eI);class eI{constructor(t){this.apiClient=t,e(this)}getCurrent(e){return this.apiClient.request({...e,url:"/v1/auth/b2b/current",method:"GET",secure:!0,responseType:"json"})}apiKeysLogin(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/login/api-keys",method:"POST",data:e,contentType:N.Json,responseType:"json"})}basicLogin(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2b/login/basic",method:"POST",data:e,headers:t,contentType:N.Json,responseType:"json"})}logout(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/logout",method:"DELETE",data:e,contentType:N.Json})}refreshTokens(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/refresh",method:"POST",data:e,contentType:N.Json,responseType:"json"})}resetPassword(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2b/reset-password",method:"PUT",data:e,headers:t,contentType:N.Json,responseType:"json"})}sendMfaCode(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/send-mfa-code",method:"PUT",data:e,contentType:N.Json})}sendResetPasswordCode(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/send-reset-password-code",method:"PUT",data:e,contentType:N.Json})}}var eS={};l(eS,"B2BUsers",()=>eA);class eA{constructor(t){this.apiClient=t,e(this)}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/users/b2b",method:"DELETE",data:e,secure:!0,contentType:N.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/users/b2b/${e}`,method:"GET",secure:!0,responseType:"json"})}create(e,t){return this.apiClient.request({...t,url:"/v2/users/b2b",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/users/b2b/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v2/users/b2b/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}}var eN={};l(eN,"B2BUserSettings",()=>ey);class ey{constructor(t){this.apiClient=t,e(this)}setUserSettings(e,t,s){return this.apiClient.request({...s,url:"/v1/b2b/settings",method:"PUT",data:e,secure:!0,headers:t,contentType:N.Json,responseType:"json"})}uploadAvatar(e,t){return this.apiClient.request({...t,url:"/v1/b2b/settings/avatar",method:"PUT",data:e,secure:!0,contentType:N.FormData})}sendContactChangeCode(e,t,s){return this.apiClient.request({...s,url:"/v1/b2b/settings/codes",method:"POST",data:e,secure:!0,headers:t,contentType:N.Json})}}var em={};l(em,"B2CAuth",()=>eP);class eP{constructor(t){this.apiClient=t,e(this)}getCurrent(e){return this.apiClient.request({...e,url:"/v1/auth/b2c/current",method:"GET",secure:!0,responseType:"json"})}initAppleLogin(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/login/apple",method:"POST",data:e,headers:t,responseType:"json"})}finishAppleLogin(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2c/login/apple/callback",method:"POST",data:e,responseType:"json"})}basicLogin(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/login/basic",method:"POST",data:e,headers:t,contentType:N.Json,responseType:"json"})}initGoogleLogin(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/login/google",method:"POST",data:e,headers:t,responseType:"json"})}finishGoogleLogin(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2c/login/google/callback",method:"POST",data:e,responseType:"json"})}logout(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2c/logout",method:"DELETE",data:e,contentType:N.Json})}refreshTokens(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/refresh",method:"POST",data:e,headers:t,contentType:N.Json,responseType:"json"})}register(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/register",method:"POST",data:e,headers:t,contentType:N.Json,responseType:"json"})}resetPassword(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/reset-password",method:"PUT",data:e,headers:t,contentType:N.Json})}sendMfaCode(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/send-mfa-code",method:"PUT",data:e,headers:t,contentType:N.Json})}sendResetPasswordCode(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2c/send-reset-password-code",method:"PUT",data:e,contentType:N.Json})}sendVerificationCode(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/send-verification-code",method:"PUT",data:e,headers:t,contentType:N.Json})}verifyContact(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/verify",method:"PUT",data:e,headers:t,contentType:N.Json})}}var eL={};l(eL,"B2CUsers",()=>eD);class eD{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/users/b2c",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/users/b2c",method:"DELETE",data:e,secure:!0,contentType:N.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/users/b2c/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/users/b2c/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/users/b2c/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var eb={};l(eb,"B2CUserSettings",()=>eg);class eg{constructor(t){this.apiClient=t,e(this)}setUserSettings(e,t,s){return this.apiClient.request({...s,url:"/v1/b2c/settings",method:"PUT",data:e,secure:!0,headers:t,contentType:N.Json,responseType:"json"})}sendContactChangeCode(e,t,s){return this.apiClient.request({...s,url:"/v1/b2c/settings/codes",method:"POST",data:e,secure:!0,headers:t,contentType:N.Json})}availableMfaOptions(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/mfa-options",method:"GET",secure:!0,headers:e,responseType:"json"})}deleteManyOAuthBindings(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links",method:"DELETE",data:e,secure:!0,contentType:N.Json})}finishAppleProfileLinking(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/apple/finish",method:"POST",data:e,contentType:N.Json})}initAppleProfileLinking(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/apple/start",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}finishGoogleProfileLinking(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/google/finish",method:"POST",data:e,contentType:N.Json})}initGoogleProfileLinking(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/google/start",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}getOAuthBindings(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var ef={};l(ef,"Branches",()=>eU);class eU{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/branches",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/branches",method:"DELETE",data:e,secure:!0,contentType:N.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/branches/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/branches/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/branches/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var ev={};l(ev,"Countries",()=>eM);class eM{constructor(t){this.apiClient=t,e(this)}get(e){return this.apiClient.request({...e,url:"/v1/countries",method:"GET",responseType:"json"})}}var eB={};l(eB,"Endpoints",()=>ew);class ew{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/b2b/endpoints",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/endpoints",method:"DELETE",data:e,secure:!0,contentType:N.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/endpoints/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/b2b/endpoints/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/endpoints/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var e$={};l(e$,"Firms",()=>eq);class eq{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/firms",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/firms",method:"DELETE",data:e,secure:!0,contentType:N.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/firms/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/firms/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/firms/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var eG={};l(eG,"IdentityProviders",()=>ek);class ek{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/b2b/identity-providers",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/identity-providers",method:"DELETE",data:e,secure:!0,contentType:N.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/identity-providers/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/b2b/identity-providers/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/identity-providers/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var eF={};l(eF,"Locales",()=>ej);class ej{constructor(t){this.apiClient=t,e(this)}get(e){return this.apiClient.request({...e,url:"/v1/locales",method:"GET",responseType:"json"})}}var eJ={};l(eJ,"Microservices",()=>ex);class ex{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/b2b/microservices",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/microservices",method:"DELETE",data:e,secure:!0,contentType:N.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/microservices/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/b2b/microservices/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/microservices/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var eY={};l(eY,"MigrationUtils",()=>eV);class eV{constructor(t){this.apiClient=t,e(this)}usersUpsertCreate(e,t){return this.apiClient.request({...t,url:"/v1/migration-utils/users/upsert",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var eH={};l(eH,"Permissions",()=>eW);class eW{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/permissions",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/permissions",method:"DELETE",data:e,secure:!0,contentType:N.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/permissions/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/permissions/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/permissions/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var eK={};l(eK,"PublicSettings",()=>eQ);class eQ{constructor(t){this.apiClient=t,e(this)}get(e){return this.apiClient.request({...e,url:"/v1/public-settings",method:"GET",responseType:"json"})}}var eX={};l(eX,"Roles",()=>ez);class ez{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/roles",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/roles",method:"DELETE",data:e,secure:!0,contentType:N.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/roles/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/roles/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/roles/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var eZ={};l(eZ,"RoleTypes",()=>e0);class e0{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/b2b/role-types",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/role-types",method:"DELETE",data:e,secure:!0,contentType:N.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/role-types/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/b2b/role-types/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/role-types/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var e1={};l(e1,"SecretNotes",()=>e2);class e2{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/secret-notes",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}getOne(e,t){return this.apiClient.request({...t,url:"/v1/secret-notes/fetch",method:"POST",data:e,contentType:N.Json,responseType:"json"})}sendVerificationCode(e,t){return this.apiClient.request({...t,url:"/v1/secret-notes/verification",method:"PUT",data:e,contentType:N.Json})}}var e4={};l(e4,"Sessions",()=>e3);class e3{constructor(t){this.apiClient=t,e(this)}getCurrentUserSessions(e){return this.apiClient.request({...e,url:"/v1/auth/sessions",method:"GET",secure:!0,responseType:"json"})}deleteCurrentUserSessions(e,t){return this.apiClient.request({...t,url:"/v1/auth/sessions",method:"DELETE",data:e,secure:!0,contentType:N.Json})}}var e8={};l(e8,"TablePresets",()=>e9);class e9{constructor(t){this.apiClient=t,e(this)}getUserPresets(e){return this.apiClient.request({...e,url:"/v1/b2b/table-presets",method:"GET",secure:!0,responseType:"json"})}upsert(e,t){return this.apiClient.request({...t,url:"/v1/b2b/table-presets",method:"PUT",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var e6={};l(e6,"Tags",()=>e5);class e5{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/tags",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/tags",method:"DELETE",data:e,secure:!0,contentType:N.Json})}get(e,t){return this.apiClient.request({...t,url:"/v1/tags/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}getById(e,t){return this.apiClient.request({...t,url:`/v1/tags/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/tags/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}}var e7={};l(e7,"CommontypesAuthAppType",()=>y),l(e7,"CommontypesAuthUserType",()=>m),l(e7,"CommontypesResetPasswordType",()=>P),l(e7,"HttperrorsErrorCode",()=>L),l(e7,"MfaOption",()=>D),l(e7,"PgmodelsAuthProviderAppType",()=>b),l(e7,"PgmodelsEndpointType",()=>g),l(e7,"PgmodelsEntityAccessType",()=>f),l(e7,"PgmodelsPermissionAG",()=>U),l(e7,"TypesTenantSettingLabel",()=>v),(p=y||(y={})).EmailCodeAuthAppType="email_code",p.SmsCodeAuthAppType="sms_code",p.YubicoOTPAuthAppType="yubico_otp",p.WebAuthnAuthAppType="webauthn",p.TOTPAuthAppType="totp",(_=m||(m={})).AllAuthUserType="all",_.B2BAuthUserType="b2b",_.B2CAuthUserType="b2c",(c=P||(P={})).PasswordResetByContactCode="by_contact_code",c.PasswordResetByEmailLink="by_email_link",(d=L||(L={}))[d.JSONValidationErr=4e3]="JSONValidationErr",d[d.JSONReadErr=4001]="JSONReadErr",d[d.JSONParseErr=4002]="JSONParseErr",d[d.ForbiddenErr=4003]="ForbiddenErr",d[d.ForbiddenDueLimit=4030]="ForbiddenDueLimit",d[d.RecordNotFoundErr=4004]="RecordNotFoundErr",d[d.RecordAlreadyExistsErr=4005]="RecordAlreadyExistsErr",d[d.ImageValidationErr=4006]="ImageValidationErr",d[d.InappropriateImageErr=4007]="InappropriateImageErr",d[d.FaceNotFoundOnImageErr=4008]="FaceNotFoundOnImageErr",d[d.UnauthorizedErr=4010]="UnauthorizedErr",d[d.TokenRevokedErr=4012]="TokenRevokedErr",d[d.TokenNotActiveErr=4013]="TokenNotActiveErr",d[d.EmailNotVerifiedErr=4015]="EmailNotVerifiedErr",d[d.TokenParsingErr=4016]="TokenParsingErr",d[d.PhoneNotVerifiedErr=4017]="PhoneNotVerifiedErr",d[d.UUIDParseErr=4026]="UUIDParseErr",d[d.InvalidEmailOrPasswordOrTypeErr=4028]="InvalidEmailOrPasswordOrTypeErr",d[d.InvalidMfaCodeErr=4128]="InvalidMfaCodeErr",d[d.MfaRequiredErr=4228]="MfaRequiredErr",d[d.TokenVerificationErr=4328]="TokenVerificationErr",d[d.InvalidAPIKeyOrSecretErr=4428]="InvalidAPIKeyOrSecretErr",d[d.MfaAddingNotAllowedErr=4528]="MfaAddingNotAllowedErr",d[d.BranchRequestNotAllowed=4103]="BranchRequestNotAllowed",d[d.ForbiddenForUserTypeErr=4203]="ForbiddenForUserTypeErr",d[d.SecondForbiddenErr=4031]="SecondForbiddenErr",d[d.ThirdForbiddenErr=4032]="ThirdForbiddenErr",d[d.EntitiesChoiceNotAllowed=4303]="EntitiesChoiceNotAllowed",d[d.RecaptchaErr=4403]="RecaptchaErr",d[d.UpdateOfOldEntityStateErr=4503]="UpdateOfOldEntityStateErr",d[d.ChiefadminMutationErr=4603]="ChiefadminMutationErr",d[d.ChildEntitiesExistErr=4703]="ChildEntitiesExistErr",d[d.TenantActionForbiddenErr=4803]="TenantActionForbiddenErr",d[d.RBACManipulationErr=4903]="RBACManipulationErr",d[d.YubicoMaxKeysLimitReachedErr=4113]="YubicoMaxKeysLimitReachedErr",d[d.ConflictErr=4090]="ConflictErr",d[d.SecondFieldConflictErr=4091]="SecondFieldConflictErr",d[d.ThirdFieldConflictErr=4092]="ThirdFieldConflictErr",d[d.FourthFieldConflictErr=4093]="FourthFieldConflictErr",d[d.FifthFieldConflictErr=4094]="FifthFieldConflictErr",d[d.SixthFieldConflictErr=4095]="SixthFieldConflictErr",d[d.GoneErr=4100]="GoneErr",d[d.SecondGoneErr=4101]="SecondGoneErr",d[d.UnprocessableEntity=4222]="UnprocessableEntity",d[d.TooEarlyDuplicateRequest=4250]="TooEarlyDuplicateRequest",d[d.RateLimitErr=4291]="RateLimitErr",d[d.ForbiddenByFirmsStatusErr=4292]="ForbiddenByFirmsStatusErr",d[d.NotAcceptableError=4600]="NotAcceptableError",d[d.InternalServerErr=5e3]="InternalServerErr",d[d.InvalidRequest=6e3]="InvalidRequest",(h=D||(D={})).SmsMfaOption="sms",h.EmailMfaOption="email",h.VoiceMfaOption="voice",h.WebAuthnMfaOption="webauthn",h.YubicoOTPMfaOption="yubico_otp",h.TOTPMfaOption="totp",(O=b||(b={})).GoogleOAuth2Provider="google-oauth2",O.AppleIDOAuth2Provider="apple-id",(C=g||(g={})).RegularEndpoint="regular",C.DisplayOnlyEndpoint="display_only",(I=f||(f={})).GranularEntityAccessType="granular",I.HighLevelEntityAccessType="high-level",(S=U||(U={})).ChiefadminPermissionAG="chiefadmin",S.SuperadminPermissionAG="superadmin",S.B2BOnlyPermissionAG="b2b_only",S.RegularPermissionAG="regular",(A=v||(v={})).StorePasswordHistoryForDays="store_password_history_for_days",A.ResetPasswordIfUserInactiveForDays="reset_password_if_user_inactive_for_days",A.PeriodicallyResetPasswordAfterDays="periodically_reset_password_after_days";var te={};l(te,"UserDetails",()=>tt);class tt{constructor(t){this.apiClient=t,e(this)}getUserDetails(e,t){return this.apiClient.request({...t,url:"/v1/users/details/show",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}revokeSessions(e,t){return this.apiClient.request({...t,url:"/v1/users/revoke-sessions",method:"POST",data:e,secure:!0,contentType:N.Json})}}var ts={};l(ts,"UsersCommon",()=>tr);class tr{constructor(t){this.apiClient=t,e(this)}linkWatchmenUsersToUma(e,t){return this.apiClient.request({...t,url:"/v1/users/watchmen/link",method:"POST",data:e,secure:!0,contentType:N.Json})}}var tn={};l(tn,"WatchmenAuth",()=>ti);class ti{constructor(t){this.apiClient=t,e(this)}generateWatchmenAuthToken(e){return this.apiClient.request({...e,url:"/v1/auth/watchmen/authentication-tokens",method:"POST",secure:!0,responseType:"json"})}verifyWatchmenAuthToken(e,t){return this.apiClient.request({...t,url:"/v1/auth/watchmen/authentication-tokens/verify",method:"PUT",data:e,secure:!0,contentType:N.Json,responseType:"json"})}}var ta={};l(ta,"WatchmenInstances",()=>to);class to{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/watchmen-instances",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/watchmen-instances",method:"DELETE",data:e,secure:!0,contentType:N.Json})}getMany(e,t){return this.apiClient.request({...t,url:"/v1/watchmen-instances/list",method:"POST",data:e,secure:!0,contentType:N.Json,responseType:"json"})}getById(e,t){return this.apiClient.request({...t,url:`/v1/watchmen-instances/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/watchmen-instances/${e}`,method:"PUT",data:t,secure:!0,contentType:N.Json,responseType:"json"})}}E(el,eT),E(el,ep),E(el,ec),E(el,eh),E(el,eC),E(el,eS),E(el,eN),E(el,em),E(el,eL),E(el,eb),E(el,ef),E(el,ev),E(el,eB),E(el,e$),E(el,eG),E(el,eF),E(el,eJ),E(el,eY),E(el,eH),E(el,eK),E(el,eX),E(el,eZ),E(el,e1),E(el,e4),E(el,e8),E(el,e6),E(el,e7),E(el,te),E(el,ts),E(el,tn),E(el,ta);class tu extends eI{async basicLogin(e,t,s){let r=await super.basicLogin(e,t,s);return r.success&&(this.apiClient.setAuthData({accessToken:r.data.login_basic?.tokens?.access_token??"",refreshToken:r.data.login_basic?.tokens?.refresh_token??""}),this.apiClient.scheduleTokenRenewal(this.renewToken)),r}async renewToken(){let e=this.apiClient.getAuthData()?.refreshToken;if(!e)throw Error("Refresh token not found");let t=await this.refreshTokens({refresh_token:e});if(t.success)return{accessToken:t.data.login_basic?.tokens?.access_token??"",refreshToken:t.data.login_basic?.tokens?.refresh_token??""};throw Error(`Could not renew token: ${String(t.error)}`)}}class tE extends eP{async basicLogin(e,t,s){let r=await super.basicLogin(e,t,s);return r.success&&(this.apiClient.setAuthData({accessToken:r.data.login_basic?.tokens?.access_token??"",refreshToken:r.data.login_basic?.tokens?.refresh_token??""}),this.apiClient.scheduleTokenRenewal(this.renewToken)),r}async renewToken(){let e=this.apiClient.getAuthData()?.refreshToken;if(!e)throw Error("Refresh token not found");let t=await this.refreshTokens({refresh_token:e,auth_form_slug:this.apiClient.getConfig().authFormSlug});if(t.success)return{accessToken:t.data.login_basic?.tokens?.access_token??"",refreshToken:t.data.login_basic?.tokens?.refresh_token??""};throw Error(`Could not renew token: ${String(t.error)}`)}}class tl extends w{constructor(e){super(new q(e)),this.actionLog=new eR(this.apiClient),this.apiKeys=new e_(this.apiClient),this.authApps=new ed(this.apiClient),this.authForms=new eO(this.apiClient),this.b2bAuth=new tu(this.apiClient),this.b2bUsers=new eA(this.apiClient),this.b2bUserSettings=new ey(this.apiClient),this.b2cAuth=new tE(this.apiClient),this.b2cUsers=new eD(this.apiClient),this.b2cUserSettings=new eg(this.apiClient),this.branches=new eU(this.apiClient),this.countries=new eM(this.apiClient),this.endpoints=new ew(this.apiClient),this.fims=new eq(this.apiClient),this.identityProviders=new ek(this.apiClient),this.locales=new ej(this.apiClient),this.microservices=new ex(this.apiClient),this.migrationUtils=new eV(this.apiClient),this.permissions=new eW(this.apiClient),this.publicSettings=new eQ(this.apiClient),this.roles=new ez(this.apiClient),this.roleTypes=new e0(this.apiClient),this.secretNotes=new e2(this.apiClient),this.sessions=new e3(this.apiClient),this.tablePresets=new e9(this.apiClient),this.tags=new e5(this.apiClient),this.userDetails=new tt(this.apiClient),this.usersCommon=new tr(this.apiClient),this.watchmenAuth=new ti(this.apiClient),this.watchmenInstances=new to(this.apiClient)}}E(eu,eE),E(eu,el);export{er as MiddlewareApi,F as AttributeApi,J as AuthenticationApi,Y as AvatarApi,H as ChartApi,K as MessageApi,X as PreferenceApi,Z as VersioningApi,et as WatchlistApi,eo as OrbisApi,tl as UmaApi,eR as ActionLogs,e_ as ApiKeys,ed as AuthApps,eO as AuthForms,eI as B2BAuth,eA as B2BUsers,ey as B2BUserSettings,eP as B2CAuth,eD as B2CUsers,eg as B2CUserSettings,eU as Branches,eM as Countries,ew as Endpoints,eq as Firms,ek as IdentityProviders,ej as Locales,ex as Microservices,eV as MigrationUtils,eW as Permissions,eQ as PublicSettings,ez as Roles,e0 as RoleTypes,e2 as SecretNotes,e3 as Sessions,e9 as TablePresets,e5 as Tags,y as CommontypesAuthAppType,m as CommontypesAuthUserType,P as CommontypesResetPasswordType,L as HttperrorsErrorCode,D as MfaOption,b as PgmodelsAuthProviderAppType,g as PgmodelsEndpointType,f as PgmodelsEntityAccessType,U as PgmodelsPermissionAG,v as TypesTenantSettingLabel,tt as UserDetails,tr as UsersCommon,ti as WatchmenAuth,to as WatchmenInstances};
|
|
1
|
+
import e from"auto-bind";import{decode as t}from"jsonwebtoken";import{isString as s,isNil as r,merge as n}from"lodash";import i,{isAxiosError as a,HttpStatusCode as o}from"axios";import u from"axios-better-stacktrace";function E(e,t){return Object.keys(t).forEach(function(s){"default"===s||"__esModule"===s||Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[s]}})}),e}function p(e,t,s,r){Object.defineProperty(e,t,{get:s,set:r,enumerable:!0,configurable:!0})}function T(e){return e&&e.__esModule?e.default:e}var d,l,c,R,_,h,C,S,O,y,I,A,m,N,b,P,f,D,L,g,U,v,M,$,B,w,q,G,k,F,x,j,J,V,H,Y,W,K,Q,z,X,Z,ee,et,es,er,en,ei,ea,eo,eu,eE,ep,eT,ed,el,ec,eR,e_,eh,eC,eS,eO,ey,eI,eA,em,eN,eb,eP,ef,eD,eL,eg,eU,ev,eM,e$,eB,ew,eq,eG,ek,eF,ex,ej,eJ,eV,eH,eY,eW,eK,eQ,ez,eX={},eZ={};p(eZ,"MiddlewareApi",()=>td);class e1{constructor(t){this.apiClient=t,e(this)}getApiClient(){return this.apiClient}}(d=es||(es={})).Json="application/json",d.FormData="multipart/form-data",d.UrlEncoded="application/x-www-form-urlencoded",d.Text="text/plain";class e0{constructor(t){this.config=t,e(this),this.storage=t.storage??sessionStorage,this.axiosInstance=i.create({baseURL:t.baseUrl,headers:{"Content-Type":"application/json",...t.defaultHeaders}}),u(this.axiosInstance)}stringifyFormItem(e){return"object"==typeof e&&null!==e?JSON.stringify(e):`${e}`}createFormData(e){return e instanceof FormData?e:Object.keys(e||{}).reduce((t,s)=>{let r=e[s];for(let e of r instanceof Array?r:[r]){let r=e instanceof Blob||e instanceof File;t.append(s,r?e:this.stringifyFormItem(e))}return t},new FormData)}async request(e){let{contentType:t,data:s}=e;r(s)||("multipart/form-data"===t&&"object"==typeof s&&(e.data=this.createFormData(s)),"text/plain"===t&&"string"!=typeof s&&(e.data=JSON.stringify(s)));let i=n(e.secure?this.prepareAuthRequestConfig():{},t?{header:{"Content-Type":t}}:{},e);try{let{data:e,status:t,statusText:s}=await this.axiosInstance.request(i);return{success:!0,data:e,status:t,statusText:s}}catch(t){if(!this.config.errorHandling)throw t;let e={success:!1,status:-1,statusText:String(t),error:t};return a(t)&&(this.config.onAxiosError?.(t),e.data=t.response?.data,e.status=t.response?.status??e.status,e.statusText=t.response?.statusText??e.statusText),this.config.onError?.(t),e}}get(e,t){return this.request({...t,method:"GET",url:e})}delete(e,t){return this.request({...t,method:"DELETE",url:e})}head(e,t){return this.request({...t,method:"HEAD",url:e})}options(e,t){return this.request({...t,method:"OPTIONS",url:e})}post(e,t,s){return this.request({...s,method:"POST",url:e,data:t})}put(e,t,s){return this.request({...s,method:"PUT",url:e,data:t})}patch(e,t,s){return this.request({...s,method:"PATCH",url:e,data:t})}getAxios(){return this.axiosInstance}setAuthData(e){this.storage.setItem(this.config.authDataStorageKey||"auth",JSON.stringify(e))}getAuthData(){let e=this.storage.getItem(this.config.authDataStorageKey||"auth");return e?JSON.parse(e):null}getConfig(){return this.config}}class e2 extends e0{constructor(e){super(e),this.config=e}getConfig(){return super.getConfig()}prepareAuthRequestConfig(){let{accessToken:e}=this.getAuthData()||{};return e?{headers:{Authorization:`${this.config.authSchema??"Bearer"} ${e}`}}:(console.warn("No access token found. Please set auth data after authorization."),{})}scheduleTokenRenewal(e){this.cancelTokenRenewal();let r=this.getAuthData(),n=t(r?.accessToken||"");if(!n||s(n)||!n.exp){console.warn("Could not schedule token renewal: invalid expiration time.");return}let i=1e3*n.exp-Date.now();this.tokenRenewalTimeout=setTimeout(async()=>{let t=await e();this.setAuthData(t),this.scheduleTokenRenewal(e)},i-6e4)}cancelTokenRenewal(){clearTimeout(this.tokenRenewalTimeout)}}var e3={},e8={};p(e8,"AttributeApi",()=>e4);class e4{constructor(t){this.apiClient=t,e(this)}getAttributeValues(e){return this.apiClient.request({...e,url:"/v1/attributes",method:"GET",secure:!0,responseType:"json"})}getPublicAttributeValue(e,t){return this.apiClient.request({...t,url:`/v1/attributes/${e}`,method:"GET",secure:!0,responseType:"json"})}}var e6={};p(e6,"AuthenticationApi",()=>e9);class e9{constructor(t){this.apiClient=t,e(this)}authenticate(e,t){return this.apiClient.request({...t,url:"/v1/authenticate",method:"POST",headers:e,responseType:"json"})}refresh(e){return this.apiClient.request({...e,url:"/v1/refresh",method:"POST",secure:!0,responseType:"json"})}invalidate(e){return this.apiClient.request({...e,url:"/v1/invalidate",method:"POST",secure:!0})}}var e7={};p(e7,"AvatarApi",()=>e5);class e5{constructor(t){this.apiClient=t,e(this)}getUserAvatar(e,t){return this.apiClient.request({...t,url:`/v1/avatars/users/${e}`,method:"GET",secure:!0,responseType:"blob"})}uploadUserAvatar(e,t,s){return this.apiClient.request({...s,url:`/v1/avatars/users/${e}`,method:"POST",data:t,secure:!0,contentType:es.FormData})}deleteUserAvatar(e,t){return this.apiClient.request({...t,url:`/v1/avatars/users/${e}`,method:"DELETE",secure:!0})}getAccountAvatar(e,t){return this.apiClient.request({...t,url:`/v1/avatars/accounts/${e}`,method:"GET",secure:!0,responseType:"blob"})}uploadAccountAvatar(e,t,s){return this.apiClient.request({...s,url:`/v1/avatars/accounts/${e}`,method:"POST",data:t,secure:!0,contentType:es.FormData})}deleteAccountAvatar(e,t){return this.apiClient.request({...t,url:`/v1/avatars/accounts/${e}`,method:"DELETE",secure:!0})}}var te={};p(te,"ChartApi",()=>tt);class tt{constructor(t){this.apiClient=t,e(this)}getChartLayouts(e){return this.apiClient.request({...e,url:"/v1/charts/layouts",method:"GET",secure:!0,responseType:"json"})}updateChartLayout(e,t){return this.apiClient.request({...t,url:"/v1/charts/layouts",method:"PUT",data:e,secure:!0,contentType:es.Json,responseType:"json"})}getChartLayoutDetails(e,t){return this.apiClient.request({...t,url:`/v1/charts/layouts/${e}`,method:"GET",secure:!0,responseType:"json"})}deleteChartLayout(e,t){return this.apiClient.request({...t,url:`/v1/charts/layouts/${e}`,method:"DELETE",secure:!0})}getIndicatorTemplates(e){return this.apiClient.request({...e,url:"/v1/charts/indicator-templates",method:"GET",secure:!0,responseType:"json"})}updateIndicatorTemplate(e,t){return this.apiClient.request({...t,url:"/v1/charts/indicator-templates",method:"PUT",data:e,secure:!0,contentType:es.Json,responseType:"json"})}getIndicatorTemplateDetails(e,t){return this.apiClient.request({...t,url:`/v1/charts/indicator-templates/${e}`,method:"GET",secure:!0,responseType:"json"})}deleteIndicatorTemplate(e,t){return this.apiClient.request({...t,url:`/v1/charts/indicator-templates/${e}`,method:"DELETE",secure:!0})}getChartTemplates(e){return this.apiClient.request({...e,url:"/v1/charts/templates",method:"GET",secure:!0,responseType:"json"})}updateChartTemplate(e,t){return this.apiClient.request({...t,url:"/v1/charts/templates",method:"PUT",data:e,secure:!0,contentType:es.Json,responseType:"json"})}getChartTemplateDetails(e,t){return this.apiClient.request({...t,url:`/v1/charts/templates/${e}`,method:"GET",secure:!0,responseType:"json"})}deleteChartTemplate(e,t){return this.apiClient.request({...t,url:`/v1/charts/templates/${e}`,method:"DELETE",secure:!0})}}var ts={};p(ts,"MessageApi",()=>tr);class tr{constructor(t){this.apiClient=t,e(this)}getMessages(e,t){return this.apiClient.request({...t,url:"/v1/messages",method:"GET",params:e,secure:!0,responseType:"json"})}}var tn={};p(tn,"PreferenceApi",()=>ti);class ti{constructor(t){this.apiClient=t,e(this)}getPreferences(e){return this.apiClient.request({...e,url:"/v1/preferences",method:"GET",secure:!0,responseType:"json"})}savePreferences(e){return this.apiClient.request({...e,url:"/v1/preferences",method:"POST",secure:!0,responseType:"json"})}}var ta={};p(ta,"WatchlistEntryDtoTypeEnum",()=>er),(l=er||(er={})).Equity="equity",l.Option="option",l.Crypto="crypto",l.Bond="bond",l.MutualFund="mutualFund";var to={};p(to,"VersioningApi",()=>tu);class tu{constructor(t){this.apiClient=t,e(this)}getAppVersion(e,t){return this.apiClient.request({...t,url:`/versioning/${e}`,method:"GET",responseType:"json"})}updateAppVersion(e,t,s){return this.apiClient.request({...s,url:`/versioning/${e}`,method:"POST",data:t,contentType:es.Json})}}var tE={};p(tE,"WatchlistApi",()=>tp);class tp{constructor(t){this.apiClient=t,e(this)}getAllWatchlists(e){return this.apiClient.request({...e,url:"/v1/watchlists",method:"GET",secure:!0,responseType:"json"})}createWatchlist(e,t){return this.apiClient.request({...t,url:"/v1/watchlists",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}getWatchlist(e,t){return this.apiClient.request({...t,url:`/v1/watchlists/${e}`,method:"GET",secure:!0,responseType:"json"})}updateWatchlist(e,t,s){return this.apiClient.request({...s,url:`/v1/watchlists/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}deleteWatchlist(e,t){return this.apiClient.request({...t,url:`/v1/watchlists/${e}`,method:"DELETE",secure:!0})}addWatchlistEntries(e,t,s){return this.apiClient.request({...s,url:`/v1/watchlists/${e}/entries`,method:"POST",data:t,secure:!0,contentType:es.Json,responseType:"json"})}removeWatchlistEntries(e,t,s){return this.apiClient.request({...s,url:`/v1/watchlists/${e}/entries`,method:"DELETE",data:t,secure:!0,contentType:es.Json,responseType:"json"})}updateWatchlistEntries(e,t,s){return this.apiClient.request({...s,url:`/v1/watchlists/${e}/entries`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}updateWatchlistOrders(e,t){return this.apiClient.request({...t,url:"/v1/watchlists/orders",method:"POST",data:e,secure:!0,contentType:es.Json})}importWatchmenWatchlists(e){return this.apiClient.request({...e,url:"/v1/watchlists/import",method:"POST",secure:!0})}}E(e3,e8),E(e3,e6),E(e3,e7),E(e3,te),E(e3,ts),E(e3,tn),E(e3,ta),E(e3,to),E(e3,tE);class tT extends e9{async authenticate(e,t){let s=await super.authenticate(e,t);return s.success&&(this.apiClient.setAuthData(s.data),this.apiClient.scheduleTokenRenewal(this.renewToken)),s}async renewToken(){let e=this.apiClient.getAuthData()?.refreshToken;if(!e)throw Error("Refresh token not found");let t=await this.refresh({headers:{Authorization:`${this.apiClient.getConfig().authSchema??"Bearer"} ${e}`}});if(t.success)return{accessToken:t.data.accessToken,refreshToken:t.data.refreshToken};throw Error(`Could not renew token: ${String(t.error)}`)}}class td extends e1{constructor(e){super(new e2(e)),this.config=e,this.attribute=new e4(this.apiClient),this.authentication=new tT(this.apiClient),this.avatar=new e5(this.apiClient),this.chart=new tt(this.apiClient),this.message=new tr(this.apiClient),this.preference=new ti(this.apiClient),this.versioning=new tu(this.apiClient),this.watchlist=new tp(this.apiClient)}}E(eX,eZ),E(eX,e3);var tl={};p(tl,"OrbisApi",()=>t_);var tc={};tc=JSON.parse('{"ERR_UNKNOWN_ERROR":"Unknown Error","ERR_ESIGNATURE_REQUIRED":"E-Signature Required","ERR_ACH_NOT_ALLOWED":"Ach Not Allowed","ERR_ACH_WITHDRAWAL_NOT_ALLOWED":"Ach Withdrawal Not Allowed","ERR_ACH_DEPOSITS_NOT_ALLOWED":"Ach Deposits Not Allowed","ERR_WIRE_WITHDRAWAL_NOT_ALLOWED":"Wire Withdrawal Not Allowed","ERR_PLAID_ERROR":"Plaid Error","ERR_IDENTITIES_NOT_AVAILABLE":"Identities Not Available","ERR_NAMES_NOT_AVAILABLE":"Names Not Available","ERR_INSUFFICIENT_SHARES":"Insufficient Shares","ERR_INSUFFICIENT_FUNDS":"Insufficient Funds","ERR_INSUFFICIENT_CASH":"Insufficient Cash","ERR_MARGIN_ACCOUNT_ONLY":"Margin Account Only","ERR_NOT_SHORTABLE":"Not Shortable","ERR_SHORTABLE_LIMIT_EXCEEDED":"Shortable Limit Exceeded","ERR_NO_QUOTE":"No Quote","ERR_PURPOSE_NOT_SUPPORTED":"Purpose Not Supported","ERR_OPTION_EXPIRED":"Option Expired","ERR_CANNOT_BUY_TO_OPEN":"Cannot Buy To Open","ERR_CANNOT_SELL_TO_CLOSE":"Cannot Sell To Close","ERR_CANNOT_NAKED_SELL_TO_OPEN":"Cannot sell to open without spread","ERR_CANNOT_BUY_TO_CLOSE":"Cannot Buy To close","ERR_BUY_OPEN_SELL_OPEN":"Cannot Buy to Open and Sell to Open at same time","ERR_BUY_STRIKE_MORE_SELL_STRIKE":"Buy Strike higher than Sell Strike Price","ERR_QUANTITIES_NOT_EQUAL":"Spread Quantities are not Equal","ERR_MUST_BE_CALLS":"Must Be Calls","ERR_MUST_BE_PUTS":"Must Be Puts","ERR_MUST_BE_CREDIT":"Must Be Credit","ERR_SAME_UNDERLYING":"Same Underlying","ERR_MUST_ENTER_DEBIT_PRICE":"Debit price must be entered","ERR_MUST_ENTER_CREDIT_PRICE":"Credit price must be entered","ERR_MUST_BE_DEBIT":"Transaction must be Debit","ERR_SAME_EXPIRATION_MONTH":"Same expiration month","ERR_OPTIONS_NOT_PERMITTED":"Options not permitted","ERR_MUST_MARGIN_ACCOUNT":"Margin account is required to complete this transaction","ERR_NO_ILM_ACCOUNT":"No Ilm Account","ERR_NO_OTCBB":"Cannot short sell an OTC stock","ERR_LIMIT_ONLY":"Limit orders only","ERR_OUTSIDE_MARKET_HOURS":"Cannot trade outside market hours","ERR_MARKET_CLOSED":"Market is closed","ERR_BUY_STRIKE_LESS_SELL_STRIKE":"Buy Strike is less than Sell strike price","ERR_BUY_STRIKE_EQUAL_SELL_STRIKE":"Buy strike is equal to Sell strike price","ERR_BUY_EXPIRATION_LONGER":"Buy Expiration Longer","ERR_BUY_EXPIRATION_SHORTER":"Buy Expiration Shorter","ERR_BUY_OPTION_PRICE_GREATER_SELL_OPTION_PRICE":"Buy Option Price Greater Sell Option Price","ERR_BUY_OPTION_PRICE_LESSER_SELL_OPTION_PRICE":"Buy Option Price Lesser Sell Option Price","ERR_SELL_RESTRICTED":"Sell orders for this security are not allowed","ERR_BUY_RESTRICTED":"Buy orders for this security are not allowed","ERR_NEW_ORDERS_ARE_RESTRICTED":"New Orders Are Restricted","ERR_INVALID_BLOCK_SIZE":"Invalid Block Size","ERR_TRADING_RESTRICTED":"Trading Restricted","ERR_SELL_CLOSE_BUY_CLOSE":"Cannot Sell to Close and Buy to Close same position","ERR_LESS_OR_NO_SELL_TO_OPEN_POSN":"Less Or No Sell To Open Position","ERR_LESS_OR_NO_BUY_TO_OPEN_POSN":"Less Or No Buy To Open Position","ERR_STOP_GREATER_LAST":"Stop price must be less than the last price","ERR_STOP_LESS_LAST":"Stop price cannot be less than last price","ERR_TRADING_HALTED":"Trading has been halted temporarily","ERR_EXCHANGE_RESTRICTION":"Trading on this security has been restricted","ERR_SYMBOL_NOT_TRADABLE":"Symbol is not tradable","ERR_MISSING_RULE_5030_5131":"Missing Rule 50305131","ERR_DUPLICATE_ORDER_REFERENCE":"Duplicate order reference","ERR_LIMIT_LESS_STOP":"Limit price must be greater than the stop price","ERR_ORDER_TYPE_NOT_TRADABLE":"Cannot place market orders at this time","ERR_ORDER_TYPE_NOT_PERMITTED":"Order Type not permitted","ERR_ACCOUNT_NOT_TRADABLE":"Account is currently not tradable","ERR_INVALID_EXPECTED_VALUE":"Invalid expected value","ERR_LIMIT_GREATER_STOP":"Limit price must be less than the stop price","ERR_ORDER_NOT_FOUND":"Order not found","ERR_NO_SHARES_AVAILABLE":"No shares available","ERR_NO_CHANGES":"No changes","ERR_SHARES_LESS_EXECUTED":"Shares less executed","ERR_REQUEST_IN_PROGRESS":"Request in progress","ERR_REPLACE_IN_PROGRESS":"Replace in progress","ERR_TRANSACTION_NOT_SUPPORTED":"Transaction is not supported for this order type","ERR_START_TIME_BEFORE_END_TIME":"Start time before end time","ERR_ALGO_STRATEGY_NOT_SUPPORTED":"Algo Strategy not supported","ERR_DUPLICATE_ORDER_SUBMISSION":"Duplicate order. Please resubmit in at least 30 seconds","ERR_UNKNOWN_ORDER_TYPE":"Unknown Order Type","ERR_MAX_FLOOR_GREATER_THAN_QUANTITY":"Max Floor Greater than Quantity","ERR_MAX_FLOOR_NOT_ODD_LOT":"Max Floor Not Odd Lot","ERR_CANNOT_SELL_TO_OPEN":"Cannot Sell To Open","ERR_NO_GTC_ON_INET":"GTC orders are not allowed on ECN","ERR_NO_GTD_PERMITTED":"GTD Orders not Permitted","ERR_TOO_MANY_DECIMAL_PLACES":"Too many decimal places","ERR_LIQUIDATION_ONLY":"Liquidation only","ERR_INSUFFICIENT_EQUITY":"Insufficient Equity","ERR_MUST_BE_EVEN":"Must Be Even","ERR_ODD_LOT_ONLY":"This security trades in odd lots only","ERR_TOO_LATE_TO_ENTER":"Too late to enter","ERR_OPTION_TRADING_RESTRICTED":"Option trading restricted","ERR_TOO_EARLY_TO_ENTER":"Too early to enter","ERR_VOLUME_CONSTRAINT_NOT_NEEDED":"Volume Constraint not needed","ERR_VOLUME_CONSTRAINT_NEEDED":"Volume constraint needed","ERR_CANNOT_DO_SPREADS":"Spread trading is not available","ERR_OCO_NEED_SAME_SECURITY":"OCO Need same security","ERR_OCO_NEED_SAME_SIZE":"OCO needs same size","ERR_OCO_MUST_BE_STOP":"OCO must be stop","ERR_OCO_LIMIT_BELOW_STOP":"OCO limit below stop","ERR_OCO_MUST_BE_LIMIT":"OCO must be limit","ERR_OCO_STOP_BELOW_LIMIT":"OCO stop below limit","ERR_OCO_NEED_DIFFERENT_SECURITY":"OCO needs different security","ERR_OCO_VALUE_MUST_BE_EQUAL":"OCO value must be equal","ERR_NEGATIVE_MARKUP":"Markup cannot be negative","ERR_MARKUP_TOO_BIG":"Markup too big","ERR_DIMES_ONLY":"This option is traded in dimes (10c increments) only","ERR_NICKELS_ONLY":"Price must be in 5 cent spread","ERR_OCO_STOP_TOO_CLOSE":"Oco stop too close","ERR_CREATING_NAKED_POSITION":"This transaction will create a naked position your account is not allowed to have","ERR_INSUFFICIENT_SHORT_SHARES":"Insufficient short shares","ERR_OCO_INVALID_ORDER_TYPE":"OCO invalid order type","ERR_ORDER_NOT_FOUND_BUY_LEG":"Order cannot find BUY leg of spread","ERR_ORDER_NOT_FOUND_SELL_LEG":"Order cannot find SELL leg of spread","ERR_STATUS_NOT_IN_W_E_B":"Status Not In WEB","ERR_INSERT_REPLACE_BUY_LEG":"INSERT Replace buy leg","ERR_INSERT_REPLACE_SELL_LEG":"INSERT Replace sell leg","ERR_INSERT_REPLACE_HIST":"INSERT replace history","ERR_UPDATE_REPLACE_BUY_LEG":"UPDATE Replace buy leg","ERR_UPDATE_REPLACE_SELL_LEG":"UPDATE Replace sell leg","ERR_INSERT_G_EVENT_BUY_LEG":"Insert G-Event for SELL leg","ERR_INSERT_G_EVENT_SELL_LEG":"Insert G-Event for BUY leg","ERR_INSERT_V_EVENT_BUY_LEG":"Insert V-Event for BUY leg","ERR_INSERT_V_EVENT_SELL_LEG":"Insert V-Event for SELL leg","ERR_INSERT_REPLACE_SUCCESS_HIST":"INSERT Replace success history","ERR_REPLACE_ACTIVE_ZERO":"Replace active zero","ERR_UPDATE_STATUS_G":"Update status G","ERR_INVALID_USER":"Invalid user","ERR_INVALID_ACCOUNT":"Invalid account","ERR_INSUFFICIEND_LONG_TO_COVER":"Insufficiend long to cover","ERR_QUOTE_COUNTRY_NOT_SUPPORTED":"Quote country not supported","ERR_TRADING_LIMIT":"Trading limit error","ERR_STOP_AON":"Stop All-Or-None","ERR_AON_NOT_SUPPORTED":"All-Or-None not supported","ERR_INVALID_TRADING_PASSWORD":"Invalid trading password","ERR_EIP_BUYS_MIS":"This security cannot be acquired due to an SIP classification","ERR_ORDER_EXCEEDS_SHARE_LIMIT":"Order exceeds share limit","ERR_ORDER_EXCEEDS_VALUE_LIMIT":"Order exceeds value limit","ERR_ORDER_VALUE_TOO_SMALL":"Order value too small","ERR_ORDER_EXCEEDS_THRESHOLD":"Order exceeds threshold","ERR_WASH_TRADE":"Cannot place an order while order is open","ERR_POSITION_LOADER_NOT_AVAILABLE":"Position Loader not available","ERR_BALANCE_LOADER_NOT_AVAILABLE":"Balance Loader not available","ERR_NO_OTCBB_ON_PREPOST":"No OTCBB for pre and post market","ERR_LIMIT_MARKET_ONLY":"Only limit and market orders are supported","ERR_TOO_SMALL_FOR_AON":"Quantity too small of All-Or-None","ERR_MISSING_LIMIT":"Missing limit","ERR_MISSING_STOP":"Missing stop","ERR_PRICE_TOO_SMALL":"Price too small","ERR_GTC_NOT_ALLOWED":"GTC orders are not allowed","ERR_PRE_IPO":"Market orders are not allowed on pre-IPO stocks","ERR_UNKNOWN_STRATEGY":"Unknown Strategy","ERR_ESS":"ESS Error","ERR_UNREALISTIC_CREDIT_DEBIT":"Unrealistic credit debit","ERR_UNREALISTIC_CREDIT":"Unrealistic credit","ERR_ESTABLISHING_SHORT_ON_NONINTERMEDIARY_WTH_LONG":"Establishing Short on Non-Intermediary with Long","ERR_ESTABLISHING_LONG_ON_NONINTERMEDIARY_WTH_SHORT":"Establishing Long on Non-Intermediary with Short","ERR_DIFFERENT_STRIKE_DISTANCE":"Different strike distance","ERR_POSITION_NOT_FOUND":"Position not found","ERR_NAKED_PUTS_NOT_PERMITTED":"Naked Put Positions not Permitted","ERR_NAKED_CALLS_NOT_PERMITTED":"Naked Call Positions not Permitted","ERR_SHORT_SPREADS_NOT_PERMITTED":"Short Spreadsn not permitted","ERR_MICRO_CAP_THRESHOLD":"Micro cap threshold","ERR_INVALID_PEG_TYPE":"Invalid peg type","ERR_INVALID_PEG":"Invalid peg","ERR_ETH_NOT_SUPPORTED":"ETH not supported","ERR_TOO_MANY_REQUESTS":"Too many requests","ERR_TOO_MANY_IDENTICAL_REQUESTS":"Too many identical requests","ERR_OTC_PRICE_THRESHOLD":"OTC price threshold","ERR_BNP_OTC_THRESHOLD":"BNP OTC threshold","ERR_ORDER_TOO_LARGE":"Order too large","ERR_TOO_MANY_SHARES":"Too many shares","ERR_PRICE_MOVEMENT_THRESHOLD":"Price movement threshold","ERR_MISSING_QUANTITY":"Quantity missing from Order","ERR_CONTRACT_SIZE_UNAVAILABLE":"Contract size unavailable","ERR_OPERATION_NOT_SUPPORTED":"Operation not supported","ERR_ACCOUNT_UNDEFINED":"Account undefined","ERR_POLICY_UPDATE_NOT_SUPPORTED":"Policy Update not supported","ERR_UNREALISTIC_PERCENTAGE":"Unrealistic percentage","ERR_UNREALISTIC_TOTAL":"Unrealistic total","ERR_MISSING_ORDERS":"Missing orders","ERR_ORDER_MISMATCH":"Order mismatch","ERR_MULTIPLE_MODELS":"Multiple models","ERR_MULTIPLE_TRANSACTIONS":"Multiple transactions","ERR_MULTIPLE_SECURITIES":"Multiple securities","ERR_MULTIPLE_ACCOUNT_TYPES":"Multiple account types","ERR_MULTIPLE_CURRENCIES":"Multiple currencies","ERR_MULTIPLE_SIDES":"Multiple sides","ERR_UNALLOCATED_ORDERS":"Unallocated orders","ERR_INVENTORY_NOT_ALLOWED":"Inventory not Allowed","ERR_INSUFFICIENT_ARGUMENTS":"Insufficient arguments","ERR_MODEL_HAS_ACCOUNTS":"Model has accounts","ERR_MODEL_NOT_DEFINED":"Model not defined","ERR_VALIDATOR_NOT_AVAILABLE":"Validator not available","ERR_LESS_THAN_MINIMUM_QUANTITIES":"Quantity Less than Allowable Minimum","ERR_GREATER_THAN_MAXIMUM_QUANTITIES":"Quantity Greater than Allowable Maximum","ERR_QUANTITIES_INVALID_INCREMENT":"Invalid Qunatity Increment","ERR_ROUTES_NOT_AVAILABLE":"Routes not available","ERR_MISSING_VALUE":"Value missing","ERR_DOES_NOT_MEET_MINIMUM":"Does not meet minimum","ERR_ORDER_TIME_RESTRICTED":"Order Time restricted","ERR_FRACTIONAL_QUANTITY_NOT_SUPPORTED":"Fractional quantity not supported","ERR_QUANTITY_NOT_SUPPORTED":"Quantity not supported","ERR_DUPLICATE_QUANTTY":"Duplicate Quantty","ERR_FRACTIONAL_NOT_ALLOWED":"Fractional Not Allowed","ERR_FRACTIONAL_LIMITS_NOT_ALLOWED":"Fractional Limits Not Allowed","ERR_INVENTORY_NOT_DEFINED":"Inventory Not Defined","ERR_NOTIONAL_EXPECTED":"Notional expected","ERR_UNREALISTIC_VALUE":"Unrealistic value","ERR_MISSING_ORDER_TYPE":"Missing order type","ERR_TOO_MANY_DEPOSITS":"Too many deposits","ERR_TOO_MANY_WITHDRAWALS":"Too many withdrawals","ERR_TRANSFER_METHOD_NOT_SUPPORTED":"Transfer Method not supported","ERR_TRANSFER_REJECTED":"Transfer rejected","ERR_RESTRICTED_ITEM":"Restricted item","ERR_FEATURE_NOT_AVAILABLE":"Feature not available","ERR_INVALID_RELATIONSHIP":"Invalid relationship","ERR_MISSING_ID":"Missing ID","ERR_MISSING_CONTRIBUTION_YEAR":"Missing Contribution Year","ERR_MISSING_CONTRIBUTION_TYPE":"Missing Contribution Type","ERR_MISSING_DISTRIBUTION_REASON":"Missing Distribution Reason","ERR_MISSING_DISTRIBUTION_INSTITUTION":"Missing Distribution Institution","ERR_MISSING_VALUE_TYPE":"Missing Value Type","ERR_MISSING_TRANSFER_ID":"Missing Transfer Id","ERR_MISSING_TOKEN":"Missing Token","ERR_NAME_MISMATCH":"Name mismatch","ERR_BANK_RELATIONSHIP_CREATION_FAILURE":"Bank Relationship Creation Failure","ERR_BANK_RELATIONSHIP_DUPLICATE_NICKNAME":"Bank Relationship Duplicate Nickname","ERR_BANK_RELATIONSHIP_DUPLICATE_BENEFICIARY":"Bank Relationship Duplicate Beneficiary","ERR_BANK_RELATIONSHIP_NOT_SUPPORTED":"Bank Relationship Not Supported","ERR_BANK_RELATIONSHIP_NOT_APPROVED":"Bank Relationship Not Approved","ERR_BANK_ACCOUNT_TYPE_NOT_SUPPORTED":"Bank Account Type Not Supported","ERR_MISSING_NICKNAME":"Missing Nickname","ERR_BANK_RELATIONSHIP_LIMIT":"Bank Relationship Limit","ERR_INVALID_DISBURSEMENT_TYPE":"Invalid Disbursement Type","ERR_RECIPIENT_BANK_MISSING":"Recipient Bank Missing","ERR_RECIPIENT_BANK_PRESENT":"Recipient Bank Present","ERR_INVALID_IDENTIFIER_TYPE":"Invalid Identifier Type","ERR_IDENTIFIER_MISSING":"Identifier Missing","ERR_ACCOUNT_TYPE_MISSING":"Account Type Missing","ERR_BENEFICIARY_MISSING":"Beneficiary Missing","ERR_BENEFICIARY_PRESENT":"Beneficiary Present","ERR_INVALID_ABA_NUMBER":"Invalid Aba Number","ERR_MUTUAL_FUND_TRADING_RESTRICTED":"This fund is not allowed to be purchased in the account owner\'s US State","ERR_MUTUAL_FUND_NOT_ALLOWED":"This fund is not on the list of approved funds","ERR_THIRD_PARTY_XFER_RESTRICTED":"Third-Party Transfers restricted","ERR_MUTUAL_FUND_SUBSTITUTE_LIQUIDATION_NOT_SUPPORTED":"Mutual Fund Substitute Liquidation not supported","ERR_MUTUAL_FUND_SUBSTITUTE_VALUE":"Mutual Fund Substitute Value","ERR_MUTUAL_FUND_NOT_ALLOWED_TO_CANCEL":"Mutual Fund not allowed to cancel","ERR_MUTUAL_FUND_TIME_EXCEEDS_ORDER_CUTOFF":"Mutual Fund Time exceeds Order cutoff","ERR_LIQUIDATION_WITH_EXISTING_OPEN_SELL_ORDER":"Liquidation with existing Open Sell Order","ERR_TRANSFER_NOT_FOUND":"Transfer Not Found","ERR_ACCOUNT_NOT_ACTIVE":"Account Not Active","ERR_MUST_BE_OPTION":"Must Be Option","ERR_UNEVEN_BREADTH":"Uneven Breadth","ERR_PAST_DELIVERY_DATE":"Past Delivery Date","ERR_MISSING_LOA":"Missing Loa","ERR_JOURNAL_REQUEST_FAILED":"Journal Request Failed","ERR_UNEXPECTED_ERROR":"Unexpected Error","ERR_UNKNOWN_KEY_FOR_USER":"Unknown Key For User","ERR_UNKNOWN_PARAMETER_FOR_USER":"Unknown Parameter For User","ERR_NO_BANK_ACCOUNT_WITH_SAME_NAME":"No Bank Account With Same Name","ERR_OPEN_TRANSFERS":"Open Transfers","ERR_BANK_RELATIONSHIP_NOT_FOUND":"Bank Relationship Not Found","ERR_NO_BANK_ACCOUNT_FOUND":"No Bank Account Found","ERR_CFR_275_206_RESTRICTED":"Cfr 275206 Restricted","ERR_RECONFIRM_NOT_REQUESTED":"Reconfirm Not Requested","ERR_ACQUISITION_OF_CORP_ACT_OPTION":"Acquisition Of Corp Act Option","ERR_ENCRYPTION_FAILED":"Encryption Failed","ERR_MUTUAL_FUND_NO_NEW_INVESTORS_ALLOWED":"Mutual Fund No New Investors Allowed","ERR_LARGE_ORDER_REJECTION":"Large Order Rejection","ERR_CANCEL_FAILED":"Cancel Failed","ERR_TRIGGER_FAILURE":"Trigger Failure","ERR_ACAT_FAILURE":"Acat Failure","ERR_MULTIPLE_ACCOUNTS":"Multiple Accounts","ERR_ACAT_ASSETS_UNDEFINED":"Acat Assets Undefined","ERR_MISSING_CONTRA_ACCOUNT":"Missing Contra Account","ERR_MISSING_CONTRA_ACCOUNT_TYPE":"Missing Contra Account Type","ERR_MISSING_CONTRA_ACCOUNT_TITLE":"Missing Contra Account Title","ERR_MISSING_PRIMARY_TAX_ID":"Missing Primary Tax Id","ERR_MISSING_REMOTE_IP":"Missing Remote Ip","ERR_MISSING_REMOTE_DEVICE":"Missing Remote Device","ERR_STATE_RESTRICTED":"State Restricted","ERR_OPEN_ORDER_LIMIT":"Open Order Limit","ERR_EXCEEDED_NOTIONAL_LIMIT":"Exceeded Notional Limit","ERR_MINIMUM_ORDER_LIMIT":"Minimum Order Limit","ERR_ACAT_IN_PROGRESS":"Acat In Progress","ERR_ATTEMPTED_TRADE":"Attempted Trade","ERR_NO_VALUE":"No Value","ERR_MISSING_CONTROL_TRANSFER_ID":"Missing Control Transfer Id","ERR_MISSING_CONTROL_SOURCE":"Missing Control Source","ERR_MISSING_CONTROL_RESOLUTION":"Missing Control Resolution","ERR_MISSING_DIVIDENDS_INDICATOR":"Missing Dividends Indicator","ERR_MISSING_CAPITAL_GAINS_INDICATOR":"Missing Capital Gains Indicator","ERR_MISSING_BANK_NAME":"Missing Bank Name","ERR_MISSING_BANK_CITY":"Missing Bank City","ERR_MISSING_BANK_STATE_PROVINCE":"Missing Bank State Province","ERR_MISSING_BANK_COUNTRY":"Missing Bank Country","ERR_INVALID_BANK_COUNTRY":"Invalid Bank Country","ERR_MISSING_BANK_POSTAL_CODE":"Missing Bank Postal Code","ERR_INSTANT_DEPOSIT_DENIED":"Instant Deposit Denied","ERR_IDENTITY_ID_MISSING":"Identity Id Missing","ERR_DOMESTIC_NOT_SUPPORTED":"Domestic Not Supported","ERR_MISSING_BANK_CODE":"Missing Bank Code","ERR_MISSING_BANK_BRANCH":"Missing Bank Branch","ERR_INVALID_BANK_BRANCH":"Invalid Bank Branch","ERR_INVALID_BANK_ACCOUNT":"Invalid Bank Account","ERR_MISSING_ADDRESS":"Missing Address","ERR_MISSING_PAYMENT_METHOD":"Missing Payment Method","ERR_GIFT_MUST_HAVE_PURPOSE":"Gift Must Have Purpose","ERR_INVALID_STREET":"Invalid Street","ERR_INVALID_STREET_MATCH":"Invalid Street Match","ERR_INVALID_COUNTRY":"Invalid Country","ERR_INVALID_CITY":"Invalid City","ERR_PAYMENT_METHODS_NOT_AVAILABLE":"Payment Methods Not Available","ERR_PAYMENT_METHODS_NOT_SUPPORTED":"Payment Methods Not Supported","ERR_ACCOUNT_TRADING_HALTED":"Account Trading Halted","ERR_ADJUSTMENT_FAILURE":"Adjustment Failure","ERR_CRYPTO_NOT_ENABLED":"Crypto Not Enabled","ERR_CRYPTO_NOT_ALLOWED":"Crypto Not Allowed","ERR_INVALID_DOCUMENT_ID":"Invalid Document Id","ERR_MISSING_BANK_ACCOUNT":"Missing Bank Account","ERR_MARKET_ORDER_PRIOR_MARKET_OPEN_RESTRICTED":"Market Order Prior Market Open Restricted","ERR_LEGAL_NOT_SUPPORTED":"Legal Not Supported","ERR_DOCUMENT_CALL_NOT_SUPPORTED":"Document Call Not Supported","ERR_FEATURE_NOT_SUPPORTED":"Feature Not Supported","ERR_CRYPTO_SIGNUP_NOT_SUPPORTED":"Crypto Signup Not Supported","ERR_NOT_ACH":"Not Ach","ERR_AMOUNT_MUST_BE_GREATER_THAN_ZERO":"Amount Must Be Greater Than Zero","ERR_NOT_MICRODEPOSIT":"Not Microdeposit","ERR_LINK_IN_INVALID_STATUS":"Link In Invalid Status","ERR_OCT_CLOSING_PRICE_THRESHOLD":"Oct Closing Price Threshold","ERR_OTC_MARKET_CAP_THRESHOLD":"Otc Market Cap Threshold","ERR_FILE_UPLOAD_FAILED":"File Upload Failed","ERR_MISSING_CONTRIBUTION":"Missing Contribution","ERR_MISSING_DISTRIBUTION":"Missing Distribution","ERR_NON_CORE_DISALLOWED":"Non Core Disallowed","ERR_PRE_CORE_DISALLOWED":"Pre Core Disallowed","ERR_ALL_DISALLOWED":"All Disallowed","ERR_CORE_POST_DISALLOWED":"Core Post Disallowed","ERR_INVALID_2FA":"Invalid 2 Fa","ERR_PASSPHRASE_NOT_SUPPORTED":"Passphrase not supported","ERR_PASSWORD_TOO_SHORT":"Password is too short","ERR_PASSWORD_CONTAINS_USERNAME":"Password contains username","ERR_PASSWORD_INSUFFICIENT_DIGITS":"Password has insufficient digits","ERR_PASSWORD_DIGITS_ONLY":"Password cannot only contain digits","ERR_PASSWORD_NEEDS_MULTICASE":"Password needs multicase characters","ERR_PASSWORD_CONTAINS_SEQUENCE":"Password contains sequenced characters","ERR_PASSWORD_CONTAINS_SUBSEQUENCE":"Password cannot have a sequence of consecutive characters/numbers","ERR_PASSWORD_RECENTLY_USED":"Password was recently used","ERR_PASSWORD_COMMONLY_USED":"Password commonly used","ERR_PASSWORD_INVALID":"Incorrect old password"}');class tR extends e2{parseOrbisError(e){let t=e?e.error||e.errors:void 0;if(t){let e=JSON.stringify(t);for(let t of Object.keys(/*@__PURE__*/T(tc)))if(e.toUpperCase().includes(t))return{orbisErrorCode:t,orbisErrorMessage:/*@__PURE__*/T(tc)[t]}}return{orbisErrorCode:null,orbisErrorMessage:null}}async request(e){try{let t=await super.request(e);return Object.assign(t,this.parseOrbisError(t.data)),t.success||this.handleAxiosError(t.error),t}catch(e){throw a(e)&&(Object.assign(e,this.parseOrbisError(e.response?.data)),this.handleAxiosError(e)),e}}handleAxiosError(e){a(e)&&(e.status===o.Unauthorized&&this.config.onUnauthorized?.(),440===e.status&&this.config.onLoginTimeout?.())}}class t_ extends e1{constructor(e){super(new tR({...e,authSchema:"SessionId"}))}async login(e,t){let s=await this.apiClient.post("auth/v2/login",{username:e,password:t});return s.success&&await this.saveTokenAndScheduleRenewal(s.data.sessionId),s}async sso(e,t){let s=await this.apiClient.post("auth/v1/sso/platform",{token:e,platform:t});return s.success&&await this.saveTokenAndScheduleRenewal(s.data.sessionId),s}async logout(){await this.apiClient.post("auth/logout"),this.apiClient.setAuthData(null),this.apiClient.cancelTokenRenewal()}async saveTokenAndScheduleRenewal(e){this.apiClient.setAuthData({accessToken:e,refreshToken:e}),this.apiClient.scheduleTokenRenewal(this.renewToken)}async renewToken(){let e=await this.apiClient.post("auth/v2/renew");if(e.success)return{accessToken:e.data.sessionId,refreshToken:e.data.sessionId};throw Error(`Could not renew token: ${String(e.error)}`)}}E({},tl);var th={},tC={};p(tC,"UmaApi",()=>sS);var tS={},tO={};p(tO,"ActionLogs",()=>ty);class ty{constructor(t){this.apiClient=t,e(this)}getActionLogs(e,t){return this.apiClient.request({...t,url:"/v1/action-logs/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var tI={};p(tI,"ApiKeys",()=>tA);class tA{constructor(t){this.apiClient=t,e(this)}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/api-keys",method:"DELETE",data:e,secure:!0,contentType:es.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/api-keys/${e}`,method:"GET",secure:!0,responseType:"json"})}create(e,t){return this.apiClient.request({...t,url:"/v2/b2b/api-keys",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/api-keys/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v2/b2b/api-keys/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}}var tm={};p(tm,"AuthApps",()=>tN);class tN{constructor(t){this.apiClient=t,e(this)}get(e){return this.apiClient.request({...e,url:"/v1/auth-apps",method:"GET",secure:!0,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps",method:"DELETE",data:e,secure:!0,contentType:es.Json})}getRegistrationQr(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/totp/registration/qr",method:"POST",data:e,secure:!0,contentType:es.Json})}finishRegistration(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/totp/registration/response",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}getLoginChallenge(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/webauthn/login/request",method:"POST",data:e,contentType:es.Json,responseType:"json"})}getRegisterChallenge(e){return this.apiClient.request({...e,url:"/v1/auth-apps/webauthn/registration/request",method:"POST",secure:!0,responseType:"json"})}finishCredentialRegistration(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/webauthn/registration/response",method:"POST",data:e,secure:!0,contentType:es.Json})}register(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/yubico/otp/registration",method:"POST",data:e,secure:!0,contentType:es.Json})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/auth-apps/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}}var tb={};p(tb,"AuthForms",()=>tP);class tP{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/auth-forms",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/auth-forms",method:"DELETE",data:e,secure:!0,contentType:es.Json})}get(e,t){return this.apiClient.request({...t,url:"/v1/auth-forms/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}getBySlug(e,t){return this.apiClient.request({...t,url:`/v1/auth-forms/public/${e}`,method:"GET",responseType:"json"})}getById(e,t){return this.apiClient.request({...t,url:`/v1/auth-forms/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/auth-forms/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}}var tf={};p(tf,"B2BAuth",()=>tD);class tD{constructor(t){this.apiClient=t,e(this)}getCurrent(e){return this.apiClient.request({...e,url:"/v1/auth/b2b/current",method:"GET",secure:!0,responseType:"json"})}apiKeysLogin(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/login/api-keys",method:"POST",data:e,contentType:es.Json,responseType:"json"})}basicLogin(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2b/login/basic",method:"POST",data:e,headers:t,contentType:es.Json,responseType:"json"})}logout(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/logout",method:"DELETE",data:e,contentType:es.Json})}refreshTokens(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/refresh",method:"POST",data:e,contentType:es.Json,responseType:"json"})}resetPassword(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2b/reset-password",method:"PUT",data:e,headers:t,contentType:es.Json,responseType:"json"})}sendMfaCode(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/send-mfa-code",method:"PUT",data:e,contentType:es.Json})}sendResetPasswordCode(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/send-reset-password-code",method:"PUT",data:e,contentType:es.Json})}}var tL={};p(tL,"B2BUsers",()=>tg);class tg{constructor(t){this.apiClient=t,e(this)}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/users/b2b",method:"DELETE",data:e,secure:!0,contentType:es.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/users/b2b/${e}`,method:"GET",secure:!0,responseType:"json"})}create(e,t){return this.apiClient.request({...t,url:"/v2/users/b2b",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/users/b2b/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v2/users/b2b/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}}var tU={};p(tU,"B2BUserSettings",()=>tv);class tv{constructor(t){this.apiClient=t,e(this)}setUserSettings(e,t,s){return this.apiClient.request({...s,url:"/v1/b2b/settings",method:"PUT",data:e,secure:!0,headers:t,contentType:es.Json,responseType:"json"})}uploadAvatar(e,t){return this.apiClient.request({...t,url:"/v1/b2b/settings/avatar",method:"PUT",data:e,secure:!0,contentType:es.FormData})}sendContactChangeCode(e,t,s){return this.apiClient.request({...s,url:"/v1/b2b/settings/codes",method:"POST",data:e,secure:!0,headers:t,contentType:es.Json})}}var tM={};p(tM,"B2CAuth",()=>t$);class t${constructor(t){this.apiClient=t,e(this)}getCurrent(e){return this.apiClient.request({...e,url:"/v1/auth/b2c/current",method:"GET",secure:!0,responseType:"json"})}initAppleLogin(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/login/apple",method:"POST",data:e,headers:t,responseType:"json"})}finishAppleLogin(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2c/login/apple/callback",method:"POST",data:e,responseType:"json"})}basicLogin(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/login/basic",method:"POST",data:e,headers:t,contentType:es.Json,responseType:"json"})}initGoogleLogin(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/login/google",method:"POST",data:e,headers:t,responseType:"json"})}finishGoogleLogin(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2c/login/google/callback",method:"POST",data:e,responseType:"json"})}logout(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2c/logout",method:"DELETE",data:e,contentType:es.Json})}refreshTokens(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/refresh",method:"POST",data:e,headers:t,contentType:es.Json,responseType:"json"})}register(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/register",method:"POST",data:e,headers:t,contentType:es.Json,responseType:"json"})}resetPassword(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/reset-password",method:"PUT",data:e,headers:t,contentType:es.Json})}sendMfaCode(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/send-mfa-code",method:"PUT",data:e,headers:t,contentType:es.Json})}sendResetPasswordCode(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2c/send-reset-password-code",method:"PUT",data:e,contentType:es.Json})}sendVerificationCode(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/send-verification-code",method:"PUT",data:e,headers:t,contentType:es.Json})}verifyContact(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/verify",method:"PUT",data:e,headers:t,contentType:es.Json})}}var tB={};p(tB,"B2CUsers",()=>tw);class tw{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/users/b2c",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/users/b2c",method:"DELETE",data:e,secure:!0,contentType:es.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/users/b2c/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/users/b2c/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/users/b2c/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var tq={};p(tq,"B2CUserSettings",()=>tG);class tG{constructor(t){this.apiClient=t,e(this)}setUserSettings(e,t,s){return this.apiClient.request({...s,url:"/v1/b2c/settings",method:"PUT",data:e,secure:!0,headers:t,contentType:es.Json,responseType:"json"})}sendContactChangeCode(e,t,s){return this.apiClient.request({...s,url:"/v1/b2c/settings/codes",method:"POST",data:e,secure:!0,headers:t,contentType:es.Json})}availableMfaOptions(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/mfa-options",method:"GET",secure:!0,headers:e,responseType:"json"})}deleteManyOAuthBindings(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links",method:"DELETE",data:e,secure:!0,contentType:es.Json})}finishAppleProfileLinking(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/apple/finish",method:"POST",data:e,contentType:es.Json})}initAppleProfileLinking(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/apple/start",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}finishGoogleProfileLinking(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/google/finish",method:"POST",data:e,contentType:es.Json})}initGoogleProfileLinking(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/google/start",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}getOAuthBindings(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var tk={};p(tk,"Branches",()=>tF);class tF{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/branches",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/branches",method:"DELETE",data:e,secure:!0,contentType:es.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/branches/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/branches/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/branches/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var tx={};p(tx,"Countries",()=>tj);class tj{constructor(t){this.apiClient=t,e(this)}get(e){return this.apiClient.request({...e,url:"/v1/countries",method:"GET",responseType:"json"})}}var tJ={};p(tJ,"Endpoints",()=>tV);class tV{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/b2b/endpoints",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/endpoints",method:"DELETE",data:e,secure:!0,contentType:es.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/endpoints/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/b2b/endpoints/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/endpoints/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var tH={};p(tH,"Firms",()=>tY);class tY{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/firms",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/firms",method:"DELETE",data:e,secure:!0,contentType:es.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/firms/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/firms/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/firms/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var tW={};p(tW,"IdentityProviders",()=>tK);class tK{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/b2b/identity-providers",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/identity-providers",method:"DELETE",data:e,secure:!0,contentType:es.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/identity-providers/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/b2b/identity-providers/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/identity-providers/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var tQ={};p(tQ,"Locales",()=>tz);class tz{constructor(t){this.apiClient=t,e(this)}get(e){return this.apiClient.request({...e,url:"/v1/locales",method:"GET",responseType:"json"})}}var tX={};p(tX,"Microservices",()=>tZ);class tZ{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/b2b/microservices",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/microservices",method:"DELETE",data:e,secure:!0,contentType:es.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/microservices/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/b2b/microservices/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/microservices/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var t1={};p(t1,"MigrationUtils",()=>t0);class t0{constructor(t){this.apiClient=t,e(this)}usersUpsertCreate(e,t){return this.apiClient.request({...t,url:"/v1/migration-utils/users/upsert",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var t2={};p(t2,"Permissions",()=>t3);class t3{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/permissions",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/permissions",method:"DELETE",data:e,secure:!0,contentType:es.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/permissions/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/permissions/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/permissions/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var t8={};p(t8,"PublicSettings",()=>t4);class t4{constructor(t){this.apiClient=t,e(this)}get(e){return this.apiClient.request({...e,url:"/v1/public-settings",method:"GET",responseType:"json"})}}var t6={};p(t6,"Roles",()=>t9);class t9{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/roles",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/roles",method:"DELETE",data:e,secure:!0,contentType:es.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/roles/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/roles/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/roles/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var t7={};p(t7,"RoleTypes",()=>t5);class t5{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/b2b/role-types",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/role-types",method:"DELETE",data:e,secure:!0,contentType:es.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/role-types/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/b2b/role-types/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/role-types/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var se={};p(se,"SecretNotes",()=>st);class st{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/secret-notes",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}getOne(e,t){return this.apiClient.request({...t,url:"/v1/secret-notes/fetch",method:"POST",data:e,contentType:es.Json,responseType:"json"})}sendVerificationCode(e,t){return this.apiClient.request({...t,url:"/v1/secret-notes/verification",method:"PUT",data:e,contentType:es.Json})}}var ss={};p(ss,"Sessions",()=>sr);class sr{constructor(t){this.apiClient=t,e(this)}getCurrentUserSessions(e){return this.apiClient.request({...e,url:"/v1/auth/sessions",method:"GET",secure:!0,responseType:"json"})}deleteCurrentUserSessions(e,t){return this.apiClient.request({...t,url:"/v1/auth/sessions",method:"DELETE",data:e,secure:!0,contentType:es.Json})}}var sn={};p(sn,"TablePresets",()=>si);class si{constructor(t){this.apiClient=t,e(this)}getUserPresets(e){return this.apiClient.request({...e,url:"/v1/b2b/table-presets",method:"GET",secure:!0,responseType:"json"})}upsert(e,t){return this.apiClient.request({...t,url:"/v1/b2b/table-presets",method:"PUT",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var sa={};p(sa,"Tags",()=>so);class so{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/tags",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/tags",method:"DELETE",data:e,secure:!0,contentType:es.Json})}get(e,t){return this.apiClient.request({...t,url:"/v1/tags/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}getById(e,t){return this.apiClient.request({...t,url:`/v1/tags/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/tags/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}}var su={};p(su,"CommontypesAuthAppType",()=>en),p(su,"CommontypesAuthUserType",()=>ei),p(su,"CommontypesResetPasswordType",()=>ea),p(su,"HttperrorsErrorCode",()=>eo),p(su,"MfaOption",()=>eu),p(su,"PgmodelsAuthProviderAppType",()=>eE),p(su,"PgmodelsEndpointType",()=>ep),p(su,"PgmodelsEntityAccessType",()=>eT),p(su,"PgmodelsPermissionAG",()=>ed),p(su,"TypesTenantSettingLabel",()=>el),p(su,"TypesAuthFormDtoResetPasswordTypeEnum",()=>ec),p(su,"TypesAuthFormSerializerResetPasswordTypeEnum",()=>eR),p(su,"TypesB2BSendContactChangeCodeDtoTypeEnum",()=>e_),p(su,"TypesB2CResetPasswordDtoResetTypeEnum",()=>eh),p(su,"TypesB2CSendContactChangeCodeDtoTypeEnum",()=>eC),p(su,"TypesB2CSendVerificationCodeDtoCodeTypeEnum",()=>eS),p(su,"TypesCreateEndpointDtoMethodEnum",()=>eO),p(su,"TypesCreateEndpointDtoTypeEnum",()=>ey),p(su,"TypesCreateIdentityProviderDtoTypeEnum",()=>eI),p(su,"TypesCreatePermissionDtoAssignmentGroupEnum",()=>eA),p(su,"TypesCreateRoleDtoAssignmentGroupEnum",()=>em),p(su,"TypesCreateSecretNoteDtoTypeEnum",()=>eN),p(su,"TypesEndpointMetadataDtoUserTypeEnum",()=>eb),p(su,"TypesEndpointSerializerMethodEnum",()=>eP),p(su,"TypesGetB2CUsersListFiltersDtoShowOnlyEnum",()=>ef),p(su,"TypesGetFirmsListFiltersDtoStatusesEnum",()=>eD),p(su,"TypesGetIdentityProvidersListFiltersDtoTypesEnum",()=>eL),p(su,"TypesGetUsersListFiltersDtoShowOnlyEnum",()=>eg),p(su,"TypesGetWebAuthnLoginChallengeDtoUserTypeEnum",()=>eU),p(su,"TypesIdentityProviderSerializerTypeEnum",()=>ev),p(su,"TypesLinkWatchmenUserToUmaDtoUmaUserTypeEnum",()=>eM),p(su,"TypesPermissionSerializerAssignmentGroupEnum",()=>e$),p(su,"TypesRevokeUserSessionsDtoUserTypeEnum",()=>eB),p(su,"TypesSecretNoteSerializerTypeEnum",()=>ew),p(su,"TypesSendB2BMfaCodeDtoTypeEnum",()=>eq),p(su,"TypesSendB2CMfaCodeDtoTypeEnum",()=>eG),p(su,"TypesSendB2CResetPasswordCodeDtoCodeTypeEnum",()=>ek),p(su,"TypesSendB2CResetPasswordCodeDtoResetTypeEnum",()=>eF),p(su,"TypesSendResetPasswordCodeDtoTypeEnum",()=>ex),p(su,"TypesTenantSettingDtoLabelEnum",()=>ej),p(su,"TypesUpdateAuthAppDtoStatusEnum",()=>eJ),p(su,"TypesUpdateEndpointDtoMethodEnum",()=>eV),p(su,"TypesUpdateEndpointDtoTypeEnum",()=>eH),p(su,"TypesUpdateFirmDtoStatusEnum",()=>eY),p(su,"TypesUpdateIdentityProviderDtoTypeEnum",()=>eW),p(su,"TypesUpdatePermissionDtoAssignmentGroupEnum",()=>eK),p(su,"TypesUpsertUserDtoTypeEnum",()=>eQ),p(su,"TypesVerifyContactDtoCodeTypeEnum",()=>ez),(c=en||(en={})).EmailCodeAuthAppType="email_code",c.SmsCodeAuthAppType="sms_code",c.YubicoOTPAuthAppType="yubico_otp",c.WebAuthnAuthAppType="webauthn",c.TOTPAuthAppType="totp",(R=ei||(ei={})).AllAuthUserType="all",R.B2BAuthUserType="b2b",R.B2CAuthUserType="b2c",(_=ea||(ea={})).PasswordResetByContactCode="by_contact_code",_.PasswordResetByEmailLink="by_email_link",(h=eo||(eo={}))[h.JSONValidationErr=4e3]="JSONValidationErr",h[h.JSONReadErr=4001]="JSONReadErr",h[h.JSONParseErr=4002]="JSONParseErr",h[h.ForbiddenErr=4003]="ForbiddenErr",h[h.ForbiddenDueLimit=4030]="ForbiddenDueLimit",h[h.RecordNotFoundErr=4004]="RecordNotFoundErr",h[h.RecordAlreadyExistsErr=4005]="RecordAlreadyExistsErr",h[h.ImageValidationErr=4006]="ImageValidationErr",h[h.InappropriateImageErr=4007]="InappropriateImageErr",h[h.FaceNotFoundOnImageErr=4008]="FaceNotFoundOnImageErr",h[h.UnauthorizedErr=4010]="UnauthorizedErr",h[h.TokenRevokedErr=4012]="TokenRevokedErr",h[h.TokenNotActiveErr=4013]="TokenNotActiveErr",h[h.EmailNotVerifiedErr=4015]="EmailNotVerifiedErr",h[h.TokenParsingErr=4016]="TokenParsingErr",h[h.PhoneNotVerifiedErr=4017]="PhoneNotVerifiedErr",h[h.UUIDParseErr=4026]="UUIDParseErr",h[h.InvalidEmailOrPasswordOrTypeErr=4028]="InvalidEmailOrPasswordOrTypeErr",h[h.InvalidMfaCodeErr=4128]="InvalidMfaCodeErr",h[h.MfaRequiredErr=4228]="MfaRequiredErr",h[h.TokenVerificationErr=4328]="TokenVerificationErr",h[h.InvalidAPIKeyOrSecretErr=4428]="InvalidAPIKeyOrSecretErr",h[h.MfaAddingNotAllowedErr=4528]="MfaAddingNotAllowedErr",h[h.BranchRequestNotAllowed=4103]="BranchRequestNotAllowed",h[h.ForbiddenForUserTypeErr=4203]="ForbiddenForUserTypeErr",h[h.SecondForbiddenErr=4031]="SecondForbiddenErr",h[h.ThirdForbiddenErr=4032]="ThirdForbiddenErr",h[h.EntitiesChoiceNotAllowed=4303]="EntitiesChoiceNotAllowed",h[h.RecaptchaErr=4403]="RecaptchaErr",h[h.UpdateOfOldEntityStateErr=4503]="UpdateOfOldEntityStateErr",h[h.ChiefadminMutationErr=4603]="ChiefadminMutationErr",h[h.ChildEntitiesExistErr=4703]="ChildEntitiesExistErr",h[h.TenantActionForbiddenErr=4803]="TenantActionForbiddenErr",h[h.RBACManipulationErr=4903]="RBACManipulationErr",h[h.YubicoMaxKeysLimitReachedErr=4113]="YubicoMaxKeysLimitReachedErr",h[h.ConflictErr=4090]="ConflictErr",h[h.SecondFieldConflictErr=4091]="SecondFieldConflictErr",h[h.ThirdFieldConflictErr=4092]="ThirdFieldConflictErr",h[h.FourthFieldConflictErr=4093]="FourthFieldConflictErr",h[h.FifthFieldConflictErr=4094]="FifthFieldConflictErr",h[h.SixthFieldConflictErr=4095]="SixthFieldConflictErr",h[h.GoneErr=4100]="GoneErr",h[h.SecondGoneErr=4101]="SecondGoneErr",h[h.UnprocessableEntity=4222]="UnprocessableEntity",h[h.TooEarlyDuplicateRequest=4250]="TooEarlyDuplicateRequest",h[h.RateLimitErr=4291]="RateLimitErr",h[h.ForbiddenByFirmsStatusErr=4292]="ForbiddenByFirmsStatusErr",h[h.NotAcceptableError=4600]="NotAcceptableError",h[h.InternalServerErr=5e3]="InternalServerErr",h[h.InvalidRequest=6e3]="InvalidRequest",(C=eu||(eu={})).SmsMfaOption="sms",C.EmailMfaOption="email",C.VoiceMfaOption="voice",C.WebAuthnMfaOption="webauthn",C.YubicoOTPMfaOption="yubico_otp",C.TOTPMfaOption="totp",(S=eE||(eE={})).GoogleOAuth2Provider="google-oauth2",S.AppleIDOAuth2Provider="apple-id",(O=ep||(ep={})).RegularEndpoint="regular",O.DisplayOnlyEndpoint="display_only",(y=eT||(eT={})).GranularEntityAccessType="granular",y.HighLevelEntityAccessType="high-level",(I=ed||(ed={})).ChiefadminPermissionAG="chiefadmin",I.SuperadminPermissionAG="superadmin",I.B2BOnlyPermissionAG="b2b_only",I.RegularPermissionAG="regular",(A=el||(el={})).StorePasswordHistoryForDays="store_password_history_for_days",A.ResetPasswordIfUserInactiveForDays="reset_password_if_user_inactive_for_days",A.PeriodicallyResetPasswordAfterDays="periodically_reset_password_after_days",(m=ec||(ec={})).ByContactCode="by_contact_code",m.ByEmailLink="by_email_link",(N=eR||(eR={})).ByContactCode="by_contact_code",N.ByEmailLink="by_email_link",(b=e_||(e_={})).Email="email",b.Voice="voice",b.Sms="sms",(P=eh||(eh={})).ByContactCode="by_contact_code",P.ByEmailLink="by_email_link",(f=eC||(eC={})).Email="email",f.Voice="voice",f.Sms="sms",(D=eS||(eS={})).Email="email",D.Voice="voice",D.Sms="sms",(L=eO||(eO={})).POST="POST",L.PUT="PUT",L.DELETE="DELETE",L.GET="GET",L.PATCH="PATCH",L.ALL="ALL",(g=ey||(ey={})).Regular="regular",g.DisplayOnly="display_only",(eI||(eI={})).Okta="okta",(U=eA||(eA={})).Regular="regular",U.Superadmin="superadmin",U.B2BOnly="b2b_only",(v=em||(em={})).Regular="regular",v.Superadmin="superadmin",v.B2BOnly="b2b_only",(eN||(eN={})).Password="password",(M=eb||(eb={})).B2B="b2b",M.B2C="b2c",($=eP||(eP={})).POST="POST",$.PUT="PUT",$.DELETE="DELETE",$.GET="GET",$.PATCH="PATCH",$.ALL="ALL",(B=ef||(ef={})).Admin="admin",B.BranchAdmin="branch_admin",B.Compliance="compliance",(w=eD||(eD={})).InProgress="in_progress",w.Active="active",w.Suspended="suspended",w.Deleted="deleted",(eL||(eL={})).Okta="okta",(q=eg||(eg={})).Admin="admin",q.BranchAdmin="branch_admin",q.Compliance="compliance",(G=eU||(eU={})).B2B="b2b",G.B2C="b2c",(ev||(ev={})).Okta="okta",(k=eM||(eM={})).B2B="b2b",k.B2C="b2c",(F=e$||(e$={})).Regular="regular",F.Chiefadmin="chiefadmin",F.Superadmin="superadmin",(x=eB||(eB={})).B2B="b2b",x.B2C="b2c",(ew||(ew={})).Password="password",(j=eq||(eq={})).Email="email",j.Voice="voice",j.Sms="sms",(J=eG||(eG={})).Email="email",J.Voice="voice",J.Sms="sms",(V=ek||(ek={})).Email="email",V.Voice="voice",V.Sms="sms",(H=eF||(eF={})).ByContactCode="by_contact_code",H.ByEmailLink="by_email_link",(Y=ex||(ex={})).Email="email",Y.Voice="voice",Y.Sms="sms",(W=ej||(ej={})).StorePasswordHistoryForDays="store_password_history_for_days",W.ResetPasswordIfUserInactiveForDays="reset_password_if_user_inactive_for_days",W.PeriodicallyResetPasswordAfterDays="periodically_reset_password_after_days",(K=eJ||(eJ={})).Active="active",K.Disabled="disabled",(Q=eV||(eV={})).POST="POST",Q.PUT="PUT",Q.DELETE="DELETE",Q.GET="GET",Q.PATCH="PATCH",Q.ALL="ALL",(z=eH||(eH={})).Regular="regular",z.DisplayOnly="display_only",(X=eY||(eY={})).InProgress="in_progress",X.Active="active",X.Suspended="suspended",X.Deleted="deleted",(eW||(eW={})).Okta="okta",(Z=eK||(eK={})).Regular="regular",Z.Superadmin="superadmin",Z.B2BOnly="b2b_only",(ee=eQ||(eQ={})).B2B="b2b",ee.B2C="b2c",(et=ez||(ez={})).Email="email",et.Voice="voice",et.Sms="sms";var sE={};p(sE,"UserDetails",()=>sp);class sp{constructor(t){this.apiClient=t,e(this)}getUserDetails(e,t){return this.apiClient.request({...t,url:"/v1/users/details/show",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}revokeSessions(e,t){return this.apiClient.request({...t,url:"/v1/users/revoke-sessions",method:"POST",data:e,secure:!0,contentType:es.Json})}}var sT={};p(sT,"UsersCommon",()=>sd);class sd{constructor(t){this.apiClient=t,e(this)}linkWatchmenUsersToUma(e,t){return this.apiClient.request({...t,url:"/v1/users/watchmen/link",method:"POST",data:e,secure:!0,contentType:es.Json})}}var sl={};p(sl,"WatchmenAuth",()=>sc);class sc{constructor(t){this.apiClient=t,e(this)}generateWatchmenAuthToken(e){return this.apiClient.request({...e,url:"/v1/auth/watchmen/authentication-tokens",method:"POST",secure:!0,responseType:"json"})}verifyWatchmenAuthToken(e,t){return this.apiClient.request({...t,url:"/v1/auth/watchmen/authentication-tokens/verify",method:"PUT",data:e,secure:!0,contentType:es.Json,responseType:"json"})}}var sR={};p(sR,"WatchmenInstances",()=>s_);class s_{constructor(t){this.apiClient=t,e(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/watchmen-instances",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/watchmen-instances",method:"DELETE",data:e,secure:!0,contentType:es.Json})}getMany(e,t){return this.apiClient.request({...t,url:"/v1/watchmen-instances/list",method:"POST",data:e,secure:!0,contentType:es.Json,responseType:"json"})}getById(e,t){return this.apiClient.request({...t,url:`/v1/watchmen-instances/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/watchmen-instances/${e}`,method:"PUT",data:t,secure:!0,contentType:es.Json,responseType:"json"})}}E(tS,tO),E(tS,tI),E(tS,tm),E(tS,tb),E(tS,tf),E(tS,tL),E(tS,tU),E(tS,tM),E(tS,tB),E(tS,tq),E(tS,tk),E(tS,tx),E(tS,tJ),E(tS,tH),E(tS,tW),E(tS,tQ),E(tS,tX),E(tS,t1),E(tS,t2),E(tS,t8),E(tS,t6),E(tS,t7),E(tS,se),E(tS,ss),E(tS,sn),E(tS,sa),E(tS,su),E(tS,sE),E(tS,sT),E(tS,sl),E(tS,sR);class sh extends tD{async basicLogin(e,t,s){let r=await super.basicLogin(e,t,s);return r.success&&(this.apiClient.setAuthData({accessToken:r.data.login_basic?.tokens?.access_token??"",refreshToken:r.data.login_basic?.tokens?.refresh_token??""}),this.apiClient.scheduleTokenRenewal(this.renewToken)),r}async renewToken(){let e=this.apiClient.getAuthData()?.refreshToken;if(!e)throw Error("Refresh token not found");let t=await this.refreshTokens({refresh_token:e});if(t.success)return{accessToken:t.data.login_basic?.tokens?.access_token??"",refreshToken:t.data.login_basic?.tokens?.refresh_token??""};throw Error(`Could not renew token: ${String(t.error)}`)}}class sC extends t${async basicLogin(e,t,s){let r=await super.basicLogin(e,t,s);return r.success&&(this.apiClient.setAuthData({accessToken:r.data.login_basic?.tokens?.access_token??"",refreshToken:r.data.login_basic?.tokens?.refresh_token??""}),this.apiClient.scheduleTokenRenewal(this.renewToken)),r}async renewToken(){let e=this.apiClient.getAuthData()?.refreshToken;if(!e)throw Error("Refresh token not found");let t=await this.refreshTokens({refresh_token:e,auth_form_slug:this.apiClient.getConfig().authFormSlug});if(t.success)return{accessToken:t.data.login_basic?.tokens?.access_token??"",refreshToken:t.data.login_basic?.tokens?.refresh_token??""};throw Error(`Could not renew token: ${String(t.error)}`)}}class sS extends e1{constructor(e){super(new e2(e)),this.actionLog=new ty(this.apiClient),this.apiKeys=new tA(this.apiClient),this.authApps=new tN(this.apiClient),this.authForms=new tP(this.apiClient),this.b2bAuth=new sh(this.apiClient),this.b2bUsers=new tg(this.apiClient),this.b2bUserSettings=new tv(this.apiClient),this.b2cAuth=new sC(this.apiClient),this.b2cUsers=new tw(this.apiClient),this.b2cUserSettings=new tG(this.apiClient),this.branches=new tF(this.apiClient),this.countries=new tj(this.apiClient),this.endpoints=new tV(this.apiClient),this.fims=new tY(this.apiClient),this.identityProviders=new tK(this.apiClient),this.locales=new tz(this.apiClient),this.microservices=new tZ(this.apiClient),this.migrationUtils=new t0(this.apiClient),this.permissions=new t3(this.apiClient),this.publicSettings=new t4(this.apiClient),this.roles=new t9(this.apiClient),this.roleTypes=new t5(this.apiClient),this.secretNotes=new st(this.apiClient),this.sessions=new sr(this.apiClient),this.tablePresets=new si(this.apiClient),this.tags=new so(this.apiClient),this.userDetails=new sp(this.apiClient),this.usersCommon=new sd(this.apiClient),this.watchmenAuth=new sc(this.apiClient),this.watchmenInstances=new s_(this.apiClient)}}E(th,tC),E(th,tS);export{td as MiddlewareApi,e4 as AttributeApi,e9 as AuthenticationApi,e5 as AvatarApi,tt as ChartApi,tr as MessageApi,ti as PreferenceApi,er as WatchlistEntryDtoTypeEnum,tu as VersioningApi,tp as WatchlistApi,t_ as OrbisApi,sS as UmaApi,ty as ActionLogs,tA as ApiKeys,tN as AuthApps,tP as AuthForms,tD as B2BAuth,tg as B2BUsers,tv as B2BUserSettings,t$ as B2CAuth,tw as B2CUsers,tG as B2CUserSettings,tF as Branches,tj as Countries,tV as Endpoints,tY as Firms,tK as IdentityProviders,tz as Locales,tZ as Microservices,t0 as MigrationUtils,t3 as Permissions,t4 as PublicSettings,t9 as Roles,t5 as RoleTypes,st as SecretNotes,sr as Sessions,si as TablePresets,so as Tags,en as CommontypesAuthAppType,ei as CommontypesAuthUserType,ea as CommontypesResetPasswordType,eo as HttperrorsErrorCode,eu as MfaOption,eE as PgmodelsAuthProviderAppType,ep as PgmodelsEndpointType,eT as PgmodelsEntityAccessType,ed as PgmodelsPermissionAG,el as TypesTenantSettingLabel,ec as TypesAuthFormDtoResetPasswordTypeEnum,eR as TypesAuthFormSerializerResetPasswordTypeEnum,e_ as TypesB2BSendContactChangeCodeDtoTypeEnum,eh as TypesB2CResetPasswordDtoResetTypeEnum,eC as TypesB2CSendContactChangeCodeDtoTypeEnum,eS as TypesB2CSendVerificationCodeDtoCodeTypeEnum,eO as TypesCreateEndpointDtoMethodEnum,ey as TypesCreateEndpointDtoTypeEnum,eI as TypesCreateIdentityProviderDtoTypeEnum,eA as TypesCreatePermissionDtoAssignmentGroupEnum,em as TypesCreateRoleDtoAssignmentGroupEnum,eN as TypesCreateSecretNoteDtoTypeEnum,eb as TypesEndpointMetadataDtoUserTypeEnum,eP as TypesEndpointSerializerMethodEnum,ef as TypesGetB2CUsersListFiltersDtoShowOnlyEnum,eD as TypesGetFirmsListFiltersDtoStatusesEnum,eL as TypesGetIdentityProvidersListFiltersDtoTypesEnum,eg as TypesGetUsersListFiltersDtoShowOnlyEnum,eU as TypesGetWebAuthnLoginChallengeDtoUserTypeEnum,ev as TypesIdentityProviderSerializerTypeEnum,eM as TypesLinkWatchmenUserToUmaDtoUmaUserTypeEnum,e$ as TypesPermissionSerializerAssignmentGroupEnum,eB as TypesRevokeUserSessionsDtoUserTypeEnum,ew as TypesSecretNoteSerializerTypeEnum,eq as TypesSendB2BMfaCodeDtoTypeEnum,eG as TypesSendB2CMfaCodeDtoTypeEnum,ek as TypesSendB2CResetPasswordCodeDtoCodeTypeEnum,eF as TypesSendB2CResetPasswordCodeDtoResetTypeEnum,ex as TypesSendResetPasswordCodeDtoTypeEnum,ej as TypesTenantSettingDtoLabelEnum,eJ as TypesUpdateAuthAppDtoStatusEnum,eV as TypesUpdateEndpointDtoMethodEnum,eH as TypesUpdateEndpointDtoTypeEnum,eY as TypesUpdateFirmDtoStatusEnum,eW as TypesUpdateIdentityProviderDtoTypeEnum,eK as TypesUpdatePermissionDtoAssignmentGroupEnum,eQ as TypesUpsertUserDtoTypeEnum,ez as TypesVerifyContactDtoCodeTypeEnum,sp as UserDetails,sd as UsersCommon,sc as WatchmenAuth,s_ as WatchmenInstances};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|