File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -755,6 +755,22 @@ export class FusionAuthClient {
755755 . go ( ) ;
756756 }
757757
758+ /**
759+ * Deletes the tenant for the given Id asynchronously.
760+ * This method is helpful if you do not want to wait for the delete operation to complete.
761+ *
762+ * @param {UUID } tenantId The Id of the tenant to delete.
763+ * @returns {Promise<ClientResponse<void>> }
764+ */
765+ deleteTenantAsync ( tenantId : UUID ) : Promise < ClientResponse < void > > {
766+ return this . start < void , Errors > ( )
767+ . withUri ( '/api/tenant' )
768+ . withUriSegment ( tenantId )
769+ . withParameter ( 'async' , true )
770+ . withMethod ( "DELETE" )
771+ . go ( ) ;
772+ }
773+
758774 /**
759775 * Deletes the theme for the given Id.
760776 *
@@ -5632,6 +5648,15 @@ export enum OAuthErrorType {
56325648export interface OAuthResponse {
56335649}
56345650
5651+ /**
5652+ * @author Daniel DeGroff
5653+ */
5654+ export enum ObjectState {
5655+ Active = "Active" ,
5656+ Inactive = "Inactive" ,
5657+ PendingDelete = "PendingDelete"
5658+ }
5659+
56355660/**
56365661 * OpenID Connect Configuration as described by the <a href="https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata">OpenID
56375662 * Provider Metadata</a>.
@@ -6224,6 +6249,7 @@ export interface Tenant {
62246249 name ?: string ;
62256250 passwordEncryptionConfiguration ?: PasswordEncryptionConfiguration ;
62266251 passwordValidationRules ?: PasswordValidationRules ;
6252+ state ?: ObjectState ;
62276253 themeId ?: UUID ;
62286254 userDeletePolicy ?: TenantUserDeletePolicy ;
62296255}
You can’t perform that action at this time.
0 commit comments