@fusionauth/typescript-client
Version:
A typescript implementation of the FusionAuth client.
1 lines • 84.4 kB
JavaScript
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.FusionAuth=f()}})(function(){var define,module,exports;return function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r}()({1:[function(require,module,exports){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,i){void 0===i&&(i=t),e[i]=r[t]}),__exportStar=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||r.hasOwnProperty(t)||__createBinding(r,e,t)};Object.defineProperty(exports,"__esModule",{value:!0});var FusionAuthClient_1=require("./src/FusionAuthClient");exports.default=FusionAuthClient_1.default,__exportStar(require("./src/FusionAuthClient"),exports),__exportStar(require("./src/IRESTClient"),exports),__exportStar(require("./src/DefaultRESTClientBuilder"),exports),__exportStar(require("./src/ClientResponse"),exports),__exportStar(require("./src/IRESTClient"),exports),__exportStar(require("./src/IRESTClientBuilder"),exports)},{"./src/ClientResponse":3,"./src/DefaultRESTClientBuilder":5,"./src/FusionAuthClient":6,"./src/IRESTClient":7,"./src/IRESTClientBuilder":8}],2:[function(require,module,exports){(function(global){(function(){"use strict";var getGlobal=function(){if(typeof self!=="undefined"){return self}if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}throw new Error("unable to locate global object")};var globalObject=getGlobal();module.exports=exports=globalObject.fetch;if(globalObject.fetch){exports.default=globalObject.fetch.bind(globalObject)}exports.Headers=globalObject.Headers;exports.Request=globalObject.Request;exports.Response=globalObject.Response}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],3:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var ClientResponse=function(){function e(){}return e.prototype.wasSuccessful=function(){return this.statusCode>=200&&this.statusCode<300},e}();exports.default=ClientResponse},{}],4:[function(require,module,exports){(function(global){(function(){"use strict";var __awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}u((r=r.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(exports,"__esModule",{value:!0});var ClientResponse_1=require("./ClientResponse"),node_fetch_1=require("node-fetch"),url_1="undefined"!=typeof window?window.window:"undefined"!=typeof global?global.window:null,DefaultRESTClient=function(){function t(e){this.host=e,this.headers={},this.parameters={},this.responseHandler=t.JSONResponseHandler,this.errorResponseHandler=t.ErrorJSONResponseHandler}return t.prototype.withAuthorization=function(t){return null==t?this:(this.withHeader("Authorization",t),this)},t.prototype.withUriSegment=function(t){return null==t?this:(null===this.uri&&(this.uri=""),"/"!==this.uri.charAt(this.uri.length-1)&&(this.uri+="/"),this.uri=this.uri+t,this)},t.prototype.getFullUrl=function(){return this.host+this.uri+this.getQueryString()},t.prototype.withFormData=function(t){var e=new url_1.URLSearchParams;return t&&(t.forEach(function(t,n,r){t&&t.length>0&&"null"!=t&&"undefined"!=t&&e.set(n,t)}),t=e),this.body=t,this.withHeader("Content-Type","application/x-www-form-urlencoded"),this},t.prototype.withHeader=function(t,e){return this.headers[t]=e,this},t.prototype.withJSONBody=function(t){return this.body=JSON.stringify(t),this.withHeader("Content-Type","application/json"),this},t.prototype.withMethod=function(t){return this.method=t,this},t.prototype.withUri=function(t){return this.uri=t,this},t.prototype.withParameter=function(t,e){return this.parameters[t]=e,this},t.prototype.withCredentials=function(t){return this.credentials=t,this},t.prototype.withResponseHandler=function(t){return this.responseHandler=t,this},t.prototype.withErrorResponseHandler=function(t){return this.errorResponseHandler=t,this},t.prototype.go=function(){return __awaiter(this,void 0,void 0,function(){var t,e,n;return __generator(this,function(r){switch(r.label){case 0:t=new ClientResponse_1.default,r.label=1;case 1:return r.trys.push([1,7,,8]),[4,node_fetch_1.default(this.getFullUrl(),{method:this.method,headers:this.headers,body:this.body,credentials:this.credentials})];case 2:return(e=r.sent()).ok?[4,this.responseHandler(e)]:[3,4];case 3:return[2,r.sent()];case 4:return[4,this.errorResponseHandler(e)];case 5:throw r.sent();case 6:return[3,8];case 7:if((n=r.sent())instanceof ClientResponse_1.default)throw n;throw e&&(t.statusCode=e.status),t.exception=n,t;case 8:return[2]}})})},t.prototype.getQueryString=function(){var t="";for(var e in this.parameters)t+=0===t.length?"?":"&",t+=e+"="+encodeURIComponent(this.parameters[e]);return t},t.JSONResponseHandler=function(t){return __awaiter(this,void 0,void 0,function(){var e,n,r;return __generator(this,function(i){switch(i.label){case 0:return(e=new ClientResponse_1.default).statusCode=t.status,(n=t.headers.get("content-type"))&&n.startsWith("application/json")?(r=e,[4,t.json()]):[3,2];case 1:r.response=i.sent(),i.label=2;case 2:return[2,e]}})})},t.ErrorJSONResponseHandler=function(t){return __awaiter(this,void 0,void 0,function(){var e,n,r;return __generator(this,function(i){switch(i.label){case 0:return(e=new ClientResponse_1.default).statusCode=t.status,(n=t.headers.get("content-type"))&&n.startsWith("application/json")?(r=e,[4,t.json()]):[3,2];case 1:r.exception=i.sent(),i.label=2;case 2:return[2,e]}})})},t}();exports.default=DefaultRESTClient}).call(this)}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./ClientResponse":3,"node-fetch":2}],5:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var DefaultRESTClient_1=require("./DefaultRESTClient"),DefaultRESTClientBuilder=function(){function e(){}return e.prototype.build=function(e){return new DefaultRESTClient_1.default(e)},e}();exports.default=DefaultRESTClientBuilder},{"./DefaultRESTClient":4}],6:[function(require,module,exports){(function(global){(function(){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IdentityProviderLoginMethod=exports.ClientAuthenticationMethod=exports.OAuthErrorReason=exports.WebAuthnWorkflow=exports.Oauth2AuthorizedURLValidationPolicy=exports.LogoutBehavior=exports.RateLimitedRequestType=exports.CanonicalizationMethod=exports.SecureGeneratorType=exports.VerificationStrategy=exports.UniqueUsernameStrategy=exports.LDAPSecurityMethod=exports.TOTPAlgorithm=exports.EventType=exports.IdentityProviderType=exports.MessengerType=exports.ExpiryUnit=exports.EmailSecurityType=exports.ChangePasswordReason=exports.SteamAPIMode=exports.UserVerificationRequirement=exports.TransactionType=exports.FamilyRole=exports.KeyUse=exports.Algorithm=exports.EventLogType=exports.BreachAction=exports.IdentityProviderLinkingStrategy=exports.SAMLLogoutBehavior=exports.Sort=exports.OAuthErrorType=exports.LambdaEngineType=exports.UserActionPhase=exports.UnverifiedBehavior=exports.RefreshTokenExpirationPolicy=exports.RegistrationType=exports.LoginIdType=exports.CoseEllipticCurve=exports.AuthenticatorAttachment=exports.MultiFactorLoginPolicy=exports.ConnectorType=exports.KeyType=exports.AttestationType=exports.FormType=exports.KeyAlgorithm=exports.CaptchaMethod=exports.DeviceType=exports.RefreshTokenUsagePolicy=exports.ClientAuthenticationPolicy=exports.ResidentKeyRequirement=exports.AuthenticationThreats=exports.ObjectState=exports.AttestationConveyancePreference=exports.LambdaType=exports.CoseAlgorithmIdentifier=exports.HTTPMethod=exports.FormFieldAdminPolicy=exports.PublicKeyCredentialType=exports.SAMLv2DestinationAssertionPolicy=exports.CoseKeyType=exports.BreachMatchMode=exports.FormControl=exports.ContentStatus=exports.MessageType=exports.IPAccessControlEntryAction=exports.AuthenticatorAttachmentPreference=exports.XMLSignatureLocation=exports.TokenType=exports.ProofKeyForCodeExchangePolicy=exports.ReactorFeatureStatus=exports.GrantType=exports.UserState=exports.ApplicationMultiFactorTrustPolicy=exports.ConsentStatus=exports.BreachedPasswordStatus=exports.FormDataType=exports.FusionAuthClient=void 0;var FormDataType,BreachedPasswordStatus,ConsentStatus,ApplicationMultiFactorTrustPolicy,UserState,GrantType,ReactorFeatureStatus,ProofKeyForCodeExchangePolicy,TokenType,XMLSignatureLocation,AuthenticatorAttachmentPreference,IPAccessControlEntryAction,MessageType,ContentStatus,FormControl,BreachMatchMode,CoseKeyType,SAMLv2DestinationAssertionPolicy,PublicKeyCredentialType,FormFieldAdminPolicy,HTTPMethod,CoseAlgorithmIdentifier,LambdaType,AttestationConveyancePreference,ObjectState,AuthenticationThreats,ResidentKeyRequirement,ClientAuthenticationPolicy,RefreshTokenUsagePolicy,DeviceType,CaptchaMethod,KeyAlgorithm,FormType,AttestationType,KeyType,ConnectorType,MultiFactorLoginPolicy,AuthenticatorAttachment,CoseEllipticCurve,LoginIdType,RegistrationType,RefreshTokenExpirationPolicy,UnverifiedBehavior,UserActionPhase,LambdaEngineType,OAuthErrorType,Sort,SAMLLogoutBehavior,IdentityProviderLinkingStrategy,BreachAction,EventLogType,Algorithm,KeyUse,FamilyRole,TransactionType,UserVerificationRequirement,SteamAPIMode,ChangePasswordReason,EmailSecurityType,ExpiryUnit,MessengerType,IdentityProviderType,EventType,TOTPAlgorithm,LDAPSecurityMethod,UniqueUsernameStrategy,VerificationStrategy,SecureGeneratorType,CanonicalizationMethod,RateLimitedRequestType,LogoutBehavior,Oauth2AuthorizedURLValidationPolicy,WebAuthnWorkflow,OAuthErrorReason,ClientAuthenticationMethod,IdentityProviderLoginMethod,DefaultRESTClientBuilder_1=require("./DefaultRESTClientBuilder"),url_1="undefined"!=typeof window?window.window:"undefined"!=typeof global?global.window:null,FusionAuthClient=function(){function t(t,e,i){this.apiKey=t,this.host=e,this.tenantId=i,this.clientBuilder=new DefaultRESTClientBuilder_1.default}return t.prototype.setTenantId=function(t){return this.tenantId=t,this},t.prototype.setRequestCredentials=function(t){return this.credentials=t,this},t.prototype.actionUser=function(t){return this.start().withUri("/api/user/action").withJSONBody(t).withMethod("POST").go()},t.prototype.activateReactor=function(t){return this.start().withUri("/api/reactor").withJSONBody(t).withMethod("POST").go()},t.prototype.addUserToFamily=function(t,e){return this.start().withUri("/api/user/family").withUriSegment(t).withJSONBody(e).withMethod("PUT").go()},t.prototype.approveDevice=function(t,e,i,r){var o=new url_1.URLSearchParams;return o.append("client_id",t),o.append("client_secret",e),o.append("token",i),o.append("user_code",r),this.start().withUri("/oauth2/device/approve").withFormData(o).withMethod("POST").go()},t.prototype.cancelAction=function(t,e){return this.start().withUri("/api/user/action").withUriSegment(t).withJSONBody(e).withMethod("DELETE").go()},t.prototype.changePassword=function(t,e){return this.startAnonymous().withUri("/api/user/change-password").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.changePasswordByIdentity=function(t){return this.start().withUri("/api/user/change-password").withJSONBody(t).withMethod("POST").go()},t.prototype.checkChangePasswordUsingId=function(t){return this.startAnonymous().withUri("/api/user/change-password").withUriSegment(t).withMethod("GET").go()},t.prototype.checkChangePasswordUsingJWT=function(t){return this.startAnonymous().withUri("/api/user/change-password").withAuthorization("Bearer "+t).withMethod("GET").go()},t.prototype.checkChangePasswordUsingLoginId=function(t){return this.start().withUri("/api/user/change-password").withParameter("username",t).withMethod("GET").go()},t.prototype.clientCredentialsGrant=function(t,e,i){var r=new url_1.URLSearchParams;return r.append("client_id",t),r.append("client_secret",e),r.append("grant_type","client_credentials"),r.append("scope",i),this.startAnonymous().withUri("/oauth2/token").withFormData(r).withMethod("POST").go()},t.prototype.commentOnUser=function(t){return this.start().withUri("/api/user/comment").withJSONBody(t).withMethod("POST").go()},t.prototype.completeWebAuthnAssertion=function(t){return this.startAnonymous().withUri("/api/webauthn/assert").withJSONBody(t).withMethod("POST").go()},t.prototype.completeWebAuthnLogin=function(t){return this.startAnonymous().withUri("/api/webauthn/login").withJSONBody(t).withMethod("POST").go()},t.prototype.completeWebAuthnRegistration=function(t){return this.start().withUri("/api/webauthn/register/complete").withJSONBody(t).withMethod("POST").go()},t.prototype.createAPIKey=function(t,e){return this.start().withUri("/api/api-key").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createApplication=function(t,e){return this.start().withUri("/api/application").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createApplicationRole=function(t,e,i){return this.start().withUri("/api/application").withUriSegment(t).withUriSegment("role").withUriSegment(e).withJSONBody(i).withMethod("POST").go()},t.prototype.createAuditLog=function(t){return this.start().withUri("/api/system/audit-log").withJSONBody(t).withMethod("POST").go()},t.prototype.createConnector=function(t,e){return this.start().withUri("/api/connector").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createConsent=function(t,e){return this.start().withUri("/api/consent").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createEmailTemplate=function(t,e){return this.start().withUri("/api/email/template").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createEntity=function(t,e){return this.start().withUri("/api/entity").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createEntityType=function(t,e){return this.start().withUri("/api/entity/type").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createEntityTypePermission=function(t,e,i){return this.start().withUri("/api/entity/type").withUriSegment(t).withUriSegment("permission").withUriSegment(e).withJSONBody(i).withMethod("POST").go()},t.prototype.createFamily=function(t,e){return this.start().withUri("/api/user/family").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createForm=function(t,e){return this.start().withUri("/api/form").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createFormField=function(t,e){return this.start().withUri("/api/form/field").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createGroup=function(t,e){return this.start().withUri("/api/group").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createGroupMembers=function(t){return this.start().withUri("/api/group/member").withJSONBody(t).withMethod("POST").go()},t.prototype.createIPAccessControlList=function(t,e){return this.start().withUri("/api/ip-acl").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createIdentityProvider=function(t,e){return this.start().withUri("/api/identity-provider").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createLambda=function(t,e){return this.start().withUri("/api/lambda").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createMessageTemplate=function(t,e){return this.start().withUri("/api/message/template").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createMessenger=function(t,e){return this.start().withUri("/api/messenger").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createTenant=function(t,e){return this.start().withUri("/api/tenant").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createTheme=function(t,e){return this.start().withUri("/api/theme").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createUser=function(t,e){return this.start().withUri("/api/user").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createUserAction=function(t,e){return this.start().withUri("/api/user-action").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createUserActionReason=function(t,e){return this.start().withUri("/api/user-action-reason").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createUserConsent=function(t,e){return this.start().withUri("/api/user/consent").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createUserLink=function(t){return this.start().withUri("/api/identity-provider/link").withJSONBody(t).withMethod("POST").go()},t.prototype.createWebhook=function(t,e){return this.start().withUri("/api/webhook").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.deactivateApplication=function(t){return this.start().withUri("/api/application").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deactivateReactor=function(){return this.start().withUri("/api/reactor").withMethod("DELETE").go()},t.prototype.deactivateUser=function(t){return this.start().withUri("/api/user").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deactivateUserAction=function(t){return this.start().withUri("/api/user-action").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deactivateUsers=function(t){return this.start().withUri("/api/user/bulk").withParameter("userId",t).withParameter("dryRun",!1).withParameter("hardDelete",!1).withMethod("DELETE").go()},t.prototype.deactivateUsersByIds=function(t){return this.start().withUri("/api/user/bulk").withParameter("userId",t).withParameter("dryRun",!1).withParameter("hardDelete",!1).withMethod("DELETE").go()},t.prototype.deleteAPIKey=function(t){return this.start().withUri("/api/api-key").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteApplication=function(t){return this.start().withUri("/api/application").withUriSegment(t).withParameter("hardDelete",!0).withMethod("DELETE").go()},t.prototype.deleteApplicationRole=function(t,e){return this.start().withUri("/api/application").withUriSegment(t).withUriSegment("role").withUriSegment(e).withMethod("DELETE").go()},t.prototype.deleteConnector=function(t){return this.start().withUri("/api/connector").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteConsent=function(t){return this.start().withUri("/api/consent").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteEmailTemplate=function(t){return this.start().withUri("/api/email/template").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteEntity=function(t){return this.start().withUri("/api/entity").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteEntityGrant=function(t,e,i){return this.start().withUri("/api/entity").withUriSegment(t).withUriSegment("grant").withParameter("recipientEntityId",e).withParameter("userId",i).withMethod("DELETE").go()},t.prototype.deleteEntityType=function(t){return this.start().withUri("/api/entity/type").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteEntityTypePermission=function(t,e){return this.start().withUri("/api/entity/type").withUriSegment(t).withUriSegment("permission").withUriSegment(e).withMethod("DELETE").go()},t.prototype.deleteForm=function(t){return this.start().withUri("/api/form").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteFormField=function(t){return this.start().withUri("/api/form/field").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteGroup=function(t){return this.start().withUri("/api/group").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteGroupMembers=function(t){return this.start().withUri("/api/group/member").withJSONBody(t).withMethod("DELETE").go()},t.prototype.deleteIPAccessControlList=function(t){return this.start().withUri("/api/ip-acl").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteIdentityProvider=function(t){return this.start().withUri("/api/identity-provider").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteKey=function(t){return this.start().withUri("/api/key").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteLambda=function(t){return this.start().withUri("/api/lambda").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteMessageTemplate=function(t){return this.start().withUri("/api/message/template").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteMessenger=function(t){return this.start().withUri("/api/messenger").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteRegistration=function(t,e){return this.start().withUri("/api/user/registration").withUriSegment(t).withUriSegment(e).withMethod("DELETE").go()},t.prototype.deleteRegistrationWithRequest=function(t,e,i){return this.start().withUri("/api/user/registration").withUriSegment(t).withUriSegment(e).withJSONBody(i).withMethod("DELETE").go()},t.prototype.deleteTenant=function(t){return this.start().withUri("/api/tenant").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteTenantAsync=function(t){return this.start().withUri("/api/tenant").withUriSegment(t).withParameter("async",!0).withMethod("DELETE").go()},t.prototype.deleteTenantWithRequest=function(t,e){return this.start().withUri("/api/tenant").withUriSegment(t).withJSONBody(e).withMethod("DELETE").go()},t.prototype.deleteTheme=function(t){return this.start().withUri("/api/theme").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteUser=function(t){return this.start().withUri("/api/user").withUriSegment(t).withParameter("hardDelete",!0).withMethod("DELETE").go()},t.prototype.deleteUserAction=function(t){return this.start().withUri("/api/user-action").withUriSegment(t).withParameter("hardDelete",!0).withMethod("DELETE").go()},t.prototype.deleteUserActionReason=function(t){return this.start().withUri("/api/user-action-reason").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteUserLink=function(t,e,i){return this.start().withUri("/api/identity-provider/link").withParameter("identityProviderId",t).withParameter("identityProviderUserId",e).withParameter("userId",i).withMethod("DELETE").go()},t.prototype.deleteUserWithRequest=function(t,e){return this.start().withUri("/api/user").withUriSegment(t).withJSONBody(e).withMethod("DELETE").go()},t.prototype.deleteUsers=function(t){return this.start().withUri("/api/user/bulk").withJSONBody(t).withMethod("DELETE").go()},t.prototype.deleteUsersByQuery=function(t){return this.start().withUri("/api/user/bulk").withJSONBody(t).withMethod("DELETE").go()},t.prototype.deleteWebAuthnCredential=function(t){return this.start().withUri("/api/webauthn").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deleteWebhook=function(t){return this.start().withUri("/api/webhook").withUriSegment(t).withMethod("DELETE").go()},t.prototype.disableTwoFactor=function(t,e,i){return this.start().withUri("/api/user/two-factor").withUriSegment(t).withParameter("methodId",e).withParameter("code",i).withMethod("DELETE").go()},t.prototype.disableTwoFactorWithRequest=function(t,e){return this.start().withUri("/api/user/two-factor").withUriSegment(t).withJSONBody(e).withMethod("DELETE").go()},t.prototype.enableTwoFactor=function(t,e){return this.start().withUri("/api/user/two-factor").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.exchangeOAuthCodeForAccessToken=function(t,e,i,r){var o=new url_1.URLSearchParams;return o.append("code",t),o.append("client_id",e),o.append("client_secret",i),o.append("grant_type","authorization_code"),o.append("redirect_uri",r),this.startAnonymous().withUri("/oauth2/token").withFormData(o).withMethod("POST").go()},t.prototype.exchangeOAuthCodeForAccessTokenUsingPKCE=function(t,e,i,r,o){var n=new url_1.URLSearchParams;return n.append("code",t),n.append("client_id",e),n.append("client_secret",i),n.append("grant_type","authorization_code"),n.append("redirect_uri",r),n.append("code_verifier",o),this.startAnonymous().withUri("/oauth2/token").withFormData(n).withMethod("POST").go()},t.prototype.exchangeRefreshTokenForAccessToken=function(t,e,i,r,o){var n=new url_1.URLSearchParams;return n.append("refresh_token",t),n.append("client_id",e),n.append("client_secret",i),n.append("grant_type","refresh_token"),n.append("scope",r),n.append("user_code",o),this.startAnonymous().withUri("/oauth2/token").withFormData(n).withMethod("POST").go()},t.prototype.exchangeRefreshTokenForJWT=function(t){return this.startAnonymous().withUri("/api/jwt/refresh").withJSONBody(t).withMethod("POST").go()},t.prototype.exchangeUserCredentialsForAccessToken=function(t,e,i,r,o,n){var a=new url_1.URLSearchParams;return a.append("username",t),a.append("password",e),a.append("client_id",i),a.append("client_secret",r),a.append("grant_type","password"),a.append("scope",o),a.append("user_code",n),this.startAnonymous().withUri("/oauth2/token").withFormData(a).withMethod("POST").go()},t.prototype.forgotPassword=function(t){return this.start().withUri("/api/user/forgot-password").withJSONBody(t).withMethod("POST").go()},t.prototype.generateEmailVerificationId=function(t){return this.start().withUri("/api/user/verify-email").withParameter("email",t).withParameter("sendVerifyEmail",!1).withMethod("PUT").go()},t.prototype.generateKey=function(t,e){return this.start().withUri("/api/key/generate").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.generateRegistrationVerificationId=function(t,e){return this.start().withUri("/api/user/verify-registration").withParameter("email",t).withParameter("sendVerifyPasswordEmail",!1).withParameter("applicationId",e).withMethod("PUT").go()},t.prototype.generateTwoFactorRecoveryCodes=function(t){return this.start().withHeader("Content-Type","text/plain").withUri("/api/user/two-factor/recovery-code").withUriSegment(t).withMethod("POST").go()},t.prototype.generateTwoFactorSecret=function(){return this.start().withUri("/api/two-factor/secret").withMethod("GET").go()},t.prototype.generateTwoFactorSecretUsingJWT=function(t){return this.startAnonymous().withUri("/api/two-factor/secret").withAuthorization("Bearer "+t).withMethod("GET").go()},t.prototype.identityProviderLogin=function(t){return this.startAnonymous().withUri("/api/identity-provider/login").withJSONBody(t).withMethod("POST").go()},t.prototype.importKey=function(t,e){return this.start().withUri("/api/key/import").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.importRefreshTokens=function(t){return this.start().withUri("/api/user/refresh-token/import").withJSONBody(t).withMethod("POST").go()},t.prototype.importUsers=function(t){return this.start().withUri("/api/user/import").withJSONBody(t).withMethod("POST").go()},t.prototype.importWebAuthnCredential=function(t){return this.start().withUri("/api/webauthn/import").withJSONBody(t).withMethod("POST").go()},t.prototype.introspectAccessToken=function(t,e){var i=new url_1.URLSearchParams;return i.append("client_id",t),i.append("token",e),this.startAnonymous().withUri("/oauth2/introspect").withFormData(i).withMethod("POST").go()},t.prototype.introspectClientCredentialsAccessToken=function(t){var e=new url_1.URLSearchParams;return e.append("token",t),this.startAnonymous().withUri("/oauth2/introspect").withFormData(e).withMethod("POST").go()},t.prototype.issueJWT=function(t,e,i){return this.startAnonymous().withUri("/api/jwt/issue").withAuthorization("Bearer "+e).withParameter("applicationId",t).withParameter("refreshToken",i).withMethod("GET").go()},t.prototype.login=function(t){return this.start().withUri("/api/login").withJSONBody(t).withMethod("POST").go()},t.prototype.loginPing=function(t,e,i){return this.start().withUri("/api/login").withUriSegment(t).withUriSegment(e).withParameter("ipAddress",i).withMethod("PUT").go()},t.prototype.loginPingWithRequest=function(t){return this.start().withUri("/api/login").withJSONBody(t).withMethod("PUT").go()},t.prototype.logout=function(t,e){return this.startAnonymous().withHeader("Content-Type","text/plain").withUri("/api/logout").withParameter("global",t).withParameter("refreshToken",e).withMethod("POST").go()},t.prototype.logoutWithRequest=function(t){return this.startAnonymous().withUri("/api/logout").withJSONBody(t).withMethod("POST").go()},t.prototype.lookupIdentityProvider=function(t){return this.start().withUri("/api/identity-provider/lookup").withParameter("domain",t).withMethod("GET").go()},t.prototype.modifyAction=function(t,e){return this.start().withUri("/api/user/action").withUriSegment(t).withJSONBody(e).withMethod("PUT").go()},t.prototype.passwordlessLogin=function(t){return this.startAnonymous().withUri("/api/passwordless/login").withJSONBody(t).withMethod("POST").go()},t.prototype.patchAPIKey=function(t,e){return this.start().withUri("/api/api-key").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.patchApplication=function(t,e){return this.start().withUri("/api/application").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchApplicationRole=function(t,e,i){return this.start().withUri("/api/application").withUriSegment(t).withUriSegment("role").withUriSegment(e).withJSONBody(i).withMethod("PATCH").go()},t.prototype.patchConnector=function(t,e){return this.start().withUri("/api/connector").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchConsent=function(t,e){return this.start().withUri("/api/consent").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchEmailTemplate=function(t,e){return this.start().withUri("/api/email/template").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchEntityType=function(t,e){return this.start().withUri("/api/entity/type").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchGroup=function(t,e){return this.start().withUri("/api/group").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchIdentityProvider=function(t,e){return this.start().withUri("/api/identity-provider").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchIntegrations=function(t){return this.start().withUri("/api/integration").withJSONBody(t).withMethod("PATCH").go()},t.prototype.patchLambda=function(t,e){return this.start().withUri("/api/lambda").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchMessageTemplate=function(t,e){return this.start().withUri("/api/message/template").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchMessenger=function(t,e){return this.start().withUri("/api/messenger").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchRegistration=function(t,e){return this.start().withUri("/api/user/registration").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchSystemConfiguration=function(t){return this.start().withUri("/api/system-configuration").withJSONBody(t).withMethod("PATCH").go()},t.prototype.patchTenant=function(t,e){return this.start().withUri("/api/tenant").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchTheme=function(t,e){return this.start().withUri("/api/theme").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchUser=function(t,e){return this.start().withUri("/api/user").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchUserAction=function(t,e){return this.start().withUri("/api/user-action").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchUserActionReason=function(t,e){return this.start().withUri("/api/user-action-reason").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchUserConsent=function(t,e){return this.start().withUri("/api/user/consent").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.reactivateApplication=function(t){return this.start().withUri("/api/application").withUriSegment(t).withParameter("reactivate",!0).withMethod("PUT").go()},t.prototype.reactivateUser=function(t){return this.start().withUri("/api/user").withUriSegment(t).withParameter("reactivate",!0).withMethod("PUT").go()},t.prototype.reactivateUserAction=function(t){return this.start().withUri("/api/user-action").withUriSegment(t).withParameter("reactivate",!0).withMethod("PUT").go()},t.prototype.reconcileJWT=function(t){return this.startAnonymous().withUri("/api/jwt/reconcile").withJSONBody(t).withMethod("POST").go()},t.prototype.refreshEntitySearchIndex=function(){return this.start().withUri("/api/entity/search").withMethod("PUT").go()},t.prototype.refreshUserSearchIndex=function(){return this.start().withUri("/api/user/search").withMethod("PUT").go()},t.prototype.regenerateReactorKeys=function(){return this.start().withUri("/api/reactor").withMethod("PUT").go()},t.prototype.register=function(t,e){return this.start().withUri("/api/user/registration").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.reindex=function(t){return this.start().withUri("/api/system/reindex").withJSONBody(t).withMethod("POST").go()},t.prototype.removeUserFromFamily=function(t,e){return this.start().withUri("/api/user/family").withUriSegment(t).withUriSegment(e).withMethod("DELETE").go()},t.prototype.resendEmailVerification=function(t){return this.start().withUri("/api/user/verify-email").withParameter("email",t).withMethod("PUT").go()},t.prototype.resendEmailVerificationWithApplicationTemplate=function(t,e){return this.start().withUri("/api/user/verify-email").withParameter("applicationId",t).withParameter("email",e).withMethod("PUT").go()},t.prototype.resendRegistrationVerification=function(t,e){return this.start().withUri("/api/user/verify-registration").withParameter("email",t).withParameter("applicationId",e).withMethod("PUT").go()},t.prototype.retrieveAPIKey=function(t){return this.start().withUri("/api/api-key").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveAction=function(t){return this.start().withUri("/api/user/action").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveActions=function(t){return this.start().withUri("/api/user/action").withParameter("userId",t).withMethod("GET").go()},t.prototype.retrieveActionsPreventingLogin=function(t){return this.start().withUri("/api/user/action").withParameter("userId",t).withParameter("preventingLogin",!0).withMethod("GET").go()},t.prototype.retrieveActiveActions=function(t){return this.start().withUri("/api/user/action").withParameter("userId",t).withParameter("active",!0).withMethod("GET").go()},t.prototype.retrieveApplication=function(t){return this.start().withUri("/api/application").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveApplications=function(){return this.start().withUri("/api/application").withMethod("GET").go()},t.prototype.retrieveAuditLog=function(t){return this.start().withUri("/api/system/audit-log").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveConnector=function(t){return this.start().withUri("/api/connector").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveConnectors=function(){return this.start().withUri("/api/connector").withMethod("GET").go()},t.prototype.retrieveConsent=function(t){return this.start().withUri("/api/consent").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveConsents=function(){return this.start().withUri("/api/consent").withMethod("GET").go()},t.prototype.retrieveDailyActiveReport=function(t,e,i){return this.start().withUri("/api/report/daily-active-user").withParameter("applicationId",t).withParameter("start",e).withParameter("end",i).withMethod("GET").go()},t.prototype.retrieveEmailTemplate=function(t){return this.start().withUri("/api/email/template").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveEmailTemplatePreview=function(t){return this.start().withUri("/api/email/template/preview").withJSONBody(t).withMethod("POST").go()},t.prototype.retrieveEmailTemplates=function(){return this.start().withUri("/api/email/template").withMethod("GET").go()},t.prototype.retrieveEntity=function(t){return this.start().withUri("/api/entity").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveEntityGrant=function(t,e,i){return this.start().withUri("/api/entity").withUriSegment(t).withUriSegment("grant").withParameter("recipientEntityId",e).withParameter("userId",i).withMethod("GET").go()},t.prototype.retrieveEntityType=function(t){return this.start().withUri("/api/entity/type").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveEntityTypes=function(){return this.start().withUri("/api/entity/type").withMethod("GET").go()},t.prototype.retrieveEventLog=function(t){return this.start().withUri("/api/system/event-log").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveFamilies=function(t){return this.start().withUri("/api/user/family").withParameter("userId",t).withMethod("GET").go()},t.prototype.retrieveFamilyMembersByFamilyId=function(t){return this.start().withUri("/api/user/family").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveForm=function(t){return this.start().withUri("/api/form").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveFormField=function(t){return this.start().withUri("/api/form/field").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveFormFields=function(){return this.start().withUri("/api/form/field").withMethod("GET").go()},t.prototype.retrieveForms=function(){return this.start().withUri("/api/form").withMethod("GET").go()},t.prototype.retrieveGroup=function(t){return this.start().withUri("/api/group").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveGroups=function(){return this.start().withUri("/api/group").withMethod("GET").go()},t.prototype.retrieveIPAccessControlList=function(t){return this.start().withUri("/api/ip-acl").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveIdentityProvider=function(t){return this.start().withUri("/api/identity-provider").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveIdentityProviderByType=function(t){return this.start().withUri("/api/identity-provider").withParameter("type",t).withMethod("GET").go()},t.prototype.retrieveIdentityProviders=function(){return this.start().withUri("/api/identity-provider").withMethod("GET").go()},t.prototype.retrieveInactiveActions=function(t){return this.start().withUri("/api/user/action").withParameter("userId",t).withParameter("active",!1).withMethod("GET").go()},t.prototype.retrieveInactiveApplications=function(){return this.start().withUri("/api/application").withParameter("inactive",!0).withMethod("GET").go()},t.prototype.retrieveInactiveUserActions=function(){return this.start().withUri("/api/user-action").withParameter("inactive",!0).withMethod("GET").go()},t.prototype.retrieveIntegration=function(){return this.start().withUri("/api/integration").withMethod("GET").go()},t.prototype.retrieveJWTPublicKey=function(t){return this.startAnonymous().withUri("/api/jwt/public-key").withParameter("kid",t).withMethod("GET").go()},t.prototype.retrieveJWTPublicKeyByApplicationId=function(t){return this.startAnonymous().withUri("/api/jwt/public-key").withParameter("applicationId",t).withMethod("GET").go()},t.prototype.retrieveJWTPublicKeys=function(){return this.startAnonymous().withUri("/api/jwt/public-key").withMethod("GET").go()},t.prototype.retrieveJsonWebKeySet=function(){return this.startAnonymous().withUri("/.well-known/jwks.json").withMethod("GET").go()},t.prototype.retrieveKey=function(t){return this.start().withUri("/api/key").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveKeys=function(){return this.start().withUri("/api/key").withMethod("GET").go()},t.prototype.retrieveLambda=function(t){return this.start().withUri("/api/lambda").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveLambdas=function(){return this.start().withUri("/api/lambda").withMethod("GET").go()},t.prototype.retrieveLambdasByType=function(t){return this.start().withUri("/api/lambda").withParameter("type",t).withMethod("GET").go()},t.prototype.retrieveLoginReport=function(t,e,i){return this.start().withUri("/api/report/login").withParameter("applicationId",t).withParameter("start",e).withParameter("end",i).withMethod("GET").go()},t.prototype.retrieveMessageTemplate=function(t){return this.start().withUri("/api/message/template").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveMessageTemplatePreview=function(t){return this.start().withUri("/api/message/template/preview").withJSONBody(t).withMethod("POST").go()},t.prototype.retrieveMessageTemplates=function(){return this.start().withUri("/api/message/template").withMethod("GET").go()},t.prototype.retrieveMessenger=function(t){return this.start().withUri("/api/messenger").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveMessengers=function(){return this.start().withUri("/api/messenger").withMethod("GET").go()},t.prototype.retrieveMonthlyActiveReport=function(t,e,i){return this.start().withUri("/api/report/monthly-active-user").withParameter("applicationId",t).withParameter("start",e).withParameter("end",i).withMethod("GET").go()},t.prototype.retrieveOauthConfiguration=function(t){return this.start().withUri("/api/application").withUriSegment(t).withUriSegment("oauth-configuration").withMethod("GET").go()},t.prototype.retrieveOpenIdConfiguration=function(){return this.startAnonymous().withUri("/.well-known/openid-configuration").withMethod("GET").go()},t.prototype.retrievePasswordValidationRules=function(){return this.startAnonymous().withUri("/api/tenant/password-validation-rules").withMethod("GET").go()},t.prototype.retrievePasswordValidationRulesWithTenantId=function(t){return this.startAnonymous().withUri("/api/tenant/password-validation-rules").withUriSegment(t).withMethod("GET").go()},t.prototype.retrievePendingChildren=function(t){return this.start().withUri("/api/user/family/pending").withParameter("parentEmail",t).withMethod("GET").go()},t.prototype.retrievePendingLink=function(t,e){return this.start().withUri("/api/identity-provider/link/pending").withUriSegment(t).withParameter("userId",e).withMethod("GET").go()},t.prototype.retrieveReactorMetrics=function(){return this.start().withUri("/api/reactor/metrics").withMethod("GET").go()},t.prototype.retrieveReactorStatus=function(){return this.start().withUri("/api/reactor").withMethod("GET").go()},t.prototype.retrieveRecentLogins=function(t,e){return this.start().withUri("/api/user/recent-login").withParameter("offset",t).withParameter("limit",e).withMethod("GET").go()},t.prototype.retrieveRefreshTokenById=function(t){return this.start().withUri("/api/jwt/refresh").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveRefreshTokens=function(t){return this.start().withUri("/api/jwt/refresh").withParameter("userId",t).withMethod("GET").go()},t.prototype.retrieveRegistration=function(t,e){return this.start().withUri("/api/user/registration").withUriSegment(t).withUriSegment(e).withMethod("GET").go()},t.prototype.retrieveRegistrationReport=function(t,e,i){return this.start().withUri("/api/report/registration").withParameter("applicationId",t).withParameter("start",e).withParameter("end",i).withMethod("GET").go()},t.prototype.retrieveReindexStatus=function(){return this.start().withUri("/api/system/reindex").withMethod("GET").go()},t.prototype.retrieveSystemConfiguration=function(){return this.start().withUri("/api/system-configuration").withMethod("GET").go()},t.prototype.retrieveTenant=function(t){return this.start().withUri("/api/tenant").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveTenants=function(){return this.start().withUri("/api/tenant").withMethod("GET").go()},t.prototype.retrieveTheme=function(t){return this.start().withUri("/api/theme").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveThemes=function(){return this.start().withUri("/api/theme").withMethod("GET").go()},t.prototype.retrieveTotalReport=function(){return this.start().withUri("/api/report/totals").withMethod("GET").go()},t.prototype.retrieveTwoFactorRecoveryCodes=function(t){return this.start().withUri("/api/user/two-factor/recovery-code").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveTwoFactorStatus=function(t,e,i){return this.start().withUri("/api/two-factor/status").withParameter("userId",t).withParameter("applicationId",e).withUriSegment(i).withMethod("GET").go()},t.prototype.retrieveUser=function(t){return this.start().withUri("/api/user").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveUserAction=function(t){return this.start().withUri("/api/user-action").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveUserActionReason=function(t){return this.start().withUri("/api/user-action-reason").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveUserActionReasons=function(){return this.start().withUri("/api/user-action-reason").withMethod("GET").go()},t.prototype.retrieveUserActions=function(){return this.start().withUri("/api/user-action").withMethod("GET").go()},t.prototype.retrieveUserByChangePasswordId=function(t){return this.start().withUri("/api/user").withParameter("changePasswordId",t).withMethod("GET").go()},t.prototype.retrieveUserByEmail=function(t){return this.start().withUri("/api/user").withParameter("email",t).withMethod("GET").go()},t.prototype.retrieveUserByLoginId=function(t){return this.start().withUri("/api/user").withParameter("loginId",t).withMethod("GET").go()},t.prototype.retrieveUserByUsername=function(t){return this.start().withUri("/api/user").withParameter("username",t).withMethod("GET").go()},t.prototype.retrieveUserByVerificationId=function(t){return this.start().withUri("/api/user").withParameter("verificationId",t).withMethod("GET").go()},t.prototype.retrieveUserCode=function(t,e,i){var r=new url_1.URLSearchParams;return r.append("client_id",t),r.append("client_secret",e),r.append("user_code",i),this.startAnonymous().withUri("/oauth2/device/user-code").withFormData(r).withMethod("GET").go()},t.prototype.retrieveUserCodeUsingAPIKey=function(t){var e=new url_1.URLSearchParams;return e.append("user_code",t),this.startAnonymous().withUri("/oauth2/device/user-code").withFormData(e).withMethod("GET").go()},t.prototype.retrieveUserComments=function(t){return this.start().withUri("/api/user/comment").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveUserConsent=function(t){return this.start().withUri("/api/user/consent").withUriSegment(t).withMethod("GET").go()},t.prototype.retrieveUserConsents=function(t){return this.start().withUri("/api/user/consent").withParameter("userId",t).withMethod("GET").go()},t.prototype.retrieveUserInfoFromAccessToken=function(t){return this.startAnonymous().withUri("/oauth2/userinfo").withAuthorization("Bearer "+t).withMethod("GET").go()},t.prototype.retrieveUserLink=function(t,e,i){return this.start().withUri("/api/identity-provider/link").withParameter("identityProviderId",t).withParameter("identityProviderUserId",e).withParameter("userId",i).withMethod("GET").go()},t.prototype.retrieveUserLinksByUserId=function(t,e){return this.start().withUri("/api/identity-provider/link").withParameter("identityProviderId",t).withParameter("userId",e).withMethod("GET").go()},t.prototype.retrieveUserLoginReport=function(t,e,i,r){return this.start().withUri("/api/report/login").withParameter("applicationId",t).withParameter("userId",e).withParameter("start",i).withParameter("end",r).withMethod("GET").go()},t.prototype.retrieveUserLoginReportByLoginId=function(t,e,i,r){return this.start().withUri("/api/report/login").withParameter("applicationId",t).withParameter("loginId",e).withParameter("start",i).withParameter("end",r).withMethod("GET").go()},t.prototype.retrieveUserRecentLogins=function(t,e,i){return this.start().withUri("/api/user/recent-login")