@openscreen/internal-sdk 1.4.0 → 1.5.0
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.esm.mjs +2 -0
- package/dist/index.esm.mjs.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +4 -4
- package/typings/sdk.d.ts +373 -24
- package/typings/sdk.d.ts.map +1 -1
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +0 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"axios";function s(){return s=Object.assign?Object.assign.bind():function(t){for(var s=1;s<arguments.length;s++){var e=arguments[s];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},s.apply(this,arguments)}class e{constructor(t){this.session=void 0,this.routeSegments=void 0,this.session=t}async makeUri(t={}){const s=[(await this.session.getCloudConfig()).endpoint.replace(/\/+$/,"")];return this.routeSegments.forEach(e=>{if(s.push(e.routePart),e.parm){const r=t[e.parm];if(!r)throw Error(`Openscreen: missing path parameter value for '${e.parm}'`);s.push(r)}}),s.join("/")}debugRequest(t,s,e,r,a){this.session.debugRequest&&(console.debug(`Openscreen REQUEST: ${t.toUpperCase()} ${s}`),r&&console.debug(`Openscreen REQUEST: ${JSON.stringify(r,null,2)}`),e&&this.session.debugQuery&&console.debug(`Openscreen QUERY: ${JSON.stringify(e,null,2)}`),a&&this.session.debugOptions&&console.debug(`Openscreen OPTIONS: ${JSON.stringify(a,null,2)}`))}debugResponse(t){this.session.debugResponse&&console.debug(`Openscreen RESPONSE: ${JSON.stringify(t.data||{},null,2)}`)}handleAndDebugErr(t){if(t.response&&t.response.data)return this.session.debugError?console.error(`Openscreen ERROR: ${JSON.stringify(t.response.data,null,2)}`):this.session.debugResponse&&console.error(`Openscreen RESPONSE: ${JSON.stringify(t.response.data,null,2)}`),t.response.data;if(this.session.debugError)try{console.error(t)}catch(t){console.error("Openscreen: (unable to print error)")}return t}}class r extends e{async go(t,e,r){try{const a=await this.makeUri(t);this.debugRequest("delete",a,e,null,r),await this.session.authorize();const n=await this.session.getAxios(),o=await n.delete(a,s({params:e},r));return this.debugResponse(o),o.data}catch(t){throw this.handleAndDebugErr(t)}}}class a extends e{async go(t,e,r){try{const a=await this.makeUri(t);this.debugRequest("get",a,e,null,r),await this.session.authorize();const n=await this.session.getAxios(),o=await n.get(a,s({params:e},r));return this.debugResponse(o),o.data}catch(t){throw this.handleAndDebugErr(t)}}}class n extends e{async go(t,e,r,a){try{const n=await this.makeUri(t);await this.session.authorize(),this.debugRequest("patch",n,e,r,a);const o=await this.session.getAxios(),i=await o.patch(n,r,s({params:e},a));return this.debugResponse(i),i.data}catch(t){throw this.handleAndDebugErr(t)}}}class o extends e{async go(t,e,r,a){try{const n=await this.makeUri(t);await this.session.authorize(),this.debugRequest("post",n,e,r,a);const o=await this.session.getAxios(),i=await o.post(n,r,s({params:e},a));return this.debugResponse(i),i.data}catch(t){throw this.handleAndDebugErr(t)}}}class i{constructor(t,s){this.session=void 0,this.pathParameters=void 0,this.session=t,this.pathParameters=s}self(){return this}getSession(){return this.session}}class c{constructor(t,s){this.session=void 0,this.pathParameters=void 0,this.id=void 0,this.session=t,this.pathParameters=s}getSession(){return this.session}}var u,h,d,p,m,P,g,N,l,S,E,I,A,w,x,k,T,y,C,_,O,R,D,v,f,b,M,L,U,j,q,G,H,Y,F,V,B,Q,$,W,K,z,J,X,Z;!function(t){t.CREATED_DATE="CREATED_DATE",t.STATIC_QR_CODE_COUNT="STATIC_QR_CODE_COUNT",t.DYNAMIC_QR_CODE_COUNT="DYNAMIC_QR_CODE_COUNT",t.SCAN_COUNT="SCAN_COUNT",t.CONTACT_COUNT="CONTACT_COUNT",t.PRICE_PLAN="PRICE_PLAN",t.LAST_ACTIVITY="LAST_ACTIVITY",t.CLIENT_EXEC="CLIENT_EXEC",t.ASSET_COUNT="ASSET_COUNT",t.SMS_COUNT="SMS_COUNT"}(u||(u={})),function(t){t.ACTIVE="ACTIVE",t.SUSPENDED="SUSPENDED"}(h||(h={})),function(t){t.OWNER="OWNER",t.ADMINISTRATOR="ADMINISTRATOR",t.BILLING_CONTACT="BILLING_CONTACT",t.MEMBER="MEMBER",t.API_KEY="API_KEY",t.INVITATION_DECLINED="INVITATION_DECLINED"}(d||(d={})),function(t){t.MODIFIED="MODIFIED",t.NAME="NAME",t.SCAN_COUNT="SCAN_COUNT",t.QR_CODE_COUNT="QR_CODE_COUNT",t.STATE="STATE"}(p||(p={})),function(t){t.MODIFIED="MODIFIED",t.STATE="STATE",t.NAME="NAME",t.SCAN_COUNT="SCAN_COUNT",t.QR_CODE_COUNT="QR_CODE_COUNT",t.ASSET_TYPE_NAME="ASSET_TYPE_NAME"}(m||(m={})),function(t){t.MODIFIED="MODIFIED",t.NAME="NAME"}(P||(P={})),function(t){t.PUBLISHED="PUBLISHED",t.DRAFT="DRAFT",t.ARCHIVED="ARCHIVED"}(g||(g={})),function(t){t.INVALID_API_KEY="INVALID_API_KEY",t.INVALID_EMAIL="INVALID_EMAIL",t.INVALID_LEGACY_MIGRATION="INVALID_LEGACY_MIGRATION",t.INVALID_PASSWORD="INVALID_PASSWORD",t.INVALID_SCOPE="INVALID_SCOPE",t.INVALID_SECRET="INVALID_SECRET",t.INVALID_TOKEN="INVALID_TOKEN",t.MIGRATE_FROM_COGNITO="MIGRATE_FROM_COGNITO",t.NO_ACCESS_TOKEN="NO_ACCESS_TOKEN",t.NO_REFRESH_TOKEN="NO_REFRESH_TOKEN",t.RESET_PASSWORD="RESET_PASSWORD",t.RESET_SECRET="RESET_SECRET",t.SUSPENDED_OR_INACTIVE="SUSPENDED_OR_INACTIVE",t.TOKEN_EXPIRED="TOKEN_EXPIRED",t.TRY_AGAIN="TRY_AGAIN",t.UNABLE_TO_CONFIRM_EMAIL="UNABLE_TO_CONFIRM_EMAIL",t.UNCONFIRMED_EMAIL="UNCONFIRMED_EMAIL"}(N||(N={})),function(t){t.API="API",t.CONFIRM_EMAIL="CONFIRM_EMAIL",t.NEW_PASSWORD="NEW_PASSWORD",t.NO_SESSION="NO_SESSION",t.NO_PASSWORD="NO_PASSWORD",t.CONFIRMED_NO_PASSWORD="CONFIRMED_NO_PASSWORD"}(l||(l={})),function(t){t.ACCEPTED="ACCEPTED",t.DECLINED="DECLINED",t.true="true",t.false="false"}(S||(S={})),function(t){t.SMS="SMS",t.EMAIL="EMAIL",t.DATA="DATA",t.CUSTOM="CUSTOM"}(E||(E={})),function(t){t.MODIFIED="MODIFIED",t.NAME="NAME",t.PHONE="PHONE",t.EMAIL="EMAIL",t.LAST_SCAN_TIME="LAST_SCAN_TIME",t.LAST_SCAN_LOCATION="LAST_SCAN_LOCATION",t.SCAN_COUNT="SCAN_COUNT"}(I||(I={})),function(t){t.MODIFIED="MODIFIED",t.NAME="NAME",t.ASSET_NAME="ASSET_NAME",t.PHONE="PHONE",t.EMAIL="EMAIL",t.LAST_SCAN_TIME="LAST_SCAN_TIME",t.LAST_SCAN_LOCATION="LAST_SCAN_LOCATION",t.SCAN_COUNT="SCAN_COUNT"}(A||(A={})),function(t){t.STRING="STRING",t.NUMBER="NUMBER"}(w||(w={})),function(t){t.IN_PROGRESS="IN_PROGRESS",t.COMPLETED="COMPLETED",t.TIMEOUT="TIMEOUT",t.FAILED="FAILED",t.CANCELLED="CANCELLED",t.DOWNLOADED="DOWNLOADED"}(x||(x={})),function(t){t.BATCH_CREATE_BLANK_ITEMS="BATCH_CREATE_BLANK_ITEMS",t.BATCH_CREATE_ASSETS="BATCH_CREATE_ASSETS",t.SELF_QUEUE_BATCH_PRINT="SELF_QUEUE_BATCH_PRINT"}(k||(k={})),function(t){t.NONE="NONE",t.ASSET_NAME="ASSET_NAME",t.CUSTOM="CUSTOM",t.COMPANY_NAME="COMPANY_NAME",t.LOCATOR_KEY="LOCATOR_KEY"}(T||(T={})),function(t){t.MODIFIED="MODIFIED",t.NAME="NAME",t.STATE="STATE"}(y||(y={})),function(t){t.SALES_EMAIL="SALES_EMAIL",t.SUPPORT_EMAIL="SUPPORT_EMAIL"}(C||(C={})),function(t){t.FREE="free",t.PAYASYOUGO="payAsYouGo",t.ADVANCED="advanced",t.PRO="pro",t.ENTERPRISE_CUSTOM="enterpriseCustom",t.UNLIMITED="unlimited",t.ENGAGE_STARTER_MONTHLY="engageStarterMonthly",t.ENGAGE_STARTER_YEARLY="engageStarterYearly",t.ENGAGE_PRO_MONTHLY="engageProMonthly",t.ENGAGE_PRO_YEARLY="engageProYearly",t.ENGAGE_TIER_THREE_MONTHLY="engagePremiumMonthly",t.ENGAGE_TIER_THREE_YEARLY="engagePremiumYearly"}(_||(_={})),function(t){t.MONTHLY="monthly",t.ANNUAL="annual"}(O||(O={})),function(t){t.BASIC="basic",t.ADVANCED="advanced",t.basic="basic",t.advance="advanced"}(R||(R={})),function(t){t.A3="A3",t.A4="A4",t.A5="A5",t.LETTER="LETTER",t.LEGAL="LEGAL"}(D||(D={})),function(t){t.SINGLE="SINGLE",t.MULTIPLE="MULTIPLE"}(v||(v={})),function(t){t.PORTRAIT="PORTRAIT",t.LANDSCAPE="LANDSCAPE"}(f||(f={})),function(t){t.AVERY_5160="AVERY_5160",t.AVERY_5163="AVERY_5163",t.AVERY_94103="AVERY_94103",t.AVERY_22806="AVERY_22806",t.AVERY_22805="AVERY_22805",t.OL914="OL914",t.OL3012LP="OL3012LP"}(b||(b={})),function(t){t.IN="IN",t.CM="CM",t.MM="MM",t.PT="PT"}(M||(M={})),function(t){t.MODIFIED="MODIFIED",t.NAME="NAME",t.SCAN_COUNT="SCAN_COUNT",t.QR_CODE_COUNT="QR_CODE_COUNT",t.CONTACT_COUNT="CONTACT_COUNT",t.ASSET_COUNT="ASSET_COUNT"}(L||(L={})),function(t){t.ACTIVE="ACTIVE",t.SUSPENDED="SUSPENDED"}(U||(U={})),function(t){t.dot="dot",t.square="square"}(j||(j={})),function(t){t.dot="dot",t.square="square",t.extra_rounded="extra-rounded"}(q||(q={})),function(t){t.classy="classy",t.classy_rounded="classy-rounded",t.dots="dots",t.extra_rounded="extra-rounded",t.rounded="rounded",t.square="square"}(G||(G={})),function(t){t.NO_SCAN_ID="NO_SCAN_ID",t.SCAN_ID_IN_PATH_PARAMETER="SCAN_ID_IN_PATH_PARAMETER",t.SCAN_ID_IN_QUERY_STRING_PARAMETER="SCAN_ID_IN_QUERY_STRING_PARAMETER",t.CUSTOM_QUERY_STRING_PARAMETER="CUSTOM_QUERY_STRING_PARAMETER"}(H||(H={})),function(t){t.L="L",t.M="M",t.Q="Q",t.H="H"}(Y||(Y={})),function(t){t.linear="linear",t.radial="radial"}(F||(F={})),function(t){t.STATIC_REDIRECT="STATIC_REDIRECT",t.DYNAMIC_REDIRECT="DYNAMIC_REDIRECT",t.DYNAMIC_REDIRECT_TO_APP="DYNAMIC_REDIRECT_TO_APP"}(V||(V={})),function(t){t.SHORT_URL="SHORT_URL",t.HASHED_ID="HASHED_ID",t.SECURE_ID="SECURE_ID"}(B||(B={})),function(t){t.MODIFIED="MODIFIED",t.NAME="NAME",t.SCAN_COUNT="SCAN_COUNT"}(Q||(Q={})),function(t){t.ACTIVE="ACTIVE",t.INACTIVE="INACTIVE",t.SUSPENDED="SUSPENDED"}($||($={})),function(t){t.PNG="PNG",t.JPEG="JPEG",t.SVG="SVG",t.png="png",t.jpeg="jpeg",t.svg="svg"}(W||(W={})),function(t){t.EQUALS="EQUALS",t.LESS_THAN="LESS_THAN",t.LESS_THAN_EQUAL="LESS_THAN_EQUAL",t.GREATER_THAN="GREATER_THAN",t.GREATER_THAN_EQUAL="GREATER_THAN_EQUAL",t.BETWEEN="BETWEEN",t.BEGINS_WITH="BEGINS_WITH"}(K||(K={})),function(t){t.SQUARE="SQUARE",t.CIRCLE="CIRCLE",t.RECTANGLE="RECTANGLE"}(z||(z={})),function(t){t.COMPROMISED="COMPROMISED",t.CONFIRMED="CONFIRMED",t.LEGACY="LEGACY",t.NEW_EMAIL="NEW_EMAIL",t.NEW_EMAIL_CONFIRMED="NEW_EMAIL_CONFIRMED",t.NEW_PASSWORD="NEW_PASSWORD",t.SUSPENDED="SUSPENDED",t.UNCONFIRMED="UNCONFIRMED",t.CONFIRMED_NO_PASSWORD="CONFIRMED_NO_PASSWORD"}(J||(J={})),function(t){t.appuser="appuser",t.appadmin="appadmin"}(X||(X={})),function(t){t.DASHBOARD="DASHBOARD"}(Z||(Z={}));class tt extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"apikeys",sdkPartName:"apikeys"}]}}class st extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"apps",sdkPartName:"apps"}]}}class et extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"assettypes",sdkPartName:"assettypes"}]}}class rt extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"invitations",sdkPartName:"invitations"}]}}class at extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"invitations/batch",sdkPartName:"invitationsBatch"}]}}class nt extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"locations",sdkPartName:"locations"}]}}class ot extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"projects",sdkPartName:"projects"}]}}class it extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"qrcodelogos",sdkPartName:"qrcodelogos"}]}}class ct extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"stylingtemplates",sdkPartName:"stylingtemplates"}]}}class ut extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"account",sdkPartName:"account"},{routePart:"customattributes",sdkPartName:"customattributes"}]}}class ht extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"zendeskTicket",sdkPartName:"zendeskTicket"}]}}class dt extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"contacts/batch",sdkPartName:"contactsBatch"}]}}class pt extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{parm:"userId",routePart:"users",sdkPartName:"user"}]}}class mt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"}]}}class Pt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"assets/report/advanced",sdkPartName:"advancedAssetsReport"}]}}class gt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"contacts/report/advanced",sdkPartName:"advancedContactsReport"}]}}class Nt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"scans/report/advanced",sdkPartName:"advancedScansReport"}]}}class lt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"owner/apps",sdkPartName:"ownerApps"}]}}class St extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"apikeys",sdkPartName:"apikeys"}]}}class Et extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"assets/export",sdkPartName:"assetsExport"}]}}class It extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"assettypes",sdkPartName:"assettypes"}]}}class At extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"assets",sdkPartName:"assets"}]}}class wt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"assets/report/basic",sdkPartName:"basicAssetsReport"}]}}class xt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"contacts/report/basic",sdkPartName:"basicContactsReport"}]}}class kt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"consent",sdkPartName:"consent"}]}}class Tt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"contacts/export",sdkPartName:"contactsExport"}]}}class yt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"contacts",sdkPartName:"contacts"}]}}class Ct extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"apps",sdkPartName:"apps"}]}}class _t extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"jobs",sdkPartName:"jobs"}]}}class Ot extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"locations",sdkPartName:"locations"}]}}class Rt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"assets/mostscanned",sdkPartName:"assetsMostscanned"}]}}class Dt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"priceplan",sdkPartName:"pricePlan"}]}}class vt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"projects",sdkPartName:"projects"}]}}class ft extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"qrcodelogos",sdkPartName:"qrcodelogos"}]}}class bt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"stylingtemplates",sdkPartName:"stylingtemplates"}]}}class Mt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"qrcodes",sdkPartName:"qrCodes"}]}}class Lt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"account",sdkPartName:"account"},{routePart:"customattributes",sdkPartName:"customattributes"}]}}class Ut extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"scans/export",sdkPartName:"scansExport"}]}}class jt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"scans",sdkPartName:"scans"}]}}class qt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{parm:"userId",routePart:"users",sdkPartName:"user"}]}}class Gt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"users",sdkPartName:"users"}]}}class Ht extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{parm:"appId",routePart:"apps",sdkPartName:"app"},{routePart:"install",sdkPartName:"install"}]}}class Yt extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"}]}}class Ft extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"priceplan",sdkPartName:"pricePlan"}]}}class Vt extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{parm:"userId",routePart:"users",sdkPartName:"user"}]}}class Bt extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"qrcodelogos/upload",sdkPartName:"qrcodelogosUpload"}]}}class Qt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"apiKeyId",routePart:"apikeys",sdkPartName:"apikey"}]}}class $t extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"apiKeyId",routePart:"apikeys",sdkPartName:"apikey"},{routePart:"secret",sdkPartName:"secret"}]}}class Wt extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"apiKeyId",routePart:"apikeys",sdkPartName:"apikey"},{routePart:"secret",sdkPartName:"secret"}]}}class Kt extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"apiKeyId",routePart:"apikeys",sdkPartName:"apikey"}]}}class zt extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"appId",routePart:"apps",sdkPartName:"app"}]}}class Jt extends a{constructor(...t){super(...t),this.routeSegments=[{routePart:"apps",sdkPartName:"apps"}]}}class Xt extends a{constructor(...t){super(...t),this.routeSegments=[{routePart:"apps/published",sdkPartName:"appsPublished"}]}}class Zt extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"appId",routePart:"apps",sdkPartName:"app"},{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"load",sdkPartName:"load"}]}}class ts extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"appId",routePart:"apps",sdkPartName:"app"}]}}class ss extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"appAccountId",routePart:"appsAccounts",sdkPartName:"appsAccount"}]}}class es extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"assetTypeId",routePart:"assettypes",sdkPartName:"assettype"},{parm:"assetId",routePart:"assets",sdkPartName:"asset"}]}}class rs extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"assetTypeId",routePart:"assettypes",sdkPartName:"assettype"},{routePart:"assets",sdkPartName:"assets"}]}}class as extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"assetTypeId",routePart:"assettypes",sdkPartName:"assettype"}]}}class ns extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"assetTypeId",routePart:"assettypes",sdkPartName:"assettype"}]}}class os extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"assetTypeId",routePart:"assettypes",sdkPartName:"assettype"},{parm:"locationId",routePart:"locations",sdkPartName:"location"}]}}class is extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"assetTypeId",routePart:"assettypes",sdkPartName:"assettype"},{routePart:"assets",sdkPartName:"assets"}]}}class cs extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"assetTypeId",routePart:"assettypes",sdkPartName:"assettype"},{routePart:"locations",sdkPartName:"locations"}]}}class us extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"assetTypeId",routePart:"assettypes",sdkPartName:"assettype"}]}}class hs extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"assetTypeId",routePart:"assettypes",sdkPartName:"assettype"},{parm:"locationId",routePart:"locations",sdkPartName:"location"}]}}class ds extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{routePart:"contacts",sdkPartName:"contacts"}]}}class ps extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{routePart:"qrcodes",sdkPartName:"qrCodes"}]}}class ms extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{routePart:"qrcodes",sdkPartName:"qrCodes"}]}}class Ps extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"}]}}class gs extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"}]}}class Ns extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{routePart:"history",sdkPartName:"history"}]}}class ls extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{routePart:"contacts",sdkPartName:"contacts"}]}}class Ss extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{routePart:"qrcodes",sdkPartName:"qrCodes"}]}}class Es extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{routePart:"scans/location",sdkPartName:"scansLocation"}]}}class Is extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{routePart:"scans",sdkPartName:"scans"}]}}class As extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{parm:"contactId",routePart:"contacts",sdkPartName:"contact"}]}}class ws extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{parm:"contactId",routePart:"contacts",sdkPartName:"contact"}]}}class xs extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"}]}}class ks extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"accountId",routePart:"billing/setupIntent",sdkPartName:"billingSetupIntent"}]}}class Ts extends a{constructor(...t){super(...t),this.routeSegments=[{routePart:"care/accounts",sdkPartName:"careAccounts"}]}}class ys extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"},{routePart:"consent",sdkPartName:"consent"}]}}class Cs extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"},{routePart:"consent",sdkPartName:"consent"}]}}class _s extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"}]}}class Os extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"},{routePart:"assets",sdkPartName:"assets"}]}}class Rs extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"},{routePart:"consent",sdkPartName:"consent"}]}}class Ds extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"}]}}class vs extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"},{routePart:"export",sdkPartName:"export"}]}}class fs extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"},{routePart:"scans/export",sdkPartName:"scansExport"}]}}class bs extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"},{routePart:"scans/location",sdkPartName:"scansLocation"}]}}class Ms extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"},{routePart:"scans",sdkPartName:"scans"}]}}class Ls extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"},{parm:"scanId",routePart:"scans",sdkPartName:"scan"}]}}class Us extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"}]}}class js extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"invitationId",routePart:"invitations",sdkPartName:"invitation"},{routePart:"users",sdkPartName:"users"}]}}class qs extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"invitationId",routePart:"invitations",sdkPartName:"invitation"}]}}class Gs extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"invitationId",routePart:"invitations",sdkPartName:"invitation"}]}}class Hs extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"jobId",routePart:"jobs",sdkPartName:"job"}]}}class Ys extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"jobId",routePart:"jobs",sdkPartName:"job"}]}}class Fs extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"locationId",routePart:"locations",sdkPartName:"location"},{routePart:"assets",sdkPartName:"assets"}]}}class Vs extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"locationId",routePart:"locations",sdkPartName:"location"}]}}class Bs extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"locationId",routePart:"locations",sdkPartName:"location"},{routePart:"assets",sdkPartName:"assets"}]}}class Qs extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"locationId",routePart:"locations",sdkPartName:"location"}]}}class $s extends o{constructor(...t){super(...t),this.routeSegments=[{routePart:"support",sdkPartName:"support"}]}}class Ws extends a{constructor(...t){super(...t),this.routeSegments=[{routePart:"pricePlans",sdkPartName:"pricePlans"}]}}class Ks extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"assets",sdkPartName:"assets"}]}}class zs extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"jobs/assetbatch",sdkPartName:"jobsAssetbatch"}]}}class Js extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"assets/batch",sdkPartName:"assetsBatch"}]}}class Xs extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts",sdkPartName:"contacts"}]}}class Zs extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts/batch",sdkPartName:"contactsBatch"}]}}class te extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"print",sdkPartName:"print"}]}}class se extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"qrcodes",sdkPartName:"qrCodes"}]}}class ee extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"selfqueueprint",sdkPartName:"selfqueueprint"}]}}class re extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"smstemplates",sdkPartName:"smsTemplates"}]}}class ae extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts/batch",sdkPartName:"contactsBatch"}]}}class ne extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"}]}}class oe extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{parm:"smsTemplateName",routePart:"smstemplates",sdkPartName:"smsTemplate"}]}}class ie extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"assets/report/advanced",sdkPartName:"advancedAssetsReport"}]}}class ce extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts/report/advanced",sdkPartName:"advancedContactsReport"}]}}class ue extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"scans/report/advanced",sdkPartName:"advancedScansReport"}]}}class he extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"assets/export",sdkPartName:"assetsExport"}]}}class de extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"assets",sdkPartName:"assets"}]}}class pe extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"assets/report/basic",sdkPartName:"basicAssetsReport"}]}}class me extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts/report/basic",sdkPartName:"basicContactsReport"}]}}class Pe extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"consent",sdkPartName:"consent"}]}}class ge extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts/export",sdkPartName:"contactsExport"}]}}class Ne extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts",sdkPartName:"contacts"}]}}class le extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"assets/mostscanned",sdkPartName:"assetsMostscanned"}]}}class Se extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"}]}}class Ee extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"qrcodes",sdkPartName:"qrCodes"}]}}class Ie extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"scans/export",sdkPartName:"scansExport"}]}}class Ae extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"scans",sdkPartName:"scans"}]}}class we extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{parm:"smsTemplateName",routePart:"smstemplates",sdkPartName:"smsTemplate"}]}}class xe extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"smstemplates",sdkPartName:"smsTemplates"}]}}class ke extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"}]}}class Te extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{parm:"smsTemplateName",routePart:"smstemplates",sdkPartName:"smsTemplate"}]}}class ye extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"qrCodeLogoId",routePart:"qrcodelogos",sdkPartName:"qrcodelogo"}]}}class Ce extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"qrCodeLogoId",routePart:"qrcodelogos",sdkPartName:"qrcodelogo"}]}}class _e extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"qrCodeId",routePart:"qrcodes",sdkPartName:"qrCode"}]}}class Oe extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"qrCodeId",routePart:"qrcodes",sdkPartName:"qrCode"}]}}class Re extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"qrCodeId",routePart:"qrcodes",sdkPartName:"qrCode"}]}}class De extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"scanId",routePart:"scans",sdkPartName:"scan"},{routePart:"contacts",sdkPartName:"contacts"}]}}class ve extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"scanId",routePart:"scans",sdkPartName:"scan"}]}}class fe extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"scanId",routePart:"scans",sdkPartName:"scan"}]}}class be extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"scanId",routePart:"scans",sdkPartName:"scan"},{routePart:"sms",sdkPartName:"sms"}]}}class Me extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"scanId",routePart:"scans",sdkPartName:"scan"},{routePart:"customAttribute",sdkPartName:"customAttribute"}]}}class Le extends r{constructor(...t){super(...t),this.routeSegments=[{parm:"stylingTemplateId",routePart:"stylingtemplates",sdkPartName:"stylingtemplate"}]}}class Ue extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"stylingTemplateId",routePart:"stylingtemplates",sdkPartName:"stylingtemplate"}]}}class je extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"stylingTemplateId",routePart:"stylingtemplates",sdkPartName:"stylingtemplate"}]}}class qe extends o{constructor(...t){super(...t),this.routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"},{routePart:"accounts",sdkPartName:"accounts"}]}}class Ge extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"},{routePart:"accounts",sdkPartName:"accounts"}]}}class He extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"},{routePart:"errors",sdkPartName:"errors"}]}}class Ye extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"},{routePart:"invitations",sdkPartName:"invitations"}]}}class Fe extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"}]}}class Ve extends a{constructor(...t){super(...t),this.routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"},{parm:"path",routePart:"path",sdkPartName:"path"},{routePart:"settings",sdkPartName:"settings"}]}}class Be extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"},{parm:"path",routePart:"path",sdkPartName:"path"},{routePart:"settings",sdkPartName:"settings"}]}}class Qe extends n{constructor(...t){super(...t),this.routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"}]}}class $e extends o{constructor(...t){super(...t),this.routeSegments=[{routePart:"webhook/sms",sdkPartName:"webhookSms"}]}}class We extends o{constructor(...t){super(...t),this.routeSegments=[{routePart:"webhook/sms-status",sdkPartName:"webhookSmsStatus"}]}}class Ke extends o{constructor(...t){super(...t),this.routeSegments=[{routePart:"webhook/stripe",sdkPartName:"webhookStripe"}]}}class ze extends o{constructor(...t){super(...t),this.routeSegments=[{routePart:"auth/user/password",sdkPartName:"passwordAuthUser"}]}}class Je extends a{constructor(...t){super(...t),this.routeSegments=[{routePart:"auth/session",sdkPartName:"authSession"}]}}class Xe extends a{constructor(...t){super(...t),this.routeSegments=[{routePart:"auth/confirm",sdkPartName:"authConfirm"}]}}class Ze extends a{constructor(...t){super(...t),this.routeSegments=[{routePart:"auth/confirm/invited",sdkPartName:"invitedAuthConfirm"}]}}class tr extends o{constructor(...t){super(...t),this.routeSegments=[{routePart:"auth/user",sdkPartName:"authUser"}]}}class sr extends o{constructor(...t){super(...t),this.routeSegments=[{routePart:"auth/session",sdkPartName:"authSession"}]}}class er extends r{constructor(...t){super(...t),this.routeSegments=[{routePart:"auth/session",sdkPartName:"authSession"}]}}class rr extends o{constructor(...t){super(...t),this.routeSegments=[{routePart:"auth/session/refresh",sdkPartName:"refreshAuthSession"}]}}class ar extends o{constructor(...t){super(...t),this.routeSegments=[{routePart:"auth/user/confirmation",sdkPartName:"confirmationAuthUser"}]}}class nr extends o{constructor(...t){super(...t),this.routeSegments=[{routePart:"auth/user/reset",sdkPartName:"resetAuthUser"}]}}class or extends i{async create(t,s){return new tt(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new St(this.session).go(this.pathParameters,t,s)}}class ir extends i{async create(t,s){return new st(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new Ct(this.session).go(this.pathParameters,t,s)}}class cr extends i{async create(t,s){return new et(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new It(this.session).go(this.pathParameters,t,s)}}class ur extends i{async create(t,s){return new rt(this.session).go(this.pathParameters,void 0,t,s)}}class hr extends i{async create(t,s){return new at(this.session).go(this.pathParameters,void 0,t,s)}}class dr extends i{async create(t,s){return new nt(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new Ot(this.session).go(this.pathParameters,t,s)}}class pr extends i{async create(t,s){return new ot(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new vt(this.session).go(this.pathParameters,t,s)}}class mr extends i{async create(t,s){return new it(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new ft(this.session).go(this.pathParameters,t,s)}}class Pr extends i{async create(t,s){return new ct(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new bt(this.session).go(this.pathParameters,t,s)}}class gr extends i{async create(t,s){return new ut(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new Lt(this.session).go(this.pathParameters,t,s)}}class Nr extends i{async create(t,s){return new ht(this.session).go(this.pathParameters,void 0,t,s)}}class lr extends i{async delete(t,s){return new dt(this.session).go(this.pathParameters,t,s)}}class Sr extends c{async delete(t){return new pt(this.session).go(this.pathParameters,void 0,t)}async get(t){return new qt(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new Vt(this.session).go(this.pathParameters,void 0,t,s)}}class Er extends i{async get(t,s){return new Pt(this.session).go(this.pathParameters,t,s)}}class Ir extends i{async get(t,s){return new gt(this.session).go(this.pathParameters,t,s)}}class Ar extends i{async get(t,s){return new Nt(this.session).go(this.pathParameters,t,s)}}class wr extends i{async get(t,s){return new lt(this.session).go(this.pathParameters,t,s)}}class xr extends i{async get(t,s){return new Et(this.session).go(this.pathParameters,t,s)}}class kr extends i{async get(t,s){return new At(this.session).go(this.pathParameters,t,s)}}class Tr extends i{async get(t){return new wt(this.session).go(this.pathParameters,void 0,t)}}class yr extends i{async get(t){return new xt(this.session).go(this.pathParameters,void 0,t)}}class Cr extends i{async get(t,s){return new kt(this.session).go(this.pathParameters,t,s)}}class _r extends i{async get(t,s){return new Tt(this.session).go(this.pathParameters,t,s)}}class Or extends i{async get(t,s){return new yt(this.session).go(this.pathParameters,t,s)}}class Rr extends i{async get(t,s){return new _t(this.session).go(this.pathParameters,t,s)}}class Dr extends i{async get(t,s){return new Rt(this.session).go(this.pathParameters,t,s)}}class vr extends i{async get(t){return new Dt(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new Ft(this.session).go(this.pathParameters,void 0,t,s)}}class fr extends i{async get(t,s){return new Mt(this.session).go(this.pathParameters,t,s)}}class br extends i{async get(t,s){return new Ut(this.session).go(this.pathParameters,t,s)}}class Mr extends i{async get(t,s){return new jt(this.session).go(this.pathParameters,t,s)}}class Lr extends i{async get(t,s){return new Gt(this.session).go(this.pathParameters,t,s)}}class Ur extends i{async create(t){return new Ht(this.session).go(this.pathParameters,void 0,t)}}class jr extends c{install(){return new Ur(this.getSession(),this.pathParameters)}}class qr extends i{async create(t,s){return new Bt(this.session).go(this.pathParameters,void 0,t,s)}}class Gr extends c{apikeys(){return new or(this.getSession(),this.pathParameters)}apps(){return new ir(this.getSession(),this.pathParameters)}assettypes(){return new cr(this.getSession(),this.pathParameters)}invitations(){return new ur(this.getSession(),this.pathParameters)}invitationsBatch(){return new hr(this.getSession(),this.pathParameters)}locations(){return new dr(this.getSession(),this.pathParameters)}projects(){return new pr(this.getSession(),this.pathParameters)}qrcodelogos(){return new mr(this.getSession(),this.pathParameters)}stylingtemplates(){return new Pr(this.getSession(),this.pathParameters)}customattributes(){return new gr(this.getSession(),this.pathParameters)}zendeskTicket(){return new Nr(this.getSession(),this.pathParameters)}contactsBatch(){return new lr(this.getSession(),this.pathParameters)}user(t){return new Sr(this.getSession(),s({},this.pathParameters,{userId:t}))}advancedAssetsReport(){return new Er(this.getSession(),this.pathParameters)}advancedContactsReport(){return new Ir(this.getSession(),this.pathParameters)}advancedScansReport(){return new Ar(this.getSession(),this.pathParameters)}ownerApps(){return new wr(this.getSession(),this.pathParameters)}assetsExport(){return new xr(this.getSession(),this.pathParameters)}assets(){return new kr(this.getSession(),this.pathParameters)}basicAssetsReport(){return new Tr(this.getSession(),this.pathParameters)}basicContactsReport(){return new yr(this.getSession(),this.pathParameters)}consent(){return new Cr(this.getSession(),this.pathParameters)}contactsExport(){return new _r(this.getSession(),this.pathParameters)}contacts(){return new Or(this.getSession(),this.pathParameters)}jobs(){return new Rr(this.getSession(),this.pathParameters)}assetsMostscanned(){return new Dr(this.getSession(),this.pathParameters)}pricePlan(){return new vr(this.getSession(),this.pathParameters)}qrCodes(){return new fr(this.getSession(),this.pathParameters)}scansExport(){return new br(this.getSession(),this.pathParameters)}scans(){return new Mr(this.getSession(),this.pathParameters)}users(){return new Lr(this.getSession(),this.pathParameters)}app(t){return new jr(this.getSession(),s({},this.pathParameters,{appId:t}))}qrcodelogosUpload(){return new qr(this.getSession(),this.pathParameters)}async get(t){return new mt(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new Yt(this.session).go(this.pathParameters,void 0,t,s)}}class Hr extends i{async get(t){return new $t(this.session).go(this.pathParameters,void 0,t)}async update(t){return new Wt(this.session).go(this.pathParameters,void 0,t)}}class Yr extends c{secret(){return new Hr(this.getSession(),this.pathParameters)}async get(t){return new Qt(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new Kt(this.session).go(this.pathParameters,void 0,t,s)}}class Fr extends i{async create(t){return new Zt(this.session).go(this.pathParameters,void 0,t)}}class Vr extends c{load(){return new Fr(this.getSession(),this.pathParameters)}}class Br extends c{account(t){return new Vr(this.getSession(),s({},this.pathParameters,{accountId:t}))}async get(t){return new zt(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new ts(this.session).go(this.pathParameters,void 0,t,s)}}class Qr extends i{async get(t,s){return new Jt(this.session).go(this.pathParameters,t,s)}}class $r extends i{async get(t,s){return new Xt(this.session).go(this.pathParameters,t,s)}}class Wr extends c{async get(t){return new ss(this.session).go(this.pathParameters,void 0,t)}}class Kr extends c{async compose(t,s){return new es(this.session).go(this.pathParameters,void 0,t,s)}}class zr extends i{async create(t,s){return new rs(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new is(this.session).go(this.pathParameters,t,s)}}class Jr extends c{async get(t){return new os(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new hs(this.session).go(this.pathParameters,void 0,t,s)}}class Xr extends i{async get(t,s){return new cs(this.session).go(this.pathParameters,t,s)}}class Zr extends c{asset(t){return new Kr(this.getSession(),s({},this.pathParameters,{assetId:t}))}assets(){return new zr(this.getSession(),this.pathParameters)}location(t){return new Jr(this.getSession(),s({},this.pathParameters,{locationId:t}))}locations(){return new Xr(this.getSession(),this.pathParameters)}async delete(t){return new as(this.session).go(this.pathParameters,void 0,t)}async get(t,s){return new ns(this.session).go(this.pathParameters,t,s)}async update(t,s){return new us(this.session).go(this.pathParameters,void 0,t,s)}}class ta extends i{async create(t,s){return new ds(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new ls(this.session).go(this.pathParameters,t,s)}}class sa extends i{async create(t,s){return new ms(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new Ss(this.session).go(this.pathParameters,t,s)}}class ea extends i{async get(t,s){return new Ns(this.session).go(this.pathParameters,t,s)}}class ra extends i{async get(t,s){return new Es(this.session).go(this.pathParameters,t,s)}}class aa extends i{async get(t,s){return new Is(this.session).go(this.pathParameters,t,s)}}class na extends c{async link(t,s){return new As(this.session).go(this.pathParameters,void 0,t,s)}async unlink(t){return new ws(this.session).go(this.pathParameters,void 0,t)}}class oa extends c{contacts(){return new ta(this.getSession(),this.pathParameters)}qrCodes(){return new sa(this.getSession(),this.pathParameters)}history(){return new ea(this.getSession(),this.pathParameters)}scansLocation(){return new ra(this.getSession(),this.pathParameters)}scans(){return new aa(this.getSession(),this.pathParameters)}contact(t){return new na(this.getSession(),s({},this.pathParameters,{contactId:t}))}async delete(t){return new Ps(this.session).go(this.pathParameters,void 0,t)}async get(t,s){return new gs(this.session).go(this.pathParameters,t,s)}async update(t,s){return new xs(this.session).go(this.pathParameters,void 0,t,s)}}class ia extends c{async create(t,s){return new ks(this.session).go(this.pathParameters,void 0,t,s)}}class ca extends i{async get(t,s){return new Ts(this.session).go(this.pathParameters,t,s)}}class ua extends i{async create(t,s){return new ys(this.session).go(this.pathParameters,void 0,t,s)}async delete(t,s){return new Cs(this.session).go(this.pathParameters,t,s)}async get(t,s){return new Rs(this.session).go(this.pathParameters,t,s)}}class ha extends i{async get(t,s){return new Os(this.session).go(this.pathParameters,t,s)}}class da extends i{async get(t,s){return new vs(this.session).go(this.pathParameters,t,s)}}class pa extends i{async get(t,s){return new fs(this.session).go(this.pathParameters,t,s)}}class ma extends i{async get(t,s){return new bs(this.session).go(this.pathParameters,t,s)}}class Pa extends i{async get(t){return new Ms(this.session).go(this.pathParameters,void 0,t)}}class ga extends c{async link(t,s){return new Ls(this.session).go(this.pathParameters,void 0,t,s)}}class Na extends c{consent(){return new ua(this.getSession(),this.pathParameters)}assets(){return new ha(this.getSession(),this.pathParameters)}export(){return new da(this.getSession(),this.pathParameters)}scansExport(){return new pa(this.getSession(),this.pathParameters)}scansLocation(){return new ma(this.getSession(),this.pathParameters)}scans(){return new Pa(this.getSession(),this.pathParameters)}scan(t){return new ga(this.getSession(),s({},this.pathParameters,{scanId:t}))}async delete(t){return new _s(this.session).go(this.pathParameters,void 0,t)}async get(t){return new Ds(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new Us(this.session).go(this.pathParameters,void 0,t,s)}}class la extends i{async create(t){return new js(this.session).go(this.pathParameters,void 0,t)}}class Sa extends c{users(){return new la(this.getSession(),this.pathParameters)}async delete(t){return new qs(this.session).go(this.pathParameters,void 0,t)}async get(t){return new Gs(this.session).go(this.pathParameters,void 0,t)}}class Ea extends c{async delete(t){return new Hs(this.session).go(this.pathParameters,void 0,t)}async get(t){return new Ys(this.session).go(this.pathParameters,void 0,t)}}class Ia extends i{async update(t,s){return new Fs(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new Bs(this.session).go(this.pathParameters,t,s)}}class Aa extends c{assets(){return new Ia(this.getSession(),this.pathParameters)}async delete(t,s){return new Vs(this.session).go(this.pathParameters,t,s)}async update(t,s){return new Qs(this.session).go(this.pathParameters,void 0,t,s)}}class wa extends i{async create(t,s){return new $s(this.session).go(this.pathParameters,void 0,t,s)}}class xa extends i{async get(t){return new Ws(this.session).go(this.pathParameters,void 0,t)}}class ka extends i{async create(t,s){return new Ks(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new de(this.session).go(this.pathParameters,t,s)}}class Ta extends i{async create(t,s){return new zs(this.session).go(this.pathParameters,void 0,t,s)}}class ya extends i{async create(t,s){return new Js(this.session).go(this.pathParameters,void 0,t,s)}}class Ca extends i{async create(t,s){return new Xs(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new Ne(this.session).go(this.pathParameters,t,s)}}class _a extends i{async create(t,s){return new Zs(this.session).go(this.pathParameters,void 0,t,s)}async delete(t,s){return new ae(this.session).go(this.pathParameters,t,s)}}class Oa extends i{async create(t,s){return new te(this.session).go(this.pathParameters,void 0,t,s)}}class Ra extends i{async create(t,s){return new se(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new Ee(this.session).go(this.pathParameters,t,s)}}class Da extends i{async create(t,s){return new ee(this.session).go(this.pathParameters,void 0,t,s)}}class va extends i{async create(t,s){return new re(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new xe(this.session).go(this.pathParameters,t,s)}}class fa extends c{async delete(t){return new oe(this.session).go(this.pathParameters,void 0,t)}async get(t){return new we(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new Te(this.session).go(this.pathParameters,void 0,t,s)}}class ba extends i{async get(t,s){return new ie(this.session).go(this.pathParameters,t,s)}}class Ma extends i{async get(t,s){return new ce(this.session).go(this.pathParameters,t,s)}}class La extends i{async get(t,s){return new ue(this.session).go(this.pathParameters,t,s)}}class Ua extends i{async get(t,s){return new he(this.session).go(this.pathParameters,t,s)}}class ja extends i{async get(t){return new pe(this.session).go(this.pathParameters,void 0,t)}}class qa extends i{async get(t){return new me(this.session).go(this.pathParameters,void 0,t)}}class Ga extends i{async get(t,s){return new Pe(this.session).go(this.pathParameters,t,s)}}class Ha extends i{async get(t,s){return new ge(this.session).go(this.pathParameters,t,s)}}class Ya extends i{async get(t,s){return new le(this.session).go(this.pathParameters,t,s)}}class Fa extends i{async get(t,s){return new Ie(this.session).go(this.pathParameters,t,s)}}class Va extends i{async get(t,s){return new Ae(this.session).go(this.pathParameters,t,s)}}class Ba extends c{assets(){return new ka(this.getSession(),this.pathParameters)}jobsAssetbatch(){return new Ta(this.getSession(),this.pathParameters)}assetsBatch(){return new ya(this.getSession(),this.pathParameters)}contacts(){return new Ca(this.getSession(),this.pathParameters)}contactsBatch(){return new _a(this.getSession(),this.pathParameters)}print(){return new Oa(this.getSession(),this.pathParameters)}qrCodes(){return new Ra(this.getSession(),this.pathParameters)}selfqueueprint(){return new Da(this.getSession(),this.pathParameters)}smsTemplates(){return new va(this.getSession(),this.pathParameters)}smsTemplate(t){return new fa(this.getSession(),s({},this.pathParameters,{smsTemplateName:t}))}advancedAssetsReport(){return new ba(this.getSession(),this.pathParameters)}advancedContactsReport(){return new Ma(this.getSession(),this.pathParameters)}advancedScansReport(){return new La(this.getSession(),this.pathParameters)}assetsExport(){return new Ua(this.getSession(),this.pathParameters)}basicAssetsReport(){return new ja(this.getSession(),this.pathParameters)}basicContactsReport(){return new qa(this.getSession(),this.pathParameters)}consent(){return new Ga(this.getSession(),this.pathParameters)}contactsExport(){return new Ha(this.getSession(),this.pathParameters)}assetsMostscanned(){return new Ya(this.getSession(),this.pathParameters)}scansExport(){return new Fa(this.getSession(),this.pathParameters)}scans(){return new Va(this.getSession(),this.pathParameters)}async delete(t){return new ne(this.session).go(this.pathParameters,void 0,t)}async get(t){return new Se(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new ke(this.session).go(this.pathParameters,void 0,t,s)}}class Qa extends c{async get(t){return new ye(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new Ce(this.session).go(this.pathParameters,void 0,t,s)}}class $a extends c{async delete(t){return new _e(this.session).go(this.pathParameters,void 0,t)}async get(t,s){return new Oe(this.session).go(this.pathParameters,t,s)}async update(t,s){return new Re(this.session).go(this.pathParameters,void 0,t,s)}}class Wa extends i{async create(t,s){return new De(this.session).go(this.pathParameters,void 0,t,s)}}class Ka extends i{async send(t,s){return new be(this.session).go(this.pathParameters,void 0,t,s)}}class za extends i{async update(t,s){return new Me(this.session).go(this.pathParameters,void 0,t,s)}}class Ja extends c{contacts(){return new Wa(this.getSession(),this.pathParameters)}sms(){return new Ka(this.getSession(),this.pathParameters)}customAttribute(){return new za(this.getSession(),this.pathParameters)}async get(t){return new ve(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new fe(this.session).go(this.pathParameters,void 0,t,s)}}class Xa extends c{async delete(t){return new Le(this.session).go(this.pathParameters,void 0,t)}async get(t){return new Ue(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new je(this.session).go(this.pathParameters,void 0,t,s)}}class Za extends i{async create(t,s){return new qe(this.session).go(this.pathParameters,void 0,t,s)}async get(t,s){return new Ge(this.session).go(this.pathParameters,t,s)}}class tn extends i{async get(t,s){return new He(this.session).go(this.pathParameters,t,s)}}class sn extends i{async get(t,s){return new Ye(this.session).go(this.pathParameters,t,s)}}class en extends i{async get(t){return new Ve(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new Be(this.session).go(this.pathParameters,void 0,t,s)}}class rn extends c{settings(){return new en(this.getSession(),this.pathParameters)}}class an extends c{accounts(){return new Za(this.getSession(),this.pathParameters)}errors(){return new tn(this.getSession(),this.pathParameters)}invitations(){return new sn(this.getSession(),this.pathParameters)}path(t){return new rn(this.getSession(),s({},this.pathParameters,{path:t}))}async get(t){return new Fe(this.session).go(this.pathParameters,void 0,t)}async update(t,s){return new Qe(this.session).go(this.pathParameters,void 0,t,s)}}class nn extends i{async create(t){return new $e(this.session).go(this.pathParameters,void 0,t)}}class on extends i{async create(t){return new We(this.session).go(this.pathParameters,void 0,t)}}class cn extends i{async create(t,s){return new Ke(this.session).go(this.pathParameters,void 0,t,s)}}class un extends i{async create(t,s){return new ze(this.session).go(this.pathParameters,void 0,t,s)}}class hn extends i{async get(t){return new Je(this.session).go(this.pathParameters,void 0,t)}async create(t){return new sr(this.session).go(this.pathParameters,void 0,t)}async delete(t){return new er(this.session).go(this.pathParameters,void 0,t)}}class dn extends i{async get(t,s){return new Xe(this.session).go(this.pathParameters,t,s)}}class pn extends i{async get(t,s){return new Ze(this.session).go(this.pathParameters,t,s)}}class mn extends i{async create(t,s){return new tr(this.session).go(this.pathParameters,void 0,t,s)}}class Pn extends i{async create(t){return new rr(this.session).go(this.pathParameters,void 0,t)}}class gn extends i{async resend(t,s){return new ar(this.session).go(this.pathParameters,void 0,t,s)}}class Nn extends i{async reset(t,s){return new nr(this.session).go(this.pathParameters,void 0,t,s)}}class ln extends i{account(t){return new Gr(this.getSession(),s({},this.pathParameters,{accountId:t}))}apikey(t){return new Yr(this.getSession(),s({},this.pathParameters,{apiKeyId:t}))}app(t){return new Br(this.getSession(),s({},this.pathParameters,{appId:t}))}apps(){return new Qr(this.getSession(),this.pathParameters)}appsPublished(){return new $r(this.getSession(),this.pathParameters)}appsAccount(t){return new Wr(this.getSession(),s({},this.pathParameters,{appAccountId:t}))}assettype(t){return new Zr(this.getSession(),s({},this.pathParameters,{assetTypeId:t}))}asset(t){return new oa(this.getSession(),s({},this.pathParameters,{assetId:t}))}billingSetupIntent(t){return new ia(this.getSession(),s({},this.pathParameters,{accountId:t}))}careAccounts(){return new ca(this.getSession(),this.pathParameters)}contact(t){return new Na(this.getSession(),s({},this.pathParameters,{contactId:t}))}invitation(t){return new Sa(this.getSession(),s({},this.pathParameters,{invitationId:t}))}job(t){return new Ea(this.getSession(),s({},this.pathParameters,{jobId:t}))}location(t){return new Aa(this.getSession(),s({},this.pathParameters,{locationId:t}))}support(){return new wa(this.getSession(),this.pathParameters)}pricePlans(){return new xa(this.getSession(),this.pathParameters)}project(t){return new Ba(this.getSession(),s({},this.pathParameters,{projectId:t}))}qrcodelogo(t){return new Qa(this.getSession(),s({},this.pathParameters,{qrCodeLogoId:t}))}qrCode(t){return new $a(this.getSession(),s({},this.pathParameters,{qrCodeId:t}))}scan(t){return new Ja(this.getSession(),s({},this.pathParameters,{scanId:t}))}stylingtemplate(t){return new Xa(this.getSession(),s({},this.pathParameters,{stylingTemplateId:t}))}user(t){return new an(this.getSession(),s({},this.pathParameters,{userId:t}))}webhookSms(){return new nn(this.getSession(),this.pathParameters)}webhookSmsStatus(){return new on(this.getSession(),this.pathParameters)}webhookStripe(){return new cn(this.getSession(),this.pathParameters)}passwordAuthUser(){return new un(this.getSession(),this.pathParameters)}authSession(){return new hn(this.getSession(),this.pathParameters)}authConfirm(){return new dn(this.getSession(),this.pathParameters)}invitedAuthConfirm(){return new pn(this.getSession(),this.pathParameters)}authUser(){return new mn(this.getSession(),this.pathParameters)}refreshAuthSession(){return new Pn(this.getSession(),this.pathParameters)}confirmationAuthUser(){return new gn(this.getSession(),this.pathParameters)}resetAuthUser(){return new Nn(this.getSession(),this.pathParameters)}}const Sn="internal-JG0adajZUHU";class En{constructor(){this.debugConfig=!1,this.debugAuth=!1,this.debugRequest=!1,this.debugResponse=!1,this.debugError=!1,this.debugQuery=!1,this.debugOptions=!1,this.exp=0}getConfig(){throw Error("no session")}getCloudConfig(){throw Error("no session")}getAxios(){throw Error("no session")}authorize(){throw Error("no session")}getUser(){throw Error("no session")}getSignedInUser(){throw Error("no session")}signUpUser(){throw Error("no session")}changePassword(){throw Error("no session")}signOut(){throw Error("no session")}}class In extends ln{constructor(){super(new En,{}),this._config=void 0,this.cloudConfigName=void 0,this.cloudConfig=void 0,this.axios=void 0,this.debugConfig=!1,this.debugAuth=!1,this.debugRequest=!1,this.debugResponse=!1,this.debugError=!1,this.debugQuery=!1,this.debugOptions=!1,this.exp=void 0,this._user=void 0,this.exp=0;let{OS_DEBUG:t}=process.env;if(t){let s;switch(console.log(`OS_DEBUG=${t}`),t=t.toLowerCase(),t){case"all":this.debugConfig=!0,this.debugAuth=!0,this.debugRequest=!0,this.debugResponse=!0,this.debugError=!0,this.debugQuery=!0,this.debugOptions=!0;break;case"none":case"off":case"false":case"":this.debugConfig=!1,this.debugAuth=!1,this.debugRequest=!1,this.debugResponse=!1,this.debugError=!1,this.debugQuery=!1,this.debugOptions=!1;break;default:s=t.split(","),this.debugConfig=s.includes("config"),this.debugAuth=s.includes("auth"),this.debugRequest=s.includes("request"),this.debugResponse=s.includes("response"),this.debugError=s.includes("error"),this.debugQuery=s.includes("query"),this.debugOptions=s.includes("options"),this.debugConfig||this.debugAuth||this.debugRequest||this.debugResponse||this.debugError||this.debugQuery||this.debugOptions||console.warn(`Openscreen: OS_DEBUG environment var has invalid value: '${process.env.OS_DEBUG}'`)}}}getSession(){return this}config(t){if(this._config)throw Error("Openscreen: client is already configured");if(!t.key)throw Error("Openscreen: invalid config, provide API key and secret, or email and password");if(!t.secret)throw Error("Openscreen: invalid config, secret is missing");return"string"==typeof t.environment?this.cloudConfigName=t.environment:"object"==typeof t.environment?this.cloudConfig=Promise.resolve(t.environment):this.cloudConfigName=Sn,this._config=t,this}getConfig(){if(!this._config)throw Error("Openscreen: client must be configured before accessing resources");return this._config}async getSignedInUser(t){this.cloudConfigName=t||Sn;const s=await this.getCloudConfig();this.debugAuth&&console.info("Openscreen AUTH: refreshing using axios cookie"),await this.getAxios();const e=await this.axios.post(`${s.endpoint}/auth/session/refresh`);if(403===e.status||500===e.status)throw Error("Openscreen AUTH: User is not signed in");if(200===e.status){const{expires:t,user:s}=e.data;return this._user=s,this.debugAuth&&console.info(`Openscreen AUTH: authorized '${s.userId}' until expiry=${t}`),this.exp=t,s}}async signUpUser(t,s){this.cloudConfigName=s||Sn;const e=await this.getCloudConfig();this.debugAuth&&console.info("Openscreen AUTH: signing up User"),await this.getAxios();const r=await this.axios.post(`${e.endpoint}/auth/user`,t);if(403===r.status||500===r.status)throw Error("Openscreen AUTH: User Sign Up failed");return(200===r.status||204===r.status)&&(this.debugAuth&&console.info("Openscreen AUTH: Signed up user"),!0)}async checkSession(t){this.cloudConfigName=t||Sn;const s=await this.getCloudConfig();this.debugAuth&&console.info("Openscreen AUTH: checking session"),await this.getAxios();const e=await this.axios.get(`${s.endpoint}/auth/session`);if(403===e.status||500===e.status)throw Error("Openscreen AUTH: User is not signed in");return!0}async authorize(){const t=await this.getCloudConfig();if(this.exp>(new Date).getTime())return;if(0!==this.exp){this.debugAuth&&console.info("Openscreen AUTH: refreshing using axios cookie"),await this.getAxios();const s=await this.axios.post(`${t.endpoint}/auth/session/refresh`);if(403===s.status||500===s.status)throw Error("Openscreen AUTH: Refreshing failed, exiting");if(200===s.status){const{expires:t,user:e}=s.data;return this._user=e,this.debugAuth&&console.info(`Openscreen AUTH: authorized '${e.userId}' until expiry=${t}`),void(this.exp=t)}}const e=this.getConfig();if(this.debugConfig){const t=s({},e);t.secret&&(t.secret="*".repeat(t.secret.length)),console.debug(`Openscreen CONFIG: ${JSON.stringify(t,null,2)}`)}let r,a;this.debugConfig&&console.debug(`Openscreen CONFIG: (environment) ${JSON.stringify(t,null,2)}`),r=e.key,a=e.secret,this.debugAuth&&console.info(`Openscreen AUTH: authorizing '${r}'`),await this.getAxios();const n=await this.axios.post(`${t.endpoint}/auth/session`,{email:r,password:a});if(403===n.status||500===n.status)throw Error("Openscreen AUTH: authentication failed");if(200===n.status){const{expires:t,user:s}=n.data;this._user=s,this.debugAuth&&console.info(`Openscreen AUTH: authorized '${r}' until expiry=${t}`),this.exp=t}}getUser(){return this._user}async getCloudConfig(){if(!this.cloudConfig){if(!this.cloudConfigName)throw Error("Openscreen: environment name missing");this.cloudConfig=async function(s){const e=t.create({baseURL:"https://config.openscreen.com",timeout:25e3,responseType:"json",maxContentLength:10240,maxBodyLength:10240,maxRedirects:1,decompress:!0}),r=await e.get(`${s}.json`).catch(t=>{throw new Error(`Openscreen: unable to load cloud configuration '${s}': ${t.message}`)}),{data:a}=r;return a}(this.cloudConfigName)}return this.cloudConfig}async getAxios(){if(this.axios)return this.axios;const s=await this.getCloudConfig();return this.axios=t.create(s.axios||{timeout:25e3,responseType:"json",maxContentLength:1048576,maxBodyLength:1048576,maxRedirects:1,decompress:!0}),t}async changePassword(t,s){const e=await this.getCloudConfig();await this.getAxios();const r=await this.axios.post(`${e.endpoint}/auth/user/password`,{password:t,newPassword:s});if(200===r.status)return!0;throw this.debugAuth&&console.log("password change failed for the current user, got the error",r.data),new Error("Failed to change password")}async signOut(){const t=await this.getCloudConfig();await this.getAxios();const s=await this.axios.delete(`${t.endpoint}/auth/session`);if(200!==s.status)throw this.debugAuth&&console.log("Sign out failed, response body is ",s.data),new Error("Failed to sign out")}}export{u as AccountSortingTypes,h as AccountStatus,d as AccountUserRole,p as AssetByAssetTypeSortingTypes,m as AssetSortingTypes,P as AssetTypeSortingTypes,g as AssetTypeUsabilityState,N as AuthMessageId,l as AuthTokenScope,ze as ChangePasswordRequest,Je as CheckSessionRequest,es as ComposeAssetByAssetTypeRequest,Ze as ConfirmInvitedRequest,Xe as ConfirmRequest,S as ConsentStatus,E as ConsentType,I as ContactAssetSortingTypes,A as ContactSortingTypes,qe as CreateAccountByUserIdRequest,tt as CreateApiKeyByAccountIdRequest,st as CreateAppRequest,rs as CreateAssetByAssetTypeRequest,Ks as CreateAssetByProjectIdRequest,zs as CreateAssetCreationJobByProjectIdRequest,et as CreateAssetTypeByAccountIdRequest,Js as CreateAssetsByProjectIdRequest,ys as CreateConsentByContactIdRequest,ds as CreateContactByAssetIdRequest,Xs as CreateContactByProjectIdRequest,De as CreateContactByScanIdRequest,Zs as CreateContactsByProjectIdRequest,rt as CreateInvitationByAccountIdRequest,at as CreateInvitationsByAccountIdRequest,nt as CreateLocationByAccountIdRequest,te as CreatePrintJobByProjectIdRequest,ot as CreateProjectByAccountIdRequest,ps as CreateQrCodeByAssetIdRequest,se as CreateQrCodeByProjectIdRequest,it as CreateQrCodeLogoByAccountRequest,ct as CreateQrCodeStylingTemplateByAccountRequest,ms as CreateQrCodesByAssetIdRequest,ut as CreateQueryableCustomAttributeRequest,ee as CreateSelfQueuePrintJobByProjectIdRequest,ks as CreateSetupIntentRequest,$e as CreateSmsResponseRequest,re as CreateSmsTemplateByProjectIdRequest,ht as CreateTicketByAccountIdRequest,js as CreateUserByInvitationIdRequest,tr as CreateUserRequest,Ps as DeleteAssetRequest,as as DeleteAssetTypeRequest,Cs as DeleteConsentByContactIdRequest,_s as DeleteContactRequest,dt as DeleteContactsByAccountIdRequest,ae as DeleteContactsByProjectIdRequest,qs as DeleteInvitationRequest,Hs as DeleteJobRequest,Vs as DeleteLocationRequest,ne as DeleteProjectRequest,_e as DeleteQrCodeRequest,Le as DeleteQrCodeStylingTemplateByStylingTemplateIdRequest,er as DeleteSessionRequest,oe as DeleteSmsTemplateByProjectIdRequest,pt as DeleteUserByAccountIdRequest,w as FieldType,mt as GetAccountRequest,Ge as GetAccountsByUserIdRequest,Pt as GetAdvancedAssetReportByAccountIdRequest,ie as GetAdvancedAssetReportByProjectIdRequest,gt as GetAdvancedContactReportByAccountIdRequest,ce as GetAdvancedContactReportByProjectIdRequest,Nt as GetAdvancedScanReportByAccountIdRequest,ue as GetAdvancedScanReportByProjectIdRequest,Ts as GetAllAccountsRequest,lt as GetAllAppsByAccountIdRequest,Qt as GetApiKeyRequest,$t as GetApiKeySecretRequest,St as GetApiKeysByAccountIdRequest,ss as GetAppAccountByAppAccountIdRequest,zt as GetAppByAppIdRequest,Jt as GetAppsRequest,Et as GetAssetExportByAccountIdRequest,he as GetAssetExportByProjectIdRequest,Ns as GetAssetHistoryRequest,gs as GetAssetRequest,ns as GetAssetTypeByAssetTypeIdRequest,os as GetAssetTypeCountAtLocationRequest,cs as GetAssetTypeCountsByLocationRequest,It as GetAssetTypesByAccountIdRequest,At as GetAssetsByAccountIdRequest,is as GetAssetsByAssetTypeRequest,Os as GetAssetsByContactIdRequest,Bs as GetAssetsByLocationIdRequest,de as GetAssetsByProjectIdRequest,wt as GetBasicAssetReportByAccountIdRequest,pe as GetBasicAssetReportByProjectIdRequest,xt as GetBasicContactReportByAccountIdRequest,me as GetBasicContactReportByProjectIdRequest,kt as GetConsentByAccountIdRequest,Rs as GetConsentByContactIdRequest,Pe as GetConsentByProjectIdRequest,Tt as GetContactExportByAccountIdRequest,vs as GetContactExportByContactIdRequest,ge as GetContactExportByProjectIdRequest,Ds as GetContactRequest,yt as GetContactsByAccountIdRequest,ls as GetContactsByAssetIdRequest,Ne as GetContactsByProjectIdRequest,He as GetErrorsByUserIdRequest,Ct as GetInstalledAppsByAccountIdRequest,Gs as GetInvitationRequest,Ye as GetInvitationsByUserIdRequest,Ys as GetJobRequest,_t as GetJobsByAccountIdRequest,Ot as GetLocationsByAccountIdRequest,Rt as GetMostScannedAssetsByAccountIdRequest,le as GetMostScannedAssetsByProjectIdRequest,Dt as GetPricePlanByAccountIdRequest,Ws as GetPricePlansRequest,Se as GetProjectByProjectIdRequest,vt as GetProjectsByAccountIdRequest,Xt as GetPublishedAppsRequest,ye as GetQrCodeLogoByQrCodeLogoIdRequest,ft as GetQrCodeLogosByAccountIdRequest,Oe as GetQrCodeRequest,Ue as GetQrCodeStylingTemplateByStylingTemplateIdRequest,bt as GetQrCodeStylingTemplatesByAccountIdRequest,Mt as GetQrCodesByAccountIdRequest,Ss as GetQrCodesByAssetIdRequest,Ee as GetQrCodesByProjectIdRequest,Lt as GetQueryableCustomAttributeRequest,Ut as GetScanExportByAccountIdRequest,fs as GetScanExportByContactIdRequest,Ie as GetScanExportByProjectIdRequest,Es as GetScanLocationDataByAssetIdRequest,bs as GetScanLocationDataByContactIdRequest,ve as GetScanRequest,jt as GetScansByAccountIdRequest,Is as GetScansByAssetIdRequest,Ms as GetScansByContactIdRequest,Ae as GetScansByProjectIdRequest,sr as GetSessionRequest,we as GetSmsTemplateByProjectIdRequest,xe as GetSmsTemplatesByProjectIdRequest,qt as GetUserByAccountIdRequest,Fe as GetUserRequest,Ve as GetUserSettingsByUserIdRequest,Gt as GetUsersByAccountIdRequest,Ht as InstallAppToAccountRequest,x as JobStatus,k as JobType,T as Label,As as LinkContactToAssetRequest,Ls as LinkContactToScanRequest,Zt as LoadAppRequest,y as LocationSortingTypes,In as Openscreen,C as OpenscreenEmails,_ as PricePlanName,O as PricePlanPaymentPeriod,R as PricePlanReporting,D as PrintFormat,v as PrintMode,f as PrintOrientation,b as PrintTemplate,M as PrintUnit,L as ProjectSortingTypes,U as ProjectStatus,j as QrCodeCornerDotTypes,q as QrCodeCornerSquareTypes,G as QrCodeDotTypes,H as QrCodeDynamicRedirectType,Y as QrCodeErrorCorrectionLevel,F as QrCodeGradientTypes,V as QrCodeIntentType,B as QrCodeLocatorKeyType,Q as QrCodeSortingTypes,$ as QrCodeStatus,W as QrCodeType,K as QueryConditions,rr as RefreshSessionRequest,ar as ResendConfirmationRequest,Wt as ResetApiKeySecretRequest,nr as ResetPasswordRequest,fe as SaveGeolocationByScanIdRequest,Er as SdkAccountAdvancedAssetsReportResources,Ir as SdkAccountAdvancedContactsReportResources,Ar as SdkAccountAdvancedScansReportResources,or as SdkAccountApikeysResources,Ur as SdkAccountAppInstallResources,jr as SdkAccountAppResource,ir as SdkAccountAppsResources,xr as SdkAccountAssetsExportResources,Dr as SdkAccountAssetsMostscannedResources,kr as SdkAccountAssetsResources,cr as SdkAccountAssettypesResources,Tr as SdkAccountBasicAssetsReportResources,yr as SdkAccountBasicContactsReportResources,Cr as SdkAccountConsentResources,lr as SdkAccountContactsBatchResources,_r as SdkAccountContactsExportResources,Or as SdkAccountContactsResources,gr as SdkAccountCustomattributesResources,hr as SdkAccountInvitationsBatchResources,ur as SdkAccountInvitationsResources,Rr as SdkAccountJobsResources,dr as SdkAccountLocationsResources,wr as SdkAccountOwnerAppsResources,vr as SdkAccountPricePlanResources,pr as SdkAccountProjectsResources,fr as SdkAccountQrCodesResources,mr as SdkAccountQrcodelogosResources,qr as SdkAccountQrcodelogosUploadResources,Gr as SdkAccountResource,br as SdkAccountScansExportResources,Mr as SdkAccountScansResources,Pr as SdkAccountStylingtemplatesResources,Sr as SdkAccountUserResource,Lr as SdkAccountUsersResources,Nr as SdkAccountZendeskTicketResources,Yr as SdkApikeyResource,Hr as SdkApikeySecretResources,Fr as SdkAppAccountLoadResources,Vr as SdkAppAccountResource,Br as SdkAppResource,Wr as SdkAppsAccountResource,$r as SdkAppsPublishedResources,Qr as SdkAppsResources,na as SdkAssetContactResource,ta as SdkAssetContactsResources,ea as SdkAssetHistoryResources,sa as SdkAssetQrCodesResources,oa as SdkAssetResource,ra as SdkAssetScansLocationResources,aa as SdkAssetScansResources,Kr as SdkAssettypeAssetResource,zr as SdkAssettypeAssetsResources,Jr as SdkAssettypeLocationResource,Xr as SdkAssettypeLocationsResources,Zr as SdkAssettypeResource,dn as SdkAuthConfirmResources,hn as SdkAuthSessionResources,mn as SdkAuthUserResources,ia as SdkBillingSetupIntentResource,ca as SdkCareAccountsResources,gn as SdkConfirmationAuthUserResources,ha as SdkContactAssetsResources,ua as SdkContactConsentResources,da as SdkContactExportResources,Na as SdkContactResource,ga as SdkContactScanResource,pa as SdkContactScansExportResources,ma as SdkContactScansLocationResources,Pa as SdkContactScansResources,Sa as SdkInvitationResource,la as SdkInvitationUsersResources,pn as SdkInvitedAuthConfirmResources,Ea as SdkJobResource,Ia as SdkLocationAssetsResources,Aa as SdkLocationResource,un as SdkPasswordAuthUserResources,xa as SdkPricePlansResources,ba as SdkProjectAdvancedAssetsReportResources,Ma as SdkProjectAdvancedContactsReportResources,La as SdkProjectAdvancedScansReportResources,ya as SdkProjectAssetsBatchResources,Ua as SdkProjectAssetsExportResources,Ya as SdkProjectAssetsMostscannedResources,ka as SdkProjectAssetsResources,ja as SdkProjectBasicAssetsReportResources,qa as SdkProjectBasicContactsReportResources,Ga as SdkProjectConsentResources,_a as SdkProjectContactsBatchResources,Ha as SdkProjectContactsExportResources,Ca as SdkProjectContactsResources,Ta as SdkProjectJobsAssetbatchResources,Oa as SdkProjectPrintResources,Ra as SdkProjectQrCodesResources,Ba as SdkProjectResource,Fa as SdkProjectScansExportResources,Va as SdkProjectScansResources,Da as SdkProjectSelfqueueprintResources,fa as SdkProjectSmsTemplateResource,va as SdkProjectSmsTemplatesResources,$a as SdkQrCodeResource,Qa as SdkQrcodelogoResource,Pn as SdkRefreshAuthSessionResources,Nn as SdkResetAuthUserResources,ln as SdkResources,Wa as SdkScanContactsResources,za as SdkScanCustomAttributeResources,Ja as SdkScanResource,Ka as SdkScanSmsResources,Xa as SdkStylingtemplateResource,wa as SdkSupportResources,Za as SdkUserAccountsResources,tn as SdkUserErrorsResources,sn as SdkUserInvitationsResources,rn as SdkUserPathResource,en as SdkUserPathSettingsResources,an as SdkUserResource,nn as SdkWebhookSmsResources,on as SdkWebhookSmsStatusResources,cn as SdkWebhookStripeResources,be as SendSmsByScanIdRequest,$s as SendSupportEmailRequest,Be as SetUserSettingsByUserIdRequest,We as SmsStatusUpdateRequest,z as StickerShape,Ke as StripeEventRequest,ws as UnlinkContactToAssetRequest,Yt as UpdateAccountRequest,Kt as UpdateApiKeyRequest,ts as UpdateAppByAppIdRequest,xs as UpdateAssetRequest,hs as UpdateAssetTypeCountAtLocationRequest,us as UpdateAssetTypeRequest,Fs as UpdateAssetsLocationsRequest,Us as UpdateContactRequest,Qs as UpdateLocationRequest,Ft as UpdatePricePlanByAccountIdRequest,ke as UpdateProjectByProjectIdRequest,Ce as UpdateQrCodeLogoByQrCodeLogoIdRequest,Re as UpdateQrCodeRequest,je as UpdateQrCodeStylingTemplateByStylingTemplateIdRequest,Me as UpdateScanCustomAttributeRequest,Te as UpdateSmsTemplateRequest,Vt as UpdateUserByAccountIdRequest,Qe as UpdateUserRequest,Bt as UploadQrCodeLogoByAccountRequest,J as UserCredentialsStatus,X as UserGroups,Z as UserSettingsDomain};
|
|
1
|
+
import t from"axios";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},r.apply(this,arguments)}function e(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,n(t,r)}function n(t,r){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},n(t,r)}var s,o,a,i,u,c,h,p,m,f,P,l,d,g,v,y,w,S,N,A,I,j=/*#__PURE__*/function(){function t(t){this.session=void 0,this.routeSegments=void 0,this.session=t}var r=t.prototype;return r.makeUri=function(t){void 0===t&&(t={});try{var r=this;return Promise.resolve(r.session.getCloudConfig()).then(function(e){var n=[e.endpoint.replace(/\/+$/,"")];return r.routeSegments.forEach(function(r){if(n.push(r.routePart),r.parm){var e=t[r.parm];if(!e)throw Error("Openscreen: missing path parameter value for '"+r.parm+"'");n.push(e)}}),n.join("/")})}catch(t){return Promise.reject(t)}},r.debugRequest=function(t,r,e,n,s){this.session.debugRequest&&(console.debug("Openscreen REQUEST: "+t.toUpperCase()+" "+r),n&&console.debug("Openscreen REQUEST: "+JSON.stringify(n,null,2)),e&&this.session.debugQuery&&console.debug("Openscreen QUERY: "+JSON.stringify(e,null,2)),s&&this.session.debugOptions&&console.debug("Openscreen OPTIONS: "+JSON.stringify(s,null,2)))},r.debugResponse=function(t){this.session.debugResponse&&console.debug("Openscreen RESPONSE: "+JSON.stringify(t.data||{},null,2))},r.handleAndDebugErr=function(t){if(t.response&&t.response.data)return this.session.debugError?console.error("Openscreen ERROR: "+JSON.stringify(t.response.data,null,2)):this.session.debugResponse&&console.error("Openscreen RESPONSE: "+JSON.stringify(t.response.data,null,2)),t.response.data;if(this.session.debugError)try{console.error(t)}catch(t){console.error("Openscreen: (unable to print error)")}return t},t}(),E=/*#__PURE__*/function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n.prototype.go=function(t,e,n){try{var s=this;return Promise.resolve(function(o,a){try{var i=Promise.resolve(s.makeUri(t)).then(function(t){return s.debugRequest("delete",t,e,null,n),Promise.resolve(s.session.authorize()).then(function(){return Promise.resolve(s.session.getAxios()).then(function(o){return Promise.resolve(o.delete(t,r({params:e},n))).then(function(t){return s.debugResponse(t),t.data})})})})}catch(t){return a(t)}return i&&i.then?i.then(void 0,a):i}(0,function(t){throw s.handleAndDebugErr(t)}))}catch(t){return Promise.reject(t)}},n}(j),k=/*#__PURE__*/function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n.prototype.go=function(t,e,n){try{var s=this;return Promise.resolve(function(o,a){try{var i=Promise.resolve(s.makeUri(t)).then(function(t){return s.debugRequest("get",t,e,null,n),Promise.resolve(s.session.authorize()).then(function(){return Promise.resolve(s.session.getAxios()).then(function(o){return Promise.resolve(o.get(t,r({params:e},n))).then(function(t){return s.debugResponse(t),t.data})})})})}catch(t){return a(t)}return i&&i.then?i.then(void 0,a):i}(0,function(t){throw s.handleAndDebugErr(t)}))}catch(t){return Promise.reject(t)}},n}(j),R=/*#__PURE__*/function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n.prototype.go=function(t,e,n,s){try{var o=this;return Promise.resolve(function(t,r){try{var e=t()}catch(t){return r(t)}return e&&e.then?e.then(void 0,r):e}(function(){return Promise.resolve(o.makeUri(t)).then(function(t){return Promise.resolve(o.session.authorize()).then(function(){return o.debugRequest("patch",t,e,n,s),Promise.resolve(o.session.getAxios()).then(function(a){return Promise.resolve(a.patch(t,n,r({params:e},s))).then(function(t){return o.debugResponse(t),t.data})})})})},function(t){throw o.handleAndDebugErr(t)}))}catch(t){return Promise.reject(t)}},n}(j),C=/*#__PURE__*/function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n.prototype.go=function(t,e,n,s){try{var o=this;return Promise.resolve(function(t,r){try{var e=t()}catch(t){return r(t)}return e&&e.then?e.then(void 0,r):e}(function(){return Promise.resolve(o.makeUri(t)).then(function(t){return Promise.resolve(o.session.authorize()).then(function(){return o.debugRequest("post",t,e,n,s),Promise.resolve(o.session.getAxios()).then(function(a){return Promise.resolve(a.post(t,n,r({params:e},s))).then(function(t){return o.debugResponse(t),t.data})})})})},function(t){throw o.handleAndDebugErr(t)}))}catch(t){return Promise.reject(t)}},n}(j),O=/*#__PURE__*/function(){function t(t,r){this.session=void 0,this.pathParameters=void 0,this.session=t,this.pathParameters=r}var r=t.prototype;return r.self=function(){return this},r.getSession=function(){return this.session},t}(),b=/*#__PURE__*/function(){function t(t,r){this.session=void 0,this.pathParameters=void 0,this.id=void 0,this.session=t,this.pathParameters=r}return t.prototype.getSession=function(){return this.session},t}();!function(t){t.ACTIVE="ACTIVE",t.SUSPENDED="SUSPENDED"}(s||(s={})),function(t){t.OWNER="OWNER",t.ADMINISTRATOR="ADMINISTRATOR",t.BILLING_CONTACT="BILLING_CONTACT",t.MEMBER="MEMBER",t.API_KEY="API_KEY",t.INVITATION_DECLINED="INVITATION_DECLINED"}(o||(o={})),function(t){t.INVALID_API_KEY="INVALID_API_KEY",t.INVALID_EMAIL="INVALID_EMAIL",t.INVALID_LEGACY_MIGRATION="INVALID_LEGACY_MIGRATION",t.INVALID_PASSWORD="INVALID_PASSWORD",t.INVALID_SCOPE="INVALID_SCOPE",t.INVALID_SECRET="INVALID_SECRET",t.INVALID_TOKEN="INVALID_TOKEN",t.MIGRATE_FROM_COGNITO="MIGRATE_FROM_COGNITO",t.NO_ACCESS_TOKEN="NO_ACCESS_TOKEN",t.NO_REFRESH_TOKEN="NO_REFRESH_TOKEN",t.RESET_PASSWORD="RESET_PASSWORD",t.RESET_SECRET="RESET_SECRET",t.SUSPENDED_OR_INACTIVE="SUSPENDED_OR_INACTIVE",t.TOKEN_EXPIRED="TOKEN_EXPIRED",t.TRY_AGAIN="TRY_AGAIN",t.UNABLE_TO_CONFIRM_EMAIL="UNABLE_TO_CONFIRM_EMAIL",t.UNCONFIRMED_EMAIL="UNCONFIRMED_EMAIL"}(a||(a={})),function(t){t.API="API",t.CONFIRM_EMAIL="CONFIRM_EMAIL",t.NEW_PASSWORD="NEW_PASSWORD",t.NO_SESSION="NO_SESSION"}(i||(i={})),function(t){t.FREE="free",t.ADVANCED="advanced",t.PRO="pro",t.ENTERPRISE_CUSTOM="enterpriseCustom",t.UNLIMITED="unlimited"}(u||(u={})),function(t){t.MONTHLY="monthly",t.ANNUAL="annual"}(c||(c={})),function(t){t.BASIC="basic",t.ADVANCED="advanced",t.basic="basic",t.advance="advanced"}(h||(h={})),function(t){t.ACTIVE="ACTIVE",t.SUSPENDED="SUSPENDED"}(p||(p={})),function(t){t.dot="dot",t.square="square"}(m||(m={})),function(t){t.dot="dot",t.square="square",t.extra_rounded="extra-rounded"}(f||(f={})),function(t){t.classy="classy",t.classy_rounded="classy-rounded",t.dots="dots",t.extra_rounded="extra-rounded",t.rounded="rounded",t.square="square"}(P||(P={})),function(t){t.NO_SCAN_ID="NO_SCAN_ID",t.SCAN_ID_IN_PATH_PARAMETER="SCAN_ID_IN_PATH_PARAMETER",t.SCAN_ID_IN_QUERY_STRING_PARAMETER="SCAN_ID_IN_QUERY_STRING_PARAMETER"}(l||(l={})),function(t){t.L="L",t.M="M",t.Q="Q",t.H="H"}(d||(d={})),function(t){t.linear="linear",t.radial="radial"}(g||(g={})),function(t){t.STATIC_REDIRECT="STATIC_REDIRECT",t.DYNAMIC_REDIRECT="DYNAMIC_REDIRECT",t.DYNAMIC_REDIRECT_TO_APP="DYNAMIC_REDIRECT_TO_APP"}(v||(v={})),function(t){t.SHORT_URL="SHORT_URL",t.HASHED_ID="HASHED_ID",t.SECURE_ID="SECURE_ID"}(y||(y={})),function(t){t.ACTIVE="ACTIVE",t.INACTIVE="INACTIVE",t.SUSPENDED="SUSPENDED"}(w||(w={})),function(t){t.PNG="PNG",t.JPEG="JPEG",t.SVG="SVG",t.png="png",t.jpeg="jpeg",t.svg="svg"}(S||(S={})),function(t){t.COMPROMISED="COMPROMISED",t.CONFIRMED="CONFIRMED",t.LEGACY="LEGACY",t.NEW_EMAIL="NEW_EMAIL",t.NEW_EMAIL_CONFIRMED="NEW_EMAIL_CONFIRMED",t.NEW_PASSWORD="NEW_PASSWORD",t.SUSPENDED="SUSPENDED",t.UNCONFIRMED="UNCONFIRMED"}(N||(N={})),function(t){t.appuser="appuser",t.appadmin="appadmin"}(A||(A={})),function(t){t.DASHBOARD="DASHBOARD"}(I||(I={}));var _=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"apikeys",sdkPartName:"apikeys"}],r}return e(r,t),r}(C),T=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"invitations",sdkPartName:"invitations"}],r}return e(r,t),r}(C),D=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"projects",sdkPartName:"projects"}],r}return e(r,t),r}(C),U=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"invitationId",routePart:"invitations",sdkPartName:"invitation"},{routePart:"users",sdkPartName:"users"}],r}return e(r,t),r}(C),x=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"}],r}return e(r,t),r}(E),M=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"contacts/batch",sdkPartName:"contactsBatch"}],r}return e(r,t),r}(E),L=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"invitationId",routePart:"invitations",sdkPartName:"invitation"}],r}return e(r,t),r}(E),q=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{parm:"userId",routePart:"users",sdkPartName:"user"}],r}return e(r,t),r}(E),G=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"}],r}return e(r,t),r}(k),H=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"assets/report/advanced",sdkPartName:"advancedAssetsReport"}],r}return e(r,t),r}(k),V=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"contacts/report/advanced",sdkPartName:"advancedContactsReport"}],r}return e(r,t),r}(k),B=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"scans/report/advanced",sdkPartName:"advancedScansReport"}],r}return e(r,t),r}(k),F=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"apikeys",sdkPartName:"apikeys"}],r}return e(r,t),r}(k),W=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"assets/export",sdkPartName:"assetsExport"}],r}return e(r,t),r}(k),Y=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"assets",sdkPartName:"assets"}],r}return e(r,t),r}(k),K=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"assets/report/basic",sdkPartName:"basicAssetsReport"}],r}return e(r,t),r}(k),Q=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"contacts/report/basic",sdkPartName:"basicContactsReport"}],r}return e(r,t),r}(k),J=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"scans/report/basic",sdkPartName:"basicScansReport"}],r}return e(r,t),r}(k),z=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"contacts/export",sdkPartName:"contactsExport"}],r}return e(r,t),r}(k),Z=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"contacts",sdkPartName:"contacts"}],r}return e(r,t),r}(k),X=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"invitationId",routePart:"invitations",sdkPartName:"invitation"}],r}return e(r,t),r}(k),$=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"priceplan",sdkPartName:"pricePlan"}],r}return e(r,t),r}(k),tt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"projects",sdkPartName:"projects"}],r}return e(r,t),r}(k),rt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"qrcodes",sdkPartName:"qrCodes"}],r}return e(r,t),r}(k),et=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"scans/export",sdkPartName:"scansExport"}],r}return e(r,t),r}(k),nt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"scans",sdkPartName:"scans"}],r}return e(r,t),r}(k),st=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"users",sdkPartName:"users"}],r}return e(r,t),r}(k),ot=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"}],r}return e(r,t),r}(R),at=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{routePart:"priceplan",sdkPartName:"pricePlan"}],r}return e(r,t),r}(R),it=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"accounts",sdkPartName:"account"},{parm:"userId",routePart:"users",sdkPartName:"user"}],r}return e(r,t),r}(R),ut=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"apiKeyId",routePart:"apikeys",sdkPartName:"apikey"}],r}return e(r,t),r}(k),ct=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"apiKeyId",routePart:"apikeys",sdkPartName:"apikey"},{routePart:"secret",sdkPartName:"secret"}],r}return e(r,t),r}(k),ht=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"apiKeyId",routePart:"apikeys",sdkPartName:"apikey"},{routePart:"secret",sdkPartName:"secret"}],r}return e(r,t),r}(R),pt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"apiKeyId",routePart:"apikeys",sdkPartName:"apikey"}],r}return e(r,t),r}(R),mt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{routePart:"contacts",sdkPartName:"contacts"}],r}return e(r,t),r}(C),ft=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{routePart:"qrcodes",sdkPartName:"qrCodes"}],r}return e(r,t),r}(C),Pt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"}],r}return e(r,t),r}(E),lt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"}],r}return e(r,t),r}(k),dt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{routePart:"contacts",sdkPartName:"contacts"}],r}return e(r,t),r}(k),gt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{routePart:"qrcodes",sdkPartName:"qrCodes"}],r}return e(r,t),r}(k),vt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{routePart:"scans",sdkPartName:"scans"}],r}return e(r,t),r}(k),yt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{parm:"contactId",routePart:"contacts",sdkPartName:"contact"}],r}return e(r,t),r}(C),wt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"},{parm:"contactId",routePart:"contacts",sdkPartName:"contact"}],r}return e(r,t),r}(E),St=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"assetId",routePart:"assets",sdkPartName:"asset"}],r}return e(r,t),r}(R),Nt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"billing/session",sdkPartName:"billingSession"}],r}return e(r,t),r}(C),At=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"}],r}return e(r,t),r}(E),It=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"}],r}return e(r,t),r}(k),jt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"contactId",routePart:"contacts",sdkPartName:"contact"}],r}return e(r,t),r}(R),Et=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"overview/accounts",sdkPartName:"overviewAccounts"}],r}return e(r,t),r}(k),kt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"overview/activity",sdkPartName:"overviewActivity"}],r}return e(r,t),r}(k),Rt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"overview/users",sdkPartName:"overviewUsers"}],r}return e(r,t),r}(k),Ct=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"pricePlans",sdkPartName:"pricePlans"}],r}return e(r,t),r}(k),Ot=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"assets",sdkPartName:"assets"}],r}return e(r,t),r}(C),bt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"assets/batch",sdkPartName:"assetsBatch"}],r}return e(r,t),r}(C),_t=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts",sdkPartName:"contacts"}],r}return e(r,t),r}(C),Tt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts/batch",sdkPartName:"contactsBatch"}],r}return e(r,t),r}(C),Dt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"qrcodes",sdkPartName:"qrCodes"}],r}return e(r,t),r}(C),Ut=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"smstemplates",sdkPartName:"smsTemplates"}],r}return e(r,t),r}(C),xt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts/batch",sdkPartName:"contactsBatch"}],r}return e(r,t),r}(E),Mt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"}],r}return e(r,t),r}(E),Lt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{parm:"smsTemplateName",routePart:"smstemplates",sdkPartName:"smsTemplate"}],r}return e(r,t),r}(E),qt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"assets/report/advanced",sdkPartName:"advancedAssetsReport"}],r}return e(r,t),r}(k),Gt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts/report/advanced",sdkPartName:"advancedContactsReport"}],r}return e(r,t),r}(k),Ht=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"scans/report/advanced",sdkPartName:"advancedScansReport"}],r}return e(r,t),r}(k),Vt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"assets/export",sdkPartName:"assetsExport"}],r}return e(r,t),r}(k),Bt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"assets",sdkPartName:"assets"}],r}return e(r,t),r}(k),Ft=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"assets/report/basic",sdkPartName:"basicAssetsReport"}],r}return e(r,t),r}(k),Wt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts/report/basic",sdkPartName:"basicContactsReport"}],r}return e(r,t),r}(k),Yt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"scans/report/basic",sdkPartName:"basicScansReport"}],r}return e(r,t),r}(k),Kt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts/export",sdkPartName:"contactsExport"}],r}return e(r,t),r}(k),Qt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"contacts",sdkPartName:"contacts"}],r}return e(r,t),r}(k),Jt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"}],r}return e(r,t),r}(k),zt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"qrcodes",sdkPartName:"qrCodes"}],r}return e(r,t),r}(k),Zt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"scans/export",sdkPartName:"scansExport"}],r}return e(r,t),r}(k),Xt=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"scans",sdkPartName:"scans"}],r}return e(r,t),r}(k),$t=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{parm:"smsTemplateName",routePart:"smstemplates",sdkPartName:"smsTemplate"}],r}return e(r,t),r}(k),tr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{routePart:"smstemplates",sdkPartName:"smsTemplates"}],r}return e(r,t),r}(k),rr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"}],r}return e(r,t),r}(R),er=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"projectId",routePart:"projects",sdkPartName:"project"},{parm:"smsTemplateName",routePart:"smstemplates",sdkPartName:"smsTemplate"}],r}return e(r,t),r}(R),nr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"qrCodeId",routePart:"qrcodes",sdkPartName:"qrCode"}],r}return e(r,t),r}(E),sr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"qrCodeId",routePart:"qrcodes",sdkPartName:"qrCode"}],r}return e(r,t),r}(k),or=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"qrCodeId",routePart:"qrcodes",sdkPartName:"qrCode"}],r}return e(r,t),r}(R),ar=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"scanId",routePart:"scans",sdkPartName:"scan"},{routePart:"contacts",sdkPartName:"contacts"}],r}return e(r,t),r}(C),ir=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"scanId",routePart:"scans",sdkPartName:"scan"}],r}return e(r,t),r}(k),ur=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"scanId",routePart:"scans",sdkPartName:"scan"},{routePart:"sms",sdkPartName:"sms"}],r}return e(r,t),r}(C),cr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"accountId",routePart:"search/accounts",sdkPartName:"searchAccount"}],r}return e(r,t),r}(k),hr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"userId",routePart:"search/users",sdkPartName:"searchUser"}],r}return e(r,t),r}(k),pr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"search/accounts",sdkPartName:"searchAccounts"}],r}return e(r,t),r}(k),mr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"},{routePart:"accounts",sdkPartName:"accounts"}],r}return e(r,t),r}(C),fr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"},{routePart:"accounts",sdkPartName:"accounts"}],r}return e(r,t),r}(k),Pr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"},{routePart:"errors",sdkPartName:"errors"}],r}return e(r,t),r}(k),lr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"},{routePart:"invitations",sdkPartName:"invitations"}],r}return e(r,t),r}(k),dr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"}],r}return e(r,t),r}(k),gr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"},{parm:"path",routePart:"path",sdkPartName:"path"},{routePart:"settings",sdkPartName:"settings"}],r}return e(r,t),r}(k),vr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"},{parm:"path",routePart:"path",sdkPartName:"path"},{routePart:"settings",sdkPartName:"settings"}],r}return e(r,t),r}(R),yr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{parm:"userId",routePart:"users",sdkPartName:"user"}],r}return e(r,t),r}(R),wr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"webhook/sms",sdkPartName:"webhookSms"}],r}return e(r,t),r}(C),Sr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"webhook/sms-status",sdkPartName:"webhookSmsStatus"}],r}return e(r,t),r}(C),Nr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"auth/user/password",sdkPartName:"passwordAuthUser"}],r}return e(r,t),r}(C),Ar=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"auth/confirm",sdkPartName:"authConfirm"}],r}return e(r,t),r}(k),Ir=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"auth/user",sdkPartName:"authUser"}],r}return e(r,t),r}(C),jr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"auth/session",sdkPartName:"authSession"}],r}return e(r,t),r}(E),Er=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"auth/session",sdkPartName:"authSession"}],r}return e(r,t),r}(C),kr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"auth/session/refresh",sdkPartName:"refreshAuthSession"}],r}return e(r,t),r}(C),Rr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"auth/user/confirmation",sdkPartName:"confirmationAuthUser"}],r}return e(r,t),r}(C),Cr=/*#__PURE__*/function(t){function r(){for(var r,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(r=t.call.apply(t,[this].concat(n))||this).routeSegments=[{routePart:"auth/user/reset",sdkPartName:"resetAuthUser"}],r}return e(r,t),r}(C),Or=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.create=function(t,r){try{var e=new _(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n.get=function(t,r){try{var e=new F(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),br=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.create=function(t,r){try{var e=new T(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(O),_r=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.create=function(t,r){try{var e=new D(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n.get=function(t,r){try{var e=new tt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Tr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.delete=function(t,r){try{var e=new M(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Dr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.delete=function(t){try{var r=new q(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},n.update=function(t,r){try{var e=new it(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(b),Ur=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new H(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),xr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new V(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Mr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new B(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Lr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new W(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),qr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new Y(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Gr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t){try{var r=new K(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),Hr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t){try{var r=new Q(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),Vr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t){try{var r=new J(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),Br=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new z(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Fr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new Z(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Wr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.get=function(t){try{var r=new $(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},n.update=function(t,r){try{var e=new at(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(O),Yr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new rt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Kr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new et(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Qr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new nt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Jr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new st(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),zr=/*#__PURE__*/function(t){function n(){return t.apply(this,arguments)||this}e(n,t);var s=n.prototype;return s.apikeys=function(){return new Or(this.getSession(),this.pathParameters)},s.invitations=function(){return new br(this.getSession(),this.pathParameters)},s.projects=function(){return new _r(this.getSession(),this.pathParameters)},s.contactsBatch=function(){return new Tr(this.getSession(),this.pathParameters)},s.user=function(t){return new Dr(this.getSession(),r({},this.pathParameters,{userId:t}))},s.advancedAssetsReport=function(){return new Ur(this.getSession(),this.pathParameters)},s.advancedContactsReport=function(){return new xr(this.getSession(),this.pathParameters)},s.advancedScansReport=function(){return new Mr(this.getSession(),this.pathParameters)},s.assetsExport=function(){return new Lr(this.getSession(),this.pathParameters)},s.assets=function(){return new qr(this.getSession(),this.pathParameters)},s.basicAssetsReport=function(){return new Gr(this.getSession(),this.pathParameters)},s.basicContactsReport=function(){return new Hr(this.getSession(),this.pathParameters)},s.basicScansReport=function(){return new Vr(this.getSession(),this.pathParameters)},s.contactsExport=function(){return new Br(this.getSession(),this.pathParameters)},s.contacts=function(){return new Fr(this.getSession(),this.pathParameters)},s.pricePlan=function(){return new Wr(this.getSession(),this.pathParameters)},s.qrCodes=function(){return new Yr(this.getSession(),this.pathParameters)},s.scansExport=function(){return new Kr(this.getSession(),this.pathParameters)},s.scans=function(){return new Qr(this.getSession(),this.pathParameters)},s.users=function(){return new Jr(this.getSession(),this.pathParameters)},s.delete=function(t){try{var r=new x(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},s.get=function(t){try{var r=new G(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},s.update=function(t,r){try{var e=new ot(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n}(b),Zr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.create=function(t){try{var r=new U(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),Xr=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.users=function(){return new Zr(this.getSession(),this.pathParameters)},n.delete=function(t){try{var r=new L(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},n.get=function(t){try{var r=new X(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(b),$r=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.get=function(t){try{var r=new ct(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},n.update=function(t){try{var r=new ht(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),te=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.secret=function(){return new $r(this.getSession(),this.pathParameters)},n.get=function(t){try{var r=new ut(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},n.update=function(t,r){try{var e=new pt(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(b),re=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.create=function(t,r){try{var e=new mt(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n.get=function(t,r){try{var e=new dt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),ee=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.create=function(t,r){try{var e=new ft(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n.get=function(t,r){try{var e=new gt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),ne=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new vt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),se=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.link=function(t,r){try{var e=new yt(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n.unlink=function(t){try{var r=new wt(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(b),oe=/*#__PURE__*/function(t){function n(){return t.apply(this,arguments)||this}e(n,t);var s=n.prototype;return s.contacts=function(){return new re(this.getSession(),this.pathParameters)},s.qrCodes=function(){return new ee(this.getSession(),this.pathParameters)},s.scans=function(){return new ne(this.getSession(),this.pathParameters)},s.contact=function(t){return new se(this.getSession(),r({},this.pathParameters,{contactId:t}))},s.delete=function(t){try{var r=new Pt(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},s.get=function(t,r){try{var e=new lt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},s.update=function(t,r){try{var e=new St(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n}(b),ae=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.create=function(t,r){try{var e=new Nt(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(b),ie=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.delete=function(t){try{var r=new At(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},n.get=function(t){try{var r=new It(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},n.update=function(t,r){try{var e=new jt(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(b),ue=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t){try{var r=new Et(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),ce=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t){try{var r=new kt(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),he=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t){try{var r=new Rt(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),pe=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t){try{var r=new Ct(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),me=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.create=function(t,r){try{var e=new Ot(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n.get=function(t,r){try{var e=new Bt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),fe=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.create=function(t,r){try{var e=new bt(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(O),Pe=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.create=function(t,r){try{var e=new _t(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n.get=function(t,r){try{var e=new Qt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),le=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.create=function(t,r){try{var e=new Tt(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n.delete=function(t,r){try{var e=new xt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),de=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.create=function(t,r){try{var e=new Dt(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n.get=function(t,r){try{var e=new zt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),ge=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.create=function(t,r){try{var e=new Ut(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n.get=function(t,r){try{var e=new tr(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),ve=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.delete=function(t){try{var r=new Lt(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},n.get=function(t){try{var r=new $t(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},n.update=function(t,r){try{var e=new er(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(b),ye=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new qt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),we=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new Gt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Se=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new Ht(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Ne=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new Vt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Ae=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t){try{var r=new Ft(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),Ie=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t){try{var r=new Wt(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),je=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t){try{var r=new Yt(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),Ee=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new Kt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),ke=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new Zt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Re=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new Xt(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Ce=/*#__PURE__*/function(t){function n(){return t.apply(this,arguments)||this}e(n,t);var s=n.prototype;return s.assets=function(){return new me(this.getSession(),this.pathParameters)},s.assetsBatch=function(){return new fe(this.getSession(),this.pathParameters)},s.contacts=function(){return new Pe(this.getSession(),this.pathParameters)},s.contactsBatch=function(){return new le(this.getSession(),this.pathParameters)},s.qrCodes=function(){return new de(this.getSession(),this.pathParameters)},s.smsTemplates=function(){return new ge(this.getSession(),this.pathParameters)},s.smsTemplate=function(t){return new ve(this.getSession(),r({},this.pathParameters,{smsTemplateName:t}))},s.advancedAssetsReport=function(){return new ye(this.getSession(),this.pathParameters)},s.advancedContactsReport=function(){return new we(this.getSession(),this.pathParameters)},s.advancedScansReport=function(){return new Se(this.getSession(),this.pathParameters)},s.assetsExport=function(){return new Ne(this.getSession(),this.pathParameters)},s.basicAssetsReport=function(){return new Ae(this.getSession(),this.pathParameters)},s.basicContactsReport=function(){return new Ie(this.getSession(),this.pathParameters)},s.basicScansReport=function(){return new je(this.getSession(),this.pathParameters)},s.contactsExport=function(){return new Ee(this.getSession(),this.pathParameters)},s.scansExport=function(){return new ke(this.getSession(),this.pathParameters)},s.scans=function(){return new Re(this.getSession(),this.pathParameters)},s.delete=function(t){try{var r=new Mt(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},s.get=function(t){try{var r=new Jt(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},s.update=function(t,r){try{var e=new rr(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n}(b),Oe=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.delete=function(t){try{var r=new nr(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},n.get=function(t,r){try{var e=new sr(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},n.update=function(t,r){try{var e=new or(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(b),be=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.create=function(t,r){try{var e=new ar(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(O),_e=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.send=function(t,r){try{var e=new ur(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(O),Te=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.contacts=function(){return new be(this.getSession(),this.pathParameters)},n.sms=function(){return new _e(this.getSession(),this.pathParameters)},n.get=function(t){try{var r=new ir(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(b),De=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t){try{var r=new cr(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(b),Ue=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t){try{var r=new hr(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(b),xe=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new pr(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Me=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.create=function(t,r){try{var e=new mr(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n.get=function(t,r){try{var e=new fr(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Le=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new Pr(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),qe=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new lr(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Ge=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.get=function(t){try{var r=new gr(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},n.update=function(t,r){try{var e=new vr(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(O),He=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.settings=function(){return new Ge(this.getSession(),this.pathParameters)},r}(b),Ve=/*#__PURE__*/function(t){function n(){return t.apply(this,arguments)||this}e(n,t);var s=n.prototype;return s.accounts=function(){return new Me(this.getSession(),this.pathParameters)},s.errors=function(){return new Le(this.getSession(),this.pathParameters)},s.invitations=function(){return new qe(this.getSession(),this.pathParameters)},s.path=function(t){return new He(this.getSession(),r({},this.pathParameters,{path:t}))},s.get=function(t){try{var r=new dr(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},s.update=function(t,r){try{var e=new yr(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},n}(b),Be=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.create=function(t){try{var r=new wr(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),Fe=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.create=function(t){try{var r=new Sr(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),We=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.create=function(t,r){try{var e=new Nr(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(O),Ye=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.get=function(t,r){try{var e=new Ar(this.session);return Promise.resolve(e.go(this.pathParameters,t,r))}catch(t){return Promise.reject(t)}},r}(O),Ke=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.create=function(t,r){try{var e=new Ir(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(O),Qe=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.delete=function(t){try{var r=new jr(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},n.create=function(t,r){try{var e=new Er(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(O),Je=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.create=function(t){try{var r=new kr(this.session);return Promise.resolve(r.go(this.pathParameters,void 0,t))}catch(t){return Promise.reject(t)}},r}(O),ze=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.resend=function(t,r){try{var e=new Rr(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(O),Ze=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.reset=function(t,r){try{var e=new Cr(this.session);return Promise.resolve(e.go(this.pathParameters,void 0,t,r))}catch(t){return Promise.reject(t)}},r}(O),Xe=/*#__PURE__*/function(t){function n(){return t.apply(this,arguments)||this}e(n,t);var s=n.prototype;return s.account=function(t){return new zr(this.getSession(),r({},this.pathParameters,{accountId:t}))},s.invitation=function(t){return new Xr(this.getSession(),r({},this.pathParameters,{invitationId:t}))},s.apikey=function(t){return new te(this.getSession(),r({},this.pathParameters,{apiKeyId:t}))},s.asset=function(t){return new oe(this.getSession(),r({},this.pathParameters,{assetId:t}))},s.billingSession=function(t){return new ae(this.getSession(),r({},this.pathParameters,{accountId:t}))},s.contact=function(t){return new ie(this.getSession(),r({},this.pathParameters,{contactId:t}))},s.overviewAccounts=function(){return new ue(this.getSession(),this.pathParameters)},s.overviewActivity=function(){return new ce(this.getSession(),this.pathParameters)},s.overviewUsers=function(){return new he(this.getSession(),this.pathParameters)},s.pricePlans=function(){return new pe(this.getSession(),this.pathParameters)},s.project=function(t){return new Ce(this.getSession(),r({},this.pathParameters,{projectId:t}))},s.qrCode=function(t){return new Oe(this.getSession(),r({},this.pathParameters,{qrCodeId:t}))},s.scan=function(t){return new Te(this.getSession(),r({},this.pathParameters,{scanId:t}))},s.searchAccount=function(t){return new De(this.getSession(),r({},this.pathParameters,{accountId:t}))},s.searchUser=function(t){return new Ue(this.getSession(),r({},this.pathParameters,{userId:t}))},s.searchAccounts=function(){return new xe(this.getSession(),this.pathParameters)},s.user=function(t){return new Ve(this.getSession(),r({},this.pathParameters,{userId:t}))},s.webhookSms=function(){return new Be(this.getSession(),this.pathParameters)},s.webhookSmsStatus=function(){return new Fe(this.getSession(),this.pathParameters)},s.passwordAuthUser=function(){return new We(this.getSession(),this.pathParameters)},s.authConfirm=function(){return new Ye(this.getSession(),this.pathParameters)},s.authUser=function(){return new Ke(this.getSession(),this.pathParameters)},s.authSession=function(){return new Qe(this.getSession(),this.pathParameters)},s.refreshAuthSession=function(){return new Je(this.getSession(),this.pathParameters)},s.confirmationAuthUser=function(){return new ze(this.getSession(),this.pathParameters)},s.resetAuthUser=function(){return new Ze(this.getSession(),this.pathParameters)},n}(O),$e=/*#__PURE__*/function(){function t(){this.debugConfig=!1,this.debugAuth=!1,this.debugRequest=!1,this.debugResponse=!1,this.debugError=!1,this.debugQuery=!1,this.debugOptions=!1,this.exp=0}var r=t.prototype;return r.getConfig=function(){throw Error("no session")},r.getCloudConfig=function(){throw Error("no session")},r.getAxios=function(){throw Error("no session")},r.authorize=function(){throw Error("no session")},r.getUser=function(){throw Error("no session")},r.getSignedInUser=function(){throw Error("no session")},r.signUpUser=function(){throw Error("no session")},r.changePassword=function(){throw Error("no session")},r.signOut=function(){throw Error("no session")},t}(),tn=/*#__PURE__*/function(n){function s(){var t;(t=n.call(this,new $e,{})||this)._config=void 0,t.cloudConfigName=void 0,t.cloudConfig=void 0,t.axios=void 0,t.debugConfig=!1,t.debugAuth=!1,t.debugRequest=!1,t.debugResponse=!1,t.debugError=!1,t.debugQuery=!1,t.debugOptions=!1,t.exp=void 0,t._user=void 0,t.exp=0;var r,e=process.env.OS_DEBUG;if(e)switch(console.log("OS_DEBUG="+e),e=e.toLowerCase()){case"all":t.debugConfig=!0,t.debugAuth=!0,t.debugRequest=!0,t.debugResponse=!0,t.debugError=!0,t.debugQuery=!0,t.debugOptions=!0;break;case"none":case"off":case"false":case"":t.debugConfig=!1,t.debugAuth=!1,t.debugRequest=!1,t.debugResponse=!1,t.debugError=!1,t.debugQuery=!1,t.debugOptions=!1;break;default:r=e.split(","),t.debugConfig=r.includes("config"),t.debugAuth=r.includes("auth"),t.debugRequest=r.includes("request"),t.debugResponse=r.includes("response"),t.debugError=r.includes("error"),t.debugQuery=r.includes("query"),t.debugOptions=r.includes("options"),t.debugConfig||t.debugAuth||t.debugRequest||t.debugResponse||t.debugError||t.debugQuery||t.debugOptions||console.warn("Openscreen: OS_DEBUG environment var has invalid value: '"+process.env.OS_DEBUG+"'")}return t}e(s,n);var o=s.prototype;return o.getSession=function(){return this},o.config=function(t){if(this._config)throw Error("Openscreen: client is already configured");if(!t.key)throw Error("Openscreen: invalid config, provide API key and secret, or email and password");if(!t.secret)throw Error("Openscreen: invalid config, secret is missing");return"string"==typeof t.environment?this.cloudConfigName=t.environment:"object"==typeof t.environment?this.cloudConfig=Promise.resolve(t.environment):this.cloudConfigName="internal-JG0adajZUHU",this._config=t,this},o.getConfig=function(){if(!this._config)throw Error("Openscreen: client must be configured before accessing resources");return this._config},o.getSignedInUser=function(t){try{var r=this;return r.cloudConfigName=t||"internal-JG0adajZUHU",Promise.resolve(r.getCloudConfig()).then(function(t){return r.debugAuth&&console.info("Openscreen AUTH: refreshing using axios cookie"),Promise.resolve(r.getAxios()).then(function(){return Promise.resolve(r.axios.post(t.endpoint+"/auth/session/refresh")).then(function(t){if(403===t.status||500===t.status)throw Error("Openscreen AUTH: User is not signed in");if(200===t.status){var e=t.data,n=e.expires,s=e.user;return r._user=s,r.debugAuth&&console.info("Openscreen AUTH: authorized '"+s.userId+"' until expiry="+n),r.exp=n,s}})})})}catch(t){return Promise.reject(t)}},o.signUpUser=function(t,r){try{var e=this;return e.cloudConfigName=r||"internal-JG0adajZUHU",Promise.resolve(e.getCloudConfig()).then(function(r){return e.debugAuth&&console.info("Openscreen AUTH: signing up User"),Promise.resolve(e.getAxios()).then(function(){return Promise.resolve(e.axios.post(r.endpoint+"/auth/user",t)).then(function(t){if(403===t.status||500===t.status)throw Error("Openscreen AUTH: User Sign Up failed");return(200===t.status||204===t.status)&&(e.debugAuth&&console.info("Openscreen AUTH: Signed up user"),!0)})})})}catch(t){return Promise.reject(t)}},o.authorize=function(){try{var t=this;return Promise.resolve(t.getCloudConfig()).then(function(e){var n;function s(s){if(n)return s;var o,a,i=t.getConfig();if(t.debugConfig){var u=r({},i);u.secret&&(u.secret="*".repeat(u.secret.length)),console.debug("Openscreen CONFIG: "+JSON.stringify(u,null,2))}return t.debugConfig&&console.debug("Openscreen CONFIG: (environment) "+JSON.stringify(e,null,2)),o=i.key,a=i.secret,t.debugAuth&&console.info("Openscreen AUTH: authorizing '"+o+"'"),Promise.resolve(t.getAxios()).then(function(){return Promise.resolve(t.axios.post(e.endpoint+"/auth/session",{email:o,password:a})).then(function(r){if(403===r.status||500===r.status)throw Error("Openscreen AUTH: authentication failed");if(200===r.status){var e=r.data,n=e.expires;t._user=e.user,t.debugAuth&&console.info("Openscreen AUTH: authorized '"+o+"' until expiry="+n),t.exp=n}})})}var o=function(){if(!(t.exp>(new Date).getTime()))return function(){if(0!==t.exp)return t.debugAuth&&console.info("Openscreen AUTH: refreshing using axios cookie"),Promise.resolve(t.getAxios()).then(function(){return Promise.resolve(t.axios.post(e.endpoint+"/auth/session/refresh")).then(function(r){if(403===r.status||500===r.status)throw Error("Openscreen AUTH: Refreshing failed, exiting");if(200===r.status){var e=r.data,s=e.expires,o=e.user;t._user=o,t.debugAuth&&console.info("Openscreen AUTH: authorized '"+o.userId+"' until expiry="+s),t.exp=s,n=1}})})}();n=1}();return o&&o.then?o.then(s):s(o)})}catch(t){return Promise.reject(t)}},o.getUser=function(){return this._user},o.getCloudConfig=function(){try{var r=this;if(!r.cloudConfig){if(!r.cloudConfigName)throw Error("Openscreen: environment name missing");r.cloudConfig=function(r){try{var e=t.create({baseURL:"https://config.openscreen.com",timeout:25e3,responseType:"json",maxContentLength:10240,maxBodyLength:10240,maxRedirects:1,decompress:!0});return Promise.resolve(e.get(r+".json").catch(function(t){throw new Error("Openscreen: unable to load cloud configuration '"+r+"': "+t.message)})).then(function(t){return t.data})}catch(t){return Promise.reject(t)}}(r.cloudConfigName)}return Promise.resolve(r.cloudConfig)}catch(t){return Promise.reject(t)}},o.getAxios=function(){try{var r=this;return r.axios?Promise.resolve(r.axios):Promise.resolve(r.getCloudConfig()).then(function(e){return r.axios=t.create(e.axios||{timeout:25e3,responseType:"json",maxContentLength:1048576,maxBodyLength:1048576,maxRedirects:1,decompress:!0}),t})}catch(t){return Promise.reject(t)}},o.changePassword=function(t,r){try{var e=this;return Promise.resolve(e.getCloudConfig()).then(function(n){return Promise.resolve(e.getAxios()).then(function(){return Promise.resolve(e.axios.post(n.endpoint+"/auth/user/password",{password:t,newPassword:r})).then(function(t){if(200===t.status)return!0;throw e.debugAuth&&console.log("password change failed for the current user, got the error",t.data),new Error("Failed to change password")})})})}catch(t){return Promise.reject(t)}},o.signOut=function(){try{var t=this;return Promise.resolve(t.getCloudConfig()).then(function(r){return Promise.resolve(t.getAxios()).then(function(){return Promise.resolve(t.axios.delete(r.endpoint+"/auth/session")).then(function(r){if(200!==r.status)throw t.debugAuth&&console.log("Sign out failed, response body is ",r.data),new Error("Failed to sign out")})})})}catch(t){return Promise.reject(t)}},s}(Xe);export{s as AccountStatus,o as AccountUserRole,a as AuthMessageId,i as AuthTokenScope,Nr as ChangePasswordRequest,Ar as ConfirmRequest,mr as CreateAccountByUserIdRequest,_ as CreateApiKeyByAccountIdRequest,Ot as CreateAssetByProjectIdRequest,bt as CreateAssetsByProjectIdRequest,mt as CreateContactByAssetIdRequest,_t as CreateContactByProjectIdRequest,ar as CreateContactByScanIdRequest,Tt as CreateContactsByProjectIdRequest,Nt as CreateCustomerPortalSessionRequest,T as CreateInvitationByAccountIdRequest,D as CreateProjectByAccountIdRequest,ft as CreateQrCodeByAssetIdRequest,Dt as CreateQrCodeByProjectIdRequest,wr as CreateSmsResponseRequest,Ut as CreateSmsTemplateByProjectIdRequest,U as CreateUserByInvitationIdRequest,Ir as CreateUserRequest,x as DeleteAccountRequest,Pt as DeleteAssetRequest,At as DeleteContactRequest,M as DeleteContactsByAccountIdRequest,xt as DeleteContactsByProjectIdRequest,L as DeleteInvitationRequest,Mt as DeleteProjectRequest,nr as DeleteQrCodeRequest,jr as DeleteSessionRequest,Lt as DeleteSmsTemplateByProjectIdRequest,q as DeleteUserByAccountIdRequest,cr as GetAccountDetailsRequest,G as GetAccountRequest,fr as GetAccountsByUserIdRequest,Et as GetAccountsOverviewRequest,kt as GetActivityOverviewRequest,H as GetAdvancedAssetReportByAccountIdRequest,qt as GetAdvancedAssetReportByProjectIdRequest,V as GetAdvancedContactReportByAccountIdRequest,Gt as GetAdvancedContactReportByProjectIdRequest,B as GetAdvancedScanReportByAccountIdRequest,Ht as GetAdvancedScanReportByProjectIdRequest,ut as GetApiKeyRequest,ct as GetApiKeySecretRequest,F as GetApiKeysByAccountIdRequest,W as GetAssetExportByAccountIdRequest,Vt as GetAssetExportByProjectIdRequest,lt as GetAssetRequest,Y as GetAssetsByAccountIdRequest,Bt as GetAssetsByProjectIdRequest,K as GetBasicAssetReportByAccountIdRequest,Ft as GetBasicAssetReportByProjectIdRequest,Q as GetBasicContactReportByAccountIdRequest,Wt as GetBasicContactReportByProjectIdRequest,J as GetBasicScanReportByAccountIdRequest,Yt as GetBasicScanReportByProjectIdRequest,z as GetContactExportByAccountIdRequest,Kt as GetContactExportByProjectIdRequest,It as GetContactRequest,Z as GetContactsByAccountIdRequest,dt as GetContactsByAssetIdRequest,Qt as GetContactsByProjectIdRequest,Pr as GetErrorsByUserIdRequest,X as GetInvitationRequest,lr as GetInvitationsByUserIdRequest,$ as GetPricePlanByAccountIdRequest,Ct as GetPricePlansRequest,Jt as GetProjectByProjectIdRequest,tt as GetProjectsByAccountIdRequest,sr as GetQrCodeRequest,rt as GetQrCodesByAccountIdRequest,gt as GetQrCodesByAssetIdRequest,zt as GetQrCodesByProjectIdRequest,et as GetScanExportByAccountIdRequest,Zt as GetScanExportByProjectIdRequest,ir as GetScanRequest,nt as GetScansByAccountIdRequest,vt as GetScansByAssetIdRequest,Xt as GetScansByProjectIdRequest,kr as GetSessionRefreshRequest,Er as GetSessionRequest,$t as GetSmsTemplateByProjectIdRequest,tr as GetSmsTemplatesByProjectIdRequest,hr as GetUserDetailsRequest,dr as GetUserRequest,gr as GetUserSettingsByUserIdRequest,st as GetUsersByAccountIdRequest,Rt as GetUsersOverviewRequest,yt as LinkContactToAssetRequest,tn as Openscreen,u as PricePlanName,c as PricePlanPaymentPeriod,h as PricePlanReporting,p as ProjectStatus,m as QrCodeCornerDotTypes,f as QrCodeCornerSquareTypes,P as QrCodeDotTypes,l as QrCodeDynamicRedirectType,d as QrCodeErrorCorrectionLevel,g as QrCodeGradientTypes,v as QrCodeIntentType,y as QrCodeLocatorKeyType,w as QrCodeStatus,S as QrCodeType,Rr as ResendConfirmationRequest,ht as ResetApiKeySecretRequest,Cr as ResetPasswordRequest,Ur as SdkAccountAdvancedAssetsReportResources,xr as SdkAccountAdvancedContactsReportResources,Mr as SdkAccountAdvancedScansReportResources,Or as SdkAccountApikeysResources,Lr as SdkAccountAssetsExportResources,qr as SdkAccountAssetsResources,Gr as SdkAccountBasicAssetsReportResources,Hr as SdkAccountBasicContactsReportResources,Vr as SdkAccountBasicScansReportResources,Tr as SdkAccountContactsBatchResources,Br as SdkAccountContactsExportResources,Fr as SdkAccountContactsResources,br as SdkAccountInvitationsResources,Wr as SdkAccountPricePlanResources,_r as SdkAccountProjectsResources,Yr as SdkAccountQrCodesResources,zr as SdkAccountResource,Kr as SdkAccountScansExportResources,Qr as SdkAccountScansResources,Dr as SdkAccountUserResource,Jr as SdkAccountUsersResources,te as SdkApikeyResource,$r as SdkApikeySecretResources,se as SdkAssetContactResource,re as SdkAssetContactsResources,ee as SdkAssetQrCodesResources,oe as SdkAssetResource,ne as SdkAssetScansResources,Ye as SdkAuthConfirmResources,Qe as SdkAuthSessionResources,Ke as SdkAuthUserResources,ae as SdkBillingSessionResource,ze as SdkConfirmationAuthUserResources,ie as SdkContactResource,Xr as SdkInvitationResource,Zr as SdkInvitationUsersResources,ue as SdkOverviewAccountsResources,ce as SdkOverviewActivityResources,he as SdkOverviewUsersResources,We as SdkPasswordAuthUserResources,pe as SdkPricePlansResources,ye as SdkProjectAdvancedAssetsReportResources,we as SdkProjectAdvancedContactsReportResources,Se as SdkProjectAdvancedScansReportResources,fe as SdkProjectAssetsBatchResources,Ne as SdkProjectAssetsExportResources,me as SdkProjectAssetsResources,Ae as SdkProjectBasicAssetsReportResources,Ie as SdkProjectBasicContactsReportResources,je as SdkProjectBasicScansReportResources,le as SdkProjectContactsBatchResources,Ee as SdkProjectContactsExportResources,Pe as SdkProjectContactsResources,de as SdkProjectQrCodesResources,Ce as SdkProjectResource,ke as SdkProjectScansExportResources,Re as SdkProjectScansResources,ve as SdkProjectSmsTemplateResource,ge as SdkProjectSmsTemplatesResources,Oe as SdkQrCodeResource,Je as SdkRefreshAuthSessionResources,Ze as SdkResetAuthUserResources,Xe as SdkResources,be as SdkScanContactsResources,Te as SdkScanResource,_e as SdkScanSmsResources,De as SdkSearchAccountResource,xe as SdkSearchAccountsResources,Ue as SdkSearchUserResource,Me as SdkUserAccountsResources,Le as SdkUserErrorsResources,qe as SdkUserInvitationsResources,He as SdkUserPathResource,Ge as SdkUserPathSettingsResources,Ve as SdkUserResource,Be as SdkWebhookSmsResources,Fe as SdkWebhookSmsStatusResources,pr as SearchAccountsRequest,ur as SendSmsByScanIdRequest,vr as SetUserSettingsByUserIdRequest,Sr as SmsStatusUpdateRequest,wt as UnlinkContactToAssetRequest,ot as UpdateAccountRequest,pt as UpdateApiKeyRequest,St as UpdateAssetRequest,jt as UpdateContactRequest,at as UpdatePricePlanByAccountIdRequest,rr as UpdateProjectByProjectIdRequest,or as UpdateQrCodeRequest,er as UpdateSmsTemplateRequest,it as UpdateUserByAccountIdRequest,yr as UpdateUserRequest,N as UserCredentialsStatus,A as UserGroups,I as UserSettingsDomain};
|
|
2
2
|
//# sourceMappingURL=index.modern.js.map
|