UNPKG

@fusionauth/typescript-client

Version:
1 lines 104 kB
(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=s.trys,(i=i.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.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.prototype.withAuthorization=function(t){return null==t||this.withHeader("Authorization",t),this},t.prototype.withUriSegment=function(t){return null==t||(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="",e=function(e,n){t+=0===t.length?"?":"&",t+=encodeURIComponent(e)+"="+encodeURIComponent(n)},n=function(t){var n=r.parameters[t];Array.isArray(n)?n.forEach(function(n){return e(t,n)}):e(t,n)},r=this;for(var i in this.parameters)n(i);return t},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.WebhookEventResult=exports.WebhookAttemptResult=exports.WebAuthnWorkflow=exports.VerificationStrategy=exports.UserVerificationRequirement=exports.UserState=exports.UserActionPhase=exports.UnverifiedBehavior=exports.UnknownScopePolicy=exports.TransactionType=exports.TokenType=exports.ThemeType=exports.UniqueUsernameStrategy=exports.SystemTrustedProxyConfigurationPolicy=exports.SteamAPIMode=exports.Sort=exports.SendSetPasswordIdentityType=exports.SecureGeneratorType=exports.SAMLv2DestinationAssertionPolicy=exports.ResidentKeyRequirement=exports.RefreshTokenUsagePolicy=exports.RefreshTokenExpirationPolicy=exports.ReactorFeatureStatus=exports.PublicKeyCredentialType=exports.ProofKeyForCodeExchangePolicy=exports.PasswordlessStrategy=exports.BreachMatchMode=exports.BreachAction=exports.ObjectState=exports.Oauth2AuthorizedURLValidationPolicy=exports.OAuthScopeHandlingPolicy=exports.OAuthScopeConsentMode=exports.OAuthErrorType=exports.OAuthErrorReason=exports.OAuthApplicationRelationship=exports.MultiFactorLoginPolicy=exports.MultiFactorAction=exports.MessengerType=exports.MessageType=exports.LogoutBehavior=exports.LambdaType=exports.LambdaEngineType=exports.LDAPSecurityMethod=exports.KeyUse=exports.KeyType=exports.KeyAlgorithm=exports.IdentityVerifiedReason=exports.IdentityProviderType=exports.ClientAuthenticationMethod=exports.IdentityProviderLoginMethod=exports.IdentityProviderLinkingStrategy=exports.IPAccessControlEntryAction=exports.HTTPMethod=exports.GrantType=exports.FormType=exports.FormStepType=exports.FormFieldAdminPolicy=exports.FormDataType=exports.FormControl=exports.FamilyRole=exports.ExpiryUnit=exports.ExistingUserStrategy=exports.EventType=exports.EventLogType=exports.EmailSecurityType=exports.DeviceType=exports.CoseKeyType=exports.CoseEllipticCurve=exports.CoseAlgorithmIdentifier=exports.ContentStatus=exports.ConsentStatus=exports.ConnectorType=exports.ClientAuthenticationPolicy=exports.ChangePasswordReason=exports.CaptchaMethod=exports.CanonicalizationMethod=exports.BreachedPasswordStatus=exports.TOTPAlgorithm=exports.AuthenticatorAttachmentPreference=exports.AuthenticatorAttachment=exports.AuthenticationThreats=exports.AttestationType=exports.AttestationConveyancePreference=exports.ApplicationMultiFactorTrustPolicy=exports.XMLSignatureLocation=exports.SAMLLogoutBehavior=exports.RegistrationType=exports.LoginIdType=exports.Algorithm=exports.FusionAuthClient=void 0;var Algorithm,LoginIdType,RegistrationType,SAMLLogoutBehavior,XMLSignatureLocation,ApplicationMultiFactorTrustPolicy,AttestationConveyancePreference,AttestationType,AuthenticationThreats,AuthenticatorAttachment,AuthenticatorAttachmentPreference,TOTPAlgorithm,BreachedPasswordStatus,CanonicalizationMethod,CaptchaMethod,ChangePasswordReason,ClientAuthenticationPolicy,ConnectorType,ConsentStatus,ContentStatus,CoseAlgorithmIdentifier,CoseEllipticCurve,CoseKeyType,DeviceType,EmailSecurityType,EventLogType,EventType,ExistingUserStrategy,ExpiryUnit,FamilyRole,FormControl,FormDataType,FormFieldAdminPolicy,FormStepType,FormType,GrantType,HTTPMethod,IPAccessControlEntryAction,IdentityProviderLinkingStrategy,IdentityProviderLoginMethod,ClientAuthenticationMethod,IdentityProviderType,IdentityVerifiedReason,KeyAlgorithm,KeyType,KeyUse,LDAPSecurityMethod,LambdaEngineType,LambdaType,LogoutBehavior,MessageType,MessengerType,MultiFactorAction,MultiFactorLoginPolicy,OAuthApplicationRelationship,OAuthErrorReason,OAuthErrorType,OAuthScopeConsentMode,OAuthScopeHandlingPolicy,Oauth2AuthorizedURLValidationPolicy,ObjectState,BreachAction,BreachMatchMode,PasswordlessStrategy,ProofKeyForCodeExchangePolicy,PublicKeyCredentialType,ReactorFeatureStatus,RefreshTokenExpirationPolicy,RefreshTokenUsagePolicy,ResidentKeyRequirement,SAMLv2DestinationAssertionPolicy,SecureGeneratorType,SendSetPasswordIdentityType,Sort,SteamAPIMode,SystemTrustedProxyConfigurationPolicy,UniqueUsernameStrategy,ThemeType,TokenType,TransactionType,UnknownScopePolicy,UnverifiedBehavior,UserActionPhase,UserState,UserVerificationRequirement,VerificationStrategy,WebAuthnWorkflow,WebhookAttemptResult,WebhookEventResult,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.approveDeviceWithRequest=function(t){var e=new url_1.URLSearchParams;return null!==t.client_id&&void 0!==t.client_id&&e.append("client_id",t.client_id),null!==t.client_secret&&void 0!==t.client_secret&&e.append("client_secret",t.client_secret),null!==t.tenantId&&void 0!==t.tenantId&&e.append("tenantId",t.tenantId.toString()),null!==t.token&&void 0!==t.token&&e.append("token",t.token),null!==t.user_code&&void 0!==t.user_code&&e.append("user_code",t.user_code),this.start().withUri("/oauth2/device/approve").withFormData(e).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.changePasswordByJWT=function(t,e){return this.startAnonymous().withUri("/api/user/change-password").withAuthorization("Bearer "+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.changePasswordUsingJWT=function(t,e){return this.startAnonymous().withUri("/api/user/change-password").withAuthorization("Bearer "+t).withJSONBody(e).withMethod("POST").go()},t.prototype.checkChangePasswordUsingId=function(t){return this.startAnonymous().withUri("/api/user/change-password").withUriSegment(t).withMethod("GET").go()},t.prototype.checkChangePasswordUsingIdAndIPAddress=function(t,e){return this.startAnonymous().withUri("/api/user/change-password").withUriSegment(t).withParameter("ipAddress",e).withMethod("GET").go()},t.prototype.checkChangePasswordUsingJWT=function(t){return this.startAnonymous().withUri("/api/user/change-password").withAuthorization("Bearer "+t).withMethod("GET").go()},t.prototype.checkChangePasswordUsingJWTAndIPAddress=function(t,e){return this.startAnonymous().withUri("/api/user/change-password").withAuthorization("Bearer "+t).withParameter("ipAddress",e).withMethod("GET").go()},t.prototype.checkChangePasswordUsingLoginId=function(t){return this.start().withUri("/api/user/change-password").withParameter("loginId",t).withMethod("GET").go()},t.prototype.checkChangePasswordUsingLoginIdAndIPAddress=function(t,e){return this.start().withUri("/api/user/change-password").withParameter("loginId",t).withParameter("ipAddress",e).withMethod("GET").go()},t.prototype.checkChangePasswordUsingLoginIdAndLoginIdTypes=function(t,e){return this.start().withUri("/api/user/change-password").withParameter("loginId",t).withParameter("loginIdTypes",e).withMethod("GET").go()},t.prototype.checkChangePasswordUsingLoginIdAndLoginIdTypesAndIPAddress=function(t,e,i){return this.start().withUri("/api/user/change-password").withParameter("loginId",t).withParameter("loginIdTypes",e).withParameter("ipAddress",i).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.clientCredentialsGrantWithRequest=function(t){var e=new url_1.URLSearchParams;return null!==t.client_id&&void 0!==t.client_id&&e.append("client_id",t.client_id),null!==t.client_secret&&void 0!==t.client_secret&&e.append("client_secret",t.client_secret),null!==t.grant_type&&void 0!==t.grant_type&&e.append("grant_type",t.grant_type),null!==t.scope&&void 0!==t.scope&&e.append("scope",t.scope),null!==t.tenantId&&void 0!==t.tenantId&&e.append("tenantId",t.tenantId),this.startAnonymous().withUri("/oauth2/token").withFormData(e).withMethod("POST").go()},t.prototype.commentOnUser=function(t){return this.start().withUri("/api/user/comment").withJSONBody(t).withMethod("POST").go()},t.prototype.completeVerifyIdentity=function(t){return this.start().withUri("/api/identity/verify/complete").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.createOAuthScope=function(t,e,i){return this.start().withUri("/api/application").withUriSegment(t).withUriSegment("scope").withUriSegment(e).withJSONBody(i).withMethod("POST").go()},t.prototype.createTenant=function(t,e){return this.start().withUri("/api/tenant").withUriSegment(t).withJSONBody(e).withMethod("POST").go()},t.prototype.createTenantManagerIdentityProviderTypeConfiguration=function(t,e){return this.start().withUri("/api/tenant-manager/identity-provider").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.deleteOAuthScope=function(t,e){return this.start().withUri("/api/application").withUriSegment(t).withUriSegment("scope").withUriSegment(e).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.deleteTenantManagerIdentityProviderTypeConfiguration=function(t){return this.start().withUri("/api/tenant-manager/identity-provider").withUriSegment(t).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.deleteWebAuthnCredentialsForUser=function(t){return this.start().withUri("/api/webauthn").withParameter("userId",t).withMethod("DELETE").go()},t.prototype.deleteWebhook=function(t){return this.start().withUri("/api/webhook").withUriSegment(t).withMethod("DELETE").go()},t.prototype.deviceAuthorize=function(t,e,i){var r=new url_1.URLSearchParams;return r.append("client_id",t),r.append("client_secret",e),r.append("scope",i),this.startAnonymous().withUri("/oauth2/device_authorize").withFormData(r).withMethod("POST").go()},t.prototype.deviceAuthorizeWithRequest=function(t){var e=new url_1.URLSearchParams;return null!==t.client_id&&void 0!==t.client_id&&e.append("client_id",t.client_id),null!==t.client_secret&&void 0!==t.client_secret&&e.append("client_secret",t.client_secret),null!==t.scope&&void 0!==t.scope&&e.append("scope",t.scope),null!==t.tenantId&&void 0!==t.tenantId&&e.append("tenantId",t.tenantId.toString()),this.startAnonymous().withUri("/oauth2/device_authorize").withFormData(e).withMethod("POST").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.exchangeOAuthCodeForAccessTokenUsingPKCEWithRequest=function(t){var e=new url_1.URLSearchParams;return null!==t.client_id&&void 0!==t.client_id&&e.append("client_id",t.client_id),null!==t.client_secret&&void 0!==t.client_secret&&e.append("client_secret",t.client_secret),null!==t.code&&void 0!==t.code&&e.append("code",t.code),null!==t.code_verifier&&void 0!==t.code_verifier&&e.append("code_verifier",t.code_verifier),null!==t.grant_type&&void 0!==t.grant_type&&e.append("grant_type",t.grant_type),null!==t.redirect_uri&&void 0!==t.redirect_uri&&e.append("redirect_uri",t.redirect_uri),null!==t.tenantId&&void 0!==t.tenantId&&e.append("tenantId",t.tenantId.toString()),this.startAnonymous().withUri("/oauth2/token").withFormData(e).withMethod("POST").go()},t.prototype.exchangeOAuthCodeForAccessTokenWithRequest=function(t){var e=new url_1.URLSearchParams;return null!==t.client_id&&void 0!==t.client_id&&e.append("client_id",t.client_id),null!==t.client_secret&&void 0!==t.client_secret&&e.append("client_secret",t.client_secret),null!==t.code&&void 0!==t.code&&e.append("code",t.code),null!==t.grant_type&&void 0!==t.grant_type&&e.append("grant_type",t.grant_type),null!==t.redirect_uri&&void 0!==t.redirect_uri&&e.append("redirect_uri",t.redirect_uri),null!==t.tenantId&&void 0!==t.tenantId&&e.append("tenantId",t.tenantId),this.startAnonymous().withUri("/oauth2/token").withFormData(e).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.exchangeRefreshTokenForAccessTokenWithRequest=function(t){var e=new url_1.URLSearchParams;return null!==t.client_id&&void 0!==t.client_id&&e.append("client_id",t.client_id),null!==t.client_secret&&void 0!==t.client_secret&&e.append("client_secret",t.client_secret),null!==t.grant_type&&void 0!==t.grant_type&&e.append("grant_type",t.grant_type),null!==t.refresh_token&&void 0!==t.refresh_token&&e.append("refresh_token",t.refresh_token),null!==t.scope&&void 0!==t.scope&&e.append("scope",t.scope),null!==t.tenantId&&void 0!==t.tenantId&&e.append("tenantId",t.tenantId.toString()),null!==t.user_code&&void 0!==t.user_code&&e.append("user_code",t.user_code),this.startAnonymous().withUri("/oauth2/token").withFormData(e).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.exchangeUserCredentialsForAccessTokenWithRequest=function(t){var e=new url_1.URLSearchParams;return null!==t.client_id&&void 0!==t.client_id&&e.append("client_id",t.client_id),null!==t.client_secret&&void 0!==t.client_secret&&e.append("client_secret",t.client_secret),null!==t.grant_type&&void 0!==t.grant_type&&e.append("grant_type",t.grant_type),null!==t.password&&void 0!==t.password&&e.append("password",t.password),null!==t.scope&&void 0!==t.scope&&e.append("scope",t.scope),null!==t.tenantId&&void 0!==t.tenantId&&e.append("tenantId",t.tenantId),null!==t.user_code&&void 0!==t.user_code&&e.append("user_code",t.user_code),null!==t.username&&void 0!==t.username&&e.append("username",t.username),this.startAnonymous().withUri("/oauth2/token").withFormData(e).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.introspectAccessTokenWithRequest=function(t){var e=new url_1.URLSearchParams;return null!==t.client_id&&void 0!==t.client_id&&e.append("client_id",t.client_id),null!==t.tenantId&&void 0!==t.tenantId&&e.append("tenantId",t.tenantId),null!==t.token&&void 0!==t.token&&e.append("token",t.token),null!==t.token_type_hint&&void 0!==t.token_type_hint&&e.append("token_type_hint",t.token_type_hint),this.startAnonymous().withUri("/oauth2/introspect").withFormData(e).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.introspectClientCredentialsAccessTokenWithRequest=function(t){var e=new url_1.URLSearchParams;return null!==t.tenantId&&void 0!==t.tenantId&&e.append("tenantId",t.tenantId),null!==t.token&&void 0!==t.token&&e.append("token",t.token),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.lookupIdentityProviderByTenantId=function(t,e){return this.start().withUri("/api/identity-provider/lookup").withParameter("domain",t).withParameter("tenantId",e).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("PATCH").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.patchEntity=function(t,e){return this.start().withUri("/api/entity").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.patchEntityTypePermission=function(t,e,i){return this.start().withUri("/api/entity/type").withUriSegment(t).withUriSegment("permission").withUriSegment(e).withJSONBody(i).withMethod("PATCH").go()},t.prototype.patchForm=function(t,e){return this.start().withUri("/api/form").withUriSegment(t).withJSONBody(e).withMethod("PATCH").go()},t.prototype.patchFormField=function(t,e){return this.start().withUri("/api/form/field").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.patchIPAccessControlList=function(t,e){return this.start().withUri("/api/ip-acl").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.patchOAuthScope=function(t,e,i){return this.start().withUri("/api/application").withUriSegment(t).withUriSegment("scope").withUriSegment(e).withJSONBody(i).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.patchTenantManagerConfiguration=function(t){return this.start().withUri("/api/tenant-manager").withJSONBody(t).withMethod("PATCH").go()},t.prototype.patchTenantManagerIdentityProviderTypeConfiguration=function(t,e){return this.start().withUri("/api/tenant-manager/identity-provider").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.patchWebhook=function(t,e){return this.start().withUri("/api/webhook").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()