mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Add U2F support
This commit is contained in:
@@ -75,6 +75,9 @@ const definitions = {
|
||||
},
|
||||
"dh": {
|
||||
"type": "string"
|
||||
},
|
||||
"u2f": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
@@ -209,6 +212,29 @@ const definitions = {
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"SerializedAddParentU2fKeyAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"ADD_PARENT_U2F"
|
||||
]
|
||||
},
|
||||
"keyHandle": {
|
||||
"type": "string"
|
||||
},
|
||||
"publicKey": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"keyHandle",
|
||||
"publicKey",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"SerializedAddUserAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -535,6 +561,21 @@ const definitions = {
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"SerializedReportU2fLoginAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"REPORT_U2F_LOGIN"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"SerializedRemoveCategoryAppsAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -561,6 +602,29 @@ const definitions = {
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"SerializedRemoveParentU2fKeyAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"REMOVE_PARENT_U2F"
|
||||
]
|
||||
},
|
||||
"keyHandle": {
|
||||
"type": "string"
|
||||
},
|
||||
"publicKey": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"keyHandle",
|
||||
"publicKey",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"SerializedRemoveUserAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -2747,6 +2811,49 @@ const definitions = {
|
||||
"k",
|
||||
"v"
|
||||
]
|
||||
},
|
||||
"U2fData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"v": {
|
||||
"type": "string"
|
||||
},
|
||||
"d": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/U2fItem"
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"d",
|
||||
"v"
|
||||
]
|
||||
},
|
||||
"U2fItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"u": {
|
||||
"type": "string"
|
||||
},
|
||||
"a": {
|
||||
"type": "number"
|
||||
},
|
||||
"h": {
|
||||
"type": "string"
|
||||
},
|
||||
"p": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"a",
|
||||
"h",
|
||||
"p",
|
||||
"u"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2907,6 +3014,9 @@ export const isSerializedParentAction: (value: unknown) => value is SerializedPa
|
||||
{
|
||||
"$ref": "#/definitions/SerializedAddCategoryNetworkIdAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedAddParentU2fKeyAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedAddUserAction"
|
||||
},
|
||||
@@ -2934,9 +3044,15 @@ export const isSerializedParentAction: (value: unknown) => value is SerializedPa
|
||||
{
|
||||
"$ref": "#/definitions/SerializedIncrementCategoryExtraTimeAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedReportU2fLoginAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedRemoveCategoryAppsAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedRemoveParentU2fKeyAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedRemoveUserAction"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user