generate new server models
This commit is contained in:
@@ -1057,15 +1057,6 @@ fallbackIsoCode?: string | null
|
||||
isoCode: string
|
||||
};
|
||||
|
||||
export type LinkedLoginModel = {
|
||||
providerName: string
|
||||
providerKey: string
|
||||
};
|
||||
|
||||
export type LinkedLoginsRequestModel = {
|
||||
linkedLogins: Array<LinkedLoginModel>
|
||||
};
|
||||
|
||||
export type LogLevelCountsReponseModel = {
|
||||
information: number
|
||||
debug: number
|
||||
@@ -2585,6 +2576,7 @@ key: string
|
||||
|
||||
export type UserExternalLoginProviderModel = {
|
||||
providerSchemeName: string
|
||||
providerKey?: string | null
|
||||
isLinkedOnUser: boolean
|
||||
hasManualLinkingEnabled: boolean
|
||||
};
|
||||
@@ -5241,7 +5233,6 @@ PostUserUnlock: {
|
||||
,PostUserCurrentChangePassword: string
|
||||
,GetUserCurrentConfiguration: CurrenUserConfigurationResponseModel
|
||||
,GetUserCurrentLoginProviders: Array<UserExternalLoginProviderModel>
|
||||
,GetUserCurrentLogins: LinkedLoginsRequestModel
|
||||
,GetUserCurrentPermissions: UserPermissionsResponseModel
|
||||
,GetUserCurrentPermissionsDocument: Array<UserPermissionsResponseModel>
|
||||
,GetUserCurrentPermissionsMedia: UserPermissionsResponseModel
|
||||
|
||||
@@ -8701,21 +8701,6 @@ requestBody
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns unknown Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getUserCurrentLogins(): CancelablePromise<UserData['responses']['GetUserCurrentLogins']> {
|
||||
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/umbraco/management/api/v1/user/current/logins',
|
||||
errors: {
|
||||
401: `The resource is protected and requires an authentication token`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns unknown Success
|
||||
* @throws ApiError
|
||||
|
||||
@@ -164,6 +164,10 @@ export class UmbCurrentUserExternalLoginModalElement extends UmbLitElement {
|
||||
}
|
||||
|
||||
async #onProviderDisable(item: UmbExternalLoginProviderOption) {
|
||||
if (!item.providerKey) {
|
||||
throw new Error('Provider key is missing');
|
||||
}
|
||||
|
||||
const providerDisplayName = this.localize.string(item.displayName);
|
||||
try {
|
||||
await umbConfirmModal(this, {
|
||||
|
||||
Reference in New Issue
Block a user