losant_rest 1.10.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +18838 -4104
  3. data/docs/application.md +85 -0
  4. data/docs/applicationApiTokens.md +2 -2
  5. data/docs/applicationCertificateAuthorities.md +1 -1
  6. data/docs/applicationCertificates.md +1 -1
  7. data/docs/applicationKeys.md +1 -1
  8. data/docs/applicationTemplate.md +46 -0
  9. data/docs/applicationTemplates.md +77 -2
  10. data/docs/applications.md +1 -1
  11. data/docs/auditLogs.md +1 -1
  12. data/docs/dashboards.md +1 -1
  13. data/docs/dataTables.md +1 -1
  14. data/docs/device.md +7 -3
  15. data/docs/deviceRecipes.md +1 -1
  16. data/docs/devices.md +93 -5
  17. data/docs/edgeDeployments.md +1 -1
  18. data/docs/events.md +1 -1
  19. data/docs/experienceEndpoints.md +1 -0
  20. data/docs/experienceGroups.md +1 -1
  21. data/docs/experienceUsers.md +1 -1
  22. data/docs/experienceVersions.md +1 -1
  23. data/docs/experienceViews.md +1 -1
  24. data/docs/file.md +4 -4
  25. data/docs/files.md +1 -1
  26. data/docs/flow.md +94 -1
  27. data/docs/flowVersion.md +96 -1
  28. data/docs/flowVersions.md +1 -1
  29. data/docs/flows.md +2 -2
  30. data/docs/integrations.md +1 -1
  31. data/docs/me.md +0 -36
  32. data/docs/notebooks.md +1 -1
  33. data/docs/orgs.md +1 -1
  34. data/docs/webhooks.md +1 -1
  35. data/lib/losant_rest.rb +1 -0
  36. data/lib/losant_rest/application.rb +48 -0
  37. data/lib/losant_rest/application_api_tokens.rb +1 -1
  38. data/lib/losant_rest/application_template.rb +79 -0
  39. data/lib/losant_rest/application_templates.rb +89 -1
  40. data/lib/losant_rest/client.rb +6 -2
  41. data/lib/losant_rest/device.rb +11 -3
  42. data/lib/losant_rest/devices.rb +103 -3
  43. data/lib/losant_rest/experience_endpoints.rb +2 -0
  44. data/lib/losant_rest/file.rb +3 -3
  45. data/lib/losant_rest/flow.rb +115 -1
  46. data/lib/losant_rest/flow_version.rb +115 -1
  47. data/lib/losant_rest/me.rb +0 -41
  48. data/lib/losant_rest/version.rb +1 -1
  49. data/schemas/advancedDeviceQuery.json +110 -0
  50. data/schemas/advancedEventQuery.json +198 -0
  51. data/schemas/advancedQuery.json +22 -0
  52. data/schemas/application.json +13 -0
  53. data/schemas/applicationApiTokenPost.json +10 -1
  54. data/schemas/applicationApplyTemplatePatch.json +19 -0
  55. data/schemas/applicationCreationByTemplateResult.json +13 -0
  56. data/schemas/applicationPatch.json +5 -0
  57. data/schemas/applicationPost.json +13 -0
  58. data/schemas/applicationTemplate.json +20 -0
  59. data/schemas/applicationTemplateCategories.json +43 -0
  60. data/schemas/applicationTemplateCategory.json +23 -0
  61. data/schemas/applicationTemplates.json +32 -0
  62. data/schemas/applications.json +13 -0
  63. data/schemas/authedUser.json +3 -0
  64. data/schemas/changePassword.json +2 -2
  65. data/schemas/dashboard.json +1288 -145
  66. data/schemas/dashboardPatch.json +1288 -145
  67. data/schemas/dashboardPost.json +1288 -145
  68. data/schemas/dashboards.json +1288 -145
  69. data/schemas/dataExport.json +142 -0
  70. data/schemas/dataTableRowsExport.json +22 -0
  71. data/schemas/device.json +16 -3
  72. data/schemas/deviceAttributeDataTypeFilter.json +29 -0
  73. data/schemas/deviceClassFilter.json +1 -2
  74. data/schemas/devicePatch.json +16 -3
  75. data/schemas/devicePost.json +16 -3
  76. data/schemas/deviceRecipe.json +16 -3
  77. data/schemas/deviceRecipePatch.json +16 -3
  78. data/schemas/deviceRecipePost.json +16 -3
  79. data/schemas/deviceRecipes.json +16 -3
  80. data/schemas/devices.json +16 -3
  81. data/schemas/devicesDataRemoved.json +12 -0
  82. data/schemas/devicesDeletePost.json +1034 -0
  83. data/schemas/devicesDeleted.json +12 -0
  84. data/schemas/devicesExportPost.json +1035 -0
  85. data/schemas/devicesPatch.json +1773 -7
  86. data/schemas/devicesRemoveDataPost.json +1056 -0
  87. data/schemas/devicesUpdated.json +18 -0
  88. data/schemas/eventPost.json +22 -0
  89. data/schemas/eventsExport.json +198 -0
  90. data/schemas/experienceDomain.json +1 -1
  91. data/schemas/experienceDomainPatch.json +1 -1
  92. data/schemas/experienceDomainPost.json +1 -1
  93. data/schemas/experienceDomains.json +1 -1
  94. data/schemas/experienceLinkedResources.json +372 -3
  95. data/schemas/experienceVersion.json +1 -1
  96. data/schemas/experienceVersions.json +1 -1
  97. data/schemas/flow.json +124 -1
  98. data/schemas/flowErrors.json +87 -0
  99. data/schemas/flowPatch.json +124 -1
  100. data/schemas/flowPost.json +124 -1
  101. data/schemas/flowStats.json +54 -0
  102. data/schemas/flowVersion.json +248 -2
  103. data/schemas/flowVersionPost.json +124 -1
  104. data/schemas/flowVersions.json +248 -2
  105. data/schemas/flows.json +124 -1
  106. data/schemas/flowsImportPost.json +248 -2
  107. data/schemas/flowsImportResult.json +372 -3
  108. data/schemas/githubLogin.json +16 -4
  109. data/schemas/me.json +3 -3
  110. data/schemas/mePatch.json +2 -2
  111. data/schemas/multiDeviceCommand.json +1019 -0
  112. data/schemas/notebook.json +89 -0
  113. data/schemas/notebookPatch.json +89 -0
  114. data/schemas/notebookPost.json +89 -0
  115. data/schemas/notebooks.json +89 -0
  116. data/schemas/org.json +1 -1
  117. data/schemas/orgInviteInfo.json +3 -0
  118. data/schemas/orgInvitePost.json +3 -0
  119. data/schemas/orgInvites.json +3 -0
  120. data/schemas/orgPatch.json +1 -1
  121. data/schemas/orgs.json +1 -1
  122. data/schemas/passwordResetFinish.json +2 -2
  123. data/schemas/samlResponse.json +1 -1
  124. data/schemas/templateKeywords.json +14 -0
  125. data/schemas/timeSeriesData.json +101 -12
  126. data/schemas/timeSeriesQuery.json +101 -12
  127. data/schemas/userCredentials.json +14 -3
  128. data/schemas/userPost.json +22 -7
  129. metadata +20 -5
@@ -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,140 @@
34
38
  },
35
39
  "maxItems": 100
36
40
  },
41
+ "deviceQuery": {
42
+ "title": "Advanced Query",
43
+ "description": "Schema for advanced filters and queries",
44
+ "type": "object",
45
+ "properties": {
46
+ "$and": {
47
+ "type": "array",
48
+ "items": {
49
+ "$ref": "#/definitions/advancedQuery"
50
+ },
51
+ "maxItems": 100
52
+ },
53
+ "$or": {
54
+ "type": "array",
55
+ "items": {
56
+ "$ref": "#/definitions/advancedQuery"
57
+ },
58
+ "maxItems": 100
59
+ },
60
+ "$nor": {
61
+ "type": "array",
62
+ "items": {
63
+ "$ref": "#/definitions/advancedQuery"
64
+ },
65
+ "maxItems": 100
66
+ }
67
+ },
68
+ "patternProperties": {
69
+ "^[0-9a-zA-Z_-]{1,255}$": {
70
+ "oneOf": [
71
+ {
72
+ "type": [
73
+ "string",
74
+ "number",
75
+ "boolean",
76
+ "null"
77
+ ]
78
+ },
79
+ {
80
+ "type": "object",
81
+ "properties": {
82
+ "$eq": {
83
+ "type": [
84
+ "string",
85
+ "number",
86
+ "boolean",
87
+ "null"
88
+ ]
89
+ },
90
+ "$ne": {
91
+ "type": [
92
+ "string",
93
+ "number",
94
+ "boolean",
95
+ "null"
96
+ ]
97
+ },
98
+ "$gt": {
99
+ "type": [
100
+ "string",
101
+ "number",
102
+ "boolean",
103
+ "null"
104
+ ]
105
+ },
106
+ "$lt": {
107
+ "type": [
108
+ "string",
109
+ "number",
110
+ "boolean",
111
+ "null"
112
+ ]
113
+ },
114
+ "$gte": {
115
+ "type": [
116
+ "string",
117
+ "number",
118
+ "boolean",
119
+ "null"
120
+ ]
121
+ },
122
+ "$lte": {
123
+ "type": [
124
+ "string",
125
+ "number",
126
+ "boolean",
127
+ "null"
128
+ ]
129
+ },
130
+ "$startsWith": {
131
+ "type": "string",
132
+ "minLength": 1
133
+ },
134
+ "$endsWith": {
135
+ "type": "string",
136
+ "minLength": 1
137
+ },
138
+ "$contains": {
139
+ "type": "string",
140
+ "minLength": 1
141
+ },
142
+ "$ci": {
143
+ "type": "boolean"
144
+ },
145
+ "$in": {
146
+ "type": "array",
147
+ "maxItems": 100,
148
+ "items": {
149
+ "type": [
150
+ "string",
151
+ "number",
152
+ "boolean"
153
+ ]
154
+ }
155
+ },
156
+ "$nin": {
157
+ "type": "array",
158
+ "maxItems": 100,
159
+ "items": {
160
+ "type": [
161
+ "string",
162
+ "number",
163
+ "boolean"
164
+ ]
165
+ }
166
+ }
167
+ },
168
+ "additionalProperties": false
169
+ }
170
+ ]
171
+ }
172
+ },
173
+ "additionalProperties": false
174
+ },
37
175
  "attributes": {
38
176
  "type": "array",
39
177
  "items": {
@@ -57,6 +195,10 @@
57
195
  "includeID": {
58
196
  "type": "boolean",
59
197
  "default": true
198
+ },
199
+ "includeBlobData": {
200
+ "type": "boolean",
201
+ "default": false
60
202
  }
61
203
  }
62
204
  }
@@ -110,6 +110,28 @@
110
110
  },
111
111
  "$ci": {
112
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
+ }
113
135
  }
114
136
  },
115
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": {
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "oneOf": [
4
+ {
5
+ "type": "string",
6
+ "enum": [
7
+ "string",
8
+ "number",
9
+ "gps",
10
+ "boolean",
11
+ "blob"
12
+ ]
13
+ },
14
+ {
15
+ "type": "array",
16
+ "minItems": 1,
17
+ "items": {
18
+ "type": "string",
19
+ "enum": [
20
+ "string",
21
+ "number",
22
+ "gps",
23
+ "boolean",
24
+ "blob"
25
+ ]
26
+ }
27
+ }
28
+ ]
29
+ }
@@ -24,8 +24,7 @@
24
24
  "edgeCompute",
25
25
  "system"
26
26
  ]
27
- },
28
- "additionalProperties": false
27
+ }
29
28
  }
30
29
  ]
31
30
  }
@@ -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": {