timelimit-server/docs/schema/serializedapplogicaction.md
2020-11-16 01:00:00 +01:00

43 KiB

SerializedAppLogicAction Schema

https://timelimit.io/SerializedAppLogicAction
Abstract Extensible Status Identifiable Custom Properties Additional Properties Access Restrictions Defined In
Cannot be instantiated Yes Unknown status Unknown identifiability Forbidden Allowed none SerializedAppLogicAction.schema.json

SerializedAppLogicAction Type

merged type (SerializedAppLogicAction)

any of

SerializedAppLogicAction Definitions

Definitions group SerializedAddInstalledAppsAction

Reference this group by using

{"$ref":"https://timelimit.io/SerializedAppLogicAction#/definitions/SerializedAddInstalledAppsAction"}
Property Type Required Nullable Defined by
type string Required cannot be null SerializedAppLogicAction
apps array Required cannot be null SerializedAppLogicAction

type

type

type Type

string

type Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"ADD_INSTALLED_APPS"

apps

apps

apps Type

object[] (SerializedInstalledApp)

Definitions group SerializedInstalledApp

Reference this group by using

{"$ref":"https://timelimit.io/SerializedAppLogicAction#/definitions/SerializedInstalledApp"}
Property Type Required Nullable Defined by
packageName string Required cannot be null SerializedAppLogicAction
title string Required cannot be null SerializedAppLogicAction
isLaunchable boolean Required cannot be null SerializedAppLogicAction
recommendation string Required cannot be null SerializedAppLogicAction

packageName

packageName

packageName Type

string

title

title

title Type

string

isLaunchable

isLaunchable

isLaunchable Type

boolean

recommendation

recommendation

recommendation Type

string (AppRecommendation)

recommendation Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"blacklist"
"none"
"whitelist"

Definitions group AppRecommendation

Reference this group by using

{"$ref":"https://timelimit.io/SerializedAppLogicAction#/definitions/AppRecommendation"}
Property Type Required Nullable Defined by

Definitions group SerializedAddUsedTimeAction

Reference this group by using

{"$ref":"https://timelimit.io/SerializedAppLogicAction#/definitions/SerializedAddUsedTimeAction"}
Property Type Required Nullable Defined by
type string Required cannot be null SerializedAppLogicAction
categoryId string Required cannot be null SerializedAppLogicAction
day number Required cannot be null SerializedAppLogicAction
timeToAdd number Required cannot be null SerializedAppLogicAction
extraTimeToSubtract number Required cannot be null SerializedAppLogicAction

type

type

type Type

string

type Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"ADD_USED_TIME"

categoryId

categoryId

categoryId Type

string

day

day

day Type

number

timeToAdd

timeToAdd

timeToAdd Type

number

extraTimeToSubtract

extraTimeToSubtract

extraTimeToSubtract Type

number

Definitions group SerializedAddUsedTimeActionVersion2

Reference this group by using

{"$ref":"https://timelimit.io/SerializedAppLogicAction#/definitions/SerializedAddUsedTimeActionVersion2"}
Property Type Required Nullable Defined by
type string Required cannot be null SerializedAppLogicAction
d number Required cannot be null SerializedAppLogicAction
i array Required cannot be null SerializedAppLogicAction
t number Optional cannot be null SerializedAppLogicAction

type

type

type Type

string

type Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"ADD_USED_TIME_V2"

d

d

d Type

number

i

i

i Type

object[] (Details)

t

t

t Type

number

Definitions group SerializedForceSyncAction

Reference this group by using

{"$ref":"https://timelimit.io/SerializedAppLogicAction#/definitions/SerializedForceSyncAction"}
Property Type Required Nullable Defined by
type string Required cannot be null SerializedAppLogicAction

type

type

type Type

string

type Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"FORCE_SYNC"

Definitions group SerializedMarkTaskPendingAction

Reference this group by using

{"$ref":"https://timelimit.io/SerializedAppLogicAction#/definitions/SerializedMarkTaskPendingAction"}
Property Type Required Nullable Defined by
type string Required cannot be null SerializedAppLogicAction
taskId string Required cannot be null SerializedAppLogicAction

type

type

type Type

string

type Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"MARK_TASK_PENDING"

taskId

taskId

taskId Type

string

Definitions group SerializedRemoveInstalledAppsAction

Reference this group by using

{"$ref":"https://timelimit.io/SerializedAppLogicAction#/definitions/SerializedRemoveInstalledAppsAction"}
Property Type Required Nullable Defined by
type string Required cannot be null SerializedAppLogicAction
packageNames array Required cannot be null SerializedAppLogicAction

type

type

type Type

string

type Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"REMOVE_INSTALLED_APPS"

packageNames

packageNames

packageNames Type

string[]

Definitions group SerializedSignOutAtDeviceAction

Reference this group by using

{"$ref":"https://timelimit.io/SerializedAppLogicAction#/definitions/SerializedSignOutAtDeviceAction"}
Property Type Required Nullable Defined by
type string Required cannot be null SerializedAppLogicAction

type

type

type Type

string

type Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"SIGN_OUT_AT_DEVICE"

Definitions group SerialiezdTriedDisablingDeviceAdminAction

Reference this group by using

{"$ref":"https://timelimit.io/SerializedAppLogicAction#/definitions/SerialiezdTriedDisablingDeviceAdminAction"}
Property Type Required Nullable Defined by
type string Required cannot be null SerializedAppLogicAction

type

type

type Type

string

type Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"TRIED_DISABLING_DEVICE_ADMIN"

Definitions group SerializedUpdateAppActivitiesAction

Reference this group by using

{"$ref":"https://timelimit.io/SerializedAppLogicAction#/definitions/SerializedUpdateAppActivitiesAction"}
Property Type Required Nullable Defined by
type string Required cannot be null SerializedAppLogicAction
removed array Required cannot be null SerializedAppLogicAction
updatedOrAdded array Required cannot be null SerializedAppLogicAction

type

type

type Type

string

type Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"UPDATE_APP_ACTIVITIES"

removed

removed

removed Type

an array where each item follows the corresponding schema in the following list:

  1. Untitled string in SerializedAppLogicAction
  2. Untitled string in SerializedAppLogicAction
  3. and all following items must follow the schema: Untitled undefined type in SerializedAppLogicAction

updatedOrAdded

updatedOrAdded

updatedOrAdded Type

object[] (SerializedAppActivityItem)

Definitions group SerializedAppActivityItem

Reference this group by using

{"$ref":"https://timelimit.io/SerializedAppLogicAction#/definitions/SerializedAppActivityItem"}
Property Type Required Nullable Defined by
p string Required cannot be null SerializedAppLogicAction
c string Required cannot be null SerializedAppLogicAction
t string Required cannot be null SerializedAppLogicAction

p

p

p Type

string

c

c

c Type

string

t

t

t Type

string

Definitions group SerializedUpdateDeviceStatusAction

Reference this group by using

{"$ref":"https://timelimit.io/SerializedAppLogicAction#/definitions/SerializedUpdateDeviceStatusAction"}
Property Type Required Nullable Defined by
type string Required cannot be null SerializedAppLogicAction
protectionLevel string Optional cannot be null SerializedAppLogicAction
usageStats string Optional cannot be null SerializedAppLogicAction
notificationAccess string Optional cannot be null SerializedAppLogicAction
overlayPermission string Optional cannot be null SerializedAppLogicAction
accessibilityServiceEnabled boolean Optional cannot be null SerializedAppLogicAction
appVersion number Optional cannot be null SerializedAppLogicAction
didReboot boolean Optional cannot be null SerializedAppLogicAction
isQOrLaterNow boolean Optional cannot be null SerializedAppLogicAction

type

type

type Type

string

type Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"UPDATE_DEVICE_STATUS"

protectionLevel

protectionLevel

protectionLevel Type

string

protectionLevel Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"device owner"
"none"
"password device admin"
"simple device admin"

usageStats

usageStats

usageStats Type

string

usageStats Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"granted"
"not granted"
"not required"

notificationAccess

notificationAccess

notificationAccess Type

string

notificationAccess Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"granted"
"not granted"
"not supported"

overlayPermission

overlayPermission

overlayPermission Type

string

overlayPermission Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"granted"
"not granted"
"not required"

accessibilityServiceEnabled

accessibilityServiceEnabled

accessibilityServiceEnabled Type

boolean

appVersion

appVersion

appVersion Type

number

didReboot

didReboot

didReboot Type

boolean

isQOrLaterNow

isQOrLaterNow

isQOrLaterNow Type

boolean