losant_rest 1.16.3 → 1.16.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +1131 -127
  3. data/docs/dashboard.md +2 -0
  4. data/docs/device.md +4 -0
  5. data/docs/devices.md +4 -0
  6. data/docs/me.md +36 -0
  7. data/lib/losant_rest/client.rb +2 -2
  8. data/lib/losant_rest/dashboard.rb +4 -0
  9. data/lib/losant_rest/device.rb +8 -0
  10. data/lib/losant_rest/devices.rb +8 -0
  11. data/lib/losant_rest/me.rb +41 -0
  12. data/lib/losant_rest/version.rb +1 -1
  13. data/schemas/apiTokenPost.json +1 -0
  14. data/schemas/applicationDashboardPost.json +152 -24
  15. data/schemas/dashboard.json +152 -24
  16. data/schemas/dashboardPatch.json +152 -24
  17. data/schemas/dashboardPost.json +152 -24
  18. data/schemas/dashboards.json +152 -24
  19. data/schemas/enableTwoFactorAuth.json +5 -1
  20. data/schemas/experienceLinkedResources.json +3 -0
  21. data/schemas/experienceVersion.json +27 -0
  22. data/schemas/experienceVersionPatch.json +27 -0
  23. data/schemas/experienceVersionPost.json +39 -0
  24. data/schemas/experienceVersions.json +27 -0
  25. data/schemas/flow.json +1 -0
  26. data/schemas/flowPatch.json +1 -0
  27. data/schemas/flowPost.json +1 -0
  28. data/schemas/flowVersion.json +2 -0
  29. data/schemas/flowVersionPost.json +1 -0
  30. data/schemas/flowVersions.json +2 -0
  31. data/schemas/flows.json +1 -0
  32. data/schemas/flowsImportPost.json +2 -0
  33. data/schemas/flowsImportResult.json +3 -0
  34. data/schemas/githubLogin.json +1 -0
  35. data/schemas/importIntoApplicationOptions.json +7 -1
  36. data/schemas/importNewApplicationOptions.json +1 -0
  37. data/schemas/instanceCustomNodePatch.json +1 -0
  38. data/schemas/instanceCustomNodePost.json +1 -0
  39. data/schemas/integration.json +34 -1
  40. data/schemas/integrationPatch.json +34 -1
  41. data/schemas/integrationPost.json +34 -1
  42. data/schemas/integrations.json +34 -1
  43. data/schemas/samlResponse.json +1 -0
  44. data/schemas/twoFactorAuthInfo.json +15 -0
  45. data/schemas/userCredentials.json +1 -0
  46. data/schemas/userPost.json +1 -0
  47. data/schemas/validateContextError.json +3 -0
  48. data/schemas/validateContextSuccess.json +27 -0
  49. metadata +3 -2
@@ -62,6 +62,33 @@
62
62
  "type": "string",
63
63
  "maxLength": 32767
64
64
  },
65
+ "globals": {
66
+ "type": "array",
67
+ "maxItems": 100,
68
+ "items": {
69
+ "type": "object",
70
+ "properties": {
71
+ "key": {
72
+ "type": "string",
73
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
74
+ },
75
+ "json": {
76
+ "type": "string",
77
+ "minLength": 1,
78
+ "maxLength": 32767
79
+ },
80
+ "description": {
81
+ "type": "string",
82
+ "maxLength": 1024
83
+ }
84
+ },
85
+ "additionalProperties": false,
86
+ "required": [
87
+ "key",
88
+ "json"
89
+ ]
90
+ }
91
+ },
65
92
  "attachedDomains": {
66
93
  "type": "array",
67
94
  "items": {
data/schemas/flow.json CHANGED
@@ -134,6 +134,7 @@
134
134
  "onConnect",
135
135
  "onDisconnect",
136
136
  "particle",
137
+ "sqs",
137
138
  "udp",
138
139
  "webhook"
139
140
  ]
@@ -115,6 +115,7 @@
115
115
  "onConnect",
116
116
  "onDisconnect",
117
117
  "particle",
118
+ "sqs",
118
119
  "udp",
119
120
  "webhook"
120
121
  ]
@@ -104,6 +104,7 @@
104
104
  "onConnect",
105
105
  "onDisconnect",
106
106
  "particle",
107
+ "sqs",
107
108
  "udp",
108
109
  "webhook"
109
110
  ]
@@ -101,6 +101,7 @@
101
101
  "onConnect",
102
102
  "onDisconnect",
103
103
  "particle",
104
+ "sqs",
104
105
  "udp",
105
106
  "webhook"
106
107
  ]
@@ -2685,6 +2686,7 @@
2685
2686
  "onConnect",
2686
2687
  "onDisconnect",
2687
2688
  "particle",
2689
+ "sqs",
2688
2690
  "udp",
2689
2691
  "webhook"
2690
2692
  ]
@@ -74,6 +74,7 @@
74
74
  "onConnect",
75
75
  "onDisconnect",
76
76
  "particle",
77
+ "sqs",
77
78
  "udp",
78
79
  "webhook"
79
80
  ]
@@ -108,6 +108,7 @@
108
108
  "onConnect",
109
109
  "onDisconnect",
110
110
  "particle",
111
+ "sqs",
111
112
  "udp",
112
113
  "webhook"
113
114
  ]
@@ -2692,6 +2693,7 @@
2692
2693
  "onConnect",
2693
2694
  "onDisconnect",
2694
2695
  "particle",
2696
+ "sqs",
2695
2697
  "udp",
2696
2698
  "webhook"
2697
2699
  ]
data/schemas/flows.json CHANGED
@@ -141,6 +141,7 @@
141
141
  "onConnect",
142
142
  "onDisconnect",
143
143
  "particle",
144
+ "sqs",
144
145
  "udp",
145
146
  "webhook"
146
147
  ]
@@ -118,6 +118,7 @@
118
118
  "onConnect",
119
119
  "onDisconnect",
120
120
  "particle",
121
+ "sqs",
121
122
  "udp",
122
123
  "webhook"
123
124
  ]
@@ -2689,6 +2690,7 @@
2689
2690
  "onConnect",
2690
2691
  "onDisconnect",
2691
2692
  "particle",
2693
+ "sqs",
2692
2694
  "udp",
2693
2695
  "webhook"
2694
2696
  ]
@@ -142,6 +142,7 @@
142
142
  "onConnect",
143
143
  "onDisconnect",
144
144
  "particle",
145
+ "sqs",
145
146
  "udp",
146
147
  "webhook"
147
148
  ]
@@ -2731,6 +2732,7 @@
2731
2732
  "onConnect",
2732
2733
  "onDisconnect",
2733
2734
  "particle",
2735
+ "sqs",
2734
2736
  "udp",
2735
2737
  "webhook"
2736
2738
  ]
@@ -5315,6 +5317,7 @@
5315
5317
  "onConnect",
5316
5318
  "onDisconnect",
5317
5319
  "particle",
5320
+ "sqs",
5318
5321
  "udp",
5319
5322
  "webhook"
5320
5323
  ]
@@ -418,6 +418,7 @@
418
418
  "me.delete",
419
419
  "me.verifyEmail",
420
420
  "me.changePassword",
421
+ "me.generateTwoFactorAuth",
421
422
  "me.enableTwoFactorAuth",
422
423
  "me.disableTwoFactorAuth",
423
424
  "me.disconnectGithub",
@@ -16,10 +16,15 @@
16
16
  "type": "string",
17
17
  "enum": [
18
18
  "create",
19
- "error"
19
+ "error",
20
+ "retain"
20
21
  ],
21
22
  "default": "create"
22
23
  },
24
+ "dryRun": {
25
+ "type": "boolean",
26
+ "default": false
27
+ },
23
28
  "include": {
24
29
  "type": "array",
25
30
  "items": {
@@ -40,6 +45,7 @@
40
45
  "File",
41
46
  "FlowVersion",
42
47
  "Flow",
48
+ "Global",
43
49
  "Integration",
44
50
  "Notebook",
45
51
  "Webhook"
@@ -32,6 +32,7 @@
32
32
  "File",
33
33
  "FlowVersion",
34
34
  "Flow",
35
+ "Global",
35
36
  "Integration",
36
37
  "Notebook",
37
38
  "Webhook"
@@ -105,6 +105,7 @@
105
105
  "onConnect",
106
106
  "onDisconnect",
107
107
  "particle",
108
+ "sqs",
108
109
  "udp",
109
110
  "webhook"
110
111
  ]
@@ -105,6 +105,7 @@
105
105
  "onConnect",
106
106
  "onDisconnect",
107
107
  "particle",
108
+ "sqs",
108
109
  "udp",
109
110
  "webhook"
110
111
  ]
@@ -34,7 +34,8 @@
34
34
  "googlePubSub",
35
35
  "meridian",
36
36
  "mqtt",
37
- "particle"
37
+ "particle",
38
+ "sqs"
38
39
  ]
39
40
  },
40
41
  "enabled": {
@@ -190,6 +191,38 @@
190
191
  "accessToken"
191
192
  ]
192
193
  },
194
+ "sqsConfig": {
195
+ "type": "object",
196
+ "properties": {
197
+ "accessKeyId": {
198
+ "type": "string",
199
+ "minLength": 1,
200
+ "maxLength": 1024
201
+ },
202
+ "secretAccessKey": {
203
+ "type": "string",
204
+ "minLength": 1,
205
+ "maxLength": 1024
206
+ },
207
+ "region": {
208
+ "type": "string",
209
+ "minLength": 1,
210
+ "maxLength": 1024
211
+ },
212
+ "queueUrl": {
213
+ "type": "string",
214
+ "minLength": 1,
215
+ "maxLength": 1024
216
+ }
217
+ },
218
+ "additionalProperties": false,
219
+ "required": [
220
+ "accessKeyId",
221
+ "secretAccessKey",
222
+ "region",
223
+ "queueUrl"
224
+ ]
225
+ },
193
226
  "meridianConfig": {
194
227
  "type": "object",
195
228
  "properties": {
@@ -14,7 +14,8 @@
14
14
  "googlePubSub",
15
15
  "meridian",
16
16
  "mqtt",
17
- "particle"
17
+ "particle",
18
+ "sqs"
18
19
  ]
19
20
  },
20
21
  "enabled": {
@@ -170,6 +171,38 @@
170
171
  "accessToken"
171
172
  ]
172
173
  },
174
+ "sqsConfig": {
175
+ "type": "object",
176
+ "properties": {
177
+ "accessKeyId": {
178
+ "type": "string",
179
+ "minLength": 1,
180
+ "maxLength": 1024
181
+ },
182
+ "secretAccessKey": {
183
+ "type": "string",
184
+ "minLength": 1,
185
+ "maxLength": 1024
186
+ },
187
+ "region": {
188
+ "type": "string",
189
+ "minLength": 1,
190
+ "maxLength": 1024
191
+ },
192
+ "queueUrl": {
193
+ "type": "string",
194
+ "minLength": 1,
195
+ "maxLength": 1024
196
+ }
197
+ },
198
+ "additionalProperties": false,
199
+ "required": [
200
+ "accessKeyId",
201
+ "secretAccessKey",
202
+ "region",
203
+ "queueUrl"
204
+ ]
205
+ },
173
206
  "meridianConfig": {
174
207
  "type": "object",
175
208
  "properties": {
@@ -14,7 +14,8 @@
14
14
  "googlePubSub",
15
15
  "meridian",
16
16
  "mqtt",
17
- "particle"
17
+ "particle",
18
+ "sqs"
18
19
  ]
19
20
  },
20
21
  "enabled": {
@@ -170,6 +171,38 @@
170
171
  "accessToken"
171
172
  ]
172
173
  },
174
+ "sqsConfig": {
175
+ "type": "object",
176
+ "properties": {
177
+ "accessKeyId": {
178
+ "type": "string",
179
+ "minLength": 1,
180
+ "maxLength": 1024
181
+ },
182
+ "secretAccessKey": {
183
+ "type": "string",
184
+ "minLength": 1,
185
+ "maxLength": 1024
186
+ },
187
+ "region": {
188
+ "type": "string",
189
+ "minLength": 1,
190
+ "maxLength": 1024
191
+ },
192
+ "queueUrl": {
193
+ "type": "string",
194
+ "minLength": 1,
195
+ "maxLength": 1024
196
+ }
197
+ },
198
+ "additionalProperties": false,
199
+ "required": [
200
+ "accessKeyId",
201
+ "secretAccessKey",
202
+ "region",
203
+ "queueUrl"
204
+ ]
205
+ },
173
206
  "meridianConfig": {
174
207
  "type": "object",
175
208
  "properties": {
@@ -41,7 +41,8 @@
41
41
  "googlePubSub",
42
42
  "meridian",
43
43
  "mqtt",
44
- "particle"
44
+ "particle",
45
+ "sqs"
45
46
  ]
46
47
  },
47
48
  "enabled": {
@@ -197,6 +198,38 @@
197
198
  "accessToken"
198
199
  ]
199
200
  },
201
+ "sqsConfig": {
202
+ "type": "object",
203
+ "properties": {
204
+ "accessKeyId": {
205
+ "type": "string",
206
+ "minLength": 1,
207
+ "maxLength": 1024
208
+ },
209
+ "secretAccessKey": {
210
+ "type": "string",
211
+ "minLength": 1,
212
+ "maxLength": 1024
213
+ },
214
+ "region": {
215
+ "type": "string",
216
+ "minLength": 1,
217
+ "maxLength": 1024
218
+ },
219
+ "queueUrl": {
220
+ "type": "string",
221
+ "minLength": 1,
222
+ "maxLength": 1024
223
+ }
224
+ },
225
+ "additionalProperties": false,
226
+ "required": [
227
+ "accessKeyId",
228
+ "secretAccessKey",
229
+ "region",
230
+ "queueUrl"
231
+ ]
232
+ },
200
233
  "meridianConfig": {
201
234
  "type": "object",
202
235
  "properties": {
@@ -423,6 +423,7 @@
423
423
  "me.delete",
424
424
  "me.verifyEmail",
425
425
  "me.changePassword",
426
+ "me.generateTwoFactorAuth",
426
427
  "me.enableTwoFactorAuth",
427
428
  "me.disableTwoFactorAuth",
428
429
  "me.disconnectGithub",
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "key": {
6
+ "type": "string",
7
+ "maxLength": 1024
8
+ },
9
+ "keyUri": {
10
+ "type": "string",
11
+ "maxLength": 1024
12
+ }
13
+ },
14
+ "additionalProperties": false
15
+ }
@@ -427,6 +427,7 @@
427
427
  "me.delete",
428
428
  "me.verifyEmail",
429
429
  "me.changePassword",
430
+ "me.generateTwoFactorAuth",
430
431
  "me.enableTwoFactorAuth",
431
432
  "me.disableTwoFactorAuth",
432
433
  "me.disconnectGithub",
@@ -485,6 +485,7 @@
485
485
  "me.delete",
486
486
  "me.verifyEmail",
487
487
  "me.changePassword",
488
+ "me.generateTwoFactorAuth",
488
489
  "me.enableTwoFactorAuth",
489
490
  "me.disableTwoFactorAuth",
490
491
  "me.disconnectGithub",
@@ -107,6 +107,9 @@
107
107
  }
108
108
  },
109
109
  "additionalProperties": false
110
+ },
111
+ "dashboard": {
112
+ "ref": "#/definitions/validateContextSuccess/properties/dashboard"
110
113
  }
111
114
  }
112
115
  }
@@ -107,6 +107,33 @@
107
107
  }
108
108
  },
109
109
  "additionalProperties": false
110
+ },
111
+ "dashboard": {
112
+ "type": "object",
113
+ "properties": {
114
+ "name": {
115
+ "type": "string",
116
+ "minLength": 1,
117
+ "maxLength": 255
118
+ },
119
+ "id": {
120
+ "type": "string",
121
+ "pattern": "^[A-Fa-f\\d]{24}$"
122
+ },
123
+ "duration": {
124
+ "type": "integer",
125
+ "minimum": 1
126
+ },
127
+ "resolution": {
128
+ "type": "integer",
129
+ "minimum": 1
130
+ },
131
+ "refreshRate": {
132
+ "type": "number",
133
+ "minimum": 5,
134
+ "maximum": 600
135
+ }
136
+ }
110
137
  }
111
138
  }
112
139
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: losant_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.3
4
+ version: 1.16.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-14 00:00:00.000000000 Z
11
+ date: 2022-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -515,6 +515,7 @@ files:
515
515
  - schemas/templateKeywords.json
516
516
  - schemas/timeSeriesData.json
517
517
  - schemas/timeSeriesQuery.json
518
+ - schemas/twoFactorAuthInfo.json
518
519
  - schemas/userCredentials.json
519
520
  - schemas/userPost.json
520
521
  - schemas/validateContextError.json