losant_rest 1.19.7 → 1.19.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +30 -0
  3. data/README.md +2 -2
  4. data/docs/_schemas.md +3986 -227
  5. data/docs/devices.md +0 -1
  6. data/docs/instanceOrgs.md +1 -0
  7. data/lib/platform_rest/client.rb +2 -2
  8. data/lib/platform_rest/devices.rb +0 -1
  9. data/lib/platform_rest/instance_orgs.rb +3 -0
  10. data/lib/platform_rest/version.rb +1 -1
  11. data/schemas/advancedInstanceOrgQuery.json +1171 -0
  12. data/schemas/application.json +20 -4
  13. data/schemas/applicationCreationByTemplateResult.json +20 -4
  14. data/schemas/applicationDashboardPost.json +7 -0
  15. data/schemas/applicationTemplate.json +4 -0
  16. data/schemas/applicationTemplates.json +4 -0
  17. data/schemas/applications.json +20 -4
  18. data/schemas/credential.json +13 -1
  19. data/schemas/credentialLinkedResources.json +330 -18
  20. data/schemas/credentialPatch.json +22 -0
  21. data/schemas/credentialPost.json +31 -1
  22. data/schemas/credentials.json +13 -1
  23. data/schemas/dashboard.json +7 -0
  24. data/schemas/dashboardPatch.json +7 -0
  25. data/schemas/dashboardPost.json +7 -0
  26. data/schemas/dashboards.json +7 -0
  27. data/schemas/devicesExportPost.json +8 -0
  28. data/schemas/devicesRemoveDataPost.json +10 -0
  29. data/schemas/experienceLinkedResources.json +341 -18
  30. data/schemas/experienceView.json +11 -0
  31. data/schemas/experienceViewPatch.json +11 -0
  32. data/schemas/experienceViewPost.json +11 -0
  33. data/schemas/experienceViews.json +11 -0
  34. data/schemas/flow.json +110 -6
  35. data/schemas/flowPatch.json +110 -6
  36. data/schemas/flowPost.json +110 -6
  37. data/schemas/flowVersion.json +220 -12
  38. data/schemas/flowVersionPost.json +110 -6
  39. data/schemas/flowVersions.json +220 -12
  40. data/schemas/flows.json +110 -6
  41. data/schemas/flowsImportPost.json +220 -12
  42. data/schemas/flowsImportResult.json +330 -18
  43. data/schemas/historicalSummaries.json +40 -8
  44. data/schemas/historicalSummary.json +40 -8
  45. data/schemas/instanceCustomNodePatch.json +8 -6
  46. data/schemas/instanceCustomNodePost.json +8 -6
  47. data/schemas/instanceOrg.json +20 -4
  48. data/schemas/instanceOrgs.json +20 -4
  49. data/schemas/instanceSandbox.json +20 -4
  50. data/schemas/instanceSandboxes.json +20 -4
  51. data/schemas/me.json +20 -4
  52. data/schemas/notebook.json +8 -0
  53. data/schemas/notebookPatch.json +8 -0
  54. data/schemas/notebookPost.json +8 -0
  55. data/schemas/notebooks.json +8 -0
  56. data/schemas/org.json +20 -4
  57. data/schemas/orgs.json +20 -4
  58. data/schemas/payloadStats.json +20 -4
  59. data/schemas/webhook.json +13 -0
  60. data/schemas/webhookPatch.json +13 -0
  61. data/schemas/webhookPost.json +13 -0
  62. data/schemas/webhooks.json +13 -0
  63. metadata +4 -3
  64. data/.travis.yml +0 -7
@@ -18,6 +18,108 @@
18
18
  "type": "array",
19
19
  "items": {
20
20
  "oneOf": [
21
+ {
22
+ "type": "object",
23
+ "properties": {
24
+ "key": {
25
+ "type": "string",
26
+ "maxLength": 1024
27
+ },
28
+ "type": {
29
+ "type": "string",
30
+ "enum": [
31
+ "appFile"
32
+ ]
33
+ },
34
+ "config": {
35
+ "type": "object",
36
+ "properties": {
37
+ "delete": {
38
+ "type": "boolean"
39
+ },
40
+ "create": {
41
+ "type": "boolean"
42
+ },
43
+ "update": {
44
+ "type": "boolean"
45
+ }
46
+ },
47
+ "additionalProperties": false
48
+ },
49
+ "meta": {
50
+ "type": "object",
51
+ "properties": {
52
+ "category": {
53
+ "type": "string",
54
+ "enum": [
55
+ "trigger"
56
+ ]
57
+ },
58
+ "name": {
59
+ "type": "string",
60
+ "enum": [
61
+ "appFile"
62
+ ]
63
+ },
64
+ "label": {
65
+ "type": "string",
66
+ "minLength": 1,
67
+ "maxLength": 255
68
+ },
69
+ "x": {
70
+ "type": "number"
71
+ },
72
+ "y": {
73
+ "type": "number"
74
+ },
75
+ "uiId": {
76
+ "type": "string",
77
+ "maxLength": 48
78
+ },
79
+ "description": {
80
+ "type": "string",
81
+ "maxLength": 32767
82
+ },
83
+ "icon": {
84
+ "type": "string",
85
+ "maxLength": 1024
86
+ },
87
+ "color": {
88
+ "type": "string",
89
+ "maxLength": 1024
90
+ },
91
+ "inputCount": {
92
+ "type": "number"
93
+ },
94
+ "outputCount": {
95
+ "type": "number"
96
+ },
97
+ "id": {
98
+ "type": "string",
99
+ "maxLength": 48
100
+ }
101
+ },
102
+ "additionalProperties": false
103
+ },
104
+ "outputIds": {
105
+ "type": "array",
106
+ "items": {
107
+ "type": "array",
108
+ "items": {
109
+ "type": "string",
110
+ "maxLength": 48,
111
+ "minLength": 1
112
+ },
113
+ "maxItems": 100
114
+ },
115
+ "maxItems": 100
116
+ }
117
+ },
118
+ "required": [
119
+ "type"
120
+ ],
121
+ "additionalProperties": false
122
+ },
21
123
  {
22
124
  "type": "object",
23
125
  "properties": {
@@ -34,15 +136,16 @@
34
136
  "deviceTagConnect",
35
137
  "deviceIdDisconnect",
36
138
  "deviceTagDisconnect",
139
+ "inboundEmail",
37
140
  "notebook",
38
141
  "onBoot",
39
142
  "onConnect",
40
143
  "onDisconnect",
41
- "udp",
42
- "webhook",
144
+ "resourceJobComplete",
43
145
  "resourceJobIteration",
44
146
  "resourceJobIterationTimeout",
45
- "resourceJobComplete"
147
+ "udp",
148
+ "webhook"
46
149
  ]
47
150
  },
48
151
  "config": {
@@ -67,15 +170,16 @@
67
170
  "deviceIdsTagsDisconnect",
68
171
  "eeaInit",
69
172
  "flowError",
173
+ "inboundEmail",
70
174
  "notebook",
71
175
  "onBoot",
72
176
  "onConnect",
73
177
  "onDisconnect",
74
- "udp",
75
- "webhook",
178
+ "resourceJobComplete",
76
179
  "resourceJobIteration",
77
180
  "resourceJobIterationTimeout",
78
- "resourceJobComplete"
181
+ "udp",
182
+ "webhook"
79
183
  ]
80
184
  },
81
185
  "label": {
@@ -85,6 +85,108 @@
85
85
  "type": "array",
86
86
  "items": {
87
87
  "oneOf": [
88
+ {
89
+ "type": "object",
90
+ "properties": {
91
+ "key": {
92
+ "type": "string",
93
+ "maxLength": 1024
94
+ },
95
+ "type": {
96
+ "type": "string",
97
+ "enum": [
98
+ "appFile"
99
+ ]
100
+ },
101
+ "config": {
102
+ "type": "object",
103
+ "properties": {
104
+ "delete": {
105
+ "type": "boolean"
106
+ },
107
+ "create": {
108
+ "type": "boolean"
109
+ },
110
+ "update": {
111
+ "type": "boolean"
112
+ }
113
+ },
114
+ "additionalProperties": false
115
+ },
116
+ "meta": {
117
+ "type": "object",
118
+ "properties": {
119
+ "category": {
120
+ "type": "string",
121
+ "enum": [
122
+ "trigger"
123
+ ]
124
+ },
125
+ "name": {
126
+ "type": "string",
127
+ "enum": [
128
+ "appFile"
129
+ ]
130
+ },
131
+ "label": {
132
+ "type": "string",
133
+ "minLength": 1,
134
+ "maxLength": 255
135
+ },
136
+ "x": {
137
+ "type": "number"
138
+ },
139
+ "y": {
140
+ "type": "number"
141
+ },
142
+ "uiId": {
143
+ "type": "string",
144
+ "maxLength": 48
145
+ },
146
+ "description": {
147
+ "type": "string",
148
+ "maxLength": 32767
149
+ },
150
+ "icon": {
151
+ "type": "string",
152
+ "maxLength": 1024
153
+ },
154
+ "color": {
155
+ "type": "string",
156
+ "maxLength": 1024
157
+ },
158
+ "inputCount": {
159
+ "type": "number"
160
+ },
161
+ "outputCount": {
162
+ "type": "number"
163
+ },
164
+ "id": {
165
+ "type": "string",
166
+ "maxLength": 48
167
+ }
168
+ },
169
+ "additionalProperties": false
170
+ },
171
+ "outputIds": {
172
+ "type": "array",
173
+ "items": {
174
+ "type": "array",
175
+ "items": {
176
+ "type": "string",
177
+ "maxLength": 48,
178
+ "minLength": 1
179
+ },
180
+ "maxItems": 100
181
+ },
182
+ "maxItems": 100
183
+ }
184
+ },
185
+ "required": [
186
+ "type"
187
+ ],
188
+ "additionalProperties": false
189
+ },
88
190
  {
89
191
  "type": "object",
90
192
  "properties": {
@@ -101,15 +203,16 @@
101
203
  "deviceTagConnect",
102
204
  "deviceIdDisconnect",
103
205
  "deviceTagDisconnect",
206
+ "inboundEmail",
104
207
  "notebook",
105
208
  "onBoot",
106
209
  "onConnect",
107
210
  "onDisconnect",
108
- "udp",
109
- "webhook",
211
+ "resourceJobComplete",
110
212
  "resourceJobIteration",
111
213
  "resourceJobIterationTimeout",
112
- "resourceJobComplete"
214
+ "udp",
215
+ "webhook"
113
216
  ]
114
217
  },
115
218
  "config": {
@@ -134,15 +237,16 @@
134
237
  "deviceIdsTagsDisconnect",
135
238
  "eeaInit",
136
239
  "flowError",
240
+ "inboundEmail",
137
241
  "notebook",
138
242
  "onBoot",
139
243
  "onConnect",
140
244
  "onDisconnect",
141
- "udp",
142
- "webhook",
245
+ "resourceJobComplete",
143
246
  "resourceJobIteration",
144
247
  "resourceJobIterationTimeout",
145
- "resourceJobComplete"
248
+ "udp",
249
+ "webhook"
146
250
  ]
147
251
  },
148
252
  "label": {
@@ -2877,6 +2981,108 @@
2877
2981
  "type": "array",
2878
2982
  "items": {
2879
2983
  "oneOf": [
2984
+ {
2985
+ "type": "object",
2986
+ "properties": {
2987
+ "key": {
2988
+ "type": "string",
2989
+ "maxLength": 1024
2990
+ },
2991
+ "type": {
2992
+ "type": "string",
2993
+ "enum": [
2994
+ "appFile"
2995
+ ]
2996
+ },
2997
+ "config": {
2998
+ "type": "object",
2999
+ "properties": {
3000
+ "delete": {
3001
+ "type": "boolean"
3002
+ },
3003
+ "create": {
3004
+ "type": "boolean"
3005
+ },
3006
+ "update": {
3007
+ "type": "boolean"
3008
+ }
3009
+ },
3010
+ "additionalProperties": false
3011
+ },
3012
+ "meta": {
3013
+ "type": "object",
3014
+ "properties": {
3015
+ "category": {
3016
+ "type": "string",
3017
+ "enum": [
3018
+ "trigger"
3019
+ ]
3020
+ },
3021
+ "name": {
3022
+ "type": "string",
3023
+ "enum": [
3024
+ "appFile"
3025
+ ]
3026
+ },
3027
+ "label": {
3028
+ "type": "string",
3029
+ "minLength": 1,
3030
+ "maxLength": 255
3031
+ },
3032
+ "x": {
3033
+ "type": "number"
3034
+ },
3035
+ "y": {
3036
+ "type": "number"
3037
+ },
3038
+ "uiId": {
3039
+ "type": "string",
3040
+ "maxLength": 48
3041
+ },
3042
+ "description": {
3043
+ "type": "string",
3044
+ "maxLength": 32767
3045
+ },
3046
+ "icon": {
3047
+ "type": "string",
3048
+ "maxLength": 1024
3049
+ },
3050
+ "color": {
3051
+ "type": "string",
3052
+ "maxLength": 1024
3053
+ },
3054
+ "inputCount": {
3055
+ "type": "number"
3056
+ },
3057
+ "outputCount": {
3058
+ "type": "number"
3059
+ },
3060
+ "id": {
3061
+ "type": "string",
3062
+ "maxLength": 48
3063
+ }
3064
+ },
3065
+ "additionalProperties": false
3066
+ },
3067
+ "outputIds": {
3068
+ "type": "array",
3069
+ "items": {
3070
+ "type": "array",
3071
+ "items": {
3072
+ "type": "string",
3073
+ "maxLength": 48,
3074
+ "minLength": 1
3075
+ },
3076
+ "maxItems": 100
3077
+ },
3078
+ "maxItems": 100
3079
+ }
3080
+ },
3081
+ "required": [
3082
+ "type"
3083
+ ],
3084
+ "additionalProperties": false
3085
+ },
2880
3086
  {
2881
3087
  "type": "object",
2882
3088
  "properties": {
@@ -2893,15 +3099,16 @@
2893
3099
  "deviceTagConnect",
2894
3100
  "deviceIdDisconnect",
2895
3101
  "deviceTagDisconnect",
3102
+ "inboundEmail",
2896
3103
  "notebook",
2897
3104
  "onBoot",
2898
3105
  "onConnect",
2899
3106
  "onDisconnect",
2900
- "udp",
2901
- "webhook",
3107
+ "resourceJobComplete",
2902
3108
  "resourceJobIteration",
2903
3109
  "resourceJobIterationTimeout",
2904
- "resourceJobComplete"
3110
+ "udp",
3111
+ "webhook"
2905
3112
  ]
2906
3113
  },
2907
3114
  "config": {
@@ -2926,15 +3133,16 @@
2926
3133
  "deviceIdsTagsDisconnect",
2927
3134
  "eeaInit",
2928
3135
  "flowError",
3136
+ "inboundEmail",
2929
3137
  "notebook",
2930
3138
  "onBoot",
2931
3139
  "onConnect",
2932
3140
  "onDisconnect",
2933
- "udp",
2934
- "webhook",
3141
+ "resourceJobComplete",
2935
3142
  "resourceJobIteration",
2936
3143
  "resourceJobIterationTimeout",
2937
- "resourceJobComplete"
3144
+ "udp",
3145
+ "webhook"
2938
3146
  ]
2939
3147
  },
2940
3148
  "label": {
data/schemas/flows.json CHANGED
@@ -110,6 +110,108 @@
110
110
  "type": "array",
111
111
  "items": {
112
112
  "oneOf": [
113
+ {
114
+ "type": "object",
115
+ "properties": {
116
+ "key": {
117
+ "type": "string",
118
+ "maxLength": 1024
119
+ },
120
+ "type": {
121
+ "type": "string",
122
+ "enum": [
123
+ "appFile"
124
+ ]
125
+ },
126
+ "config": {
127
+ "type": "object",
128
+ "properties": {
129
+ "delete": {
130
+ "type": "boolean"
131
+ },
132
+ "create": {
133
+ "type": "boolean"
134
+ },
135
+ "update": {
136
+ "type": "boolean"
137
+ }
138
+ },
139
+ "additionalProperties": false
140
+ },
141
+ "meta": {
142
+ "type": "object",
143
+ "properties": {
144
+ "category": {
145
+ "type": "string",
146
+ "enum": [
147
+ "trigger"
148
+ ]
149
+ },
150
+ "name": {
151
+ "type": "string",
152
+ "enum": [
153
+ "appFile"
154
+ ]
155
+ },
156
+ "label": {
157
+ "type": "string",
158
+ "minLength": 1,
159
+ "maxLength": 255
160
+ },
161
+ "x": {
162
+ "type": "number"
163
+ },
164
+ "y": {
165
+ "type": "number"
166
+ },
167
+ "uiId": {
168
+ "type": "string",
169
+ "maxLength": 48
170
+ },
171
+ "description": {
172
+ "type": "string",
173
+ "maxLength": 32767
174
+ },
175
+ "icon": {
176
+ "type": "string",
177
+ "maxLength": 1024
178
+ },
179
+ "color": {
180
+ "type": "string",
181
+ "maxLength": 1024
182
+ },
183
+ "inputCount": {
184
+ "type": "number"
185
+ },
186
+ "outputCount": {
187
+ "type": "number"
188
+ },
189
+ "id": {
190
+ "type": "string",
191
+ "maxLength": 48
192
+ }
193
+ },
194
+ "additionalProperties": false
195
+ },
196
+ "outputIds": {
197
+ "type": "array",
198
+ "items": {
199
+ "type": "array",
200
+ "items": {
201
+ "type": "string",
202
+ "maxLength": 48,
203
+ "minLength": 1
204
+ },
205
+ "maxItems": 100
206
+ },
207
+ "maxItems": 100
208
+ }
209
+ },
210
+ "required": [
211
+ "type"
212
+ ],
213
+ "additionalProperties": false
214
+ },
113
215
  {
114
216
  "type": "object",
115
217
  "properties": {
@@ -126,15 +228,16 @@
126
228
  "deviceTagConnect",
127
229
  "deviceIdDisconnect",
128
230
  "deviceTagDisconnect",
231
+ "inboundEmail",
129
232
  "notebook",
130
233
  "onBoot",
131
234
  "onConnect",
132
235
  "onDisconnect",
133
- "udp",
134
- "webhook",
236
+ "resourceJobComplete",
135
237
  "resourceJobIteration",
136
238
  "resourceJobIterationTimeout",
137
- "resourceJobComplete"
239
+ "udp",
240
+ "webhook"
138
241
  ]
139
242
  },
140
243
  "config": {
@@ -159,15 +262,16 @@
159
262
  "deviceIdsTagsDisconnect",
160
263
  "eeaInit",
161
264
  "flowError",
265
+ "inboundEmail",
162
266
  "notebook",
163
267
  "onBoot",
164
268
  "onConnect",
165
269
  "onDisconnect",
166
- "udp",
167
- "webhook",
270
+ "resourceJobComplete",
168
271
  "resourceJobIteration",
169
272
  "resourceJobIterationTimeout",
170
- "resourceJobComplete"
273
+ "udp",
274
+ "webhook"
171
275
  ]
172
276
  },
173
277
  "label": {