losant_rest 1.8.7 → 1.8.9
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 +38618 -21196
- data/docs/application.md +76 -0
- data/docs/auth.md +0 -36
- data/docs/dashboards.md +1 -1
- data/docs/dataTableRows.md +2 -2
- data/docs/device.md +1 -0
- data/docs/events.md +81 -0
- data/docs/file.md +43 -0
- data/docs/me.md +50 -13
- data/lib/losant_rest.rb +0 -4
- data/lib/losant_rest/application.rb +90 -0
- data/lib/losant_rest/application_api_token.rb +2 -0
- data/lib/losant_rest/application_api_tokens.rb +2 -0
- data/lib/losant_rest/application_certificate.rb +2 -0
- data/lib/losant_rest/application_certificate_authorities.rb +2 -0
- data/lib/losant_rest/application_certificate_authority.rb +2 -0
- data/lib/losant_rest/application_certificates.rb +2 -0
- data/lib/losant_rest/application_key.rb +2 -0
- data/lib/losant_rest/application_keys.rb +2 -0
- data/lib/losant_rest/applications.rb +2 -0
- data/lib/losant_rest/audit_log.rb +2 -0
- data/lib/losant_rest/audit_logs.rb +2 -0
- data/lib/losant_rest/auth.rb +2 -42
- data/lib/losant_rest/client.rb +2 -18
- data/lib/losant_rest/dashboard.rb +2 -0
- data/lib/losant_rest/dashboards.rb +3 -1
- data/lib/losant_rest/data.rb +2 -0
- data/lib/losant_rest/data_table.rb +2 -0
- data/lib/losant_rest/data_table_row.rb +2 -0
- data/lib/losant_rest/data_table_rows.rb +4 -2
- data/lib/losant_rest/data_tables.rb +2 -0
- data/lib/losant_rest/device.rb +4 -0
- data/lib/losant_rest/device_recipe.rb +2 -0
- data/lib/losant_rest/device_recipes.rb +2 -0
- data/lib/losant_rest/devices.rb +2 -0
- data/lib/losant_rest/edge_deployments.rb +2 -0
- data/lib/losant_rest/event.rb +2 -0
- data/lib/losant_rest/events.rb +103 -0
- data/lib/losant_rest/experience.rb +2 -0
- data/lib/losant_rest/experience_domain.rb +2 -0
- data/lib/losant_rest/experience_domains.rb +2 -0
- data/lib/losant_rest/experience_endpoint.rb +2 -0
- data/lib/losant_rest/experience_endpoints.rb +2 -0
- data/lib/losant_rest/experience_group.rb +2 -0
- data/lib/losant_rest/experience_groups.rb +2 -0
- data/lib/losant_rest/experience_slug.rb +2 -0
- data/lib/losant_rest/experience_slugs.rb +2 -0
- data/lib/losant_rest/experience_user.rb +2 -0
- data/lib/losant_rest/experience_users.rb +2 -0
- data/lib/losant_rest/experience_version.rb +2 -0
- data/lib/losant_rest/experience_versions.rb +2 -0
- data/lib/losant_rest/experience_view.rb +2 -0
- data/lib/losant_rest/experience_views.rb +2 -0
- data/lib/losant_rest/file.rb +2 -0
- data/lib/losant_rest/files.rb +2 -0
- data/lib/losant_rest/flow.rb +2 -0
- data/lib/losant_rest/flow_version.rb +2 -0
- data/lib/losant_rest/flow_versions.rb +2 -0
- data/lib/losant_rest/flows.rb +2 -0
- data/lib/losant_rest/integration.rb +2 -0
- data/lib/losant_rest/integrations.rb +2 -0
- data/lib/losant_rest/me.rb +57 -13
- data/lib/losant_rest/notebook.rb +2 -0
- data/lib/losant_rest/notebooks.rb +2 -0
- data/lib/losant_rest/org.rb +2 -0
- data/lib/losant_rest/org_invites.rb +2 -0
- data/lib/losant_rest/orgs.rb +2 -0
- data/lib/losant_rest/version.rb +1 -1
- data/lib/losant_rest/webhook.rb +2 -0
- data/lib/losant_rest/webhooks.rb +2 -0
- data/schemas/advancedEventQuery.json +817 -0
- data/schemas/{dataTableQuery.json → advancedQuery.json} +5 -4
- data/schemas/apiTokens.json +4 -1
- data/schemas/application.json +30 -1
- data/schemas/applicationApiTokenPost.json +5 -0
- data/schemas/applicationCertificate.json +29 -1
- data/schemas/applicationCertificateAuthorities.json +36 -3
- data/schemas/applicationCertificateAuthority.json +32 -2
- data/schemas/applicationCertificateAuthorityPatch.json +3 -1
- data/schemas/applicationCertificateAuthorityPost.json +3 -1
- data/schemas/applicationCertificatePatch.json +3 -1
- data/schemas/applicationCertificatePost.json +3 -1
- data/schemas/applicationCertificates.json +33 -2
- data/schemas/applicationKeys.json +4 -1
- data/schemas/applicationPatch.json +28 -0
- data/schemas/applicationPost.json +28 -0
- data/schemas/applications.json +34 -2
- data/schemas/auditLog.json +0 -3
- data/schemas/auditLogFilter.json +0 -3
- data/schemas/auditLogs.json +4 -4
- data/schemas/authedDevice.json +7 -0
- data/schemas/dashboard.json +3970 -72
- data/schemas/dashboardPatch.json +3969 -72
- data/schemas/dashboardPost.json +3969 -72
- data/schemas/dashboardSendReport.json +4 -0
- data/schemas/dashboardUpdateEvents.json +46 -0
- data/schemas/dashboards.json +3974 -73
- data/schemas/dataTableRows.json +4 -1
- data/schemas/dataTableRowsExport.json +11 -7
- data/schemas/dataTables.json +4 -1
- data/schemas/deviceRecipes.json +4 -1
- data/schemas/devices.json +4 -1
- data/schemas/event.json +19 -2
- data/schemas/eventPost.json +0 -1
- data/schemas/eventTagsSummary.json +28 -0
- data/schemas/events.json +841 -3
- data/schemas/eventsDeleted.json +9 -0
- data/schemas/eventsExport.json +830 -0
- data/schemas/experienceDomain.json +6 -2
- data/schemas/experienceDomainPatch.json +14 -10
- data/schemas/experienceDomainPost.json +8 -4
- data/schemas/experienceDomains.json +6 -2
- data/schemas/experienceEndpoints.json +4 -1
- data/schemas/experienceGroup.json +2 -2
- data/schemas/experienceGroupPatch.json +2 -2
- data/schemas/experienceGroupPost.json +2 -2
- data/schemas/experienceGroups.json +6 -3
- data/schemas/experienceSlugPatch.json +2 -2
- data/schemas/experienceSlugPost.json +2 -2
- data/schemas/experienceUsers.json +4 -1
- data/schemas/experienceViews.json +4 -1
- data/schemas/files.json +4 -1
- data/schemas/flow.json +4 -0
- data/schemas/flowPatch.json +6 -2
- data/schemas/flowPost.json +4 -0
- data/schemas/flowVersion.json +8 -0
- data/schemas/flowVersionPost.json +4 -0
- data/schemas/flowVersions.json +12 -1
- data/schemas/flows.json +8 -1
- data/schemas/flowsImportPost.json +10 -2
- data/schemas/flowsImportResult.json +12 -0
- data/schemas/githubLogin.json +6 -15
- data/schemas/integrations.json +4 -1
- data/schemas/notebooks.json +4 -1
- data/schemas/org.json +2 -4
- data/schemas/orgPatch.json +2 -1
- data/schemas/orgPost.json +2 -1
- data/schemas/orgs.json +6 -5
- data/schemas/passwordResetFinish.json +0 -4
- data/schemas/passwordResetInput.json +0 -4
- data/schemas/resourceTransfer.json +0 -8
- data/schemas/userCredentials.json +6 -15
- data/schemas/userPost.json +6 -15
- data/schemas/webhooks.json +4 -1
- data/test/basic_test.rb +15 -0
- metadata +8 -23
- data/docs/solution.md +0 -133
- data/docs/solutionUser.md +0 -139
- data/docs/solutionUsers.md +0 -96
- data/docs/solutions.md +0 -91
- data/lib/losant_rest/solution.rb +0 -174
- data/lib/losant_rest/solution_user.rb +0 -180
- data/lib/losant_rest/solution_users.rb +0 -138
- data/lib/losant_rest/solutions.rb +0 -134
- data/schemas/authedSolutionUser.json +0 -18
- data/schemas/fileUploadPostResp.json +0 -109
- data/schemas/solution.json +0 -76
- data/schemas/solutionMe.json +0 -150
- data/schemas/solutionPatch.json +0 -48
- data/schemas/solutionPost.json +0 -52
- data/schemas/solutionUser.json +0 -103
- data/schemas/solutionUserCredentials.json +0 -34
- data/schemas/solutionUserPatch.json +0 -74
- data/schemas/solutionUserPost.json +0 -80
- data/schemas/solutionUsers.json +0 -149
- data/schemas/solutions.json +0 -118
@@ -5,18 +5,18 @@
|
|
5
5
|
"$and": {
|
6
6
|
"type": "array",
|
7
7
|
"items": {
|
8
|
-
"$ref": "#/definitions/
|
8
|
+
"$ref": "#/definitions/advancedQuery"
|
9
9
|
}
|
10
10
|
},
|
11
11
|
"$or": {
|
12
12
|
"type": "array",
|
13
13
|
"items": {
|
14
|
-
"$ref": "#/definitions/
|
14
|
+
"$ref": "#/definitions/advancedQuery"
|
15
15
|
}
|
16
16
|
}
|
17
17
|
},
|
18
18
|
"patternProperties": {
|
19
|
-
"^[0-9a-zA-Z_-]{1,255}
|
19
|
+
"^[0-9a-zA-Z_-]{1,255}": {
|
20
20
|
"oneOf": [
|
21
21
|
{
|
22
22
|
"type": [
|
@@ -89,7 +89,8 @@
|
|
89
89
|
"type": "string",
|
90
90
|
"minLength": 1
|
91
91
|
}
|
92
|
-
}
|
92
|
+
},
|
93
|
+
"additionalProperties": false
|
93
94
|
}
|
94
95
|
]
|
95
96
|
}
|
data/schemas/apiTokens.json
CHANGED
data/schemas/application.json
CHANGED
@@ -35,7 +35,8 @@
|
|
35
35
|
"maxLength": 255
|
36
36
|
},
|
37
37
|
"organizationIconColor": {
|
38
|
-
"type": "string"
|
38
|
+
"type": "string",
|
39
|
+
"maxLength": 64
|
39
40
|
},
|
40
41
|
"name": {
|
41
42
|
"type": "string",
|
@@ -224,6 +225,34 @@
|
|
224
225
|
},
|
225
226
|
"maxItems": 100
|
226
227
|
},
|
228
|
+
"includeDevices": {
|
229
|
+
"type": "boolean",
|
230
|
+
"default": true
|
231
|
+
},
|
232
|
+
"includeEvents": {
|
233
|
+
"type": "boolean",
|
234
|
+
"default": false
|
235
|
+
},
|
236
|
+
"includeDataTables": {
|
237
|
+
"type": "boolean",
|
238
|
+
"default": false
|
239
|
+
},
|
240
|
+
"dataTablesMode": {
|
241
|
+
"type": "string",
|
242
|
+
"enum": [
|
243
|
+
"all",
|
244
|
+
"whitelist",
|
245
|
+
"blacklist"
|
246
|
+
]
|
247
|
+
},
|
248
|
+
"dataTableIds": {
|
249
|
+
"type": "array",
|
250
|
+
"items": {
|
251
|
+
"type": "string",
|
252
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
253
|
+
},
|
254
|
+
"maxItems": 1000
|
255
|
+
},
|
227
256
|
"s3": {
|
228
257
|
"type": "object",
|
229
258
|
"properties": {
|
@@ -75,6 +75,8 @@
|
|
75
75
|
"webhooks.*",
|
76
76
|
"application.archiveData",
|
77
77
|
"application.backfillArchiveData",
|
78
|
+
"application.fullEventsArchive",
|
79
|
+
"application.fullDataTablesArchive",
|
78
80
|
"application.debug",
|
79
81
|
"application.delete",
|
80
82
|
"application.get",
|
@@ -155,10 +157,12 @@
|
|
155
157
|
"event.delete",
|
156
158
|
"event.get",
|
157
159
|
"event.patch",
|
160
|
+
"events.delete",
|
158
161
|
"events.get",
|
159
162
|
"events.mostRecentBySeverity",
|
160
163
|
"events.patch",
|
161
164
|
"events.post",
|
165
|
+
"events.export",
|
162
166
|
"experience.delete",
|
163
167
|
"experience.bootstrap",
|
164
168
|
"experienceDomain.delete",
|
@@ -206,6 +210,7 @@
|
|
206
210
|
"file.patch",
|
207
211
|
"file.move",
|
208
212
|
"file.delete",
|
213
|
+
"file.upload",
|
209
214
|
"files.get",
|
210
215
|
"files.post",
|
211
216
|
"flow.debug",
|
@@ -61,7 +61,35 @@
|
|
61
61
|
"maxItems": 100
|
62
62
|
},
|
63
63
|
"certificateInfo": {
|
64
|
-
"
|
64
|
+
"type": "object",
|
65
|
+
"properties": {
|
66
|
+
"serialNumber": {
|
67
|
+
"type": "string",
|
68
|
+
"minLength": 1,
|
69
|
+
"maxLength": 1024
|
70
|
+
},
|
71
|
+
"fingerprint": {
|
72
|
+
"type": "string",
|
73
|
+
"minLength": 1,
|
74
|
+
"maxLength": 1024
|
75
|
+
},
|
76
|
+
"commonName": {
|
77
|
+
"type": "string",
|
78
|
+
"maxLength": 1024
|
79
|
+
},
|
80
|
+
"issuerName": {
|
81
|
+
"type": "string",
|
82
|
+
"maxLength": 1024
|
83
|
+
},
|
84
|
+
"notValidBefore": {
|
85
|
+
"type": "string",
|
86
|
+
"format": "date-time"
|
87
|
+
},
|
88
|
+
"notValidAfter": {
|
89
|
+
"type": "string",
|
90
|
+
"format": "date-time"
|
91
|
+
}
|
92
|
+
}
|
65
93
|
}
|
66
94
|
}
|
67
95
|
}
|
@@ -46,12 +46,42 @@
|
|
46
46
|
"maxLength": 32767
|
47
47
|
},
|
48
48
|
"caBundle": {
|
49
|
-
"
|
49
|
+
"type": "string",
|
50
|
+
"maxLength": 32767,
|
51
|
+
"minLength": 50
|
50
52
|
},
|
51
53
|
"caInfo": {
|
52
54
|
"type": "array",
|
53
55
|
"items": {
|
54
|
-
"
|
56
|
+
"type": "object",
|
57
|
+
"properties": {
|
58
|
+
"serialNumber": {
|
59
|
+
"type": "string",
|
60
|
+
"minLength": 1,
|
61
|
+
"maxLength": 1024
|
62
|
+
},
|
63
|
+
"fingerprint": {
|
64
|
+
"type": "string",
|
65
|
+
"minLength": 1,
|
66
|
+
"maxLength": 1024
|
67
|
+
},
|
68
|
+
"commonName": {
|
69
|
+
"type": "string",
|
70
|
+
"maxLength": 1024
|
71
|
+
},
|
72
|
+
"issuerName": {
|
73
|
+
"type": "string",
|
74
|
+
"maxLength": 1024
|
75
|
+
},
|
76
|
+
"notValidBefore": {
|
77
|
+
"type": "string",
|
78
|
+
"format": "date-time"
|
79
|
+
},
|
80
|
+
"notValidAfter": {
|
81
|
+
"type": "string",
|
82
|
+
"format": "date-time"
|
83
|
+
}
|
84
|
+
}
|
55
85
|
}
|
56
86
|
}
|
57
87
|
}
|
@@ -82,7 +112,10 @@
|
|
82
112
|
"type": "string",
|
83
113
|
"enum": [
|
84
114
|
"asc",
|
85
|
-
"desc"
|
115
|
+
"desc",
|
116
|
+
"ASC",
|
117
|
+
"DESC",
|
118
|
+
""
|
86
119
|
]
|
87
120
|
},
|
88
121
|
"applicationId": {
|
@@ -39,12 +39,42 @@
|
|
39
39
|
"maxLength": 32767
|
40
40
|
},
|
41
41
|
"caBundle": {
|
42
|
-
"
|
42
|
+
"type": "string",
|
43
|
+
"maxLength": 32767,
|
44
|
+
"minLength": 50
|
43
45
|
},
|
44
46
|
"caInfo": {
|
45
47
|
"type": "array",
|
46
48
|
"items": {
|
47
|
-
"
|
49
|
+
"type": "object",
|
50
|
+
"properties": {
|
51
|
+
"serialNumber": {
|
52
|
+
"type": "string",
|
53
|
+
"minLength": 1,
|
54
|
+
"maxLength": 1024
|
55
|
+
},
|
56
|
+
"fingerprint": {
|
57
|
+
"type": "string",
|
58
|
+
"minLength": 1,
|
59
|
+
"maxLength": 1024
|
60
|
+
},
|
61
|
+
"commonName": {
|
62
|
+
"type": "string",
|
63
|
+
"maxLength": 1024
|
64
|
+
},
|
65
|
+
"issuerName": {
|
66
|
+
"type": "string",
|
67
|
+
"maxLength": 1024
|
68
|
+
},
|
69
|
+
"notValidBefore": {
|
70
|
+
"type": "string",
|
71
|
+
"format": "date-time"
|
72
|
+
},
|
73
|
+
"notValidAfter": {
|
74
|
+
"type": "string",
|
75
|
+
"format": "date-time"
|
76
|
+
}
|
77
|
+
}
|
48
78
|
}
|
49
79
|
}
|
50
80
|
}
|
@@ -68,7 +68,35 @@
|
|
68
68
|
"maxItems": 100
|
69
69
|
},
|
70
70
|
"certificateInfo": {
|
71
|
-
"
|
71
|
+
"type": "object",
|
72
|
+
"properties": {
|
73
|
+
"serialNumber": {
|
74
|
+
"type": "string",
|
75
|
+
"minLength": 1,
|
76
|
+
"maxLength": 1024
|
77
|
+
},
|
78
|
+
"fingerprint": {
|
79
|
+
"type": "string",
|
80
|
+
"minLength": 1,
|
81
|
+
"maxLength": 1024
|
82
|
+
},
|
83
|
+
"commonName": {
|
84
|
+
"type": "string",
|
85
|
+
"maxLength": 1024
|
86
|
+
},
|
87
|
+
"issuerName": {
|
88
|
+
"type": "string",
|
89
|
+
"maxLength": 1024
|
90
|
+
},
|
91
|
+
"notValidBefore": {
|
92
|
+
"type": "string",
|
93
|
+
"format": "date-time"
|
94
|
+
},
|
95
|
+
"notValidAfter": {
|
96
|
+
"type": "string",
|
97
|
+
"format": "date-time"
|
98
|
+
}
|
99
|
+
}
|
72
100
|
}
|
73
101
|
}
|
74
102
|
}
|
@@ -98,7 +126,10 @@
|
|
98
126
|
"type": "string",
|
99
127
|
"enum": [
|
100
128
|
"asc",
|
101
|
-
"desc"
|
129
|
+
"desc",
|
130
|
+
"ASC",
|
131
|
+
"DESC",
|
132
|
+
""
|
102
133
|
]
|
103
134
|
},
|
104
135
|
"applicationId": {
|
@@ -122,6 +122,34 @@
|
|
122
122
|
},
|
123
123
|
"maxItems": 100
|
124
124
|
},
|
125
|
+
"includeDevices": {
|
126
|
+
"type": "boolean",
|
127
|
+
"default": true
|
128
|
+
},
|
129
|
+
"includeEvents": {
|
130
|
+
"type": "boolean",
|
131
|
+
"default": false
|
132
|
+
},
|
133
|
+
"includeDataTables": {
|
134
|
+
"type": "boolean",
|
135
|
+
"default": false
|
136
|
+
},
|
137
|
+
"dataTablesMode": {
|
138
|
+
"type": "string",
|
139
|
+
"enum": [
|
140
|
+
"all",
|
141
|
+
"whitelist",
|
142
|
+
"blacklist"
|
143
|
+
]
|
144
|
+
},
|
145
|
+
"dataTableIds": {
|
146
|
+
"type": "array",
|
147
|
+
"items": {
|
148
|
+
"type": "string",
|
149
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
150
|
+
},
|
151
|
+
"maxItems": 1000
|
152
|
+
},
|
125
153
|
"s3": {
|
126
154
|
"type": "object",
|
127
155
|
"properties": {
|
@@ -97,6 +97,34 @@
|
|
97
97
|
},
|
98
98
|
"maxItems": 100
|
99
99
|
},
|
100
|
+
"includeDevices": {
|
101
|
+
"type": "boolean",
|
102
|
+
"default": true
|
103
|
+
},
|
104
|
+
"includeEvents": {
|
105
|
+
"type": "boolean",
|
106
|
+
"default": false
|
107
|
+
},
|
108
|
+
"includeDataTables": {
|
109
|
+
"type": "boolean",
|
110
|
+
"default": false
|
111
|
+
},
|
112
|
+
"dataTablesMode": {
|
113
|
+
"type": "string",
|
114
|
+
"enum": [
|
115
|
+
"all",
|
116
|
+
"whitelist",
|
117
|
+
"blacklist"
|
118
|
+
]
|
119
|
+
},
|
120
|
+
"dataTableIds": {
|
121
|
+
"type": "array",
|
122
|
+
"items": {
|
123
|
+
"type": "string",
|
124
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
125
|
+
},
|
126
|
+
"maxItems": 1000
|
127
|
+
},
|
100
128
|
"s3": {
|
101
129
|
"type": "object",
|
102
130
|
"properties": {
|
data/schemas/applications.json
CHANGED
@@ -42,7 +42,8 @@
|
|
42
42
|
"maxLength": 255
|
43
43
|
},
|
44
44
|
"organizationIconColor": {
|
45
|
-
"type": "string"
|
45
|
+
"type": "string",
|
46
|
+
"maxLength": 64
|
46
47
|
},
|
47
48
|
"name": {
|
48
49
|
"type": "string",
|
@@ -231,6 +232,34 @@
|
|
231
232
|
},
|
232
233
|
"maxItems": 100
|
233
234
|
},
|
235
|
+
"includeDevices": {
|
236
|
+
"type": "boolean",
|
237
|
+
"default": true
|
238
|
+
},
|
239
|
+
"includeEvents": {
|
240
|
+
"type": "boolean",
|
241
|
+
"default": false
|
242
|
+
},
|
243
|
+
"includeDataTables": {
|
244
|
+
"type": "boolean",
|
245
|
+
"default": false
|
246
|
+
},
|
247
|
+
"dataTablesMode": {
|
248
|
+
"type": "string",
|
249
|
+
"enum": [
|
250
|
+
"all",
|
251
|
+
"whitelist",
|
252
|
+
"blacklist"
|
253
|
+
]
|
254
|
+
},
|
255
|
+
"dataTableIds": {
|
256
|
+
"type": "array",
|
257
|
+
"items": {
|
258
|
+
"type": "string",
|
259
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
260
|
+
},
|
261
|
+
"maxItems": 1000
|
262
|
+
},
|
234
263
|
"s3": {
|
235
264
|
"type": "object",
|
236
265
|
"properties": {
|
@@ -317,7 +346,10 @@
|
|
317
346
|
"type": "string",
|
318
347
|
"enum": [
|
319
348
|
"asc",
|
320
|
-
"desc"
|
349
|
+
"desc",
|
350
|
+
"ASC",
|
351
|
+
"DESC",
|
352
|
+
""
|
321
353
|
]
|
322
354
|
}
|
323
355
|
}
|