losant_rest 1.9.1 → 1.10.2

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