generate new server models

This commit is contained in:
Jacob Overgaard
2024-05-17 09:31:08 +02:00
parent 739aaec052
commit 9b45672abe
3 changed files with 5 additions and 25 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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, {