-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSCD.json
114 lines (102 loc) · 4.58 KB
/
SCD.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Operando Self-Compliance Document",
"description": "To describe and validate Operando certified applications self-compliance documents",
"type": "object",
"properties": {
"appIconURL": {
"type": "string",
"description": "A valid url which points to the application's icon"
},
"bundleId": {
"description": "A string which uniquely identifies the app",
"type": "string"
},
"title": {
"description": "The title of the app, as it will be displayed in Operando",
"type": "string"
},
"accessedHosts": {
"description": "The list of URLS that the app will access",
"type": "array",
"items": {
"type": "string"
}
},
"accessedInputs": {
"description": "The list of items describing the accessed sensors and their security level",
"type": "array",
"items": {
"description": "An object describing a sensor used by the application and it's security level",
"type": "object",
"properties": {
"inputType": {
"description": "A string describing the sensor type.",
"type": "string",
"enum": ["loc", "mic", "cam", "gyro", "acc", "prox", "touchID", "bar", "force", "pedo", "magneto",
"contacts", "bat"]
},
"privacyDescription": {
"properties": {
"privacyLevel": {
"description": "An integer describing the privacy level (which indicates how the data collected from this senser is being used. Corresponding to PL{i}",
"type": "integer",
"minimum": 1,
"maximum": 6
},
"thirdParties": {
"type": "array",
"items": {
"description": "An object describing the third party to which data from this sensor is sent to.",
"type": "object",
"properties": {
"name": {
"description": "The third party identifier",
"type": "string"
},
"url": {
"description": "The url endpoint at which data from this sensor is sent",
"type": "string"
}
},
"required": ["name", "url"]
}
}
},
"oneOf": [
{
"type": "object",
"properties": {
"privacyLevel": { "enum": [1,2,3,4,6] }
},
"required": ["privacyLevel"]
},
{
"type": "object",
"properties": {
"privacyLevel": { "enum": [5] }
},
"required": ["privacyLevel", "thirdParties"]
}
]
},
"accessFrequency": {
"description": "A string specifying how often the data from this sensor if fetched/queried.",
"enum": ["continuously", "continuousIntervals", "singularSample"]
},
"userControl": {
"type" : "boolean",
"description": "A boolean which indicates whether the user can control if or when the the data is being collected"
},
"permissionsApi":{
"usb":["getDevices","openDevices","findDevices","getConfiguration"],
"socket":"*",
"management":["getAll","onInstalled","onUninstalled","onEnabled","onDisabled"]
}
},
"required": ["inputType", "privacyDescription", "accessFrequency", "userControl"]
}
}
},
"required": ["accessedInputs", "accessedHosts", "bundleId", "title"]
}