losant_rest 1.19.4 → 1.19.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +9 -9
  4. data/docs/_schemas.md +7090 -2334
  5. data/docs/experienceUsers.md +1 -0
  6. data/docs/instanceAuditLog.md +49 -0
  7. data/docs/instanceAuditLogs.md +53 -0
  8. data/examples/auth.rb +1 -1
  9. data/examples/list_devices.rb +1 -1
  10. data/lib/platform_rest/application.rb +1 -1
  11. data/lib/platform_rest/application_api_token.rb +1 -1
  12. data/lib/platform_rest/application_api_tokens.rb +1 -1
  13. data/lib/platform_rest/application_certificate.rb +1 -1
  14. data/lib/platform_rest/application_certificate_authorities.rb +1 -1
  15. data/lib/platform_rest/application_certificate_authority.rb +1 -1
  16. data/lib/platform_rest/application_certificates.rb +1 -1
  17. data/lib/platform_rest/application_dashboard.rb +1 -1
  18. data/lib/platform_rest/application_dashboards.rb +1 -1
  19. data/lib/platform_rest/application_key.rb +1 -1
  20. data/lib/platform_rest/application_keys.rb +1 -1
  21. data/lib/platform_rest/application_template.rb +1 -1
  22. data/lib/platform_rest/application_templates.rb +1 -1
  23. data/lib/platform_rest/applications.rb +1 -1
  24. data/lib/platform_rest/audit_log.rb +1 -1
  25. data/lib/platform_rest/audit_logs.rb +1 -1
  26. data/lib/platform_rest/auth.rb +1 -1
  27. data/lib/platform_rest/client.rb +11 -3
  28. data/lib/platform_rest/credential.rb +1 -1
  29. data/lib/platform_rest/credentials.rb +1 -1
  30. data/lib/platform_rest/dashboard.rb +1 -1
  31. data/lib/platform_rest/dashboards.rb +1 -1
  32. data/lib/platform_rest/data.rb +1 -1
  33. data/lib/platform_rest/data_table.rb +1 -1
  34. data/lib/platform_rest/data_table_row.rb +1 -1
  35. data/lib/platform_rest/data_table_rows.rb +1 -1
  36. data/lib/platform_rest/data_tables.rb +1 -1
  37. data/lib/platform_rest/device.rb +1 -1
  38. data/lib/platform_rest/device_recipe.rb +1 -1
  39. data/lib/platform_rest/device_recipes.rb +1 -1
  40. data/lib/platform_rest/devices.rb +1 -1
  41. data/lib/platform_rest/edge_deployment.rb +1 -1
  42. data/lib/platform_rest/edge_deployments.rb +1 -1
  43. data/lib/platform_rest/embedded_deployment.rb +1 -1
  44. data/lib/platform_rest/embedded_deployments.rb +1 -1
  45. data/lib/platform_rest/error.rb +1 -1
  46. data/lib/platform_rest/event.rb +1 -1
  47. data/lib/platform_rest/events.rb +1 -1
  48. data/lib/platform_rest/experience.rb +1 -1
  49. data/lib/platform_rest/experience_domain.rb +1 -1
  50. data/lib/platform_rest/experience_domains.rb +1 -1
  51. data/lib/platform_rest/experience_endpoint.rb +1 -1
  52. data/lib/platform_rest/experience_endpoints.rb +1 -1
  53. data/lib/platform_rest/experience_group.rb +1 -1
  54. data/lib/platform_rest/experience_groups.rb +1 -1
  55. data/lib/platform_rest/experience_slug.rb +1 -1
  56. data/lib/platform_rest/experience_slugs.rb +1 -1
  57. data/lib/platform_rest/experience_user.rb +1 -1
  58. data/lib/platform_rest/experience_users.rb +4 -1
  59. data/lib/platform_rest/experience_version.rb +1 -1
  60. data/lib/platform_rest/experience_versions.rb +1 -1
  61. data/lib/platform_rest/experience_view.rb +1 -1
  62. data/lib/platform_rest/experience_views.rb +1 -1
  63. data/lib/platform_rest/file.rb +1 -1
  64. data/lib/platform_rest/files.rb +1 -1
  65. data/lib/platform_rest/flow.rb +1 -1
  66. data/lib/platform_rest/flow_version.rb +1 -1
  67. data/lib/platform_rest/flow_versions.rb +1 -1
  68. data/lib/platform_rest/flows.rb +1 -1
  69. data/lib/platform_rest/instance.rb +1 -1
  70. data/lib/platform_rest/instance_api_token.rb +1 -1
  71. data/lib/platform_rest/instance_api_tokens.rb +1 -1
  72. data/lib/{losant_rest/application_template.rb → platform_rest/instance_audit_log.rb} +13 -11
  73. data/lib/{losant_rest/audit_logs.rb → platform_rest/instance_audit_logs.rb} +12 -12
  74. data/lib/platform_rest/instance_custom_node.rb +1 -1
  75. data/lib/platform_rest/instance_custom_nodes.rb +1 -1
  76. data/lib/platform_rest/instance_member.rb +1 -1
  77. data/lib/platform_rest/instance_members.rb +1 -1
  78. data/lib/platform_rest/instance_org.rb +1 -1
  79. data/lib/platform_rest/instance_org_invite.rb +1 -1
  80. data/lib/platform_rest/instance_org_invites.rb +1 -1
  81. data/lib/platform_rest/instance_org_member.rb +1 -1
  82. data/lib/platform_rest/instance_org_members.rb +1 -1
  83. data/lib/platform_rest/instance_orgs.rb +1 -1
  84. data/lib/platform_rest/instance_sandbox.rb +1 -1
  85. data/lib/platform_rest/instance_sandboxes.rb +1 -1
  86. data/lib/platform_rest/instances.rb +1 -1
  87. data/lib/platform_rest/integration.rb +1 -1
  88. data/lib/platform_rest/integrations.rb +1 -1
  89. data/lib/platform_rest/me.rb +1 -1
  90. data/lib/platform_rest/notebook.rb +1 -1
  91. data/lib/platform_rest/notebooks.rb +1 -1
  92. data/lib/platform_rest/org.rb +1 -1
  93. data/lib/platform_rest/org_invites.rb +1 -1
  94. data/lib/platform_rest/orgs.rb +1 -1
  95. data/lib/platform_rest/resource_job.rb +1 -1
  96. data/lib/platform_rest/resource_jobs.rb +1 -1
  97. data/lib/platform_rest/user_api_token.rb +1 -1
  98. data/lib/platform_rest/user_api_tokens.rb +1 -1
  99. data/lib/platform_rest/utils.rb +1 -1
  100. data/lib/{losant_rest → platform_rest}/version.rb +3 -3
  101. data/lib/platform_rest/webhook.rb +1 -1
  102. data/lib/platform_rest/webhooks.rb +1 -1
  103. data/lib/platform_rest.rb +3 -1
  104. data/losant_rest.gemspec +2 -2
  105. data/schemas/advancedExperienceUserQuery.json +1068 -0
  106. data/schemas/apiTokenPost.json +9 -1
  107. data/schemas/auditLog.json +3 -2
  108. data/schemas/auditLogFilter.json +3 -2
  109. data/schemas/auditLogs.json +3 -2
  110. data/schemas/credential.json +95 -1
  111. data/schemas/credentialLinkedResources.json +417 -19
  112. data/schemas/credentialPatch.json +107 -0
  113. data/schemas/credentialPost.json +129 -1
  114. data/schemas/credentials.json +95 -1
  115. data/schemas/deviceConnectionStatus.json +6 -2
  116. data/schemas/devicesHistoricalImportPost.json +25 -0
  117. data/schemas/experienceLinkedResources.json +343 -20
  118. data/schemas/experienceVersion.json +64 -0
  119. data/schemas/experienceVersionPatch.json +64 -0
  120. data/schemas/experienceVersionPost.json +64 -0
  121. data/schemas/experienceVersions.json +64 -0
  122. data/schemas/experienceView.json +1 -2
  123. data/schemas/experienceViewPatch.json +1 -2
  124. data/schemas/experienceViewPost.json +2 -4
  125. data/schemas/experienceViews.json +1 -2
  126. data/schemas/flow.json +114 -6
  127. data/schemas/flowPatch.json +114 -6
  128. data/schemas/flowPost.json +114 -6
  129. data/schemas/flowVersion.json +228 -12
  130. data/schemas/flowVersionPost.json +114 -6
  131. data/schemas/flowVersions.json +228 -12
  132. data/schemas/flows.json +114 -6
  133. data/schemas/flowsImportPost.json +228 -12
  134. data/schemas/flowsImportResult.json +342 -18
  135. data/schemas/githubLogin.json +9 -1
  136. data/schemas/instance.json +1 -4
  137. data/schemas/instanceAuditLog.json +94 -0
  138. data/schemas/instanceAuditLogFilter.json +106 -0
  139. data/schemas/instanceAuditLogs.json +41 -0
  140. data/schemas/instanceCustomNode.json +2 -1
  141. data/schemas/instanceCustomNodePatch.json +2 -7
  142. data/schemas/instanceCustomNodePost.json +2 -7
  143. data/schemas/instanceCustomNodes.json +2 -1
  144. data/schemas/instanceOrgMember.json +4 -1
  145. data/schemas/instances.json +1 -4
  146. data/schemas/integration.json +75 -1
  147. data/schemas/integrationPatch.json +73 -0
  148. data/schemas/integrationPost.json +75 -1
  149. data/schemas/integrations.json +75 -1
  150. data/schemas/mePatch.json +18 -0
  151. data/schemas/resourceJob.json +2 -1
  152. data/schemas/resourceJobExecutionLogs.json +2 -1
  153. data/schemas/resourceJobPost.json +2 -1
  154. data/schemas/resourceJobs.json +2 -1
  155. data/schemas/samlResponse.json +9 -1
  156. data/schemas/userCredentials.json +9 -1
  157. data/schemas/userPost.json +9 -1
  158. data/test/basic_test.rb +6 -6
  159. data/test/test_helper.rb +1 -1
  160. metadata +12 -94
  161. data/lib/losant_rest/application.rb +0 -932
  162. data/lib/losant_rest/application_api_token.rb +0 -176
  163. data/lib/losant_rest/application_api_tokens.rb +0 -136
  164. data/lib/losant_rest/application_certificate.rb +0 -176
  165. data/lib/losant_rest/application_certificate_authorities.rb +0 -138
  166. data/lib/losant_rest/application_certificate_authority.rb +0 -176
  167. data/lib/losant_rest/application_certificates.rb +0 -138
  168. data/lib/losant_rest/application_dashboard.rb +0 -225
  169. data/lib/losant_rest/application_dashboards.rb +0 -138
  170. data/lib/losant_rest/application_key.rb +0 -176
  171. data/lib/losant_rest/application_keys.rb +0 -141
  172. data/lib/losant_rest/application_templates.rb +0 -176
  173. data/lib/losant_rest/applications.rb +0 -142
  174. data/lib/losant_rest/audit_log.rb +0 -81
  175. data/lib/losant_rest/auth.rb +0 -245
  176. data/lib/losant_rest/client.rb +0 -410
  177. data/lib/losant_rest/credential.rb +0 -224
  178. data/lib/losant_rest/credentials.rb +0 -138
  179. data/lib/losant_rest/dashboard.rb +0 -268
  180. data/lib/losant_rest/dashboards.rb +0 -136
  181. data/lib/losant_rest/data.rb +0 -176
  182. data/lib/losant_rest/data_table.rb +0 -274
  183. data/lib/losant_rest/data_table_row.rb +0 -182
  184. data/lib/losant_rest/data_table_rows.rb +0 -343
  185. data/lib/losant_rest/data_tables.rb +0 -138
  186. data/lib/losant_rest/device.rb +0 -749
  187. data/lib/losant_rest/device_recipe.rb +0 -234
  188. data/lib/losant_rest/device_recipes.rb +0 -146
  189. data/lib/losant_rest/devices.rb +0 -707
  190. data/lib/losant_rest/edge_deployment.rb +0 -81
  191. data/lib/losant_rest/edge_deployments.rb +0 -236
  192. data/lib/losant_rest/embedded_deployment.rb +0 -81
  193. data/lib/losant_rest/embedded_deployments.rb +0 -280
  194. data/lib/losant_rest/error.rb +0 -34
  195. data/lib/losant_rest/event.rb +0 -176
  196. data/lib/losant_rest/events.rb +0 -341
  197. data/lib/losant_rest/experience.rb +0 -142
  198. data/lib/losant_rest/experience_domain.rb +0 -176
  199. data/lib/losant_rest/experience_domains.rb +0 -126
  200. data/lib/losant_rest/experience_endpoint.rb +0 -230
  201. data/lib/losant_rest/experience_endpoints.rb +0 -200
  202. data/lib/losant_rest/experience_group.rb +0 -180
  203. data/lib/losant_rest/experience_groups.rb +0 -141
  204. data/lib/losant_rest/experience_slug.rb +0 -176
  205. data/lib/losant_rest/experience_slugs.rb +0 -126
  206. data/lib/losant_rest/experience_user.rb +0 -176
  207. data/lib/losant_rest/experience_users.rb +0 -142
  208. data/lib/losant_rest/experience_version.rb +0 -176
  209. data/lib/losant_rest/experience_versions.rb +0 -138
  210. data/lib/losant_rest/experience_view.rb +0 -228
  211. data/lib/losant_rest/experience_views.rb +0 -142
  212. data/lib/losant_rest/file.rb +0 -226
  213. data/lib/losant_rest/files.rb +0 -144
  214. data/lib/losant_rest/flow.rb +0 -580
  215. data/lib/losant_rest/flow_version.rb +0 -352
  216. data/lib/losant_rest/flow_versions.rb +0 -201
  217. data/lib/losant_rest/flows.rb +0 -310
  218. data/lib/losant_rest/instance.rb +0 -377
  219. data/lib/losant_rest/instance_api_token.rb +0 -176
  220. data/lib/losant_rest/instance_api_tokens.rb +0 -136
  221. data/lib/losant_rest/instance_custom_node.rb +0 -282
  222. data/lib/losant_rest/instance_custom_nodes.rb +0 -136
  223. data/lib/losant_rest/instance_member.rb +0 -176
  224. data/lib/losant_rest/instance_members.rb +0 -134
  225. data/lib/losant_rest/instance_org.rb +0 -336
  226. data/lib/losant_rest/instance_org_invite.rb +0 -182
  227. data/lib/losant_rest/instance_org_invites.rb +0 -138
  228. data/lib/losant_rest/instance_org_member.rb +0 -182
  229. data/lib/losant_rest/instance_org_members.rb +0 -138
  230. data/lib/losant_rest/instance_orgs.rb +0 -139
  231. data/lib/losant_rest/instance_sandbox.rb +0 -181
  232. data/lib/losant_rest/instance_sandboxes.rb +0 -98
  233. data/lib/losant_rest/instances.rb +0 -88
  234. data/lib/losant_rest/integration.rb +0 -178
  235. data/lib/losant_rest/integrations.rb +0 -138
  236. data/lib/losant_rest/me.rb +0 -790
  237. data/lib/losant_rest/notebook.rb +0 -423
  238. data/lib/losant_rest/notebooks.rb +0 -138
  239. data/lib/losant_rest/org.rb +0 -663
  240. data/lib/losant_rest/org_invites.rb +0 -124
  241. data/lib/losant_rest/orgs.rb +0 -140
  242. data/lib/losant_rest/resource_job.rb +0 -326
  243. data/lib/losant_rest/resource_jobs.rb +0 -138
  244. data/lib/losant_rest/user_api_token.rb +0 -170
  245. data/lib/losant_rest/user_api_tokens.rb +0 -132
  246. data/lib/losant_rest/utils.rb +0 -44
  247. data/lib/losant_rest/webhook.rb +0 -178
  248. data/lib/losant_rest/webhooks.rb +0 -138
  249. data/lib/losant_rest.rb +0 -129
@@ -127,7 +127,6 @@
127
127
  "deviceTagConnect",
128
128
  "deviceIdDisconnect",
129
129
  "deviceTagDisconnect",
130
- "integration",
131
130
  "notebook",
132
131
  "onBoot",
133
132
  "onConnect",
@@ -161,15 +160,10 @@
161
160
  "deviceIdsTagsDisconnect",
162
161
  "eeaInit",
163
162
  "flowError",
164
- "azureEventHub",
165
- "googlePubSub",
166
- "mqtt",
167
163
  "notebook",
168
164
  "onBoot",
169
165
  "onConnect",
170
166
  "onDisconnect",
171
- "particle",
172
- "sqs",
173
167
  "udp",
174
168
  "webhook",
175
169
  "resourceJobIteration",
@@ -345,6 +339,120 @@
345
339
  ],
346
340
  "additionalProperties": false
347
341
  },
342
+ {
343
+ "type": "object",
344
+ "properties": {
345
+ "key": {
346
+ "type": "string",
347
+ "maxLength": 1024
348
+ },
349
+ "type": {
350
+ "type": "string",
351
+ "enum": [
352
+ "integration"
353
+ ]
354
+ },
355
+ "config": {
356
+ "type": "object",
357
+ "properties": {
358
+ "connect": {
359
+ "type": "boolean"
360
+ },
361
+ "message": {
362
+ "type": "boolean"
363
+ },
364
+ "disconnect": {
365
+ "type": "boolean"
366
+ },
367
+ "failure": {
368
+ "type": "boolean"
369
+ }
370
+ },
371
+ "additionalProperties": false
372
+ },
373
+ "meta": {
374
+ "type": "object",
375
+ "properties": {
376
+ "category": {
377
+ "type": "string",
378
+ "enum": [
379
+ "trigger"
380
+ ]
381
+ },
382
+ "name": {
383
+ "type": "string",
384
+ "enum": [
385
+ "azureEventHub",
386
+ "googlePubSub",
387
+ "mqtt",
388
+ "particle",
389
+ "sqs",
390
+ "websocket"
391
+ ]
392
+ },
393
+ "label": {
394
+ "type": "string",
395
+ "minLength": 1,
396
+ "maxLength": 255
397
+ },
398
+ "x": {
399
+ "type": "number"
400
+ },
401
+ "y": {
402
+ "type": "number"
403
+ },
404
+ "uiId": {
405
+ "type": "string",
406
+ "maxLength": 48
407
+ },
408
+ "description": {
409
+ "type": "string",
410
+ "maxLength": 32767
411
+ },
412
+ "icon": {
413
+ "type": "string",
414
+ "maxLength": 1024
415
+ },
416
+ "color": {
417
+ "type": "string",
418
+ "maxLength": 1024
419
+ },
420
+ "inputCount": {
421
+ "type": "number"
422
+ },
423
+ "outputCount": {
424
+ "type": "number"
425
+ },
426
+ "triggerId": {
427
+ "type": "string",
428
+ "maxLength": 48
429
+ },
430
+ "id": {
431
+ "type": "string",
432
+ "maxLength": 48
433
+ }
434
+ },
435
+ "additionalProperties": false
436
+ },
437
+ "outputIds": {
438
+ "type": "array",
439
+ "items": {
440
+ "type": "array",
441
+ "items": {
442
+ "type": "string",
443
+ "maxLength": 48,
444
+ "minLength": 1
445
+ },
446
+ "maxItems": 100
447
+ },
448
+ "maxItems": 100
449
+ }
450
+ },
451
+ "required": [
452
+ "type"
453
+ ],
454
+ "additionalProperties": false
455
+ },
348
456
  {
349
457
  "type": "object",
350
458
  "properties": {
@@ -2851,7 +2959,6 @@
2851
2959
  "deviceTagConnect",
2852
2960
  "deviceIdDisconnect",
2853
2961
  "deviceTagDisconnect",
2854
- "integration",
2855
2962
  "notebook",
2856
2963
  "onBoot",
2857
2964
  "onConnect",
@@ -2885,15 +2992,10 @@
2885
2992
  "deviceIdsTagsDisconnect",
2886
2993
  "eeaInit",
2887
2994
  "flowError",
2888
- "azureEventHub",
2889
- "googlePubSub",
2890
- "mqtt",
2891
2995
  "notebook",
2892
2996
  "onBoot",
2893
2997
  "onConnect",
2894
2998
  "onDisconnect",
2895
- "particle",
2896
- "sqs",
2897
2999
  "udp",
2898
3000
  "webhook",
2899
3001
  "resourceJobIteration",
@@ -3069,6 +3171,120 @@
3069
3171
  ],
3070
3172
  "additionalProperties": false
3071
3173
  },
3174
+ {
3175
+ "type": "object",
3176
+ "properties": {
3177
+ "key": {
3178
+ "type": "string",
3179
+ "maxLength": 1024
3180
+ },
3181
+ "type": {
3182
+ "type": "string",
3183
+ "enum": [
3184
+ "integration"
3185
+ ]
3186
+ },
3187
+ "config": {
3188
+ "type": "object",
3189
+ "properties": {
3190
+ "connect": {
3191
+ "type": "boolean"
3192
+ },
3193
+ "message": {
3194
+ "type": "boolean"
3195
+ },
3196
+ "disconnect": {
3197
+ "type": "boolean"
3198
+ },
3199
+ "failure": {
3200
+ "type": "boolean"
3201
+ }
3202
+ },
3203
+ "additionalProperties": false
3204
+ },
3205
+ "meta": {
3206
+ "type": "object",
3207
+ "properties": {
3208
+ "category": {
3209
+ "type": "string",
3210
+ "enum": [
3211
+ "trigger"
3212
+ ]
3213
+ },
3214
+ "name": {
3215
+ "type": "string",
3216
+ "enum": [
3217
+ "azureEventHub",
3218
+ "googlePubSub",
3219
+ "mqtt",
3220
+ "particle",
3221
+ "sqs",
3222
+ "websocket"
3223
+ ]
3224
+ },
3225
+ "label": {
3226
+ "type": "string",
3227
+ "minLength": 1,
3228
+ "maxLength": 255
3229
+ },
3230
+ "x": {
3231
+ "type": "number"
3232
+ },
3233
+ "y": {
3234
+ "type": "number"
3235
+ },
3236
+ "uiId": {
3237
+ "type": "string",
3238
+ "maxLength": 48
3239
+ },
3240
+ "description": {
3241
+ "type": "string",
3242
+ "maxLength": 32767
3243
+ },
3244
+ "icon": {
3245
+ "type": "string",
3246
+ "maxLength": 1024
3247
+ },
3248
+ "color": {
3249
+ "type": "string",
3250
+ "maxLength": 1024
3251
+ },
3252
+ "inputCount": {
3253
+ "type": "number"
3254
+ },
3255
+ "outputCount": {
3256
+ "type": "number"
3257
+ },
3258
+ "triggerId": {
3259
+ "type": "string",
3260
+ "maxLength": 48
3261
+ },
3262
+ "id": {
3263
+ "type": "string",
3264
+ "maxLength": 48
3265
+ }
3266
+ },
3267
+ "additionalProperties": false
3268
+ },
3269
+ "outputIds": {
3270
+ "type": "array",
3271
+ "items": {
3272
+ "type": "array",
3273
+ "items": {
3274
+ "type": "string",
3275
+ "maxLength": 48,
3276
+ "minLength": 1
3277
+ },
3278
+ "maxItems": 100
3279
+ },
3280
+ "maxItems": 100
3281
+ }
3282
+ },
3283
+ "required": [
3284
+ "type"
3285
+ ],
3286
+ "additionalProperties": false
3287
+ },
3072
3288
  {
3073
3289
  "type": "object",
3074
3290
  "properties": {
@@ -5535,7 +5751,6 @@
5535
5751
  "deviceTagConnect",
5536
5752
  "deviceIdDisconnect",
5537
5753
  "deviceTagDisconnect",
5538
- "integration",
5539
5754
  "notebook",
5540
5755
  "onBoot",
5541
5756
  "onConnect",
@@ -5569,15 +5784,10 @@
5569
5784
  "deviceIdsTagsDisconnect",
5570
5785
  "eeaInit",
5571
5786
  "flowError",
5572
- "azureEventHub",
5573
- "googlePubSub",
5574
- "mqtt",
5575
5787
  "notebook",
5576
5788
  "onBoot",
5577
5789
  "onConnect",
5578
5790
  "onDisconnect",
5579
- "particle",
5580
- "sqs",
5581
5791
  "udp",
5582
5792
  "webhook",
5583
5793
  "resourceJobIteration",
@@ -5753,6 +5963,120 @@
5753
5963
  ],
5754
5964
  "additionalProperties": false
5755
5965
  },
5966
+ {
5967
+ "type": "object",
5968
+ "properties": {
5969
+ "key": {
5970
+ "type": "string",
5971
+ "maxLength": 1024
5972
+ },
5973
+ "type": {
5974
+ "type": "string",
5975
+ "enum": [
5976
+ "integration"
5977
+ ]
5978
+ },
5979
+ "config": {
5980
+ "type": "object",
5981
+ "properties": {
5982
+ "connect": {
5983
+ "type": "boolean"
5984
+ },
5985
+ "message": {
5986
+ "type": "boolean"
5987
+ },
5988
+ "disconnect": {
5989
+ "type": "boolean"
5990
+ },
5991
+ "failure": {
5992
+ "type": "boolean"
5993
+ }
5994
+ },
5995
+ "additionalProperties": false
5996
+ },
5997
+ "meta": {
5998
+ "type": "object",
5999
+ "properties": {
6000
+ "category": {
6001
+ "type": "string",
6002
+ "enum": [
6003
+ "trigger"
6004
+ ]
6005
+ },
6006
+ "name": {
6007
+ "type": "string",
6008
+ "enum": [
6009
+ "azureEventHub",
6010
+ "googlePubSub",
6011
+ "mqtt",
6012
+ "particle",
6013
+ "sqs",
6014
+ "websocket"
6015
+ ]
6016
+ },
6017
+ "label": {
6018
+ "type": "string",
6019
+ "minLength": 1,
6020
+ "maxLength": 255
6021
+ },
6022
+ "x": {
6023
+ "type": "number"
6024
+ },
6025
+ "y": {
6026
+ "type": "number"
6027
+ },
6028
+ "uiId": {
6029
+ "type": "string",
6030
+ "maxLength": 48
6031
+ },
6032
+ "description": {
6033
+ "type": "string",
6034
+ "maxLength": 32767
6035
+ },
6036
+ "icon": {
6037
+ "type": "string",
6038
+ "maxLength": 1024
6039
+ },
6040
+ "color": {
6041
+ "type": "string",
6042
+ "maxLength": 1024
6043
+ },
6044
+ "inputCount": {
6045
+ "type": "number"
6046
+ },
6047
+ "outputCount": {
6048
+ "type": "number"
6049
+ },
6050
+ "triggerId": {
6051
+ "type": "string",
6052
+ "maxLength": 48
6053
+ },
6054
+ "id": {
6055
+ "type": "string",
6056
+ "maxLength": 48
6057
+ }
6058
+ },
6059
+ "additionalProperties": false
6060
+ },
6061
+ "outputIds": {
6062
+ "type": "array",
6063
+ "items": {
6064
+ "type": "array",
6065
+ "items": {
6066
+ "type": "string",
6067
+ "maxLength": 48,
6068
+ "minLength": 1
6069
+ },
6070
+ "maxItems": 100
6071
+ },
6072
+ "maxItems": 100
6073
+ }
6074
+ },
6075
+ "required": [
6076
+ "type"
6077
+ ],
6078
+ "additionalProperties": false
6079
+ },
5756
6080
  {
5757
6081
  "type": "object",
5758
6082
  "properties": {
@@ -150,6 +150,7 @@
150
150
  "dataTableRows.truncate",
151
151
  "dataTables.get",
152
152
  "dataTables.post",
153
+ "device.agentLogs",
153
154
  "device.commandStream",
154
155
  "device.debug",
155
156
  "device.delete",
@@ -182,6 +183,7 @@
182
183
  "devices.export",
183
184
  "devices.get",
184
185
  "devices.getCompositeState",
186
+ "devices.historicalImport",
185
187
  "devices.payloadCounts",
186
188
  "devices.post",
187
189
  "devices.sendCommand",
@@ -202,6 +204,7 @@
202
204
  "event.get",
203
205
  "event.patch",
204
206
  "events.delete",
207
+ "events.detailedSummary",
205
208
  "events.get",
206
209
  "events.mostRecentBySeverity",
207
210
  "events.patch",
@@ -277,6 +280,7 @@
277
280
  "flows.palette",
278
281
  "flows.post",
279
282
  "flowVersion.delete",
283
+ "flowVersion.debug",
280
284
  "flowVersion.errors",
281
285
  "flowVersion.get",
282
286
  "flowVersion.log",
@@ -423,7 +427,11 @@
423
427
  "instanceSandbox.delete",
424
428
  "instanceSandbox.undelete",
425
429
  "instanceSandboxes.*",
426
- "instanceSandboxes.get"
430
+ "instanceSandboxes.get",
431
+ "instanceAuditLog.*",
432
+ "instanceAuditLog.get",
433
+ "instanceAuditLogs.*",
434
+ "instanceAuditLogs.get"
427
435
  ]
428
436
  },
429
437
  {
@@ -347,10 +347,7 @@
347
347
  "type": "string",
348
348
  "enum": [
349
349
  "admin",
350
- "edit",
351
- "collaborate",
352
- "view",
353
- "none"
350
+ "view"
354
351
  ]
355
352
  }
356
353
  }
@@ -0,0 +1,94 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string",
7
+ "pattern": "^[A-Fa-f\\d]{24}$"
8
+ },
9
+ "instanceAuditLogId": {
10
+ "type": "string",
11
+ "pattern": "^[A-Fa-f\\d]{24}$"
12
+ },
13
+ "creationDate": {
14
+ "type": "string",
15
+ "format": "date-time"
16
+ },
17
+ "instanceId": {
18
+ "type": "string",
19
+ "pattern": "^[A-Fa-f\\d]{24}$"
20
+ },
21
+ "primaryTargetId": {
22
+ "type": "string",
23
+ "pattern": "^[A-Fa-f\\d]{24}$"
24
+ },
25
+ "primaryTargetType": {
26
+ "type": "string",
27
+ "enum": [
28
+ "Organization",
29
+ "ApiToken",
30
+ "User",
31
+ "InstanceCustomNode"
32
+ ]
33
+ },
34
+ "primaryTargetName": {
35
+ "type": "string",
36
+ "maxLength": 1024
37
+ },
38
+ "secondaryTargetId": {
39
+ "type": "string",
40
+ "pattern": "^[A-Fa-f\\d]{24}$"
41
+ },
42
+ "secondaryTargetType": {
43
+ "type": "string",
44
+ "enum": [
45
+ "OrgInvite",
46
+ "ApiToken"
47
+ ]
48
+ },
49
+ "secondaryTargetName": {
50
+ "type": "string",
51
+ "maxLength": 1024
52
+ },
53
+ "actorId": {
54
+ "type": "string",
55
+ "pattern": "^[A-Fa-f\\d]{24}$"
56
+ },
57
+ "actorType": {
58
+ "type": "string",
59
+ "enum": [
60
+ "User",
61
+ "ApiToken"
62
+ ]
63
+ },
64
+ "actorName": {
65
+ "type": "string",
66
+ "maxLength": 1024
67
+ },
68
+ "requestResource": {
69
+ "type": "string",
70
+ "maxLength": 1024
71
+ },
72
+ "requestAction": {
73
+ "type": "string",
74
+ "maxLength": 1024
75
+ },
76
+ "requestQueryParams": {
77
+ "type": "object"
78
+ },
79
+ "requestBody": {
80
+ "type": "object"
81
+ },
82
+ "requestPathParams": {
83
+ "type": "object"
84
+ },
85
+ "responseBody": {
86
+ "type": "object"
87
+ },
88
+ "responseStatus": {
89
+ "type": "integer",
90
+ "minimum": 100,
91
+ "maximum": 599
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "primaryTarget": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "id": {
11
+ "type": "string",
12
+ "pattern": "^[A-Fa-f\\d]{24}$"
13
+ },
14
+ "type": {
15
+ "type": "string",
16
+ "enum": [
17
+ "Organization",
18
+ "ApiToken",
19
+ "User",
20
+ "InstanceCustomNode"
21
+ ]
22
+ },
23
+ "name": {
24
+ "type": "string",
25
+ "maxLength": 1024
26
+ }
27
+ },
28
+ "additionalProperties": false
29
+ }
30
+ },
31
+ "secondaryTarget": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "object",
35
+ "properties": {
36
+ "id": {
37
+ "type": "string",
38
+ "pattern": "^[A-Fa-f\\d]{24}$"
39
+ },
40
+ "type": {
41
+ "type": "string",
42
+ "enum": [
43
+ "OrgInvite",
44
+ "ApiToken"
45
+ ]
46
+ },
47
+ "name": {
48
+ "type": "string",
49
+ "maxLength": 1024
50
+ }
51
+ },
52
+ "additionalProperties": false
53
+ }
54
+ },
55
+ "actor": {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "object",
59
+ "properties": {
60
+ "id": {
61
+ "type": "string",
62
+ "pattern": "^[A-Fa-f\\d]{24}$"
63
+ },
64
+ "type": {
65
+ "type": "string",
66
+ "enum": [
67
+ "User",
68
+ "ApiToken"
69
+ ]
70
+ },
71
+ "name": {
72
+ "type": "string",
73
+ "maxLength": 1024
74
+ }
75
+ },
76
+ "additionalProperties": false
77
+ }
78
+ },
79
+ "request": {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "object",
83
+ "properties": {
84
+ "resource": {
85
+ "type": "string",
86
+ "maxLength": 1024
87
+ },
88
+ "action": {
89
+ "type": "string",
90
+ "maxLength": 1024
91
+ }
92
+ },
93
+ "additionalProperties": false
94
+ }
95
+ },
96
+ "responseCode": {
97
+ "type": "array",
98
+ "items": {
99
+ "type": "integer",
100
+ "minimum": 100,
101
+ "maximum": 599
102
+ }
103
+ }
104
+ },
105
+ "additionalProperties": false
106
+ }