fix 2fa and move communication language to setting
Build & Push / Pipeline Tests (push) Failing after 1m26s
Build & Push / Build & Push Docker Image (push) Has been skipped
Test / Type Check (all packages) (push) Successful in 50s
Test / API Unit Tests (push) Failing after 1m6s
Test / Homepage Unit Tests (push) Successful in 48s
Test / Carplace Unit Tests (push) Successful in 44s
Test / Admin Unit Tests (push) Successful in 40s
Test / Dashboard Unit Tests (push) Successful in 41s
Test / API Integration Tests (push) Successful in 1m6s

This commit is contained in:
root
2026-08-23 00:45:39 -04:00
parent c8d7a3954a
commit e3f80af47d
29 changed files with 890 additions and 255 deletions
+20 -2
View File
@@ -268,6 +268,18 @@ export const openApiDocument: JsonObject = {
responses: { '200': ok, '401': err401 },
},
},
'/auth/employee/2fa/setup': {
post: { tags: ['Auth — Employee'], summary: 'Setup authenticator app 2FA', responses: { '200': ok } },
},
'/auth/employee/2fa/verify': {
post: { tags: ['Auth — Employee'], summary: 'Enable authenticator app 2FA', responses: { '200': ok } },
},
'/auth/employee/2fa/email/setup': {
post: { tags: ['Auth — Employee'], summary: 'Send email 2FA setup code', responses: { '200': ok } },
},
'/auth/employee/2fa/email/verify': {
post: { tags: ['Auth — Employee'], summary: 'Enable email 2FA', responses: { '200': ok } },
},
'/auth/employee/me/language': {
patch: {
tags: ['Auth — Employee'],
@@ -1133,10 +1145,16 @@ export const openApiDocument: JsonObject = {
get: { tags: ['Admin'], summary: 'Current admin profile', responses: { '200': ok } },
},
'/admin/auth/2fa/setup': {
post: { tags: ['Admin'], summary: 'Setup 2FA', responses: { '200': ok } },
post: { tags: ['Admin'], summary: 'Setup authenticator app 2FA', responses: { '200': ok } },
},
'/admin/auth/2fa/email/setup': {
post: { tags: ['Admin'], summary: 'Send email 2FA setup code', responses: { '200': ok } },
},
'/admin/auth/2fa/email/verify': {
post: { tags: ['Admin'], summary: 'Enable email 2FA', responses: { '200': ok } },
},
'/admin/auth/2fa/verify': {
post: { tags: ['Admin'], summary: 'Verify 2FA code', responses: { '200': ok } },
post: { tags: ['Admin'], summary: 'Enable authenticator app 2FA', responses: { '200': ok } },
},
'/admin/companies': {
get: { tags: ['Admin'], summary: 'List all companies', responses: { '200': ok } },