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
@@ -1,48 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "type": "object",
4
- "properties": {
5
- "name": {
6
- "type": "string",
7
- "minLength": 1,
8
- "maxLength": 255
9
- },
10
- "description": {
11
- "type": "string",
12
- "maxLength": 32767
13
- },
14
- "slug": {
15
- "type": "string",
16
- "pattern": "^[0-9a-z_-]{1,255}$"
17
- },
18
- "allowSelfDeletion": {
19
- "type": "boolean"
20
- },
21
- "allowSelfEmailChange": {
22
- "type": "boolean"
23
- },
24
- "passwordReset": {
25
- "type": "object",
26
- "properties": {
27
- "allowPasswordReset": {
28
- "type": "boolean"
29
- },
30
- "emailSubject": {
31
- "type": "string",
32
- "maxLength": 255
33
- },
34
- "emailBody": {
35
- "type": "string",
36
- "maxLength": 32767
37
- },
38
- "emailFrom": {
39
- "type": "string",
40
- "format": "email",
41
- "maxLength": 1024
42
- }
43
- },
44
- "additionalProperties": false
45
- },
46
- "additionalProperties": false
47
- }
48
- }
@@ -1,52 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "type": "object",
4
- "properties": {
5
- "name": {
6
- "type": "string",
7
- "minLength": 1,
8
- "maxLength": 255
9
- },
10
- "description": {
11
- "type": "string",
12
- "maxLength": 32767
13
- },
14
- "slug": {
15
- "type": "string",
16
- "pattern": "^[0-9a-z_-]{1,255}$"
17
- },
18
- "allowSelfDeletion": {
19
- "type": "boolean"
20
- },
21
- "allowSelfEmailChange": {
22
- "type": "boolean"
23
- },
24
- "passwordReset": {
25
- "type": "object",
26
- "properties": {
27
- "allowPasswordReset": {
28
- "type": "boolean"
29
- },
30
- "emailSubject": {
31
- "type": "string",
32
- "maxLength": 255
33
- },
34
- "emailBody": {
35
- "type": "string",
36
- "maxLength": 32767
37
- },
38
- "emailFrom": {
39
- "type": "string",
40
- "format": "email",
41
- "maxLength": 1024
42
- }
43
- },
44
- "additionalProperties": false
45
- },
46
- "required": [
47
- "name",
48
- "slug"
49
- ],
50
- "additionalProperties": false
51
- }
52
- }
@@ -1,103 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "type": "object",
4
- "properties": {
5
- "id": {
6
- "type": "string",
7
- "pattern": "^[A-Fa-f\\d]{24}$"
8
- },
9
- "solutionUserId": {
10
- "type": "string",
11
- "pattern": "^[A-Fa-f\\d]{24}$"
12
- },
13
- "solutionId": {
14
- "type": "string",
15
- "pattern": "^[A-Fa-f\\d]{24}$"
16
- },
17
- "orgId": {
18
- "type": "string",
19
- "pattern": "^[A-Fa-f\\d]{24}$"
20
- },
21
- "creationDate": {
22
- "type": "string",
23
- "format": "date-time"
24
- },
25
- "lastUpdated": {
26
- "type": "string",
27
- "format": "date-time"
28
- },
29
- "passwordLastUpdated": {
30
- "type": "string",
31
- "format": "date-time"
32
- },
33
- "lastLogin": {
34
- "type": "string",
35
- "format": "date-time"
36
- },
37
- "email": {
38
- "type": "string",
39
- "format": "email",
40
- "maxLength": 1024
41
- },
42
- "firstName": {
43
- "type": "string",
44
- "minLength": 1,
45
- "maxLength": 1024
46
- },
47
- "lastName": {
48
- "type": "string",
49
- "minLength": 1,
50
- "maxLength": 1024
51
- },
52
- "companyName": {
53
- "type": "string",
54
- "maxLength": 1024
55
- },
56
- "title": {
57
- "type": "string",
58
- "maxLength": 1024
59
- },
60
- "phoneNumber": {
61
- "type": "string",
62
- "maxLength": 1024
63
- },
64
- "location": {
65
- "type": "string",
66
- "maxLength": 1024
67
- },
68
- "url": {
69
- "type": "string",
70
- "maxLength": 1024
71
- },
72
- "forcePasswordResetOnNextLogin": {
73
- "type": "boolean"
74
- },
75
- "fullName": {
76
- "type": "string"
77
- },
78
- "twoFactorAuthEnabled": {
79
- "type": "boolean"
80
- },
81
- "avatarUrl": {
82
- "type": "string",
83
- "format": "url"
84
- },
85
- "tokenCutoff": {
86
- "type": "string",
87
- "format": "date-time"
88
- },
89
- "accessRestrictions": {
90
- "type": "object",
91
- "properties": {
92
- "dashboardIds": {
93
- "type": "array",
94
- "items": {
95
- "type": "string",
96
- "pattern": "^[A-Fa-f\\d]{24}$"
97
- },
98
- "maxItems": 1000
99
- }
100
- }
101
- }
102
- }
103
- }
@@ -1,34 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "type": "object",
4
- "properties": {
5
- "solutionId": {
6
- "type": "string",
7
- "pattern": "^[A-Fa-f\\d]{24}$"
8
- },
9
- "email": {
10
- "type": "string",
11
- "format": "email",
12
- "maxLength": 1024
13
- },
14
- "password": {
15
- "type": "string",
16
- "minLength": 8,
17
- "maxLength": 2048
18
- },
19
- "twoFactorCode": {
20
- "type": "string",
21
- "maxLength": 2048
22
- },
23
- "tokenTTL": {
24
- "type": "integer",
25
- "minimum": 0
26
- }
27
- },
28
- "required": [
29
- "solutionId",
30
- "email",
31
- "password"
32
- ],
33
- "additionalProperties": false
34
- }
@@ -1,74 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "type": "object",
4
- "properties": {
5
- "email": {
6
- "type": "string",
7
- "format": "email",
8
- "maxLength": 1024
9
- },
10
- "firstName": {
11
- "type": "string",
12
- "minLength": 1,
13
- "maxLength": 1024
14
- },
15
- "lastName": {
16
- "type": "string",
17
- "minLength": 1,
18
- "maxLength": 1024
19
- },
20
- "companyName": {
21
- "type": "string",
22
- "maxLength": 1024
23
- },
24
- "title": {
25
- "type": "string",
26
- "maxLength": 1024
27
- },
28
- "phoneNumber": {
29
- "type": "string",
30
- "maxLength": 1024
31
- },
32
- "location": {
33
- "type": "string",
34
- "maxLength": 1024
35
- },
36
- "url": {
37
- "type": "string",
38
- "maxLength": 1024
39
- },
40
- "forcePasswordResetOnNextLogin": {
41
- "type": "boolean"
42
- },
43
- "password": {
44
- "type": "string",
45
- "minLength": 8,
46
- "maxLength": 2048,
47
- "pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{8,}$"
48
- },
49
- "twoFactorAuthKey": {
50
- "type": "string",
51
- "minLength": 52,
52
- "maxLength": 52
53
- },
54
- "tokenCutoff": {
55
- "type": "string",
56
- "format": "date-time"
57
- },
58
- "accessRestrictions": {
59
- "type": "object",
60
- "properties": {
61
- "dashboardIds": {
62
- "type": "array",
63
- "items": {
64
- "type": "string",
65
- "pattern": "^[A-Fa-f\\d]{24}$"
66
- },
67
- "maxItems": 1000
68
- },
69
- "additionalProperties": false
70
- }
71
- }
72
- },
73
- "additionalProperties": false
74
- }
@@ -1,80 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "type": "object",
4
- "properties": {
5
- "email": {
6
- "type": "string",
7
- "format": "email",
8
- "maxLength": 1024
9
- },
10
- "firstName": {
11
- "type": "string",
12
- "minLength": 1,
13
- "maxLength": 1024
14
- },
15
- "lastName": {
16
- "type": "string",
17
- "minLength": 1,
18
- "maxLength": 1024
19
- },
20
- "companyName": {
21
- "type": "string",
22
- "maxLength": 1024
23
- },
24
- "title": {
25
- "type": "string",
26
- "maxLength": 1024
27
- },
28
- "phoneNumber": {
29
- "type": "string",
30
- "maxLength": 1024
31
- },
32
- "location": {
33
- "type": "string",
34
- "maxLength": 1024
35
- },
36
- "url": {
37
- "type": "string",
38
- "maxLength": 1024
39
- },
40
- "forcePasswordResetOnNextLogin": {
41
- "type": "boolean"
42
- },
43
- "password": {
44
- "type": "string",
45
- "minLength": 8,
46
- "maxLength": 2048,
47
- "pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{8,}$"
48
- },
49
- "twoFactorAuthKey": {
50
- "type": "string",
51
- "minLength": 52,
52
- "maxLength": 52
53
- },
54
- "tokenCutoff": {
55
- "type": "string",
56
- "format": "date-time"
57
- },
58
- "accessRestrictions": {
59
- "type": "object",
60
- "properties": {
61
- "dashboardIds": {
62
- "type": "array",
63
- "items": {
64
- "type": "string",
65
- "pattern": "^[A-Fa-f\\d]{24}$"
66
- },
67
- "maxItems": 1000
68
- },
69
- "additionalProperties": false
70
- }
71
- }
72
- },
73
- "required": [
74
- "email",
75
- "firstName",
76
- "lastName",
77
- "password"
78
- ],
79
- "additionalProperties": false
80
- }
@@ -1,149 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "type": "object",
4
- "properties": {
5
- "items": {
6
- "type": "array",
7
- "items": {
8
- "title": "Solution User",
9
- "description": "Schema for a single Solution User",
10
- "type": "object",
11
- "properties": {
12
- "id": {
13
- "type": "string",
14
- "pattern": "^[A-Fa-f\\d]{24}$"
15
- },
16
- "solutionUserId": {
17
- "type": "string",
18
- "pattern": "^[A-Fa-f\\d]{24}$"
19
- },
20
- "solutionId": {
21
- "type": "string",
22
- "pattern": "^[A-Fa-f\\d]{24}$"
23
- },
24
- "orgId": {
25
- "type": "string",
26
- "pattern": "^[A-Fa-f\\d]{24}$"
27
- },
28
- "creationDate": {
29
- "type": "string",
30
- "format": "date-time"
31
- },
32
- "lastUpdated": {
33
- "type": "string",
34
- "format": "date-time"
35
- },
36
- "passwordLastUpdated": {
37
- "type": "string",
38
- "format": "date-time"
39
- },
40
- "lastLogin": {
41
- "type": "string",
42
- "format": "date-time"
43
- },
44
- "email": {
45
- "type": "string",
46
- "format": "email",
47
- "maxLength": 1024
48
- },
49
- "firstName": {
50
- "type": "string",
51
- "minLength": 1,
52
- "maxLength": 1024
53
- },
54
- "lastName": {
55
- "type": "string",
56
- "minLength": 1,
57
- "maxLength": 1024
58
- },
59
- "companyName": {
60
- "type": "string",
61
- "maxLength": 1024
62
- },
63
- "title": {
64
- "type": "string",
65
- "maxLength": 1024
66
- },
67
- "phoneNumber": {
68
- "type": "string",
69
- "maxLength": 1024
70
- },
71
- "location": {
72
- "type": "string",
73
- "maxLength": 1024
74
- },
75
- "url": {
76
- "type": "string",
77
- "maxLength": 1024
78
- },
79
- "forcePasswordResetOnNextLogin": {
80
- "type": "boolean"
81
- },
82
- "fullName": {
83
- "type": "string"
84
- },
85
- "twoFactorAuthEnabled": {
86
- "type": "boolean"
87
- },
88
- "avatarUrl": {
89
- "type": "string",
90
- "format": "url"
91
- },
92
- "tokenCutoff": {
93
- "type": "string",
94
- "format": "date-time"
95
- },
96
- "accessRestrictions": {
97
- "type": "object",
98
- "properties": {
99
- "dashboardIds": {
100
- "type": "array",
101
- "items": {
102
- "type": "string",
103
- "pattern": "^[A-Fa-f\\d]{24}$"
104
- },
105
- "maxItems": 1000
106
- }
107
- }
108
- }
109
- }
110
- }
111
- },
112
- "count": {
113
- "type": "integer"
114
- },
115
- "totalCount": {
116
- "type": "integer"
117
- },
118
- "perPage": {
119
- "type": "integer"
120
- },
121
- "page": {
122
- "type": "integer"
123
- },
124
- "filter": {
125
- "type": "string"
126
- },
127
- "filterField": {
128
- "type": "string"
129
- },
130
- "sortField": {
131
- "type": "string"
132
- },
133
- "sortDirection": {
134
- "type": "string",
135
- "enum": [
136
- "asc",
137
- "desc"
138
- ]
139
- },
140
- "orgId": {
141
- "type": "string",
142
- "pattern": "^[A-Fa-f\\d]{24}$"
143
- },
144
- "solutionId": {
145
- "type": "string",
146
- "pattern": "^[A-Fa-f\\d]{24}$"
147
- }
148
- }
149
- }