mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-04 10:19:26 +02:00
74 lines
No EOL
1.5 KiB
JSON
74 lines
No EOL
1.5 KiB
JSON
{
|
|
"type": "object",
|
|
"properties": {
|
|
"mailAuthToken": {
|
|
"type": "string"
|
|
},
|
|
"parentPassword": {
|
|
"$ref": "#/definitions/PlaintextParentPassword"
|
|
},
|
|
"parentDevice": {
|
|
"$ref": "#/definitions/NewDeviceInfo"
|
|
},
|
|
"deviceName": {
|
|
"type": "string"
|
|
},
|
|
"timeZone": {
|
|
"type": "string"
|
|
},
|
|
"parentName": {
|
|
"type": "string"
|
|
},
|
|
"clientLevel": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"deviceName",
|
|
"mailAuthToken",
|
|
"parentDevice",
|
|
"parentName",
|
|
"parentPassword",
|
|
"timeZone"
|
|
],
|
|
"definitions": {
|
|
"PlaintextParentPassword": {
|
|
"type": "object",
|
|
"properties": {
|
|
"hash": {
|
|
"type": "string"
|
|
},
|
|
"secondHash": {
|
|
"type": "string"
|
|
},
|
|
"secondSalt": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"hash",
|
|
"secondHash",
|
|
"secondSalt"
|
|
],
|
|
"title": "PlaintextParentPassword"
|
|
},
|
|
"NewDeviceInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"model": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"model"
|
|
],
|
|
"title": "NewDeviceInfo"
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "CreateFamilyByMailTokenRequest",
|
|
"$id": "https://timelimit.io/CreateFamilyByMailTokenRequest"
|
|
} |