mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Send ClientDataStatus after registering new device
This commit is contained in:
+1
-2
@@ -16,8 +16,7 @@ On a invalid request body: HTTP status code 400 Bad request
|
||||
|
||||
On a invalid add device token: HTTP status code 401 Unauthorized
|
||||
|
||||
On success: a JSON object with the properties ``deviceAuthToken`` and ``ownDeviceId``,
|
||||
both of the type string
|
||||
On success: object with ``deviceAuthToken`` (string), ``ownDeviceId`` (string) and ``data`` (like a ``/sync/pull-status`` response)
|
||||
|
||||
## POST /child/update-primary-device
|
||||
|
||||
|
||||
+2
-2
@@ -44,7 +44,7 @@ If the mail auth token is invalid/ expired: HTTP status code 401 Unauthorized
|
||||
|
||||
If there is already a user with the mail address of the mail auth token: HTTP status code 409 Conflict
|
||||
|
||||
On success: object with ``deviceAuthToken`` (string) and ``ownDeviceId`` (string)
|
||||
On success: object with ``deviceAuthToken`` (string), ``ownDeviceId`` (string) and ``data`` (like a ``/sync/pull-status`` response)
|
||||
|
||||
## POST /parent/sign-in-into-family
|
||||
|
||||
@@ -60,7 +60,7 @@ On a invalid request body: HTTP status code 400 Bad Request
|
||||
|
||||
If there is no user with the mail address of the mail auth token: HTTP status code 409 Conflict
|
||||
|
||||
On success: object with ``deviceAuthToken`` (string) and ``ownDeviceId`` (string)
|
||||
On success: object with ``deviceAuthToken`` (string), ``ownDeviceId`` (string) and ``data`` (like a ``/sync/pull-status`` response)
|
||||
|
||||
## POST /parent/can-recover-password
|
||||
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
},
|
||||
"parentName": {
|
||||
"type": "string"
|
||||
},
|
||||
"clientLevel": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
},
|
||||
"deviceName": {
|
||||
"type": "string"
|
||||
},
|
||||
"clientLevel": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
},
|
||||
"deviceName": {
|
||||
"type": "string"
|
||||
},
|
||||
"clientLevel": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# Untitled number in CreateFamilyByMailTokenRequest Schema
|
||||
|
||||
```txt
|
||||
https://timelimit.io/CreateFamilyByMailTokenRequest#/properties/clientLevel
|
||||
```
|
||||
|
||||
|
||||
|
||||
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|
||||
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------------------------------------------- |
|
||||
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [CreateFamilyByMailTokenRequest.schema.json\*](CreateFamilyByMailTokenRequest.schema.json "open original schema") |
|
||||
|
||||
## clientLevel Type
|
||||
|
||||
`number`
|
||||
@@ -24,6 +24,7 @@ https://timelimit.io/CreateFamilyByMailTokenRequest
|
||||
| [deviceName](#devicename) | `string` | Required | cannot be null | [CreateFamilyByMailTokenRequest](createfamilybymailtokenrequest-properties-devicename.md "https://timelimit.io/CreateFamilyByMailTokenRequest#/properties/deviceName") |
|
||||
| [timeZone](#timezone) | `string` | Required | cannot be null | [CreateFamilyByMailTokenRequest](createfamilybymailtokenrequest-properties-timezone.md "https://timelimit.io/CreateFamilyByMailTokenRequest#/properties/timeZone") |
|
||||
| [parentName](#parentname) | `string` | Required | cannot be null | [CreateFamilyByMailTokenRequest](createfamilybymailtokenrequest-properties-parentname.md "https://timelimit.io/CreateFamilyByMailTokenRequest#/properties/parentName") |
|
||||
| [clientLevel](#clientlevel) | `number` | Optional | cannot be null | [CreateFamilyByMailTokenRequest](createfamilybymailtokenrequest-properties-clientlevel.md "https://timelimit.io/CreateFamilyByMailTokenRequest#/properties/clientLevel") |
|
||||
|
||||
## mailAuthToken
|
||||
|
||||
@@ -133,6 +134,24 @@ https://timelimit.io/CreateFamilyByMailTokenRequest
|
||||
|
||||
`string`
|
||||
|
||||
## clientLevel
|
||||
|
||||
|
||||
|
||||
`clientLevel`
|
||||
|
||||
* is optional
|
||||
|
||||
* Type: `number`
|
||||
|
||||
* cannot be null
|
||||
|
||||
* defined in: [CreateFamilyByMailTokenRequest](createfamilybymailtokenrequest-properties-clientlevel.md "https://timelimit.io/CreateFamilyByMailTokenRequest#/properties/clientLevel")
|
||||
|
||||
### clientLevel Type
|
||||
|
||||
`number`
|
||||
|
||||
# CreateFamilyByMailTokenRequest Definitions
|
||||
|
||||
## Definitions group PlaintextParentPassword
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# Untitled number in RegisterChildDeviceRequest Schema
|
||||
|
||||
```txt
|
||||
https://timelimit.io/RegisterChildDeviceRequest#/properties/clientLevel
|
||||
```
|
||||
|
||||
|
||||
|
||||
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|
||||
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------------------------------- |
|
||||
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [RegisterChildDeviceRequest.schema.json\*](RegisterChildDeviceRequest.schema.json "open original schema") |
|
||||
|
||||
## clientLevel Type
|
||||
|
||||
`number`
|
||||
@@ -21,6 +21,7 @@ https://timelimit.io/RegisterChildDeviceRequest
|
||||
| [registerToken](#registertoken) | `string` | Required | cannot be null | [RegisterChildDeviceRequest](registerchilddevicerequest-properties-registertoken.md "https://timelimit.io/RegisterChildDeviceRequest#/properties/registerToken") |
|
||||
| [childDevice](#childdevice) | `object` | Required | cannot be null | [RegisterChildDeviceRequest](registerchilddevicerequest-definitions-newdeviceinfo.md "https://timelimit.io/RegisterChildDeviceRequest#/properties/childDevice") |
|
||||
| [deviceName](#devicename) | `string` | Required | cannot be null | [RegisterChildDeviceRequest](registerchilddevicerequest-properties-devicename.md "https://timelimit.io/RegisterChildDeviceRequest#/properties/deviceName") |
|
||||
| [clientLevel](#clientlevel) | `number` | Optional | cannot be null | [RegisterChildDeviceRequest](registerchilddevicerequest-properties-clientlevel.md "https://timelimit.io/RegisterChildDeviceRequest#/properties/clientLevel") |
|
||||
|
||||
## registerToken
|
||||
|
||||
@@ -76,6 +77,24 @@ https://timelimit.io/RegisterChildDeviceRequest
|
||||
|
||||
`string`
|
||||
|
||||
## clientLevel
|
||||
|
||||
|
||||
|
||||
`clientLevel`
|
||||
|
||||
* is optional
|
||||
|
||||
* Type: `number`
|
||||
|
||||
* cannot be null
|
||||
|
||||
* defined in: [RegisterChildDeviceRequest](registerchilddevicerequest-properties-clientlevel.md "https://timelimit.io/RegisterChildDeviceRequest#/properties/clientLevel")
|
||||
|
||||
### clientLevel Type
|
||||
|
||||
`number`
|
||||
|
||||
# RegisterChildDeviceRequest Definitions
|
||||
|
||||
## Definitions group NewDeviceInfo
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# Untitled number in SignIntoFamilyRequest Schema
|
||||
|
||||
```txt
|
||||
https://timelimit.io/SignIntoFamilyRequest#/properties/clientLevel
|
||||
```
|
||||
|
||||
|
||||
|
||||
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|
||||
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------------------------- |
|
||||
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [SignIntoFamilyRequest.schema.json\*](SignIntoFamilyRequest.schema.json "open original schema") |
|
||||
|
||||
## clientLevel Type
|
||||
|
||||
`number`
|
||||
@@ -21,6 +21,7 @@ https://timelimit.io/SignIntoFamilyRequest
|
||||
| [mailAuthToken](#mailauthtoken) | `string` | Required | cannot be null | [SignIntoFamilyRequest](signintofamilyrequest-properties-mailauthtoken.md "https://timelimit.io/SignIntoFamilyRequest#/properties/mailAuthToken") |
|
||||
| [parentDevice](#parentdevice) | `object` | Required | cannot be null | [SignIntoFamilyRequest](signintofamilyrequest-definitions-newdeviceinfo.md "https://timelimit.io/SignIntoFamilyRequest#/properties/parentDevice") |
|
||||
| [deviceName](#devicename) | `string` | Required | cannot be null | [SignIntoFamilyRequest](signintofamilyrequest-properties-devicename.md "https://timelimit.io/SignIntoFamilyRequest#/properties/deviceName") |
|
||||
| [clientLevel](#clientlevel) | `number` | Optional | cannot be null | [SignIntoFamilyRequest](signintofamilyrequest-properties-clientlevel.md "https://timelimit.io/SignIntoFamilyRequest#/properties/clientLevel") |
|
||||
|
||||
## mailAuthToken
|
||||
|
||||
@@ -76,6 +77,24 @@ https://timelimit.io/SignIntoFamilyRequest
|
||||
|
||||
`string`
|
||||
|
||||
## clientLevel
|
||||
|
||||
|
||||
|
||||
`clientLevel`
|
||||
|
||||
* is optional
|
||||
|
||||
* Type: `number`
|
||||
|
||||
* cannot be null
|
||||
|
||||
* defined in: [SignIntoFamilyRequest](signintofamilyrequest-properties-clientlevel.md "https://timelimit.io/SignIntoFamilyRequest#/properties/clientLevel")
|
||||
|
||||
### clientLevel Type
|
||||
|
||||
`number`
|
||||
|
||||
# SignIntoFamilyRequest Definitions
|
||||
|
||||
## Definitions group NewDeviceInfo
|
||||
|
||||
Reference in New Issue
Block a user