losant_rest 1.19.1 → 1.19.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +2373 -508
  3. data/docs/application.md +40 -0
  4. data/docs/me.md +6 -6
  5. data/lib/losant_rest/version.rb +1 -1
  6. data/lib/platform_rest/application.rb +48 -0
  7. data/lib/platform_rest/client.rb +2 -2
  8. data/lib/platform_rest/me.rb +6 -6
  9. data/schemas/apiTokenPost.json +1 -0
  10. data/schemas/application.json +166 -2
  11. data/schemas/applicationCreationByTemplateResult.json +166 -2
  12. data/schemas/applicationDashboardPost.json +6 -0
  13. data/schemas/applicationImportExecutions.json +205 -0
  14. data/schemas/applications.json +166 -2
  15. data/schemas/authedUser.json +4 -0
  16. data/schemas/credential.json +31 -1
  17. data/schemas/credentialPatch.json +28 -0
  18. data/schemas/credentialPost.json +35 -1
  19. data/schemas/credentials.json +31 -1
  20. data/schemas/dashboard.json +6 -0
  21. data/schemas/dashboardPatch.json +6 -0
  22. data/schemas/dashboardPost.json +6 -0
  23. data/schemas/dashboards.json +6 -0
  24. data/schemas/dataExport.json +1 -0
  25. data/schemas/devicesRemoveDataPost.json +2 -2
  26. data/schemas/githubLogin.json +1 -0
  27. data/schemas/historicalSummaries.json +16 -0
  28. data/schemas/historicalSummary.json +16 -0
  29. data/schemas/importIntoApplicationOptions.json +4 -0
  30. data/schemas/instance.json +21 -0
  31. data/schemas/instanceOrg.json +264 -0
  32. data/schemas/instanceOrgPatch.json +21 -0
  33. data/schemas/instanceOrgPost.json +21 -0
  34. data/schemas/instanceOrgs.json +264 -0
  35. data/schemas/instancePatch.json +21 -0
  36. data/schemas/instanceSandbox.json +46 -2
  37. data/schemas/instanceSandboxes.json +46 -2
  38. data/schemas/instances.json +21 -0
  39. data/schemas/me.json +46 -2
  40. data/schemas/multiFactorAuthDisable.json +20 -0
  41. data/schemas/multiFactorAuthEnable.json +25 -0
  42. data/schemas/multiFactorAuthInfo.json +15 -0
  43. data/schemas/org.json +55 -5
  44. data/schemas/orgPatch.json +8 -0
  45. data/schemas/orgPost.json +8 -0
  46. data/schemas/orgs.json +55 -5
  47. data/schemas/samlResponse.json +1 -0
  48. data/schemas/timeSeriesData.json +35 -2
  49. data/schemas/userCredentials.json +1 -0
  50. data/schemas/userPost.json +8 -0
  51. metadata +6 -2
@@ -0,0 +1,205 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "array",
4
+ "items": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "pattern": "^[A-Fa-f\\d]{24}$"
10
+ },
11
+ "importSourceType": {
12
+ "type": "string",
13
+ "enum": [
14
+ "importBundle",
15
+ "importUrl",
16
+ "fromApplication"
17
+ ]
18
+ },
19
+ "importExecutionId": {
20
+ "type": "string",
21
+ "pattern": "^[A-Fa-f\\d]{24}$"
22
+ },
23
+ "applicationId": {
24
+ "type": "string",
25
+ "pattern": "^[A-Fa-f\\d]{24}$"
26
+ },
27
+ "fromApplicationId": {
28
+ "type": "string",
29
+ "pattern": "^[A-Fa-f\\d]{24}$"
30
+ },
31
+ "runQueuedAt": {
32
+ "type": "string",
33
+ "format": "date-time"
34
+ },
35
+ "runStartedAt": {
36
+ "type": "string",
37
+ "format": "date-time"
38
+ },
39
+ "runCompletedAt": {
40
+ "type": "string",
41
+ "format": "date-time"
42
+ },
43
+ "status": {
44
+ "type": "string",
45
+ "enum": [
46
+ "queued",
47
+ "inProgress",
48
+ "completed",
49
+ "errored",
50
+ "failed"
51
+ ]
52
+ },
53
+ "dryRun": {
54
+ "type": "boolean"
55
+ },
56
+ "conflictBehavior": {
57
+ "type": "string",
58
+ "enum": [
59
+ "create",
60
+ "error",
61
+ "retain",
62
+ "replace"
63
+ ],
64
+ "default": "create"
65
+ },
66
+ "callbackUrl": {
67
+ "type": "string",
68
+ "format": "uri",
69
+ "maxLength": 1024
70
+ },
71
+ "email": {
72
+ "type": "string",
73
+ "format": "email",
74
+ "maxLength": 1024
75
+ },
76
+ "include": {
77
+ "type": "array",
78
+ "items": {
79
+ "enum": [
80
+ "ApplicationCertificateAuthority",
81
+ "Dashboard",
82
+ "DataTableRow",
83
+ "DataTable",
84
+ "DeviceRecipe",
85
+ "Device",
86
+ "ExperienceDevelopConfig",
87
+ "ExperienceEndpoint",
88
+ "ExperienceFlowVersion",
89
+ "ExperienceGroup",
90
+ "ExperienceUser",
91
+ "ExperienceVersion",
92
+ "ExperienceView",
93
+ "File",
94
+ "FlowVersion",
95
+ "Flow",
96
+ "Global",
97
+ "Integration",
98
+ "Notebook",
99
+ "Webhook",
100
+ "ResourceJob"
101
+ ]
102
+ },
103
+ "uniqueItems": true
104
+ },
105
+ "jobId": {
106
+ "type": "string",
107
+ "maxLength": 21
108
+ },
109
+ "sourceId": {
110
+ "type": "string",
111
+ "pattern": "^[A-Fa-f\\d]{24}$"
112
+ },
113
+ "sourceType": {
114
+ "type": "string",
115
+ "enum": [
116
+ "flow",
117
+ "user",
118
+ "device",
119
+ "apiToken",
120
+ "notebook"
121
+ ]
122
+ },
123
+ "error": {
124
+ "type": "object",
125
+ "properties": {
126
+ "name": {
127
+ "type": "string"
128
+ },
129
+ "message": {
130
+ "type": "string"
131
+ }
132
+ }
133
+ },
134
+ "dryRunResults": {
135
+ "type": "object",
136
+ "properties": {
137
+ "limitErrors": {
138
+ "type": "array",
139
+ "items": {
140
+ "enum": [
141
+ "ApplicationCertificateAuthority",
142
+ "Dashboard",
143
+ "DataTableRow",
144
+ "DataTable",
145
+ "DeviceRecipe",
146
+ "Device",
147
+ "ExperienceDevelopConfig",
148
+ "ExperienceEndpoint",
149
+ "ExperienceFlowVersion",
150
+ "ExperienceGroup",
151
+ "ExperienceUser",
152
+ "ExperienceVersion",
153
+ "ExperienceView",
154
+ "File",
155
+ "FlowVersion",
156
+ "Flow",
157
+ "Global",
158
+ "Integration",
159
+ "Notebook",
160
+ "Webhook",
161
+ "ResourceJob"
162
+ ]
163
+ },
164
+ "uniqueItems": true
165
+ },
166
+ "url": {
167
+ "type": "string",
168
+ "format": "uri",
169
+ "maxLength": 1024
170
+ }
171
+ }
172
+ },
173
+ "validationErrors": {
174
+ "type": "array",
175
+ "items": {
176
+ "type": "object",
177
+ "properties": {
178
+ "type": {
179
+ "type": "string"
180
+ },
181
+ "name": {
182
+ "type": "string"
183
+ },
184
+ "id": {
185
+ "type": "string"
186
+ },
187
+ "message": {
188
+ "type": "string"
189
+ }
190
+ }
191
+ }
192
+ },
193
+ "importedFileUrl": {
194
+ "type": "string",
195
+ "format": "uri",
196
+ "maxLength": 1024
197
+ },
198
+ "importUrl": {
199
+ "type": "string",
200
+ "format": "uri",
201
+ "maxLength": 1024
202
+ }
203
+ }
204
+ }
205
+ }
@@ -117,9 +117,18 @@
117
117
  "apiTokenCount": {
118
118
  "type": "integer"
119
119
  },
120
+ "certificateCount": {
121
+ "type": "integer"
122
+ },
123
+ "certificateAuthorityCount": {
124
+ "type": "integer"
125
+ },
120
126
  "credentialCount": {
121
127
  "type": "integer"
122
128
  },
129
+ "dashCount": {
130
+ "type": "integer"
131
+ },
123
132
  "dataTableCount": {
124
133
  "type": "integer"
125
134
  },
@@ -165,6 +174,150 @@
165
174
  "keyCount": {
166
175
  "type": "integer"
167
176
  },
177
+ "notebookCount": {
178
+ "type": "integer"
179
+ },
180
+ "resourceJobCount": {
181
+ "type": "integer"
182
+ },
183
+ "webhookCount": {
184
+ "type": "integer"
185
+ },
186
+ "payloadCount": {
187
+ "title": "Payload Stats",
188
+ "description": "Schema for the result of a payload stats request",
189
+ "type": "object",
190
+ "properties": {
191
+ "dataTable": {
192
+ "type": "object",
193
+ "patternProperties": {
194
+ ".*": {
195
+ "type": "number"
196
+ }
197
+ }
198
+ },
199
+ "deviceCommand": {
200
+ "type": "object",
201
+ "patternProperties": {
202
+ ".*": {
203
+ "type": "number"
204
+ }
205
+ }
206
+ },
207
+ "deviceConnect": {
208
+ "type": "object",
209
+ "patternProperties": {
210
+ ".*": {
211
+ "type": "number"
212
+ }
213
+ }
214
+ },
215
+ "deviceDisconnect": {
216
+ "type": "object",
217
+ "patternProperties": {
218
+ ".*": {
219
+ "type": "number"
220
+ }
221
+ }
222
+ },
223
+ "deviceState": {
224
+ "type": "object",
225
+ "patternProperties": {
226
+ ".*": {
227
+ "type": "number"
228
+ }
229
+ }
230
+ },
231
+ "endpoint": {
232
+ "type": "object",
233
+ "patternProperties": {
234
+ ".*": {
235
+ "type": "number"
236
+ }
237
+ }
238
+ },
239
+ "event": {
240
+ "type": "object",
241
+ "patternProperties": {
242
+ ".*": {
243
+ "type": "number"
244
+ }
245
+ }
246
+ },
247
+ "flowError": {
248
+ "type": "object",
249
+ "patternProperties": {
250
+ ".*": {
251
+ "type": "number"
252
+ }
253
+ }
254
+ },
255
+ "integration": {
256
+ "type": "object",
257
+ "patternProperties": {
258
+ ".*": {
259
+ "type": "number"
260
+ }
261
+ }
262
+ },
263
+ "mqttIn": {
264
+ "type": "object",
265
+ "patternProperties": {
266
+ ".*": {
267
+ "type": "number"
268
+ }
269
+ }
270
+ },
271
+ "mqttOut": {
272
+ "type": "object",
273
+ "patternProperties": {
274
+ ".*": {
275
+ "type": "number"
276
+ }
277
+ }
278
+ },
279
+ "notebook": {
280
+ "type": "object",
281
+ "patternProperties": {
282
+ ".*": {
283
+ "type": "number"
284
+ }
285
+ }
286
+ },
287
+ "timer": {
288
+ "type": "object",
289
+ "patternProperties": {
290
+ ".*": {
291
+ "type": "number"
292
+ }
293
+ }
294
+ },
295
+ "virtualButton": {
296
+ "type": "object",
297
+ "patternProperties": {
298
+ ".*": {
299
+ "type": "number"
300
+ }
301
+ }
302
+ },
303
+ "webhook": {
304
+ "type": "object",
305
+ "patternProperties": {
306
+ ".*": {
307
+ "type": "number"
308
+ }
309
+ }
310
+ },
311
+ "resourceJob": {
312
+ "type": "object",
313
+ "patternProperties": {
314
+ ".*": {
315
+ "type": "number"
316
+ }
317
+ }
318
+ }
319
+ }
320
+ },
168
321
  "storageStats": {
169
322
  "type": "object",
170
323
  "properties": {
@@ -176,8 +329,19 @@
176
329
  }
177
330
  }
178
331
  },
179
- "webhookCount": {
180
- "type": "integer"
332
+ "notebookStats": {
333
+ "type": "object",
334
+ "properties": {
335
+ "awaitingCompletion": {
336
+ "type": "integer"
337
+ },
338
+ "minutesThisPeriod": {
339
+ "type": "integer"
340
+ },
341
+ "runsThisPeriod": {
342
+ "type": "integer"
343
+ }
344
+ }
181
345
  }
182
346
  }
183
347
  },
@@ -12,6 +12,10 @@
12
12
  },
13
13
  "needsToVerifyEmail": {
14
14
  "type": "boolean"
15
+ },
16
+ "orgId": {
17
+ "type": "string",
18
+ "pattern": "^[A-Fa-f\\d]{24}$"
15
19
  }
16
20
  },
17
21
  "required": [
@@ -59,7 +59,8 @@
59
59
  "enum": [
60
60
  "aws",
61
61
  "azure",
62
- "gcp"
62
+ "gcp",
63
+ "http"
63
64
  ]
64
65
  },
65
66
  "awsConfig": {
@@ -105,6 +106,35 @@
105
106
  "required": [
106
107
  "keyMetaJson"
107
108
  ]
109
+ },
110
+ "httpConfig": {
111
+ "type": "object",
112
+ "properties": {
113
+ "uriMatch": {
114
+ "type": "string",
115
+ "minLength": 8,
116
+ "maxLength": 1024
117
+ },
118
+ "authMethod": {
119
+ "type": "string",
120
+ "enum": [
121
+ "header",
122
+ "queryParam",
123
+ "basicAuth",
124
+ "clientCertificate"
125
+ ]
126
+ },
127
+ "publicValue": {
128
+ "type": "string",
129
+ "maxLength": 8196
130
+ }
131
+ },
132
+ "additionalProperties": false,
133
+ "required": [
134
+ "uriMatch",
135
+ "authMethod",
136
+ "publicValue"
137
+ ]
108
138
  }
109
139
  },
110
140
  "additionalProperties": false,
@@ -60,6 +60,34 @@
60
60
  }
61
61
  },
62
62
  "additionalProperties": false
63
+ },
64
+ "httpConfig": {
65
+ "type": "object",
66
+ "properties": {
67
+ "uriMatch": {
68
+ "type": "string",
69
+ "minLength": 8,
70
+ "maxLength": 1024
71
+ },
72
+ "authMethod": {
73
+ "type": "string",
74
+ "enum": [
75
+ "header",
76
+ "queryParam",
77
+ "basicAuth",
78
+ "clientCertificate"
79
+ ]
80
+ },
81
+ "publicValue": {
82
+ "type": "string",
83
+ "maxLength": 8196
84
+ },
85
+ "secretValue": {
86
+ "type": "string",
87
+ "maxLength": 8196
88
+ }
89
+ },
90
+ "additionalProperties": false
63
91
  }
64
92
  },
65
93
  "additionalProperties": false
@@ -19,7 +19,8 @@
19
19
  "enum": [
20
20
  "aws",
21
21
  "azure",
22
- "gcp"
22
+ "gcp",
23
+ "http"
23
24
  ]
24
25
  },
25
26
  "awsConfig": {
@@ -79,6 +80,39 @@
79
80
  "required": [
80
81
  "keyJson"
81
82
  ]
83
+ },
84
+ "httpConfig": {
85
+ "type": "object",
86
+ "properties": {
87
+ "uriMatch": {
88
+ "type": "string",
89
+ "minLength": 8,
90
+ "maxLength": 1024
91
+ },
92
+ "authMethod": {
93
+ "type": "string",
94
+ "enum": [
95
+ "header",
96
+ "queryParam",
97
+ "basicAuth",
98
+ "clientCertificate"
99
+ ]
100
+ },
101
+ "publicValue": {
102
+ "type": "string",
103
+ "maxLength": 8196
104
+ },
105
+ "secretValue": {
106
+ "type": "string",
107
+ "maxLength": 8196
108
+ }
109
+ },
110
+ "additionalProperties": false,
111
+ "required": [
112
+ "uriMatch",
113
+ "authMethod",
114
+ "secretValue"
115
+ ]
82
116
  }
83
117
  },
84
118
  "additionalProperties": false,
@@ -66,7 +66,8 @@
66
66
  "enum": [
67
67
  "aws",
68
68
  "azure",
69
- "gcp"
69
+ "gcp",
70
+ "http"
70
71
  ]
71
72
  },
72
73
  "awsConfig": {
@@ -112,6 +113,35 @@
112
113
  "required": [
113
114
  "keyMetaJson"
114
115
  ]
116
+ },
117
+ "httpConfig": {
118
+ "type": "object",
119
+ "properties": {
120
+ "uriMatch": {
121
+ "type": "string",
122
+ "minLength": 8,
123
+ "maxLength": 1024
124
+ },
125
+ "authMethod": {
126
+ "type": "string",
127
+ "enum": [
128
+ "header",
129
+ "queryParam",
130
+ "basicAuth",
131
+ "clientCertificate"
132
+ ]
133
+ },
134
+ "publicValue": {
135
+ "type": "string",
136
+ "maxLength": 8196
137
+ }
138
+ },
139
+ "additionalProperties": false,
140
+ "required": [
141
+ "uriMatch",
142
+ "authMethod",
143
+ "publicValue"
144
+ ]
115
145
  }
116
146
  },
117
147
  "additionalProperties": false,
@@ -1086,6 +1086,9 @@
1086
1086
  "vega4",
1087
1087
  "vega5"
1088
1088
  ]
1089
+ },
1090
+ "tooltipEventSubscribe": {
1091
+ "type": "boolean"
1089
1092
  }
1090
1093
  },
1091
1094
  "additionalProperties": false
@@ -2382,6 +2385,9 @@
2382
2385
  "realTime": {
2383
2386
  "type": "boolean"
2384
2387
  },
2388
+ "hideLegend": {
2389
+ "type": "boolean"
2390
+ },
2385
2391
  "disallowUserSelectedDuration": {
2386
2392
  "type": "boolean"
2387
2393
  },
@@ -880,6 +880,9 @@
880
880
  "vega4",
881
881
  "vega5"
882
882
  ]
883
+ },
884
+ "tooltipEventSubscribe": {
885
+ "type": "boolean"
883
886
  }
884
887
  },
885
888
  "additionalProperties": false
@@ -2176,6 +2179,9 @@
2176
2179
  "realTime": {
2177
2180
  "type": "boolean"
2178
2181
  },
2182
+ "hideLegend": {
2183
+ "type": "boolean"
2184
+ },
2179
2185
  "disallowUserSelectedDuration": {
2180
2186
  "type": "boolean"
2181
2187
  },
@@ -888,6 +888,9 @@
888
888
  "vega4",
889
889
  "vega5"
890
890
  ]
891
+ },
892
+ "tooltipEventSubscribe": {
893
+ "type": "boolean"
891
894
  }
892
895
  },
893
896
  "additionalProperties": false
@@ -2184,6 +2187,9 @@
2184
2187
  "realTime": {
2185
2188
  "type": "boolean"
2186
2189
  },
2190
+ "hideLegend": {
2191
+ "type": "boolean"
2192
+ },
2187
2193
  "disallowUserSelectedDuration": {
2188
2194
  "type": "boolean"
2189
2195
  },
@@ -1093,6 +1093,9 @@
1093
1093
  "vega4",
1094
1094
  "vega5"
1095
1095
  ]
1096
+ },
1097
+ "tooltipEventSubscribe": {
1098
+ "type": "boolean"
1096
1099
  }
1097
1100
  },
1098
1101
  "additionalProperties": false
@@ -2389,6 +2392,9 @@
2389
2392
  "realTime": {
2390
2393
  "type": "boolean"
2391
2394
  },
2395
+ "hideLegend": {
2396
+ "type": "boolean"
2397
+ },
2392
2398
  "disallowUserSelectedDuration": {
2393
2399
  "type": "boolean"
2394
2400
  },
@@ -1633,6 +1633,7 @@
1633
1633
  },
1634
1634
  "attributes": {
1635
1635
  "type": "array",
1636
+ "maxItems": 256,
1636
1637
  "items": {
1637
1638
  "type": "string",
1638
1639
  "pattern": "^[0-9a-zA-Z_-]{1,255}$"
@@ -1607,10 +1607,10 @@
1607
1607
  },
1608
1608
  {
1609
1609
  "type": "array",
1610
- "maxItems": 100,
1610
+ "maxItems": 256,
1611
1611
  "items": {
1612
1612
  "type": "string",
1613
- "maxLength": 255
1613
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1614
1614
  }
1615
1615
  }
1616
1616
  ]