timelimit-server/docs/schema/CreateFamilyByMailTokenRequest.schema.json
2022-11-28 01:00:00 +01:00

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"
}