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.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +38618 -21196
  3. data/docs/application.md +76 -0
  4. data/docs/auth.md +0 -36
  5. data/docs/dashboards.md +1 -1
  6. data/docs/dataTableRows.md +2 -2
  7. data/docs/device.md +1 -0
  8. data/docs/events.md +81 -0
  9. data/docs/file.md +43 -0
  10. data/docs/me.md +50 -13
  11. data/lib/losant_rest.rb +0 -4
  12. data/lib/losant_rest/application.rb +90 -0
  13. data/lib/losant_rest/application_api_token.rb +2 -0
  14. data/lib/losant_rest/application_api_tokens.rb +2 -0
  15. data/lib/losant_rest/application_certificate.rb +2 -0
  16. data/lib/losant_rest/application_certificate_authorities.rb +2 -0
  17. data/lib/losant_rest/application_certificate_authority.rb +2 -0
  18. data/lib/losant_rest/application_certificates.rb +2 -0
  19. data/lib/losant_rest/application_key.rb +2 -0
  20. data/lib/losant_rest/application_keys.rb +2 -0
  21. data/lib/losant_rest/applications.rb +2 -0
  22. data/lib/losant_rest/audit_log.rb +2 -0
  23. data/lib/losant_rest/audit_logs.rb +2 -0
  24. data/lib/losant_rest/auth.rb +2 -42
  25. data/lib/losant_rest/client.rb +2 -18
  26. data/lib/losant_rest/dashboard.rb +2 -0
  27. data/lib/losant_rest/dashboards.rb +3 -1
  28. data/lib/losant_rest/data.rb +2 -0
  29. data/lib/losant_rest/data_table.rb +2 -0
  30. data/lib/losant_rest/data_table_row.rb +2 -0
  31. data/lib/losant_rest/data_table_rows.rb +4 -2
  32. data/lib/losant_rest/data_tables.rb +2 -0
  33. data/lib/losant_rest/device.rb +4 -0
  34. data/lib/losant_rest/device_recipe.rb +2 -0
  35. data/lib/losant_rest/device_recipes.rb +2 -0
  36. data/lib/losant_rest/devices.rb +2 -0
  37. data/lib/losant_rest/edge_deployments.rb +2 -0
  38. data/lib/losant_rest/event.rb +2 -0
  39. data/lib/losant_rest/events.rb +103 -0
  40. data/lib/losant_rest/experience.rb +2 -0
  41. data/lib/losant_rest/experience_domain.rb +2 -0
  42. data/lib/losant_rest/experience_domains.rb +2 -0
  43. data/lib/losant_rest/experience_endpoint.rb +2 -0
  44. data/lib/losant_rest/experience_endpoints.rb +2 -0
  45. data/lib/losant_rest/experience_group.rb +2 -0
  46. data/lib/losant_rest/experience_groups.rb +2 -0
  47. data/lib/losant_rest/experience_slug.rb +2 -0
  48. data/lib/losant_rest/experience_slugs.rb +2 -0
  49. data/lib/losant_rest/experience_user.rb +2 -0
  50. data/lib/losant_rest/experience_users.rb +2 -0
  51. data/lib/losant_rest/experience_version.rb +2 -0
  52. data/lib/losant_rest/experience_versions.rb +2 -0
  53. data/lib/losant_rest/experience_view.rb +2 -0
  54. data/lib/losant_rest/experience_views.rb +2 -0
  55. data/lib/losant_rest/file.rb +2 -0
  56. data/lib/losant_rest/files.rb +2 -0
  57. data/lib/losant_rest/flow.rb +2 -0
  58. data/lib/losant_rest/flow_version.rb +2 -0
  59. data/lib/losant_rest/flow_versions.rb +2 -0
  60. data/lib/losant_rest/flows.rb +2 -0
  61. data/lib/losant_rest/integration.rb +2 -0
  62. data/lib/losant_rest/integrations.rb +2 -0
  63. data/lib/losant_rest/me.rb +57 -13
  64. data/lib/losant_rest/notebook.rb +2 -0
  65. data/lib/losant_rest/notebooks.rb +2 -0
  66. data/lib/losant_rest/org.rb +2 -0
  67. data/lib/losant_rest/org_invites.rb +2 -0
  68. data/lib/losant_rest/orgs.rb +2 -0
  69. data/lib/losant_rest/version.rb +1 -1
  70. data/lib/losant_rest/webhook.rb +2 -0
  71. data/lib/losant_rest/webhooks.rb +2 -0
  72. data/schemas/advancedEventQuery.json +817 -0
  73. data/schemas/{dataTableQuery.json → advancedQuery.json} +5 -4
  74. data/schemas/apiTokens.json +4 -1
  75. data/schemas/application.json +30 -1
  76. data/schemas/applicationApiTokenPost.json +5 -0
  77. data/schemas/applicationCertificate.json +29 -1
  78. data/schemas/applicationCertificateAuthorities.json +36 -3
  79. data/schemas/applicationCertificateAuthority.json +32 -2
  80. data/schemas/applicationCertificateAuthorityPatch.json +3 -1
  81. data/schemas/applicationCertificateAuthorityPost.json +3 -1
  82. data/schemas/applicationCertificatePatch.json +3 -1
  83. data/schemas/applicationCertificatePost.json +3 -1
  84. data/schemas/applicationCertificates.json +33 -2
  85. data/schemas/applicationKeys.json +4 -1
  86. data/schemas/applicationPatch.json +28 -0
  87. data/schemas/applicationPost.json +28 -0
  88. data/schemas/applications.json +34 -2
  89. data/schemas/auditLog.json +0 -3
  90. data/schemas/auditLogFilter.json +0 -3
  91. data/schemas/auditLogs.json +4 -4
  92. data/schemas/authedDevice.json +7 -0
  93. data/schemas/dashboard.json +3970 -72
  94. data/schemas/dashboardPatch.json +3969 -72
  95. data/schemas/dashboardPost.json +3969 -72
  96. data/schemas/dashboardSendReport.json +4 -0
  97. data/schemas/dashboardUpdateEvents.json +46 -0
  98. data/schemas/dashboards.json +3974 -73
  99. data/schemas/dataTableRows.json +4 -1
  100. data/schemas/dataTableRowsExport.json +11 -7
  101. data/schemas/dataTables.json +4 -1
  102. data/schemas/deviceRecipes.json +4 -1
  103. data/schemas/devices.json +4 -1
  104. data/schemas/event.json +19 -2
  105. data/schemas/eventPost.json +0 -1
  106. data/schemas/eventTagsSummary.json +28 -0
  107. data/schemas/events.json +841 -3
  108. data/schemas/eventsDeleted.json +9 -0
  109. data/schemas/eventsExport.json +830 -0
  110. data/schemas/experienceDomain.json +6 -2
  111. data/schemas/experienceDomainPatch.json +14 -10
  112. data/schemas/experienceDomainPost.json +8 -4
  113. data/schemas/experienceDomains.json +6 -2
  114. data/schemas/experienceEndpoints.json +4 -1
  115. data/schemas/experienceGroup.json +2 -2
  116. data/schemas/experienceGroupPatch.json +2 -2
  117. data/schemas/experienceGroupPost.json +2 -2
  118. data/schemas/experienceGroups.json +6 -3
  119. data/schemas/experienceSlugPatch.json +2 -2
  120. data/schemas/experienceSlugPost.json +2 -2
  121. data/schemas/experienceUsers.json +4 -1
  122. data/schemas/experienceViews.json +4 -1
  123. data/schemas/files.json +4 -1
  124. data/schemas/flow.json +4 -0
  125. data/schemas/flowPatch.json +6 -2
  126. data/schemas/flowPost.json +4 -0
  127. data/schemas/flowVersion.json +8 -0
  128. data/schemas/flowVersionPost.json +4 -0
  129. data/schemas/flowVersions.json +12 -1
  130. data/schemas/flows.json +8 -1
  131. data/schemas/flowsImportPost.json +10 -2
  132. data/schemas/flowsImportResult.json +12 -0
  133. data/schemas/githubLogin.json +6 -15
  134. data/schemas/integrations.json +4 -1
  135. data/schemas/notebooks.json +4 -1
  136. data/schemas/org.json +2 -4
  137. data/schemas/orgPatch.json +2 -1
  138. data/schemas/orgPost.json +2 -1
  139. data/schemas/orgs.json +6 -5
  140. data/schemas/passwordResetFinish.json +0 -4
  141. data/schemas/passwordResetInput.json +0 -4
  142. data/schemas/resourceTransfer.json +0 -8
  143. data/schemas/userCredentials.json +6 -15
  144. data/schemas/userPost.json +6 -15
  145. data/schemas/webhooks.json +4 -1
  146. data/test/basic_test.rb +15 -0
  147. metadata +8 -23
  148. data/docs/solution.md +0 -133
  149. data/docs/solutionUser.md +0 -139
  150. data/docs/solutionUsers.md +0 -96
  151. data/docs/solutions.md +0 -91
  152. data/lib/losant_rest/solution.rb +0 -174
  153. data/lib/losant_rest/solution_user.rb +0 -180
  154. data/lib/losant_rest/solution_users.rb +0 -138
  155. data/lib/losant_rest/solutions.rb +0 -134
  156. data/schemas/authedSolutionUser.json +0 -18
  157. data/schemas/fileUploadPostResp.json +0 -109
  158. data/schemas/solution.json +0 -76
  159. data/schemas/solutionMe.json +0 -150
  160. data/schemas/solutionPatch.json +0 -48
  161. data/schemas/solutionPost.json +0 -52
  162. data/schemas/solutionUser.json +0 -103
  163. data/schemas/solutionUserCredentials.json +0 -34
  164. data/schemas/solutionUserPatch.json +0 -74
  165. data/schemas/solutionUserPost.json +0 -80
  166. data/schemas/solutionUsers.json +0 -149
  167. data/schemas/solutions.json +0 -118
@@ -53,7 +53,10 @@
53
53
  "type": "string",
54
54
  "enum": [
55
55
  "asc",
56
- "desc"
56
+ "desc",
57
+ "ASC",
58
+ "DESC",
59
+ ""
57
60
  ]
58
61
  },
59
62
  "dataTableId": {
@@ -8,25 +8,25 @@
8
8
  "maxLength": 1024
9
9
  },
10
10
  "query": {
11
- "title": "Data Table Query",
12
- "description": "Schema for a data table query",
11
+ "title": "Advanced Query",
12
+ "description": "Schema for advanced filters and queries",
13
13
  "type": "object",
14
14
  "properties": {
15
15
  "$and": {
16
16
  "type": "array",
17
17
  "items": {
18
- "$ref": "#/definitions/dataTableQuery"
18
+ "$ref": "#/definitions/advancedQuery"
19
19
  }
20
20
  },
21
21
  "$or": {
22
22
  "type": "array",
23
23
  "items": {
24
- "$ref": "#/definitions/dataTableQuery"
24
+ "$ref": "#/definitions/advancedQuery"
25
25
  }
26
26
  }
27
27
  },
28
28
  "patternProperties": {
29
- "^[0-9a-zA-Z_-]{1,255}$": {
29
+ "^[0-9a-zA-Z_-]{1,255}": {
30
30
  "oneOf": [
31
31
  {
32
32
  "type": [
@@ -99,7 +99,8 @@
99
99
  "type": "string",
100
100
  "minLength": 1
101
101
  }
102
- }
102
+ },
103
+ "additionalProperties": false
103
104
  }
104
105
  ]
105
106
  }
@@ -112,8 +113,11 @@
112
113
  "sortDirection": {
113
114
  "type": "string",
114
115
  "enum": [
116
+ "asc",
115
117
  "desc",
116
- "asc"
118
+ "ASC",
119
+ "DESC",
120
+ ""
117
121
  ]
118
122
  },
119
123
  "limit": {
@@ -110,7 +110,10 @@
110
110
  "type": "string",
111
111
  "enum": [
112
112
  "asc",
113
- "desc"
113
+ "desc",
114
+ "ASC",
115
+ "DESC",
116
+ ""
114
117
  ]
115
118
  },
116
119
  "applicationId": {
@@ -139,7 +139,10 @@
139
139
  "type": "string",
140
140
  "enum": [
141
141
  "asc",
142
- "desc"
142
+ "desc",
143
+ "ASC",
144
+ "DESC",
145
+ ""
143
146
  ]
144
147
  },
145
148
  "applicationId": {
@@ -150,7 +150,10 @@
150
150
  "type": "string",
151
151
  "enum": [
152
152
  "asc",
153
- "desc"
153
+ "desc",
154
+ "ASC",
155
+ "DESC",
156
+ ""
154
157
  ]
155
158
  },
156
159
  "applicationId": {
@@ -29,13 +29,19 @@
29
29
  "user",
30
30
  "device",
31
31
  "apiToken",
32
- "notebook"
32
+ "experienceUser",
33
+ "public"
33
34
  ]
34
35
  },
35
36
  "sourceId": {
36
37
  "type": "string",
37
38
  "pattern": "^[A-Fa-f\\d]{24}$"
38
39
  },
40
+ "sourceName": {
41
+ "type": "string",
42
+ "minLength": 1,
43
+ "maxLength": 255
44
+ },
39
45
  "level": {
40
46
  "type": "string",
41
47
  "enum": [
@@ -67,6 +73,11 @@
67
73
  "type": "string",
68
74
  "pattern": "^[A-Fa-f\\d]{24}$"
69
75
  },
76
+ "deviceName": {
77
+ "type": "string",
78
+ "minLength": 1,
79
+ "maxLength": 255
80
+ },
70
81
  "eventTags": {
71
82
  "type": "object",
72
83
  "patternProperties": {
@@ -90,13 +101,19 @@
90
101
  "user",
91
102
  "device",
92
103
  "apiToken",
93
- "notebook"
104
+ "experienceUser",
105
+ "public"
94
106
  ]
95
107
  },
96
108
  "sourceId": {
97
109
  "type": "string",
98
110
  "pattern": "^[A-Fa-f\\d]{24}$"
99
111
  },
112
+ "sourceName": {
113
+ "type": "string",
114
+ "minLength": 1,
115
+ "maxLength": 255
116
+ },
100
117
  "creationDate": {
101
118
  "type": "string",
102
119
  "format": "date-time"
@@ -47,7 +47,6 @@
47
47
  },
48
48
  "required": [
49
49
  "level",
50
- "state",
51
50
  "subject"
52
51
  ],
53
52
  "additionalProperties": false
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "eventTags": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "key": {
11
+ "type": "string",
12
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
13
+ },
14
+ "value": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 255
18
+ }
19
+ },
20
+ "required": [
21
+ "key",
22
+ "value"
23
+ ],
24
+ "additionalProperties": false
25
+ }
26
+ }
27
+ }
28
+ }
@@ -36,13 +36,19 @@
36
36
  "user",
37
37
  "device",
38
38
  "apiToken",
39
- "notebook"
39
+ "experienceUser",
40
+ "public"
40
41
  ]
41
42
  },
42
43
  "sourceId": {
43
44
  "type": "string",
44
45
  "pattern": "^[A-Fa-f\\d]{24}$"
45
46
  },
47
+ "sourceName": {
48
+ "type": "string",
49
+ "minLength": 1,
50
+ "maxLength": 255
51
+ },
46
52
  "level": {
47
53
  "type": "string",
48
54
  "enum": [
@@ -74,6 +80,11 @@
74
80
  "type": "string",
75
81
  "pattern": "^[A-Fa-f\\d]{24}$"
76
82
  },
83
+ "deviceName": {
84
+ "type": "string",
85
+ "minLength": 1,
86
+ "maxLength": 255
87
+ },
77
88
  "eventTags": {
78
89
  "type": "object",
79
90
  "patternProperties": {
@@ -97,13 +108,19 @@
97
108
  "user",
98
109
  "device",
99
110
  "apiToken",
100
- "notebook"
111
+ "experienceUser",
112
+ "public"
101
113
  ]
102
114
  },
103
115
  "sourceId": {
104
116
  "type": "string",
105
117
  "pattern": "^[A-Fa-f\\d]{24}$"
106
118
  },
119
+ "sourceName": {
120
+ "type": "string",
121
+ "minLength": 1,
122
+ "maxLength": 255
123
+ },
107
124
  "creationDate": {
108
125
  "type": "string",
109
126
  "format": "date-time"
@@ -165,7 +182,10 @@
165
182
  "type": "string",
166
183
  "enum": [
167
184
  "asc",
168
- "desc"
185
+ "desc",
186
+ "ASC",
187
+ "DESC",
188
+ ""
169
189
  ]
170
190
  },
171
191
  "state": {
@@ -179,6 +199,824 @@
179
199
  "applicationId": {
180
200
  "type": "string",
181
201
  "pattern": "^[A-Fa-f\\d]{24}$"
202
+ },
203
+ "query": {
204
+ "title": "Advanced Event Query",
205
+ "description": "Schema for advanced event queries",
206
+ "type": "object",
207
+ "properties": {
208
+ "$and": {
209
+ "type": "array",
210
+ "items": {
211
+ "$ref": "#/definitions/advancedEventQuery"
212
+ }
213
+ },
214
+ "$or": {
215
+ "type": "array",
216
+ "items": {
217
+ "$ref": "#/definitions/advancedEventQuery"
218
+ }
219
+ },
220
+ "id": {
221
+ "oneOf": [
222
+ {
223
+ "type": [
224
+ "string",
225
+ "number",
226
+ "boolean",
227
+ "null"
228
+ ]
229
+ },
230
+ {
231
+ "type": "object",
232
+ "properties": {
233
+ "$eq": {
234
+ "type": [
235
+ "string",
236
+ "number",
237
+ "boolean",
238
+ "null"
239
+ ]
240
+ },
241
+ "$ne": {
242
+ "type": [
243
+ "string",
244
+ "number",
245
+ "boolean",
246
+ "null"
247
+ ]
248
+ },
249
+ "$gt": {
250
+ "type": [
251
+ "string",
252
+ "number",
253
+ "boolean",
254
+ "null"
255
+ ]
256
+ },
257
+ "$lt": {
258
+ "type": [
259
+ "string",
260
+ "number",
261
+ "boolean",
262
+ "null"
263
+ ]
264
+ },
265
+ "$gte": {
266
+ "type": [
267
+ "string",
268
+ "number",
269
+ "boolean",
270
+ "null"
271
+ ]
272
+ },
273
+ "$lte": {
274
+ "type": [
275
+ "string",
276
+ "number",
277
+ "boolean",
278
+ "null"
279
+ ]
280
+ },
281
+ "$startsWith": {
282
+ "type": "string",
283
+ "minLength": 1
284
+ },
285
+ "$endsWith": {
286
+ "type": "string",
287
+ "minLength": 1
288
+ },
289
+ "$contains": {
290
+ "type": "string",
291
+ "minLength": 1
292
+ }
293
+ },
294
+ "additionalProperties": false
295
+ }
296
+ ]
297
+ },
298
+ "creationDate": {
299
+ "oneOf": [
300
+ {
301
+ "type": [
302
+ "string",
303
+ "number",
304
+ "boolean",
305
+ "null"
306
+ ]
307
+ },
308
+ {
309
+ "type": "object",
310
+ "properties": {
311
+ "$eq": {
312
+ "type": [
313
+ "string",
314
+ "number",
315
+ "boolean",
316
+ "null"
317
+ ]
318
+ },
319
+ "$ne": {
320
+ "type": [
321
+ "string",
322
+ "number",
323
+ "boolean",
324
+ "null"
325
+ ]
326
+ },
327
+ "$gt": {
328
+ "type": [
329
+ "string",
330
+ "number",
331
+ "boolean",
332
+ "null"
333
+ ]
334
+ },
335
+ "$lt": {
336
+ "type": [
337
+ "string",
338
+ "number",
339
+ "boolean",
340
+ "null"
341
+ ]
342
+ },
343
+ "$gte": {
344
+ "type": [
345
+ "string",
346
+ "number",
347
+ "boolean",
348
+ "null"
349
+ ]
350
+ },
351
+ "$lte": {
352
+ "type": [
353
+ "string",
354
+ "number",
355
+ "boolean",
356
+ "null"
357
+ ]
358
+ },
359
+ "$startsWith": {
360
+ "type": "string",
361
+ "minLength": 1
362
+ },
363
+ "$endsWith": {
364
+ "type": "string",
365
+ "minLength": 1
366
+ },
367
+ "$contains": {
368
+ "type": "string",
369
+ "minLength": 1
370
+ }
371
+ },
372
+ "additionalProperties": false
373
+ }
374
+ ]
375
+ },
376
+ "lastUpdated": {
377
+ "oneOf": [
378
+ {
379
+ "type": [
380
+ "string",
381
+ "number",
382
+ "boolean",
383
+ "null"
384
+ ]
385
+ },
386
+ {
387
+ "type": "object",
388
+ "properties": {
389
+ "$eq": {
390
+ "type": [
391
+ "string",
392
+ "number",
393
+ "boolean",
394
+ "null"
395
+ ]
396
+ },
397
+ "$ne": {
398
+ "type": [
399
+ "string",
400
+ "number",
401
+ "boolean",
402
+ "null"
403
+ ]
404
+ },
405
+ "$gt": {
406
+ "type": [
407
+ "string",
408
+ "number",
409
+ "boolean",
410
+ "null"
411
+ ]
412
+ },
413
+ "$lt": {
414
+ "type": [
415
+ "string",
416
+ "number",
417
+ "boolean",
418
+ "null"
419
+ ]
420
+ },
421
+ "$gte": {
422
+ "type": [
423
+ "string",
424
+ "number",
425
+ "boolean",
426
+ "null"
427
+ ]
428
+ },
429
+ "$lte": {
430
+ "type": [
431
+ "string",
432
+ "number",
433
+ "boolean",
434
+ "null"
435
+ ]
436
+ },
437
+ "$startsWith": {
438
+ "type": "string",
439
+ "minLength": 1
440
+ },
441
+ "$endsWith": {
442
+ "type": "string",
443
+ "minLength": 1
444
+ },
445
+ "$contains": {
446
+ "type": "string",
447
+ "minLength": 1
448
+ }
449
+ },
450
+ "additionalProperties": false
451
+ }
452
+ ]
453
+ },
454
+ "sourceId": {
455
+ "oneOf": [
456
+ {
457
+ "type": [
458
+ "string",
459
+ "number",
460
+ "boolean",
461
+ "null"
462
+ ]
463
+ },
464
+ {
465
+ "type": "object",
466
+ "properties": {
467
+ "$eq": {
468
+ "type": [
469
+ "string",
470
+ "number",
471
+ "boolean",
472
+ "null"
473
+ ]
474
+ },
475
+ "$ne": {
476
+ "type": [
477
+ "string",
478
+ "number",
479
+ "boolean",
480
+ "null"
481
+ ]
482
+ },
483
+ "$gt": {
484
+ "type": [
485
+ "string",
486
+ "number",
487
+ "boolean",
488
+ "null"
489
+ ]
490
+ },
491
+ "$lt": {
492
+ "type": [
493
+ "string",
494
+ "number",
495
+ "boolean",
496
+ "null"
497
+ ]
498
+ },
499
+ "$gte": {
500
+ "type": [
501
+ "string",
502
+ "number",
503
+ "boolean",
504
+ "null"
505
+ ]
506
+ },
507
+ "$lte": {
508
+ "type": [
509
+ "string",
510
+ "number",
511
+ "boolean",
512
+ "null"
513
+ ]
514
+ },
515
+ "$startsWith": {
516
+ "type": "string",
517
+ "minLength": 1
518
+ },
519
+ "$endsWith": {
520
+ "type": "string",
521
+ "minLength": 1
522
+ },
523
+ "$contains": {
524
+ "type": "string",
525
+ "minLength": 1
526
+ }
527
+ },
528
+ "additionalProperties": false
529
+ }
530
+ ]
531
+ },
532
+ "sourceType": {
533
+ "oneOf": [
534
+ {
535
+ "type": [
536
+ "string",
537
+ "number",
538
+ "boolean",
539
+ "null"
540
+ ]
541
+ },
542
+ {
543
+ "type": "object",
544
+ "properties": {
545
+ "$eq": {
546
+ "type": [
547
+ "string",
548
+ "number",
549
+ "boolean",
550
+ "null"
551
+ ]
552
+ },
553
+ "$ne": {
554
+ "type": [
555
+ "string",
556
+ "number",
557
+ "boolean",
558
+ "null"
559
+ ]
560
+ },
561
+ "$gt": {
562
+ "type": [
563
+ "string",
564
+ "number",
565
+ "boolean",
566
+ "null"
567
+ ]
568
+ },
569
+ "$lt": {
570
+ "type": [
571
+ "string",
572
+ "number",
573
+ "boolean",
574
+ "null"
575
+ ]
576
+ },
577
+ "$gte": {
578
+ "type": [
579
+ "string",
580
+ "number",
581
+ "boolean",
582
+ "null"
583
+ ]
584
+ },
585
+ "$lte": {
586
+ "type": [
587
+ "string",
588
+ "number",
589
+ "boolean",
590
+ "null"
591
+ ]
592
+ },
593
+ "$startsWith": {
594
+ "type": "string",
595
+ "minLength": 1
596
+ },
597
+ "$endsWith": {
598
+ "type": "string",
599
+ "minLength": 1
600
+ },
601
+ "$contains": {
602
+ "type": "string",
603
+ "minLength": 1
604
+ }
605
+ },
606
+ "additionalProperties": false
607
+ }
608
+ ]
609
+ },
610
+ "level": {
611
+ "oneOf": [
612
+ {
613
+ "type": [
614
+ "string",
615
+ "number",
616
+ "boolean",
617
+ "null"
618
+ ]
619
+ },
620
+ {
621
+ "type": "object",
622
+ "properties": {
623
+ "$eq": {
624
+ "type": [
625
+ "string",
626
+ "number",
627
+ "boolean",
628
+ "null"
629
+ ]
630
+ },
631
+ "$ne": {
632
+ "type": [
633
+ "string",
634
+ "number",
635
+ "boolean",
636
+ "null"
637
+ ]
638
+ },
639
+ "$gt": {
640
+ "type": [
641
+ "string",
642
+ "number",
643
+ "boolean",
644
+ "null"
645
+ ]
646
+ },
647
+ "$lt": {
648
+ "type": [
649
+ "string",
650
+ "number",
651
+ "boolean",
652
+ "null"
653
+ ]
654
+ },
655
+ "$gte": {
656
+ "type": [
657
+ "string",
658
+ "number",
659
+ "boolean",
660
+ "null"
661
+ ]
662
+ },
663
+ "$lte": {
664
+ "type": [
665
+ "string",
666
+ "number",
667
+ "boolean",
668
+ "null"
669
+ ]
670
+ },
671
+ "$startsWith": {
672
+ "type": "string",
673
+ "minLength": 1
674
+ },
675
+ "$endsWith": {
676
+ "type": "string",
677
+ "minLength": 1
678
+ },
679
+ "$contains": {
680
+ "type": "string",
681
+ "minLength": 1
682
+ }
683
+ },
684
+ "additionalProperties": false
685
+ }
686
+ ]
687
+ },
688
+ "state": {
689
+ "oneOf": [
690
+ {
691
+ "type": [
692
+ "string",
693
+ "number",
694
+ "boolean",
695
+ "null"
696
+ ]
697
+ },
698
+ {
699
+ "type": "object",
700
+ "properties": {
701
+ "$eq": {
702
+ "type": [
703
+ "string",
704
+ "number",
705
+ "boolean",
706
+ "null"
707
+ ]
708
+ },
709
+ "$ne": {
710
+ "type": [
711
+ "string",
712
+ "number",
713
+ "boolean",
714
+ "null"
715
+ ]
716
+ },
717
+ "$gt": {
718
+ "type": [
719
+ "string",
720
+ "number",
721
+ "boolean",
722
+ "null"
723
+ ]
724
+ },
725
+ "$lt": {
726
+ "type": [
727
+ "string",
728
+ "number",
729
+ "boolean",
730
+ "null"
731
+ ]
732
+ },
733
+ "$gte": {
734
+ "type": [
735
+ "string",
736
+ "number",
737
+ "boolean",
738
+ "null"
739
+ ]
740
+ },
741
+ "$lte": {
742
+ "type": [
743
+ "string",
744
+ "number",
745
+ "boolean",
746
+ "null"
747
+ ]
748
+ },
749
+ "$startsWith": {
750
+ "type": "string",
751
+ "minLength": 1
752
+ },
753
+ "$endsWith": {
754
+ "type": "string",
755
+ "minLength": 1
756
+ },
757
+ "$contains": {
758
+ "type": "string",
759
+ "minLength": 1
760
+ }
761
+ },
762
+ "additionalProperties": false
763
+ }
764
+ ]
765
+ },
766
+ "subject": {
767
+ "oneOf": [
768
+ {
769
+ "type": [
770
+ "string",
771
+ "number",
772
+ "boolean",
773
+ "null"
774
+ ]
775
+ },
776
+ {
777
+ "type": "object",
778
+ "properties": {
779
+ "$eq": {
780
+ "type": [
781
+ "string",
782
+ "number",
783
+ "boolean",
784
+ "null"
785
+ ]
786
+ },
787
+ "$ne": {
788
+ "type": [
789
+ "string",
790
+ "number",
791
+ "boolean",
792
+ "null"
793
+ ]
794
+ },
795
+ "$gt": {
796
+ "type": [
797
+ "string",
798
+ "number",
799
+ "boolean",
800
+ "null"
801
+ ]
802
+ },
803
+ "$lt": {
804
+ "type": [
805
+ "string",
806
+ "number",
807
+ "boolean",
808
+ "null"
809
+ ]
810
+ },
811
+ "$gte": {
812
+ "type": [
813
+ "string",
814
+ "number",
815
+ "boolean",
816
+ "null"
817
+ ]
818
+ },
819
+ "$lte": {
820
+ "type": [
821
+ "string",
822
+ "number",
823
+ "boolean",
824
+ "null"
825
+ ]
826
+ },
827
+ "$startsWith": {
828
+ "type": "string",
829
+ "minLength": 1
830
+ },
831
+ "$endsWith": {
832
+ "type": "string",
833
+ "minLength": 1
834
+ },
835
+ "$contains": {
836
+ "type": "string",
837
+ "minLength": 1
838
+ }
839
+ },
840
+ "additionalProperties": false
841
+ }
842
+ ]
843
+ },
844
+ "deviceId": {
845
+ "oneOf": [
846
+ {
847
+ "type": [
848
+ "string",
849
+ "number",
850
+ "boolean",
851
+ "null"
852
+ ]
853
+ },
854
+ {
855
+ "type": "object",
856
+ "properties": {
857
+ "$eq": {
858
+ "type": [
859
+ "string",
860
+ "number",
861
+ "boolean",
862
+ "null"
863
+ ]
864
+ },
865
+ "$ne": {
866
+ "type": [
867
+ "string",
868
+ "number",
869
+ "boolean",
870
+ "null"
871
+ ]
872
+ },
873
+ "$gt": {
874
+ "type": [
875
+ "string",
876
+ "number",
877
+ "boolean",
878
+ "null"
879
+ ]
880
+ },
881
+ "$lt": {
882
+ "type": [
883
+ "string",
884
+ "number",
885
+ "boolean",
886
+ "null"
887
+ ]
888
+ },
889
+ "$gte": {
890
+ "type": [
891
+ "string",
892
+ "number",
893
+ "boolean",
894
+ "null"
895
+ ]
896
+ },
897
+ "$lte": {
898
+ "type": [
899
+ "string",
900
+ "number",
901
+ "boolean",
902
+ "null"
903
+ ]
904
+ },
905
+ "$startsWith": {
906
+ "type": "string",
907
+ "minLength": 1
908
+ },
909
+ "$endsWith": {
910
+ "type": "string",
911
+ "minLength": 1
912
+ },
913
+ "$contains": {
914
+ "type": "string",
915
+ "minLength": 1
916
+ }
917
+ },
918
+ "additionalProperties": false
919
+ }
920
+ ]
921
+ },
922
+ "eventTags": {
923
+ "oneOf": [
924
+ {
925
+ "oneOf": [
926
+ {
927
+ "type": "object",
928
+ "properties": {
929
+ "$tagKey": {
930
+ "type": "string"
931
+ },
932
+ "$tagValue": {
933
+ "type": "string"
934
+ }
935
+ },
936
+ "additionalProperties": false,
937
+ "minProperties": 1
938
+ },
939
+ {
940
+ "type": "object",
941
+ "patternProperties": {
942
+ "^[0-9a-zA-Z_-]{1,255}": {
943
+ "type": "string"
944
+ }
945
+ },
946
+ "additionalProperties": false
947
+ }
948
+ ]
949
+ },
950
+ {
951
+ "type": "object",
952
+ "properties": {
953
+ "$eq": {
954
+ "oneOf": [
955
+ {
956
+ "type": "object",
957
+ "properties": {
958
+ "$tagKey": {
959
+ "type": "string"
960
+ },
961
+ "$tagValue": {
962
+ "type": "string"
963
+ }
964
+ },
965
+ "additionalProperties": false,
966
+ "minProperties": 1
967
+ },
968
+ {
969
+ "type": "object",
970
+ "patternProperties": {
971
+ "^[0-9a-zA-Z_-]{1,255}": {
972
+ "type": "string"
973
+ }
974
+ },
975
+ "additionalProperties": false
976
+ }
977
+ ]
978
+ }
979
+ },
980
+ "minProperties": 1,
981
+ "additionalProperties": false
982
+ },
983
+ {
984
+ "type": "object",
985
+ "properties": {
986
+ "$ne": {
987
+ "oneOf": [
988
+ {
989
+ "type": "object",
990
+ "properties": {
991
+ "$tagKey": {
992
+ "type": "string"
993
+ },
994
+ "$tagValue": {
995
+ "type": "string"
996
+ }
997
+ },
998
+ "additionalProperties": false,
999
+ "minProperties": 1
1000
+ },
1001
+ {
1002
+ "type": "object",
1003
+ "patternProperties": {
1004
+ "^[0-9a-zA-Z_-]{1,255}": {
1005
+ "type": "string"
1006
+ }
1007
+ },
1008
+ "additionalProperties": false
1009
+ }
1010
+ ]
1011
+ }
1012
+ },
1013
+ "minProperties": 1,
1014
+ "additionalProperties": false
1015
+ }
1016
+ ]
1017
+ }
1018
+ },
1019
+ "additionalProperties": false
182
1020
  }
183
1021
  }
184
1022
  }