Skip to content

Commit

Permalink
Password check before adding or deleting SecondFactorAuthentication
Browse files Browse the repository at this point in the history
Add SystemModel 114

Close #5986

Co-authored-by: Willow <[email protected]>
  • Loading branch information
wrdhub and charlag committed Nov 14, 2024
1 parent 4d25b43 commit b19ec50
Show file tree
Hide file tree
Showing 18 changed files with 938 additions and 559 deletions.
5 changes: 3 additions & 2 deletions src/common/api/common/EntityClient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
EntityRestClientEraseOptions,
EntityRestClientLoadOptions,
EntityRestClientSetupOptions,
EntityRestClientUpdateOptions,
Expand Down Expand Up @@ -112,8 +113,8 @@ export class EntityClient {
return this._target.update(instance, options)
}

erase<T extends SomeEntity>(instance: T): Promise<void> {
return this._target.erase(instance)
erase<T extends SomeEntity>(instance: T, options?: EntityRestClientEraseOptions): Promise<void> {
return this._target.erase(instance, options)
}

async loadRoot<T extends ElementEntity>(typeRef: TypeRef<T>, groupId: Id): Promise<T> {
Expand Down
2 changes: 1 addition & 1 deletion src/common/api/entities/sys/ModelInfo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const modelInfo = {
version: 113,
version: 114,
compatibleSince: 112,
}

Expand Down
11 changes: 11 additions & 0 deletions src/common/api/entities/sys/Services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ import {UpgradePriceServiceDataTypeRef} from "./TypeRefs.js"
import {UpgradePriceServiceReturnTypeRef} from "./TypeRefs.js"
import {UserGroupKeyRotationPostInTypeRef} from "./TypeRefs.js"
import {UserDataDeleteTypeRef} from "./TypeRefs.js"
import {VerifierTokenServiceInTypeRef} from "./TypeRefs.js"
import {VerifierTokenServiceOutTypeRef} from "./TypeRefs.js"
import {VersionDataTypeRef} from "./TypeRefs.js"
import {VersionReturnTypeRef} from "./TypeRefs.js"

Expand Down Expand Up @@ -529,6 +531,15 @@ export const UserService = Object.freeze({
delete: {data: UserDataDeleteTypeRef, return: null},
} as const)

export const VerifierTokenService = Object.freeze({
app: "sys",
name: "VerifierTokenService",
get: null,
post: {data: VerifierTokenServiceInTypeRef, return: VerifierTokenServiceOutTypeRef},
put: null,
delete: null,
} as const)

export const VersionService = Object.freeze({
app: "sys",
name: "VersionService",
Expand Down
Loading

0 comments on commit b19ec50

Please sign in to comment.