losant_rest 1.8.7 → 1.8.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +38618 -21196
  3. data/docs/application.md +76 -0
  4. data/docs/auth.md +0 -36
  5. data/docs/dashboards.md +1 -1
  6. data/docs/dataTableRows.md +2 -2
  7. data/docs/device.md +1 -0
  8. data/docs/events.md +81 -0
  9. data/docs/file.md +43 -0
  10. data/docs/me.md +50 -13
  11. data/lib/losant_rest.rb +0 -4
  12. data/lib/losant_rest/application.rb +90 -0
  13. data/lib/losant_rest/application_api_token.rb +2 -0
  14. data/lib/losant_rest/application_api_tokens.rb +2 -0
  15. data/lib/losant_rest/application_certificate.rb +2 -0
  16. data/lib/losant_rest/application_certificate_authorities.rb +2 -0
  17. data/lib/losant_rest/application_certificate_authority.rb +2 -0
  18. data/lib/losant_rest/application_certificates.rb +2 -0
  19. data/lib/losant_rest/application_key.rb +2 -0
  20. data/lib/losant_rest/application_keys.rb +2 -0
  21. data/lib/losant_rest/applications.rb +2 -0
  22. data/lib/losant_rest/audit_log.rb +2 -0
  23. data/lib/losant_rest/audit_logs.rb +2 -0
  24. data/lib/losant_rest/auth.rb +2 -42
  25. data/lib/losant_rest/client.rb +2 -18
  26. data/lib/losant_rest/dashboard.rb +2 -0
  27. data/lib/losant_rest/dashboards.rb +3 -1
  28. data/lib/losant_rest/data.rb +2 -0
  29. data/lib/losant_rest/data_table.rb +2 -0
  30. data/lib/losant_rest/data_table_row.rb +2 -0
  31. data/lib/losant_rest/data_table_rows.rb +4 -2
  32. data/lib/losant_rest/data_tables.rb +2 -0
  33. data/lib/losant_rest/device.rb +4 -0
  34. data/lib/losant_rest/device_recipe.rb +2 -0
  35. data/lib/losant_rest/device_recipes.rb +2 -0
  36. data/lib/losant_rest/devices.rb +2 -0
  37. data/lib/losant_rest/edge_deployments.rb +2 -0
  38. data/lib/losant_rest/event.rb +2 -0
  39. data/lib/losant_rest/events.rb +103 -0
  40. data/lib/losant_rest/experience.rb +2 -0
  41. data/lib/losant_rest/experience_domain.rb +2 -0
  42. data/lib/losant_rest/experience_domains.rb +2 -0
  43. data/lib/losant_rest/experience_endpoint.rb +2 -0
  44. data/lib/losant_rest/experience_endpoints.rb +2 -0
  45. data/lib/losant_rest/experience_group.rb +2 -0
  46. data/lib/losant_rest/experience_groups.rb +2 -0
  47. data/lib/losant_rest/experience_slug.rb +2 -0
  48. data/lib/losant_rest/experience_slugs.rb +2 -0
  49. data/lib/losant_rest/experience_user.rb +2 -0
  50. data/lib/losant_rest/experience_users.rb +2 -0
  51. data/lib/losant_rest/experience_version.rb +2 -0
  52. data/lib/losant_rest/experience_versions.rb +2 -0
  53. data/lib/losant_rest/experience_view.rb +2 -0
  54. data/lib/losant_rest/experience_views.rb +2 -0
  55. data/lib/losant_rest/file.rb +2 -0
  56. data/lib/losant_rest/files.rb +2 -0
  57. data/lib/losant_rest/flow.rb +2 -0
  58. data/lib/losant_rest/flow_version.rb +2 -0
  59. data/lib/losant_rest/flow_versions.rb +2 -0
  60. data/lib/losant_rest/flows.rb +2 -0
  61. data/lib/losant_rest/integration.rb +2 -0
  62. data/lib/losant_rest/integrations.rb +2 -0
  63. data/lib/losant_rest/me.rb +57 -13
  64. data/lib/losant_rest/notebook.rb +2 -0
  65. data/lib/losant_rest/notebooks.rb +2 -0
  66. data/lib/losant_rest/org.rb +2 -0
  67. data/lib/losant_rest/org_invites.rb +2 -0
  68. data/lib/losant_rest/orgs.rb +2 -0
  69. data/lib/losant_rest/version.rb +1 -1
  70. data/lib/losant_rest/webhook.rb +2 -0
  71. data/lib/losant_rest/webhooks.rb +2 -0
  72. data/schemas/advancedEventQuery.json +817 -0
  73. data/schemas/{dataTableQuery.json → advancedQuery.json} +5 -4
  74. data/schemas/apiTokens.json +4 -1
  75. data/schemas/application.json +30 -1
  76. data/schemas/applicationApiTokenPost.json +5 -0
  77. data/schemas/applicationCertificate.json +29 -1
  78. data/schemas/applicationCertificateAuthorities.json +36 -3
  79. data/schemas/applicationCertificateAuthority.json +32 -2
  80. data/schemas/applicationCertificateAuthorityPatch.json +3 -1
  81. data/schemas/applicationCertificateAuthorityPost.json +3 -1
  82. data/schemas/applicationCertificatePatch.json +3 -1
  83. data/schemas/applicationCertificatePost.json +3 -1
  84. data/schemas/applicationCertificates.json +33 -2
  85. data/schemas/applicationKeys.json +4 -1
  86. data/schemas/applicationPatch.json +28 -0
  87. data/schemas/applicationPost.json +28 -0
  88. data/schemas/applications.json +34 -2
  89. data/schemas/auditLog.json +0 -3
  90. data/schemas/auditLogFilter.json +0 -3
  91. data/schemas/auditLogs.json +4 -4
  92. data/schemas/authedDevice.json +7 -0
  93. data/schemas/dashboard.json +3970 -72
  94. data/schemas/dashboardPatch.json +3969 -72
  95. data/schemas/dashboardPost.json +3969 -72
  96. data/schemas/dashboardSendReport.json +4 -0
  97. data/schemas/dashboardUpdateEvents.json +46 -0
  98. data/schemas/dashboards.json +3974 -73
  99. data/schemas/dataTableRows.json +4 -1
  100. data/schemas/dataTableRowsExport.json +11 -7
  101. data/schemas/dataTables.json +4 -1
  102. data/schemas/deviceRecipes.json +4 -1
  103. data/schemas/devices.json +4 -1
  104. data/schemas/event.json +19 -2
  105. data/schemas/eventPost.json +0 -1
  106. data/schemas/eventTagsSummary.json +28 -0
  107. data/schemas/events.json +841 -3
  108. data/schemas/eventsDeleted.json +9 -0
  109. data/schemas/eventsExport.json +830 -0
  110. data/schemas/experienceDomain.json +6 -2
  111. data/schemas/experienceDomainPatch.json +14 -10
  112. data/schemas/experienceDomainPost.json +8 -4
  113. data/schemas/experienceDomains.json +6 -2
  114. data/schemas/experienceEndpoints.json +4 -1
  115. data/schemas/experienceGroup.json +2 -2
  116. data/schemas/experienceGroupPatch.json +2 -2
  117. data/schemas/experienceGroupPost.json +2 -2
  118. data/schemas/experienceGroups.json +6 -3
  119. data/schemas/experienceSlugPatch.json +2 -2
  120. data/schemas/experienceSlugPost.json +2 -2
  121. data/schemas/experienceUsers.json +4 -1
  122. data/schemas/experienceViews.json +4 -1
  123. data/schemas/files.json +4 -1
  124. data/schemas/flow.json +4 -0
  125. data/schemas/flowPatch.json +6 -2
  126. data/schemas/flowPost.json +4 -0
  127. data/schemas/flowVersion.json +8 -0
  128. data/schemas/flowVersionPost.json +4 -0
  129. data/schemas/flowVersions.json +12 -1
  130. data/schemas/flows.json +8 -1
  131. data/schemas/flowsImportPost.json +10 -2
  132. data/schemas/flowsImportResult.json +12 -0
  133. data/schemas/githubLogin.json +6 -15
  134. data/schemas/integrations.json +4 -1
  135. data/schemas/notebooks.json +4 -1
  136. data/schemas/org.json +2 -4
  137. data/schemas/orgPatch.json +2 -1
  138. data/schemas/orgPost.json +2 -1
  139. data/schemas/orgs.json +6 -5
  140. data/schemas/passwordResetFinish.json +0 -4
  141. data/schemas/passwordResetInput.json +0 -4
  142. data/schemas/resourceTransfer.json +0 -8
  143. data/schemas/userCredentials.json +6 -15
  144. data/schemas/userPost.json +6 -15
  145. data/schemas/webhooks.json +4 -1
  146. data/test/basic_test.rb +15 -0
  147. metadata +8 -23
  148. data/docs/solution.md +0 -133
  149. data/docs/solutionUser.md +0 -139
  150. data/docs/solutionUsers.md +0 -96
  151. data/docs/solutions.md +0 -91
  152. data/lib/losant_rest/solution.rb +0 -174
  153. data/lib/losant_rest/solution_user.rb +0 -180
  154. data/lib/losant_rest/solution_users.rb +0 -138
  155. data/lib/losant_rest/solutions.rb +0 -134
  156. data/schemas/authedSolutionUser.json +0 -18
  157. data/schemas/fileUploadPostResp.json +0 -109
  158. data/schemas/solution.json +0 -76
  159. data/schemas/solutionMe.json +0 -150
  160. data/schemas/solutionPatch.json +0 -48
  161. data/schemas/solutionPost.json +0 -52
  162. data/schemas/solutionUser.json +0 -103
  163. data/schemas/solutionUserCredentials.json +0 -34
  164. data/schemas/solutionUserPatch.json +0 -74
  165. data/schemas/solutionUserPost.json +0 -80
  166. data/schemas/solutionUsers.json +0 -149
  167. data/schemas/solutions.json +0 -118
@@ -23,10 +23,14 @@
23
23
  "format": "date-time"
24
24
  },
25
25
  "sslCert": {
26
- "$ref": "#/definitions/common/certificateString"
26
+ "type": "string",
27
+ "maxLength": 32767,
28
+ "minLength": 50
27
29
  },
28
30
  "sslBundle": {
29
- "$ref": "#/definitions/common/certificateString"
31
+ "type": "string",
32
+ "maxLength": 32767,
33
+ "minLength": 50
30
34
  },
31
35
  "domainName": {
32
36
  "type": "string",
@@ -3,46 +3,50 @@
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "sslKey": {
6
- "$oneOf": [
6
+ "oneOf": [
7
7
  {
8
8
  "type": "string",
9
9
  "maxLength": 32767,
10
10
  "minLength": 50
11
11
  },
12
12
  {
13
- "type": null
13
+ "type": "null"
14
14
  }
15
15
  ]
16
16
  },
17
17
  "sslCert": {
18
- "$oneOf": [
18
+ "oneOf": [
19
19
  {
20
- "$ref": "#/definitions/common/certificateString"
20
+ "type": "string",
21
+ "maxLength": 32767,
22
+ "minLength": 50
21
23
  },
22
24
  {
23
- "type": null
25
+ "type": "null"
24
26
  }
25
27
  ]
26
28
  },
27
29
  "sslBundle": {
28
- "$oneOf": [
30
+ "oneOf": [
29
31
  {
30
- "$ref": "#/definitions/common/certificateString"
32
+ "type": "string",
33
+ "maxLength": 32767,
34
+ "minLength": 50
31
35
  },
32
36
  {
33
- "type": null
37
+ "type": "null"
34
38
  }
35
39
  ]
36
40
  },
37
41
  "version": {
38
- "$oneOf": [
42
+ "oneOf": [
39
43
  {
40
44
  "type": "string",
41
45
  "minLength": 1,
42
46
  "maxLength": 255
43
47
  },
44
48
  {
45
- "type": null
49
+ "type": "null"
46
50
  }
47
51
  ]
48
52
  },
@@ -8,10 +8,14 @@
8
8
  "minLength": 50
9
9
  },
10
10
  "sslCert": {
11
- "$ref": "#/definitions/common/certificateString"
11
+ "type": "string",
12
+ "maxLength": 32767,
13
+ "minLength": 50
12
14
  },
13
15
  "sslBundle": {
14
- "$ref": "#/definitions/common/certificateString"
16
+ "type": "string",
17
+ "maxLength": 32767,
18
+ "minLength": 50
15
19
  },
16
20
  "domainName": {
17
21
  "type": "string",
@@ -19,14 +23,14 @@
19
23
  "minLength": 3
20
24
  },
21
25
  "version": {
22
- "$oneOf": [
26
+ "oneOf": [
23
27
  {
24
28
  "type": "string",
25
29
  "minLength": 1,
26
30
  "maxLength": 255
27
31
  },
28
32
  {
29
- "type": null
33
+ "type": "null"
30
34
  }
31
35
  ]
32
36
  }
@@ -30,10 +30,14 @@
30
30
  "format": "date-time"
31
31
  },
32
32
  "sslCert": {
33
- "$ref": "#/definitions/common/certificateString"
33
+ "type": "string",
34
+ "maxLength": 32767,
35
+ "minLength": 50
34
36
  },
35
37
  "sslBundle": {
36
- "$ref": "#/definitions/common/certificateString"
38
+ "type": "string",
39
+ "maxLength": 32767,
40
+ "minLength": 50
37
41
  },
38
42
  "domainName": {
39
43
  "type": "string",
@@ -200,7 +200,10 @@
200
200
  "type": "string",
201
201
  "enum": [
202
202
  "asc",
203
- "desc"
203
+ "desc",
204
+ "ASC",
205
+ "DESC",
206
+ ""
204
207
  ]
205
208
  },
206
209
  "applicationId": {
@@ -86,13 +86,13 @@
86
86
  "maxItems": 100
87
87
  },
88
88
  "parentId": {
89
- "$oneOf": [
89
+ "oneOf": [
90
90
  {
91
91
  "type": "string",
92
92
  "pattern": "^[A-Fa-f\\d]{24}$"
93
93
  },
94
94
  {
95
- "type": null
95
+ "type": "null"
96
96
  }
97
97
  ]
98
98
  }
@@ -66,13 +66,13 @@
66
66
  "maxItems": 100
67
67
  },
68
68
  "parentId": {
69
- "$oneOf": [
69
+ "oneOf": [
70
70
  {
71
71
  "type": "string",
72
72
  "pattern": "^[A-Fa-f\\d]{24}$"
73
73
  },
74
74
  {
75
- "type": null
75
+ "type": "null"
76
76
  }
77
77
  ]
78
78
  }
@@ -66,13 +66,13 @@
66
66
  "maxItems": 100
67
67
  },
68
68
  "parentId": {
69
- "$oneOf": [
69
+ "oneOf": [
70
70
  {
71
71
  "type": "string",
72
72
  "pattern": "^[A-Fa-f\\d]{24}$"
73
73
  },
74
74
  {
75
- "type": null
75
+ "type": "null"
76
76
  }
77
77
  ]
78
78
  }
@@ -93,13 +93,13 @@
93
93
  "maxItems": 100
94
94
  },
95
95
  "parentId": {
96
- "$oneOf": [
96
+ "oneOf": [
97
97
  {
98
98
  "type": "string",
99
99
  "pattern": "^[A-Fa-f\\d]{24}$"
100
100
  },
101
101
  {
102
- "type": null
102
+ "type": "null"
103
103
  }
104
104
  ]
105
105
  }
@@ -131,7 +131,10 @@
131
131
  "type": "string",
132
132
  "enum": [
133
133
  "asc",
134
- "desc"
134
+ "desc",
135
+ "ASC",
136
+ "DESC",
137
+ ""
135
138
  ]
136
139
  },
137
140
  "applicationId": {
@@ -3,14 +3,14 @@
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "version": {
6
- "$oneOf": [
6
+ "oneOf": [
7
7
  {
8
8
  "type": "string",
9
9
  "minLength": 1,
10
10
  "maxLength": 255
11
11
  },
12
12
  {
13
- "type": null
13
+ "type": "null"
14
14
  }
15
15
  ]
16
16
  },
@@ -3,14 +3,14 @@
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "version": {
6
- "$oneOf": [
6
+ "oneOf": [
7
7
  {
8
8
  "type": "string",
9
9
  "minLength": 1,
10
10
  "maxLength": 255
11
11
  },
12
12
  {
13
- "type": null
13
+ "type": "null"
14
14
  }
15
15
  ]
16
16
  },
@@ -114,7 +114,10 @@
114
114
  "type": "string",
115
115
  "enum": [
116
116
  "asc",
117
- "desc"
117
+ "desc",
118
+ "ASC",
119
+ "DESC",
120
+ ""
118
121
  ]
119
122
  },
120
123
  "applicationId": {
@@ -126,7 +126,10 @@
126
126
  "type": "string",
127
127
  "enum": [
128
128
  "asc",
129
- "desc"
129
+ "desc",
130
+ "ASC",
131
+ "DESC",
132
+ ""
130
133
  ]
131
134
  },
132
135
  "applicationId": {
@@ -120,7 +120,10 @@
120
120
  "type": "string",
121
121
  "enum": [
122
122
  "asc",
123
- "desc"
123
+ "desc",
124
+ "ASC",
125
+ "DESC",
126
+ ""
124
127
  ]
125
128
  }
126
129
  }
@@ -81,10 +81,14 @@
81
81
  "deviceTagInactivity",
82
82
  "endpoint",
83
83
  "event",
84
+ "fileTail",
84
85
  "fileWatch",
85
86
  "integration",
86
87
  "mqttTopic",
87
88
  "notebook",
89
+ "onBoot",
90
+ "onConnect",
91
+ "onDisconnect",
88
92
  "opcua",
89
93
  "redis",
90
94
  "request",
@@ -27,13 +27,13 @@
27
27
  "type": "boolean"
28
28
  },
29
29
  "defaultVersionId": {
30
- "$oneOf": [
30
+ "oneOf": [
31
31
  {
32
32
  "type": "string",
33
33
  "pattern": "^[A-Fa-f\\d]{24}$"
34
34
  },
35
35
  {
36
- "type": null
36
+ "type": "null"
37
37
  }
38
38
  ]
39
39
  },
@@ -62,10 +62,14 @@
62
62
  "deviceTagInactivity",
63
63
  "endpoint",
64
64
  "event",
65
+ "fileTail",
65
66
  "fileWatch",
66
67
  "integration",
67
68
  "mqttTopic",
68
69
  "notebook",
70
+ "onBoot",
71
+ "onConnect",
72
+ "onDisconnect",
69
73
  "opcua",
70
74
  "redis",
71
75
  "request",
@@ -51,10 +51,14 @@
51
51
  "deviceTagInactivity",
52
52
  "endpoint",
53
53
  "event",
54
+ "fileTail",
54
55
  "fileWatch",
55
56
  "integration",
56
57
  "mqttTopic",
57
58
  "notebook",
59
+ "onBoot",
60
+ "onConnect",
61
+ "onDisconnect",
58
62
  "opcua",
59
63
  "redis",
60
64
  "request",
@@ -66,10 +66,14 @@
66
66
  "deviceTagInactivity",
67
67
  "endpoint",
68
68
  "event",
69
+ "fileTail",
69
70
  "fileWatch",
70
71
  "integration",
71
72
  "mqttTopic",
72
73
  "notebook",
74
+ "onBoot",
75
+ "onConnect",
76
+ "onDisconnect",
73
77
  "opcua",
74
78
  "redis",
75
79
  "request",
@@ -598,10 +602,14 @@
598
602
  "deviceTagInactivity",
599
603
  "endpoint",
600
604
  "event",
605
+ "fileTail",
601
606
  "fileWatch",
602
607
  "integration",
603
608
  "mqttTopic",
604
609
  "notebook",
610
+ "onBoot",
611
+ "onConnect",
612
+ "onDisconnect",
605
613
  "opcua",
606
614
  "redis",
607
615
  "request",
@@ -39,10 +39,14 @@
39
39
  "deviceTagInactivity",
40
40
  "endpoint",
41
41
  "event",
42
+ "fileTail",
42
43
  "fileWatch",
43
44
  "integration",
44
45
  "mqttTopic",
45
46
  "notebook",
47
+ "onBoot",
48
+ "onConnect",
49
+ "onDisconnect",
46
50
  "opcua",
47
51
  "redis",
48
52
  "request",
@@ -73,10 +73,14 @@
73
73
  "deviceTagInactivity",
74
74
  "endpoint",
75
75
  "event",
76
+ "fileTail",
76
77
  "fileWatch",
77
78
  "integration",
78
79
  "mqttTopic",
79
80
  "notebook",
81
+ "onBoot",
82
+ "onConnect",
83
+ "onDisconnect",
80
84
  "opcua",
81
85
  "redis",
82
86
  "request",
@@ -605,10 +609,14 @@
605
609
  "deviceTagInactivity",
606
610
  "endpoint",
607
611
  "event",
612
+ "fileTail",
608
613
  "fileWatch",
609
614
  "integration",
610
615
  "mqttTopic",
611
616
  "notebook",
617
+ "onBoot",
618
+ "onConnect",
619
+ "onDisconnect",
612
620
  "opcua",
613
621
  "redis",
614
622
  "request",
@@ -763,7 +771,10 @@
763
771
  "type": "string",
764
772
  "enum": [
765
773
  "asc",
766
- "desc"
774
+ "desc",
775
+ "ASC",
776
+ "DESC",
777
+ ""
767
778
  ]
768
779
  },
769
780
  "applicationId": {
@@ -88,10 +88,14 @@
88
88
  "deviceTagInactivity",
89
89
  "endpoint",
90
90
  "event",
91
+ "fileTail",
91
92
  "fileWatch",
92
93
  "integration",
93
94
  "mqttTopic",
94
95
  "notebook",
96
+ "onBoot",
97
+ "onConnect",
98
+ "onDisconnect",
95
99
  "opcua",
96
100
  "redis",
97
101
  "request",
@@ -573,7 +577,10 @@
573
577
  "type": "string",
574
578
  "enum": [
575
579
  "asc",
576
- "desc"
580
+ "desc",
581
+ "ASC",
582
+ "DESC",
583
+ ""
577
584
  ]
578
585
  },
579
586
  "applicationId": {