SDKs
node.js SDK
Floating API
1 min
class floatingapiv2 { constructor(config floatingapiconfig); get tokenexpirydate() dayjs; setloglevel(level loglevel); gethardwareid(algorithm hardwareidalgorithm = this config hardwareidmethod ?? 0) string; async ping() boolean; async authadduser(user user); async authchangepassword(body changepasswordreq) boolean; async authinitialpassword(body setpasswordreq) boolean; async authlogin(body loginuser) loginresponse; async authuserslist() user\[]; async authuserdelete(id number) boolean; async getconfig() cloudconfig; async patchconfig(input cloudconfigupdate) boolean; async bundleactivate(body bundlerequest) activatebundleresponse; async bundledeactivate(id number) deactivatebundleresponse; async bundleofflineactivationgenerate(body offlinerequestinput) generateofflinerequestresponse; async bundleofflinedeactivationgenerate(body offlinerequestinput) generateofflinerequestresponse; async bundleofflineactivationupload(product string, file file | blob) activatebundleresponse; async listlicenses(params? { product? string }) licensedata\[]; async activatelicense(body addlicenserequest) activatelicenseresponse; async getlicensebyid(id string) licensedata; async deactivatelicense(id number) boolean; async addlicenseconsumption(id number, body addconsumptionrequest) consumptionresponse; async addfeatureconsumption(id number, body addfeatureconsumptionrequest) featureconsumptionresponse; async listlicensefeatureusers(id number) allfeatureusersresponse; async registerfeatureforuser(id number, body registerfeaturerequest) registerfeatureresponse; async releasefeatureforuser(id number, body unregisterfeaturerequest) boolean; async releasefeatureforallusers(id number, body allfeatureusersrequest) featurereleasedallresponse; async listlicenseusers(id number) floatinguser\[]; async registerusertolicense(id number, body registerrequestbody) licensedata; async unregisteruserfromlicense(id number, body usernamerequest) boolean; async unregisterallusersfromlicense(id number) unregisterallusersresponse; async borrowlicenseforuser(id number, body borrowuserrequest) borrowresponse; async offlineactivationgenerate(body offlinerequestinput) generateofflinerequestresponse; async offlineactivationupload(product string, file file | blob) activatebundleresponse | activatelicenseresponse; async offlinedeactivationgenerate(body offlinerequestinput) generateofflinerequestresponse; async airgapgenerateactivation(body generateairgaprequestbody) airgapactivationcoderesponse; async airgapgeneratedeactivation(body generateairgapdeactivationrequestbody) airgapdeactivationcoderesponse; async airgapdeactivate(body deactivateairgaprequestbody) airgapedeactivatedresponse; async airgapactivate(file file | blob, jsonfile file | blob) airgapactivatedresponse; async getsyncconfig() syncconfig; async setsyncmode(body syncenablereq) boolean; async triggersync() boolean; } type floatingapiconfig = { apipath string, hardwareid? string, hardwareidmethod? number, loglevel? loglevel, proxy? axiosproxyconfig, certchain string, disableuserauth? boolean, } & ( { apikey string, sharedkey string } | { clientid string, clientsecret string, tokenurl string } ); for declarations of types referenced here see type declarations docid\ mzzqrupoqeqxnuuwsxniz