losant_rest 1.13.0 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/_schemas.md +19437 -10622
- data/docs/application.md +6 -6
- data/docs/applicationApiTokens.md +1 -1
- data/docs/applications.md +1 -1
- data/docs/dataTable.md +1 -1
- data/docs/dataTableRows.md +1 -1
- data/docs/dataTables.md +1 -1
- data/docs/device.md +43 -0
- data/docs/devices.md +41 -2
- data/docs/edgeDeployment.md +49 -0
- data/docs/embeddedDeployment.md +49 -0
- data/docs/embeddedDeployments.md +215 -0
- data/docs/experience.md +1 -1
- data/docs/experienceDomains.md +1 -1
- data/docs/experienceGroup.md +2 -0
- data/docs/experienceSlugs.md +1 -1
- data/docs/experienceVersion.md +3 -3
- data/docs/experienceVersions.md +2 -2
- data/docs/experienceView.md +4 -4
- data/docs/experienceViews.md +2 -2
- data/docs/file.md +5 -5
- data/docs/files.md +2 -2
- data/docs/flow.md +3 -3
- data/docs/flowVersions.md +44 -0
- data/docs/flows.md +2 -2
- data/docs/instance.md +40 -0
- data/docs/instanceApiToken.md +133 -0
- data/docs/instanceApiTokens.md +91 -0
- data/docs/instanceMembers.md +1 -1
- data/docs/instanceOrg.md +2 -0
- data/docs/instanceOrgInvite.md +139 -0
- data/docs/instanceOrgInvites.md +96 -0
- data/docs/instanceOrgMembers.md +3 -3
- data/docs/instanceOrgs.md +1 -1
- data/docs/me.md +1 -1
- data/docs/org.md +1 -1
- data/docs/userApiToken.md +125 -0
- data/docs/userApiTokens.md +87 -0
- data/lib/losant_rest/application.rb +5 -5
- data/lib/losant_rest/application_api_tokens.rb +1 -1
- data/lib/losant_rest/applications.rb +1 -1
- data/lib/losant_rest/client.rb +38 -2
- data/lib/losant_rest/data_table.rb +1 -1
- data/lib/losant_rest/data_table_rows.rb +1 -1
- data/lib/losant_rest/data_tables.rb +1 -1
- data/lib/losant_rest/device.rb +50 -0
- data/lib/losant_rest/devices.rb +48 -2
- data/lib/losant_rest/edge_deployment.rb +81 -0
- data/lib/losant_rest/embedded_deployment.rb +81 -0
- data/lib/losant_rest/embedded_deployments.rb +280 -0
- data/lib/losant_rest/experience.rb +1 -1
- data/lib/losant_rest/experience_domains.rb +1 -1
- data/lib/losant_rest/experience_group.rb +4 -0
- data/lib/losant_rest/experience_slugs.rb +1 -1
- data/lib/losant_rest/experience_version.rb +3 -3
- data/lib/losant_rest/experience_versions.rb +2 -2
- data/lib/losant_rest/experience_view.rb +4 -4
- data/lib/losant_rest/experience_views.rb +2 -2
- data/lib/losant_rest/file.rb +4 -4
- data/lib/losant_rest/files.rb +2 -2
- data/lib/losant_rest/flow.rb +3 -3
- data/lib/losant_rest/flow_versions.rb +50 -0
- data/lib/losant_rest/flows.rb +2 -2
- data/lib/losant_rest/instance.rb +47 -1
- data/lib/losant_rest/instance_api_token.rb +176 -0
- data/lib/losant_rest/instance_api_tokens.rb +136 -0
- data/lib/losant_rest/instance_member.rb +1 -1
- data/lib/losant_rest/instance_members.rb +2 -2
- data/lib/losant_rest/instance_org.rb +5 -1
- data/lib/losant_rest/instance_org_invite.rb +182 -0
- data/lib/losant_rest/instance_org_invites.rb +138 -0
- data/lib/losant_rest/instance_org_member.rb +1 -1
- data/lib/losant_rest/instance_org_members.rb +4 -4
- data/lib/losant_rest/instance_orgs.rb +3 -3
- data/lib/losant_rest/instances.rb +1 -1
- data/lib/losant_rest/user_api_token.rb +170 -0
- data/lib/losant_rest/user_api_tokens.rb +132 -0
- data/lib/losant_rest/version.rb +1 -1
- data/lib/losant_rest.rb +9 -0
- data/schemas/apiToken.json +2 -1
- data/schemas/apiTokenPost.json +439 -0
- data/schemas/apiTokens.json +4 -2
- data/schemas/application.json +32 -32
- data/schemas/applicationCreationByTemplateResult.json +32 -32
- data/schemas/applicationDashboardPost.json +28 -21
- data/schemas/applicationPatch.json +13 -13
- data/schemas/applicationPost.json +13 -13
- data/schemas/applicationTemplate.json +16 -16
- data/schemas/applicationTemplates.json +16 -16
- data/schemas/applications.json +32 -32
- data/schemas/auditLog.json +4 -0
- data/schemas/auditLogFilter.json +4 -0
- data/schemas/auditLogs.json +4 -0
- data/schemas/authedDevice.json +2 -1
- data/schemas/bulkDeleteResponse.json +12 -0
- data/schemas/dashboard.json +28 -21
- data/schemas/dashboardPatch.json +28 -21
- data/schemas/dashboardPost.json +28 -21
- data/schemas/dashboardSendReport.json +9 -5
- data/schemas/dashboards.json +28 -21
- data/schemas/dataTableRowsDelete.json +1 -1
- data/schemas/device.json +2 -1
- data/schemas/deviceClassFilter.json +4 -2
- data/schemas/devicePatch.json +2 -1
- data/schemas/devicePayloadCounts.json +24 -0
- data/schemas/devicePost.json +2 -1
- data/schemas/deviceRecipe.json +2 -1
- data/schemas/deviceRecipePatch.json +2 -1
- data/schemas/deviceRecipePost.json +2 -1
- data/schemas/deviceRecipes.json +2 -1
- data/schemas/devices.json +4 -2
- data/schemas/devicesExportPayloadCountPost.json +1350 -0
- data/schemas/devicesPatch.json +4 -2
- data/schemas/edgeDeployment.json +20 -0
- data/schemas/edgeDeployments.json +20 -0
- data/schemas/embeddedDeployment.json +179 -0
- data/schemas/embeddedDeploymentExport.json +44 -0
- data/schemas/embeddedDeploymentRelease.json +58 -0
- data/schemas/embeddedDeploymentRemove.json +25 -0
- data/schemas/embeddedDeploymentReplace.json +29 -0
- data/schemas/embeddedDeployments.json +212 -0
- data/schemas/eventsDeleted.json +1 -1
- data/schemas/experienceEndpoint.json +6 -8
- data/schemas/experienceEndpointPatch.json +6 -8
- data/schemas/experienceEndpointPost.json +6 -8
- data/schemas/experienceEndpoints.json +6 -8
- data/schemas/experienceGroup.json +6 -0
- data/schemas/experienceGroups.json +6 -0
- data/schemas/experienceLinkedResources.json +790 -85
- data/schemas/flow.json +252 -16
- data/schemas/flowPatch.json +251 -16
- data/schemas/flowPost.json +252 -16
- data/schemas/flowVersion.json +503 -33
- data/schemas/flowVersionPost.json +251 -16
- data/schemas/flowVersions.json +503 -33
- data/schemas/flowVersionsDeletePost.json +941 -0
- data/schemas/flows.json +253 -16
- data/schemas/flowsImportPost.json +503 -32
- data/schemas/flowsImportResult.json +785 -79
- data/schemas/githubLogin.json +38 -1
- data/schemas/historicalSummary.json +150 -102
- data/schemas/instance.json +150 -77
- data/schemas/instanceMember.json +10 -0
- data/schemas/instanceMemberPost.json +18 -3
- data/schemas/instanceMembers.json +14 -0
- data/schemas/instanceOrg.json +87 -74
- data/schemas/instanceOrgMember.json +14 -0
- data/schemas/instanceOrgMembers.json +8 -0
- data/schemas/instanceOrgPatch.json +64 -26
- data/schemas/instanceOrgPost.json +229 -25
- data/schemas/instanceOrgs.json +91 -74
- data/schemas/instancePatch.json +67 -0
- data/schemas/instanceReportOptionsPost.json +1 -0
- data/schemas/me.json +134 -105
- data/schemas/notebook.json +45 -0
- data/schemas/notebookPatch.json +30 -0
- data/schemas/notebookPost.json +30 -0
- data/schemas/notebooks.json +45 -0
- data/schemas/org.json +145 -110
- data/schemas/orgInvite.json +90 -0
- data/schemas/orgInviteCollection.json +130 -0
- data/schemas/orgInvites.json +82 -77
- data/schemas/orgRoleInfo.json +69 -0
- data/schemas/orgs.json +145 -110
- data/schemas/payloadStats.json +28 -12
- data/schemas/userCredentials.json +38 -1
- data/schemas/userPost.json +38 -1
- data/schemas/validateContextError.json +34 -0
- data/schemas/validateContextSuccess.json +34 -0
- data/schemas/virtualButtonPress.json +4 -0
- metadata +39 -6
data/schemas/devicesPatch.json
CHANGED
@@ -176,7 +176,8 @@
|
|
176
176
|
"peripheral",
|
177
177
|
"floating",
|
178
178
|
"edgeCompute",
|
179
|
-
"system"
|
179
|
+
"system",
|
180
|
+
"embedded"
|
180
181
|
]
|
181
182
|
},
|
182
183
|
"gatewayId": {
|
@@ -1597,7 +1598,8 @@
|
|
1597
1598
|
"peripheral",
|
1598
1599
|
"floating",
|
1599
1600
|
"edgeCompute",
|
1600
|
-
"system"
|
1601
|
+
"system",
|
1602
|
+
"embedded"
|
1601
1603
|
]
|
1602
1604
|
}
|
1603
1605
|
},
|
data/schemas/edgeDeployment.json
CHANGED
@@ -23,6 +23,22 @@
|
|
23
23
|
"minLength": 1,
|
24
24
|
"maxLength": 255
|
25
25
|
},
|
26
|
+
"deviceConnectionInfo": {
|
27
|
+
"type": "object",
|
28
|
+
"properties": {
|
29
|
+
"time": {
|
30
|
+
"type": "string",
|
31
|
+
"format": "date-time"
|
32
|
+
},
|
33
|
+
"connected": {
|
34
|
+
"enum": [
|
35
|
+
1,
|
36
|
+
0,
|
37
|
+
null
|
38
|
+
]
|
39
|
+
}
|
40
|
+
}
|
41
|
+
},
|
26
42
|
"flowId": {
|
27
43
|
"type": "string",
|
28
44
|
"pattern": "^[A-Fa-f\\d]{24}$"
|
@@ -32,6 +48,10 @@
|
|
32
48
|
"minLength": 1,
|
33
49
|
"maxLength": 255
|
34
50
|
},
|
51
|
+
"fileName": {
|
52
|
+
"type": "string",
|
53
|
+
"pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
|
54
|
+
},
|
35
55
|
"creationDate": {
|
36
56
|
"type": "string",
|
37
57
|
"format": "date-time"
|
@@ -30,6 +30,22 @@
|
|
30
30
|
"minLength": 1,
|
31
31
|
"maxLength": 255
|
32
32
|
},
|
33
|
+
"deviceConnectionInfo": {
|
34
|
+
"type": "object",
|
35
|
+
"properties": {
|
36
|
+
"time": {
|
37
|
+
"type": "string",
|
38
|
+
"format": "date-time"
|
39
|
+
},
|
40
|
+
"connected": {
|
41
|
+
"enum": [
|
42
|
+
1,
|
43
|
+
0,
|
44
|
+
null
|
45
|
+
]
|
46
|
+
}
|
47
|
+
}
|
48
|
+
},
|
33
49
|
"flowId": {
|
34
50
|
"type": "string",
|
35
51
|
"pattern": "^[A-Fa-f\\d]{24}$"
|
@@ -39,6 +55,10 @@
|
|
39
55
|
"minLength": 1,
|
40
56
|
"maxLength": 255
|
41
57
|
},
|
58
|
+
"fileName": {
|
59
|
+
"type": "string",
|
60
|
+
"pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
|
61
|
+
},
|
42
62
|
"creationDate": {
|
43
63
|
"type": "string",
|
44
64
|
"format": "date-time"
|
@@ -0,0 +1,179 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"id": {
|
6
|
+
"type": "string",
|
7
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
8
|
+
},
|
9
|
+
"embeddedDeploymentId": {
|
10
|
+
"type": "string",
|
11
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
12
|
+
},
|
13
|
+
"applicationId": {
|
14
|
+
"type": "string",
|
15
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
16
|
+
},
|
17
|
+
"creationDate": {
|
18
|
+
"type": "string",
|
19
|
+
"format": "date-time"
|
20
|
+
},
|
21
|
+
"lastUpdated": {
|
22
|
+
"type": "string",
|
23
|
+
"format": "date-time"
|
24
|
+
},
|
25
|
+
"deviceId": {
|
26
|
+
"type": "string",
|
27
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
28
|
+
},
|
29
|
+
"deviceName": {
|
30
|
+
"type": "string",
|
31
|
+
"minLength": 1,
|
32
|
+
"maxLength": 255
|
33
|
+
},
|
34
|
+
"deviceConnectionInfo": {
|
35
|
+
"type": "object",
|
36
|
+
"properties": {
|
37
|
+
"time": {
|
38
|
+
"type": "string",
|
39
|
+
"format": "date-time"
|
40
|
+
},
|
41
|
+
"connected": {
|
42
|
+
"enum": [
|
43
|
+
1,
|
44
|
+
0,
|
45
|
+
null
|
46
|
+
]
|
47
|
+
}
|
48
|
+
}
|
49
|
+
},
|
50
|
+
"flows": {
|
51
|
+
"type": "object",
|
52
|
+
"patternProperties": {
|
53
|
+
"^[A-Fa-f\\d]{24}$": {
|
54
|
+
"type": "object",
|
55
|
+
"properties": {
|
56
|
+
"flowName": {
|
57
|
+
"type": "string",
|
58
|
+
"minLength": 1,
|
59
|
+
"maxLength": 255
|
60
|
+
},
|
61
|
+
"currentVersion": {
|
62
|
+
"type": [
|
63
|
+
"string",
|
64
|
+
"null"
|
65
|
+
],
|
66
|
+
"minLength": 1,
|
67
|
+
"maxLength": 255
|
68
|
+
},
|
69
|
+
"desiredVersion": {
|
70
|
+
"type": [
|
71
|
+
"string",
|
72
|
+
"null"
|
73
|
+
],
|
74
|
+
"minLength": 1,
|
75
|
+
"maxLength": 255
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
},
|
80
|
+
"additionalProperties": false
|
81
|
+
},
|
82
|
+
"currentBundleVersion": {
|
83
|
+
"type": [
|
84
|
+
"string",
|
85
|
+
"null"
|
86
|
+
],
|
87
|
+
"minLength": 1,
|
88
|
+
"maxLength": 255
|
89
|
+
},
|
90
|
+
"desiredBundleVersion": {
|
91
|
+
"type": [
|
92
|
+
"string",
|
93
|
+
"null"
|
94
|
+
],
|
95
|
+
"minLength": 1,
|
96
|
+
"maxLength": 255
|
97
|
+
},
|
98
|
+
"unknownBundle": {
|
99
|
+
"type": "boolean"
|
100
|
+
},
|
101
|
+
"logs": {
|
102
|
+
"type": "array",
|
103
|
+
"items": {
|
104
|
+
"type": "object",
|
105
|
+
"properties": {
|
106
|
+
"sourceType": {
|
107
|
+
"type": "string",
|
108
|
+
"enum": [
|
109
|
+
"flow",
|
110
|
+
"user",
|
111
|
+
"device",
|
112
|
+
"apiToken",
|
113
|
+
"notebook"
|
114
|
+
]
|
115
|
+
},
|
116
|
+
"sourceId": {
|
117
|
+
"type": "string",
|
118
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
119
|
+
},
|
120
|
+
"date": {
|
121
|
+
"type": "string",
|
122
|
+
"format": "date-time"
|
123
|
+
},
|
124
|
+
"changeType": {
|
125
|
+
"type": "string",
|
126
|
+
"enum": [
|
127
|
+
"current",
|
128
|
+
"desired"
|
129
|
+
]
|
130
|
+
},
|
131
|
+
"updateType": {
|
132
|
+
"type": "string",
|
133
|
+
"enum": [
|
134
|
+
"newFlow",
|
135
|
+
"replaceFlow",
|
136
|
+
"removeFlow",
|
137
|
+
"clear",
|
138
|
+
"globals",
|
139
|
+
"device",
|
140
|
+
"unknownBundle",
|
141
|
+
"knownBundle"
|
142
|
+
]
|
143
|
+
},
|
144
|
+
"updateFlowId": {
|
145
|
+
"type": "string",
|
146
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
147
|
+
},
|
148
|
+
"desiredVersion": {
|
149
|
+
"type": [
|
150
|
+
"string",
|
151
|
+
"null"
|
152
|
+
],
|
153
|
+
"minLength": 1,
|
154
|
+
"maxLength": 255
|
155
|
+
},
|
156
|
+
"newBundle": {
|
157
|
+
"type": [
|
158
|
+
"string",
|
159
|
+
"null"
|
160
|
+
],
|
161
|
+
"minLength": 1,
|
162
|
+
"maxLength": 255
|
163
|
+
},
|
164
|
+
"attemptedBundle": {
|
165
|
+
"type": [
|
166
|
+
"string",
|
167
|
+
"null"
|
168
|
+
],
|
169
|
+
"minLength": 1,
|
170
|
+
"maxLength": 255
|
171
|
+
},
|
172
|
+
"error": {
|
173
|
+
"type": "string"
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"email": {
|
6
|
+
"type": "string",
|
7
|
+
"format": "email",
|
8
|
+
"maxLength": 1024
|
9
|
+
},
|
10
|
+
"embeddedDeploymentId": {
|
11
|
+
"type": "string",
|
12
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
13
|
+
},
|
14
|
+
"deviceId": {
|
15
|
+
"type": "string",
|
16
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
17
|
+
},
|
18
|
+
"traceLevel": {
|
19
|
+
"enum": [
|
20
|
+
0,
|
21
|
+
1,
|
22
|
+
2
|
23
|
+
]
|
24
|
+
},
|
25
|
+
"disableDebugMessage": {
|
26
|
+
"type": "boolean"
|
27
|
+
},
|
28
|
+
"stackSize": {
|
29
|
+
"type": "integer",
|
30
|
+
"minimum": 1600,
|
31
|
+
"maximum": 2147483648
|
32
|
+
},
|
33
|
+
"debugSymbols": {
|
34
|
+
"type": "boolean"
|
35
|
+
},
|
36
|
+
"exportMemory": {
|
37
|
+
"type": "boolean"
|
38
|
+
},
|
39
|
+
"gzip": {
|
40
|
+
"type": "boolean"
|
41
|
+
}
|
42
|
+
},
|
43
|
+
"additionalProperties": false
|
44
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"flowId": {
|
6
|
+
"type": "string",
|
7
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
8
|
+
},
|
9
|
+
"version": {
|
10
|
+
"type": [
|
11
|
+
"string",
|
12
|
+
"null"
|
13
|
+
],
|
14
|
+
"minLength": 1,
|
15
|
+
"maxLength": 255
|
16
|
+
},
|
17
|
+
"deviceIds": {
|
18
|
+
"type": "array",
|
19
|
+
"items": {
|
20
|
+
"type": "string",
|
21
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
22
|
+
},
|
23
|
+
"maxItems": 1000
|
24
|
+
},
|
25
|
+
"deviceTags": {
|
26
|
+
"type": "array",
|
27
|
+
"items": {
|
28
|
+
"type": "object",
|
29
|
+
"properties": {
|
30
|
+
"key": {
|
31
|
+
"type": "string",
|
32
|
+
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
|
33
|
+
},
|
34
|
+
"value": {
|
35
|
+
"type": "string",
|
36
|
+
"minLength": 1,
|
37
|
+
"maxLength": 255
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"additionalProperties": false
|
41
|
+
},
|
42
|
+
"maxItems": 100
|
43
|
+
},
|
44
|
+
"releaseTag": {
|
45
|
+
"type": [
|
46
|
+
"string",
|
47
|
+
"null"
|
48
|
+
],
|
49
|
+
"minLength": 1,
|
50
|
+
"maxLength": 255
|
51
|
+
}
|
52
|
+
},
|
53
|
+
"additionalProperties": false,
|
54
|
+
"required": [
|
55
|
+
"flowId",
|
56
|
+
"version"
|
57
|
+
]
|
58
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"flowId": {
|
6
|
+
"type": [
|
7
|
+
"string",
|
8
|
+
"null"
|
9
|
+
],
|
10
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
11
|
+
},
|
12
|
+
"deviceId": {
|
13
|
+
"type": [
|
14
|
+
"string",
|
15
|
+
"null"
|
16
|
+
],
|
17
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"additionalProperties": false,
|
21
|
+
"required": [
|
22
|
+
"flowId",
|
23
|
+
"deviceId"
|
24
|
+
]
|
25
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"flowId": {
|
6
|
+
"type": "string",
|
7
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
8
|
+
},
|
9
|
+
"oldVersion": {
|
10
|
+
"type": "string",
|
11
|
+
"minLength": 1,
|
12
|
+
"maxLength": 255
|
13
|
+
},
|
14
|
+
"newVersion": {
|
15
|
+
"type": [
|
16
|
+
"string",
|
17
|
+
"null"
|
18
|
+
],
|
19
|
+
"minLength": 1,
|
20
|
+
"maxLength": 255
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"additionalProperties": false,
|
24
|
+
"required": [
|
25
|
+
"flowId",
|
26
|
+
"oldVersion",
|
27
|
+
"newVersion"
|
28
|
+
]
|
29
|
+
}
|
@@ -0,0 +1,212 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"items": {
|
6
|
+
"type": "array",
|
7
|
+
"items": {
|
8
|
+
"title": "Embedded Deployment",
|
9
|
+
"description": "Schema for a single deployment of embedded workflows to embedded devices",
|
10
|
+
"type": "object",
|
11
|
+
"properties": {
|
12
|
+
"id": {
|
13
|
+
"type": "string",
|
14
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
15
|
+
},
|
16
|
+
"embeddedDeploymentId": {
|
17
|
+
"type": "string",
|
18
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
19
|
+
},
|
20
|
+
"applicationId": {
|
21
|
+
"type": "string",
|
22
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
23
|
+
},
|
24
|
+
"creationDate": {
|
25
|
+
"type": "string",
|
26
|
+
"format": "date-time"
|
27
|
+
},
|
28
|
+
"lastUpdated": {
|
29
|
+
"type": "string",
|
30
|
+
"format": "date-time"
|
31
|
+
},
|
32
|
+
"deviceId": {
|
33
|
+
"type": "string",
|
34
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
35
|
+
},
|
36
|
+
"deviceName": {
|
37
|
+
"type": "string",
|
38
|
+
"minLength": 1,
|
39
|
+
"maxLength": 255
|
40
|
+
},
|
41
|
+
"deviceConnectionInfo": {
|
42
|
+
"type": "object",
|
43
|
+
"properties": {
|
44
|
+
"time": {
|
45
|
+
"type": "string",
|
46
|
+
"format": "date-time"
|
47
|
+
},
|
48
|
+
"connected": {
|
49
|
+
"enum": [
|
50
|
+
1,
|
51
|
+
0,
|
52
|
+
null
|
53
|
+
]
|
54
|
+
}
|
55
|
+
}
|
56
|
+
},
|
57
|
+
"flows": {
|
58
|
+
"type": "object",
|
59
|
+
"patternProperties": {
|
60
|
+
"^[A-Fa-f\\d]{24}$": {
|
61
|
+
"type": "object",
|
62
|
+
"properties": {
|
63
|
+
"flowName": {
|
64
|
+
"type": "string",
|
65
|
+
"minLength": 1,
|
66
|
+
"maxLength": 255
|
67
|
+
},
|
68
|
+
"currentVersion": {
|
69
|
+
"type": [
|
70
|
+
"string",
|
71
|
+
"null"
|
72
|
+
],
|
73
|
+
"minLength": 1,
|
74
|
+
"maxLength": 255
|
75
|
+
},
|
76
|
+
"desiredVersion": {
|
77
|
+
"type": [
|
78
|
+
"string",
|
79
|
+
"null"
|
80
|
+
],
|
81
|
+
"minLength": 1,
|
82
|
+
"maxLength": 255
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
},
|
87
|
+
"additionalProperties": false
|
88
|
+
},
|
89
|
+
"currentBundleVersion": {
|
90
|
+
"type": [
|
91
|
+
"string",
|
92
|
+
"null"
|
93
|
+
],
|
94
|
+
"minLength": 1,
|
95
|
+
"maxLength": 255
|
96
|
+
},
|
97
|
+
"desiredBundleVersion": {
|
98
|
+
"type": [
|
99
|
+
"string",
|
100
|
+
"null"
|
101
|
+
],
|
102
|
+
"minLength": 1,
|
103
|
+
"maxLength": 255
|
104
|
+
},
|
105
|
+
"unknownBundle": {
|
106
|
+
"type": "boolean"
|
107
|
+
},
|
108
|
+
"logs": {
|
109
|
+
"type": "array",
|
110
|
+
"items": {
|
111
|
+
"type": "object",
|
112
|
+
"properties": {
|
113
|
+
"sourceType": {
|
114
|
+
"type": "string",
|
115
|
+
"enum": [
|
116
|
+
"flow",
|
117
|
+
"user",
|
118
|
+
"device",
|
119
|
+
"apiToken",
|
120
|
+
"notebook"
|
121
|
+
]
|
122
|
+
},
|
123
|
+
"sourceId": {
|
124
|
+
"type": "string",
|
125
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
126
|
+
},
|
127
|
+
"date": {
|
128
|
+
"type": "string",
|
129
|
+
"format": "date-time"
|
130
|
+
},
|
131
|
+
"changeType": {
|
132
|
+
"type": "string",
|
133
|
+
"enum": [
|
134
|
+
"current",
|
135
|
+
"desired"
|
136
|
+
]
|
137
|
+
},
|
138
|
+
"updateType": {
|
139
|
+
"type": "string",
|
140
|
+
"enum": [
|
141
|
+
"newFlow",
|
142
|
+
"replaceFlow",
|
143
|
+
"removeFlow",
|
144
|
+
"clear",
|
145
|
+
"globals",
|
146
|
+
"device",
|
147
|
+
"unknownBundle",
|
148
|
+
"knownBundle"
|
149
|
+
]
|
150
|
+
},
|
151
|
+
"updateFlowId": {
|
152
|
+
"type": "string",
|
153
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
154
|
+
},
|
155
|
+
"desiredVersion": {
|
156
|
+
"type": [
|
157
|
+
"string",
|
158
|
+
"null"
|
159
|
+
],
|
160
|
+
"minLength": 1,
|
161
|
+
"maxLength": 255
|
162
|
+
},
|
163
|
+
"newBundle": {
|
164
|
+
"type": [
|
165
|
+
"string",
|
166
|
+
"null"
|
167
|
+
],
|
168
|
+
"minLength": 1,
|
169
|
+
"maxLength": 255
|
170
|
+
},
|
171
|
+
"attemptedBundle": {
|
172
|
+
"type": [
|
173
|
+
"string",
|
174
|
+
"null"
|
175
|
+
],
|
176
|
+
"minLength": 1,
|
177
|
+
"maxLength": 255
|
178
|
+
},
|
179
|
+
"error": {
|
180
|
+
"type": "string"
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
},
|
188
|
+
"count": {
|
189
|
+
"type": "integer"
|
190
|
+
},
|
191
|
+
"totalCount": {
|
192
|
+
"type": "integer"
|
193
|
+
},
|
194
|
+
"applicationId": {
|
195
|
+
"type": "string",
|
196
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
197
|
+
},
|
198
|
+
"deviceId": {
|
199
|
+
"type": "string",
|
200
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
201
|
+
},
|
202
|
+
"flowId": {
|
203
|
+
"type": "string",
|
204
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
205
|
+
},
|
206
|
+
"version": {
|
207
|
+
"type": "string",
|
208
|
+
"minLength": 1,
|
209
|
+
"maxLength": 255
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
data/schemas/eventsDeleted.json
CHANGED
@@ -97,10 +97,9 @@
|
|
97
97
|
"type": "string"
|
98
98
|
},
|
99
99
|
"statusCode": {
|
100
|
-
"type": "
|
101
|
-
"
|
102
|
-
"
|
103
|
-
"integer": true
|
100
|
+
"type": "integer",
|
101
|
+
"minimum": 100,
|
102
|
+
"maximum": 599
|
104
103
|
},
|
105
104
|
"type": {
|
106
105
|
"type": "string",
|
@@ -130,10 +129,9 @@
|
|
130
129
|
"type": "string"
|
131
130
|
},
|
132
131
|
"statusCode": {
|
133
|
-
"type": "
|
134
|
-
"
|
135
|
-
"
|
136
|
-
"integer": true
|
132
|
+
"type": "integer",
|
133
|
+
"minimum": 100,
|
134
|
+
"maximum": 599
|
137
135
|
},
|
138
136
|
"type": {
|
139
137
|
"type": "string",
|