losant_rest 2.0.0 → 2.1.1

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 (350) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +140925 -67028
  3. data/docs/application.md +27 -27
  4. data/docs/applicationApiToken.md +1 -1
  5. data/docs/applicationApiTokens.md +1 -1
  6. data/docs/applicationCertificate.md +3 -3
  7. data/docs/applicationCertificateAuthorities.md +2 -2
  8. data/docs/applicationCertificateAuthority.md +3 -3
  9. data/docs/applicationCertificates.md +5 -4
  10. data/docs/applicationDashboard.md +5 -5
  11. data/docs/applicationDashboards.md +2 -2
  12. data/docs/applicationJobLog.md +1 -1
  13. data/docs/applicationJobLogs.md +1 -1
  14. data/docs/applicationKey.md +3 -3
  15. data/docs/applicationKeys.md +2 -2
  16. data/docs/applicationTemplate.md +1 -1
  17. data/docs/applicationTemplates.md +3 -3
  18. data/docs/applications.md +5 -5
  19. data/docs/auditLog.md +1 -1
  20. data/docs/auditLogs.md +1 -1
  21. data/docs/auth.md +1 -1
  22. data/docs/credential.md +4 -4
  23. data/docs/credentials.md +2 -2
  24. data/docs/dashboard.md +4 -4
  25. data/docs/dashboards.md +3 -2
  26. data/docs/data.md +3 -3
  27. data/docs/dataTable.md +5 -5
  28. data/docs/dataTableRow.md +4 -4
  29. data/docs/dataTableRows.md +9 -9
  30. data/docs/dataTables.md +2 -2
  31. data/docs/device.md +15 -15
  32. data/docs/deviceAttribute.md +3 -3
  33. data/docs/deviceAttributes.md +2 -2
  34. data/docs/deviceRecipe.md +4 -4
  35. data/docs/deviceRecipes.md +2 -2
  36. data/docs/devices.md +14 -14
  37. data/docs/edgeDeployment.md +1 -1
  38. data/docs/edgeDeployments.md +7 -7
  39. data/docs/embeddedDeployment.md +1 -1
  40. data/docs/embeddedDeployments.md +8 -8
  41. data/docs/event.md +3 -3
  42. data/docs/events.md +6 -6
  43. data/docs/experience.md +3 -3
  44. data/docs/experienceDomain.md +3 -3
  45. data/docs/experienceDomains.md +2 -2
  46. data/docs/experienceEndpoint.md +4 -4
  47. data/docs/experienceEndpoints.md +3 -3
  48. data/docs/experienceGroup.md +3 -3
  49. data/docs/experienceGroups.md +2 -2
  50. data/docs/experienceSlug.md +3 -3
  51. data/docs/experienceSlugs.md +2 -2
  52. data/docs/experienceUser.md +3 -3
  53. data/docs/experienceUsers.md +2 -2
  54. data/docs/experienceVersion.md +3 -3
  55. data/docs/experienceVersions.md +2 -2
  56. data/docs/experienceView.md +4 -4
  57. data/docs/experienceViews.md +2 -2
  58. data/docs/file.md +9 -9
  59. data/docs/files.md +3 -3
  60. data/docs/flow.md +11 -11
  61. data/docs/flowVersion.md +6 -6
  62. data/docs/flowVersions.md +4 -4
  63. data/docs/flows.md +5 -5
  64. data/docs/instance.md +8 -8
  65. data/docs/instanceApiToken.md +1 -1
  66. data/docs/instanceApiTokens.md +2 -2
  67. data/docs/instanceAuditLog.md +1 -1
  68. data/docs/instanceAuditLogs.md +1 -1
  69. data/docs/instanceCustomNode.md +5 -5
  70. data/docs/instanceCustomNodes.md +2 -2
  71. data/docs/instanceMember.md +2 -2
  72. data/docs/instanceMembers.md +1 -1
  73. data/docs/instanceNotificationRule.md +5 -5
  74. data/docs/instanceNotificationRules.md +2 -2
  75. data/docs/instanceOrg.md +8 -8
  76. data/docs/instanceOrgInvite.md +3 -3
  77. data/docs/instanceOrgInvites.md +2 -2
  78. data/docs/instanceOrgMember.md +1 -1
  79. data/docs/instanceOrgMembers.md +3 -2
  80. data/docs/instanceOrgs.md +3 -3
  81. data/docs/instanceSandbox.md +7 -7
  82. data/docs/instanceSandboxes.md +1 -1
  83. data/docs/instances.md +1 -1
  84. data/docs/integration.md +3 -3
  85. data/docs/integrations.md +2 -2
  86. data/docs/me.md +21 -21
  87. data/docs/notebook.md +10 -10
  88. data/docs/notebooks.md +2 -2
  89. data/docs/org.md +14 -14
  90. data/docs/orgs.md +2 -2
  91. data/docs/privateFile.md +9 -9
  92. data/docs/privateFiles.md +3 -3
  93. data/docs/resourceJob.md +8 -8
  94. data/docs/resourceJobs.md +2 -2
  95. data/docs/userApiToken.md +3 -3
  96. data/docs/userApiTokens.md +4 -4
  97. data/docs/userOauthToken.md +125 -0
  98. data/docs/userOauthTokens.md +87 -0
  99. data/docs/webhook.md +3 -3
  100. data/docs/webhooks.md +2 -2
  101. data/lib/platform_rest/application.rb +21 -21
  102. data/lib/platform_rest/application_api_token.rb +1 -1
  103. data/lib/platform_rest/application_api_tokens.rb +1 -1
  104. data/lib/platform_rest/application_certificate.rb +3 -3
  105. data/lib/platform_rest/application_certificate_authorities.rb +2 -2
  106. data/lib/platform_rest/application_certificate_authority.rb +3 -3
  107. data/lib/platform_rest/application_certificates.rb +7 -4
  108. data/lib/platform_rest/application_dashboard.rb +5 -5
  109. data/lib/platform_rest/application_dashboards.rb +2 -2
  110. data/lib/platform_rest/application_job_log.rb +1 -1
  111. data/lib/platform_rest/application_job_logs.rb +1 -1
  112. data/lib/platform_rest/application_key.rb +3 -3
  113. data/lib/platform_rest/application_keys.rb +2 -2
  114. data/lib/platform_rest/application_template.rb +1 -1
  115. data/lib/platform_rest/application_templates.rb +3 -3
  116. data/lib/platform_rest/applications.rb +3 -3
  117. data/lib/platform_rest/audit_log.rb +1 -1
  118. data/lib/platform_rest/audit_logs.rb +1 -1
  119. data/lib/platform_rest/client.rb +10 -2
  120. data/lib/platform_rest/credential.rb +4 -4
  121. data/lib/platform_rest/credentials.rb +2 -2
  122. data/lib/platform_rest/dashboard.rb +4 -4
  123. data/lib/platform_rest/dashboards.rb +3 -2
  124. data/lib/platform_rest/data.rb +3 -3
  125. data/lib/platform_rest/data_table.rb +5 -5
  126. data/lib/platform_rest/data_table_row.rb +4 -4
  127. data/lib/platform_rest/data_table_rows.rb +9 -9
  128. data/lib/platform_rest/data_tables.rb +2 -2
  129. data/lib/platform_rest/device.rb +15 -15
  130. data/lib/platform_rest/device_attribute.rb +3 -3
  131. data/lib/platform_rest/device_attributes.rb +2 -2
  132. data/lib/platform_rest/device_recipe.rb +4 -4
  133. data/lib/platform_rest/device_recipes.rb +2 -2
  134. data/lib/platform_rest/devices.rb +14 -14
  135. data/lib/platform_rest/edge_deployment.rb +1 -1
  136. data/lib/platform_rest/edge_deployments.rb +7 -7
  137. data/lib/platform_rest/embedded_deployment.rb +1 -1
  138. data/lib/platform_rest/embedded_deployments.rb +8 -8
  139. data/lib/platform_rest/event.rb +3 -3
  140. data/lib/platform_rest/events.rb +6 -6
  141. data/lib/platform_rest/experience.rb +3 -3
  142. data/lib/platform_rest/experience_domain.rb +3 -3
  143. data/lib/platform_rest/experience_domains.rb +2 -2
  144. data/lib/platform_rest/experience_endpoint.rb +4 -4
  145. data/lib/platform_rest/experience_endpoints.rb +3 -3
  146. data/lib/platform_rest/experience_group.rb +3 -3
  147. data/lib/platform_rest/experience_groups.rb +2 -2
  148. data/lib/platform_rest/experience_slug.rb +3 -3
  149. data/lib/platform_rest/experience_slugs.rb +2 -2
  150. data/lib/platform_rest/experience_user.rb +3 -3
  151. data/lib/platform_rest/experience_users.rb +2 -2
  152. data/lib/platform_rest/experience_version.rb +3 -3
  153. data/lib/platform_rest/experience_versions.rb +2 -2
  154. data/lib/platform_rest/experience_view.rb +4 -4
  155. data/lib/platform_rest/experience_views.rb +2 -2
  156. data/lib/platform_rest/file.rb +6 -6
  157. data/lib/platform_rest/files.rb +2 -2
  158. data/lib/platform_rest/flow.rb +11 -11
  159. data/lib/platform_rest/flow_version.rb +6 -6
  160. data/lib/platform_rest/flow_versions.rb +3 -3
  161. data/lib/platform_rest/flows.rb +5 -5
  162. data/lib/platform_rest/instance.rb +8 -8
  163. data/lib/platform_rest/instance_api_token.rb +1 -1
  164. data/lib/platform_rest/instance_api_tokens.rb +2 -2
  165. data/lib/platform_rest/instance_audit_log.rb +1 -1
  166. data/lib/platform_rest/instance_audit_logs.rb +1 -1
  167. data/lib/platform_rest/instance_custom_node.rb +5 -5
  168. data/lib/platform_rest/instance_custom_nodes.rb +2 -2
  169. data/lib/platform_rest/instance_member.rb +2 -2
  170. data/lib/platform_rest/instance_members.rb +1 -1
  171. data/lib/platform_rest/instance_notification_rule.rb +5 -5
  172. data/lib/platform_rest/instance_notification_rules.rb +2 -2
  173. data/lib/platform_rest/instance_org.rb +8 -8
  174. data/lib/platform_rest/instance_org_invite.rb +3 -3
  175. data/lib/platform_rest/instance_org_invites.rb +3 -3
  176. data/lib/platform_rest/instance_org_member.rb +1 -1
  177. data/lib/platform_rest/instance_org_members.rb +3 -2
  178. data/lib/platform_rest/instance_orgs.rb +3 -3
  179. data/lib/platform_rest/instance_sandbox.rb +7 -7
  180. data/lib/platform_rest/instance_sandboxes.rb +1 -1
  181. data/lib/platform_rest/instances.rb +1 -1
  182. data/lib/platform_rest/integration.rb +3 -3
  183. data/lib/platform_rest/integrations.rb +2 -2
  184. data/lib/platform_rest/me.rb +21 -21
  185. data/lib/platform_rest/notebook.rb +9 -9
  186. data/lib/platform_rest/notebooks.rb +2 -2
  187. data/lib/platform_rest/org.rb +14 -14
  188. data/lib/platform_rest/orgs.rb +2 -2
  189. data/lib/platform_rest/private_file.rb +6 -6
  190. data/lib/platform_rest/private_files.rb +2 -2
  191. data/lib/platform_rest/resource_job.rb +8 -8
  192. data/lib/platform_rest/resource_jobs.rb +2 -2
  193. data/lib/platform_rest/user_api_token.rb +3 -3
  194. data/lib/platform_rest/user_api_tokens.rb +4 -4
  195. data/lib/platform_rest/user_oauth_token.rb +170 -0
  196. data/lib/platform_rest/user_oauth_tokens.rb +132 -0
  197. data/lib/platform_rest/version.rb +1 -1
  198. data/lib/platform_rest/webhook.rb +3 -3
  199. data/lib/platform_rest/webhooks.rb +2 -2
  200. data/lib/platform_rest.rb +2 -0
  201. data/schemas/advancedApplicationCertQuery.json +1885 -0
  202. data/schemas/advancedApplicationKeyQuery.json +763 -763
  203. data/schemas/apiToken.json +110 -1
  204. data/schemas/apiTokenPatch.json +100 -0
  205. data/schemas/apiTokenPost.json +118 -0
  206. data/schemas/apiTokens.json +120 -2
  207. data/schemas/application.json +15 -2
  208. data/schemas/applicationCertificate.json +90 -58
  209. data/schemas/applicationCertificateAuthorities.json +24 -0
  210. data/schemas/applicationCertificateAuthority.json +24 -0
  211. data/schemas/applicationCertificatePatch.json +32 -4
  212. data/schemas/applicationCertificatePost.json +28 -30
  213. data/schemas/applicationCertificates.json +90 -58
  214. data/schemas/applicationCreationByTemplateResult.json +15 -2
  215. data/schemas/applicationDashboardPost.json +183 -128
  216. data/schemas/applicationImportExecutions.json +3 -5
  217. data/schemas/applicationImportResult.json +674 -0
  218. data/schemas/applicationJobLog.json +129 -123
  219. data/schemas/applicationJobLogs.json +129 -123
  220. data/schemas/applicationKey.json +41 -41
  221. data/schemas/applicationKeyPatch.json +4 -4
  222. data/schemas/applicationKeyPost.json +36 -29
  223. data/schemas/applicationKeys.json +41 -41
  224. data/schemas/applicationSearchResult.json +10 -10
  225. data/schemas/applicationTemplates.json +9 -2
  226. data/schemas/applications.json +15 -2
  227. data/schemas/auditLog.json +2 -6
  228. data/schemas/auditLogs.json +2 -6
  229. data/schemas/authedDevice.json +3 -0
  230. data/schemas/credential.json +7 -0
  231. data/schemas/credentialLinkedResources.json +19724 -344
  232. data/schemas/credentialPatch.json +3 -0
  233. data/schemas/credentialPost.json +3 -0
  234. data/schemas/credentials.json +7 -0
  235. data/schemas/dashboard.json +203 -128
  236. data/schemas/dashboardBlockSuggestCodePost.json +19 -0
  237. data/schemas/dashboardPatch.json +183 -128
  238. data/schemas/dashboardPost.json +183 -128
  239. data/schemas/dashboardUpdateEventsResult.json +266 -0
  240. data/schemas/dashboards.json +203 -128
  241. data/schemas/dataTable.json +11 -0
  242. data/schemas/dataTableRowPatch.json +16 -0
  243. data/schemas/dataTableRowPost.json +39 -0
  244. data/schemas/dataTableRowPostResult.json +54 -0
  245. data/schemas/dataTables.json +11 -0
  246. data/schemas/device.json +259 -107
  247. data/schemas/deviceConnectionStatus.json +4 -0
  248. data/schemas/deviceLog.json +3 -0
  249. data/schemas/deviceRecipe.json +259 -108
  250. data/schemas/deviceRecipes.json +259 -108
  251. data/schemas/devices.json +287 -116
  252. data/schemas/edgeDeploymentRelease.json +4252 -39
  253. data/schemas/edgeDeployments.json +28 -0
  254. data/schemas/embeddedDeploymentRelease.json +2073 -0
  255. data/schemas/embeddedDeployments.json +25 -0
  256. data/schemas/error.json +14 -0
  257. data/schemas/event.json +4 -1
  258. data/schemas/eventPlusNewCount.json +4 -1
  259. data/schemas/events.json +4 -1
  260. data/schemas/experienceDomains.json +19 -0
  261. data/schemas/experienceEndpoint.json +19 -0
  262. data/schemas/experienceEndpoints.json +24 -0
  263. data/schemas/experienceLinkedResources.json +19728 -313
  264. data/schemas/experienceSlugs.json +19 -0
  265. data/schemas/experienceUsers.json +16 -2
  266. data/schemas/experienceVersions.json +25 -0
  267. data/schemas/experienceView.json +5 -0
  268. data/schemas/experienceViews.json +10 -0
  269. data/schemas/fileUploadPostResponse.json +92 -103
  270. data/schemas/files.json +5 -1
  271. data/schemas/flow.json +211 -46
  272. data/schemas/flowPatch.json +199 -46
  273. data/schemas/flowPost.json +199 -46
  274. data/schemas/flowStorageMetadata.json +2 -2
  275. data/schemas/flowVersion.json +450 -101
  276. data/schemas/flowVersionPost.json +199 -46
  277. data/schemas/flowVersions.json +9903 -113
  278. data/schemas/flows.json +9637 -46
  279. data/schemas/flowsImportPost.json +398 -92
  280. data/schemas/flowsImportResult.json +661 -147
  281. data/schemas/githubLogin.json +18 -0
  282. data/schemas/historicalSummaries.json +3 -2
  283. data/schemas/historicalSummary.json +3 -2
  284. data/schemas/instanceAuditLog.json +2 -6
  285. data/schemas/instanceAuditLogs.json +90 -1
  286. data/schemas/instanceCustomNode.json +41 -2
  287. data/schemas/instanceCustomNodePatch.json +59 -6
  288. data/schemas/instanceCustomNodePost.json +59 -6
  289. data/schemas/instanceCustomNodes.json +41 -2
  290. data/schemas/instanceOrg.json +4 -1
  291. data/schemas/instanceOrgInvite.json +102 -0
  292. data/schemas/instanceOrgInviteSent.json +12 -0
  293. data/schemas/instanceOrgInvites.json +145 -0
  294. data/schemas/instanceOrgMember.json +52 -0
  295. data/schemas/instanceOrgMemberPatch.json +2 -2
  296. data/schemas/instanceOrgMemberPost.json +4 -4
  297. data/schemas/instanceOrgMembers.json +105 -1
  298. data/schemas/instanceOrgPost.json +5 -5
  299. data/schemas/instanceOrgs.json +5 -2
  300. data/schemas/instanceSandbox.json +5 -1
  301. data/schemas/instanceSandboxes.json +9 -1
  302. data/schemas/integration.json +38 -39
  303. data/schemas/integrationPatch.json +8 -8
  304. data/schemas/integrationPost.json +8 -8
  305. data/schemas/integrations.json +38 -39
  306. data/schemas/jobEnqueuedResult.json +1 -1
  307. data/schemas/me.json +685 -88
  308. data/schemas/notebook.json +33 -21
  309. data/schemas/notebookExecutionLogs.json +20 -0
  310. data/schemas/notebookMinuteCounts.json +1 -1
  311. data/schemas/notebookPatch.json +29 -21
  312. data/schemas/notebookPost.json +29 -21
  313. data/schemas/notebooks.json +33 -21
  314. data/schemas/notificationRule.json +4 -0
  315. data/schemas/notificationRules.json +8 -0
  316. data/schemas/oauthClient.json +107 -0
  317. data/schemas/oauthClientPost.json +89 -0
  318. data/schemas/oauthDcrError.json +23 -0
  319. data/schemas/oauthError.json +31 -0
  320. data/schemas/org.json +16 -3
  321. data/schemas/orgInvite.json +2 -2
  322. data/schemas/orgInviteCollection.json +2 -2
  323. data/schemas/orgInvitePost.json +2 -2
  324. data/schemas/orgInvites.json +77 -82
  325. data/schemas/orgInvitesUser.json +44 -47
  326. data/schemas/orgMemberPatch.json +2 -2
  327. data/schemas/orgRoleInfo.json +2 -2
  328. data/schemas/orgs.json +16 -3
  329. data/schemas/paletteResponse.json +372 -364
  330. data/schemas/periodSummaries.json +1 -1
  331. data/schemas/recentItemList.json +226 -27
  332. data/schemas/resourceJob.json +33 -9
  333. data/schemas/resourceJobExecutionLogs.json +34 -20
  334. data/schemas/resourceJobExecutionOptions.json +1 -1
  335. data/schemas/resourceJobPatch.json +9 -9
  336. data/schemas/resourceJobPost.json +9 -9
  337. data/schemas/resourceJobs.json +33 -9
  338. data/schemas/samlResponse.json +18 -0
  339. data/schemas/tagValuesResponse.json +1 -2
  340. data/schemas/templateKeywords.json +1 -0
  341. data/schemas/timeSeriesData.json +36 -4
  342. data/schemas/userCredentials.json +18 -0
  343. data/schemas/userOauthToken.json +210 -0
  344. data/schemas/userOauthTokenPatch.json +123 -0
  345. data/schemas/userOauthTokenPost.json +197 -0
  346. data/schemas/userOauthTokens.json +251 -0
  347. data/schemas/userPost.json +18 -0
  348. data/schemas/validateContextError.json +71 -24
  349. data/schemas/validateContextSuccess.json +71 -24
  350. metadata +22 -1
@@ -0,0 +1,251 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "items": {
6
+ "type": "array",
7
+ "items": {
8
+ "title": "User OAuth Token",
9
+ "description": "Schema for a single OAuth Token",
10
+ "type": "object",
11
+ "properties": {
12
+ "id": {
13
+ "type": "string",
14
+ "pattern": "^[A-Fa-f\\d]{24}$"
15
+ },
16
+ "oauthTokenId": {
17
+ "type": "string",
18
+ "pattern": "^[A-Fa-f\\d]{24}$"
19
+ },
20
+ "name": {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "maxLength": 255
24
+ },
25
+ "description": {
26
+ "type": "string",
27
+ "maxLength": 32767
28
+ },
29
+ "creationDate": {
30
+ "type": "string",
31
+ "format": "date-time"
32
+ },
33
+ "lastUpdated": {
34
+ "type": "string",
35
+ "format": "date-time"
36
+ },
37
+ "expirationDate": {
38
+ "type": "string",
39
+ "format": "date-time"
40
+ },
41
+ "defaultRole": {
42
+ "type": "string",
43
+ "enum": [
44
+ "admin",
45
+ "edit",
46
+ "collaborate",
47
+ "view",
48
+ "none"
49
+ ]
50
+ },
51
+ "orgRoles": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "object",
55
+ "properties": {
56
+ "orgId": {
57
+ "oneOf": [
58
+ {
59
+ "type": "string",
60
+ "pattern": "^[A-Fa-f\\d]{24}$"
61
+ },
62
+ {
63
+ "type": "string",
64
+ "enum": [
65
+ "sandbox"
66
+ ]
67
+ }
68
+ ]
69
+ },
70
+ "role": {
71
+ "type": "string",
72
+ "enum": [
73
+ "admin",
74
+ "edit",
75
+ "collaborate",
76
+ "view",
77
+ "none"
78
+ ]
79
+ },
80
+ "applicationRoles": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "object",
84
+ "properties": {
85
+ "resourceId": {
86
+ "type": "string",
87
+ "pattern": "^[A-Fa-f\\d]{24}$"
88
+ },
89
+ "role": {
90
+ "type": "string",
91
+ "enum": [
92
+ "collaborate",
93
+ "view",
94
+ "none"
95
+ ]
96
+ }
97
+ },
98
+ "required": [
99
+ "resourceId",
100
+ "role"
101
+ ],
102
+ "additionalProperties": false
103
+ },
104
+ "maxItems": 100
105
+ },
106
+ "dashboardRoles": {
107
+ "type": "array",
108
+ "items": {
109
+ "type": "object",
110
+ "properties": {
111
+ "resourceId": {
112
+ "type": "string",
113
+ "pattern": "^[A-Fa-f\\d]{24}$"
114
+ },
115
+ "role": {
116
+ "type": "string",
117
+ "enum": [
118
+ "collaborate",
119
+ "view",
120
+ "none"
121
+ ]
122
+ }
123
+ },
124
+ "required": [
125
+ "resourceId",
126
+ "role"
127
+ ],
128
+ "additionalProperties": false
129
+ },
130
+ "maxItems": 100
131
+ }
132
+ },
133
+ "required": [
134
+ "orgId",
135
+ "role"
136
+ ],
137
+ "additionalProperties": false
138
+ },
139
+ "maxItems": 25
140
+ },
141
+ "scope": {
142
+ "type": "array",
143
+ "uniqueItems": true,
144
+ "items": {
145
+ "type": "string",
146
+ "description": "OAuth-supported user-context API scope. See the `scopes_supported` field of the OAuth authorization server metadata document at /.well-known/oauth-authorization-server for the authoritative list.",
147
+ "enum": [
148
+ "all.Application.read",
149
+ "all.Application.bounded",
150
+ "only.Organization.read",
151
+ "only.Organization.bounded",
152
+ "all.Organization.read",
153
+ "all.Organization.bounded",
154
+ "only.User.read"
155
+ ]
156
+ },
157
+ "description": "API scopes for this OAuth token"
158
+ },
159
+ "status": {
160
+ "type": "string",
161
+ "enum": [
162
+ "active",
163
+ "inactive"
164
+ ]
165
+ },
166
+ "oauth": {
167
+ "type": "object",
168
+ "properties": {
169
+ "client_id": {
170
+ "type": "string",
171
+ "minLength": 24,
172
+ "maxLength": 1024,
173
+ "description": "The registered OAuth client ID (ObjectId or HTTPS URL for CIMD)"
174
+ },
175
+ "client_name": {
176
+ "type": "string",
177
+ "maxLength": 255,
178
+ "description": "Human-readable name of the OAuth client (from client registration)"
179
+ },
180
+ "client_uri": {
181
+ "type": "string",
182
+ "maxLength": 1024,
183
+ "description": "Informational URL for the OAuth client's homepage (from client registration)"
184
+ },
185
+ "logo_uri": {
186
+ "type": "string",
187
+ "maxLength": 32768,
188
+ "description": "Logo URL for the OAuth client (http(s) URL or data: URI, from client registration)"
189
+ },
190
+ "redirect_uri": {
191
+ "type": "string",
192
+ "format": "uri",
193
+ "maxLength": 1024
194
+ },
195
+ "resource": {
196
+ "type": "array",
197
+ "items": {
198
+ "type": "string",
199
+ "format": "uri",
200
+ "maxLength": 1024
201
+ },
202
+ "description": "Resource indicator(s) per RFC 8707 — audience(s) this token is bound to"
203
+ },
204
+ "authorizationStatus": {
205
+ "type": "string",
206
+ "enum": [
207
+ "pending",
208
+ "authorized"
209
+ ]
210
+ },
211
+ "authorizationCode": {
212
+ "type": "string"
213
+ }
214
+ }
215
+ }
216
+ }
217
+ }
218
+ },
219
+ "count": {
220
+ "type": "integer"
221
+ },
222
+ "totalCount": {
223
+ "type": "integer"
224
+ },
225
+ "perPage": {
226
+ "type": "integer"
227
+ },
228
+ "page": {
229
+ "type": "integer"
230
+ },
231
+ "filter": {
232
+ "type": "string"
233
+ },
234
+ "filterField": {
235
+ "type": "string"
236
+ },
237
+ "sortField": {
238
+ "type": "string"
239
+ },
240
+ "sortDirection": {
241
+ "type": "string",
242
+ "enum": [
243
+ "asc",
244
+ "desc",
245
+ "ASC",
246
+ "DESC",
247
+ ""
248
+ ]
249
+ }
250
+ }
251
+ }
@@ -85,6 +85,7 @@
85
85
  "type": "string",
86
86
  "enum": [
87
87
  "all.Application",
88
+ "all.Application.bounded",
88
89
  "all.Application.read",
89
90
  "all.Application.cli",
90
91
  "all.Device",
@@ -411,7 +412,11 @@
411
412
  "type": "string",
412
413
  "enum": [
413
414
  "all.Organization",
415
+ "all.Organization.bounded",
414
416
  "all.Organization.read",
417
+ "only.Organization",
418
+ "only.Organization.bounded",
419
+ "only.Organization.read",
415
420
  "applications.*",
416
421
  "auditLog.*",
417
422
  "auditLogs.*",
@@ -454,6 +459,7 @@
454
459
  "type": "string",
455
460
  "enum": [
456
461
  "all.Instance",
462
+ "all.Instance.bounded",
457
463
  "all.Instance.read",
458
464
  "instance.*",
459
465
  "instance.get",
@@ -542,8 +548,12 @@
542
548
  "type": "string",
543
549
  "enum": [
544
550
  "all.User",
551
+ "all.User.bounded",
545
552
  "all.User.read",
546
553
  "all.User.cli",
554
+ "only.User",
555
+ "only.User.bounded",
556
+ "only.User.read",
547
557
  "userApiToken.*",
548
558
  "userApiToken.get",
549
559
  "userApiToken.patch",
@@ -551,6 +561,13 @@
551
561
  "userApiTokens.*",
552
562
  "userApiTokens.get",
553
563
  "userApiTokens.post",
564
+ "userOauthToken.*",
565
+ "userOauthToken.get",
566
+ "userOauthToken.patch",
567
+ "userOauthToken.delete",
568
+ "userOauthTokens.*",
569
+ "userOauthTokens.get",
570
+ "userOauthTokens.post",
554
571
  "applicationTemplate.*",
555
572
  "applicationTemplate.get",
556
573
  "applicationTemplates.*",
@@ -580,6 +597,7 @@
580
597
  "me.invite",
581
598
  "me.invites",
582
599
  "me.respondToInvite",
600
+ "me.refreshToken",
583
601
  "orgs.*",
584
602
  "orgs.get",
585
603
  "orgs.post"
@@ -17,30 +17,32 @@
17
17
  "patternProperties": {
18
18
  "^[0-9a-zA-Z_-]{1,255}$": {
19
19
  "anyOf": [
20
- [
21
- {
22
- "type": "string",
23
- "maxLength": 32767
24
- },
25
- {
26
- "type": "number"
27
- },
28
- {
29
- "type": "object",
30
- "properties": {
31
- "key": {
32
- "type": "string",
33
- "pattern": "^[0-9a-zA-Z_-]{1,255}$"
34
- },
35
- "value": {
36
- "type": "string",
37
- "minLength": 1,
38
- "maxLength": 255
39
- }
20
+ {
21
+ "oneOf": [
22
+ {
23
+ "type": "string",
24
+ "maxLength": 32767
40
25
  },
41
- "additionalProperties": false
42
- }
43
- ],
26
+ {
27
+ "type": "number"
28
+ },
29
+ {
30
+ "type": "object",
31
+ "properties": {
32
+ "key": {
33
+ "type": "string",
34
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
35
+ },
36
+ "value": {
37
+ "type": "string",
38
+ "minLength": 1,
39
+ "maxLength": 255
40
+ }
41
+ },
42
+ "additionalProperties": false
43
+ }
44
+ ]
45
+ },
44
46
  {
45
47
  "type": "object",
46
48
  "properties": {
@@ -50,7 +52,6 @@
50
52
  },
51
53
  "name": {
52
54
  "type": "string",
53
- "minLength": 1,
54
55
  "maxLength": 255
55
56
  },
56
57
  "description": {
@@ -106,6 +107,52 @@
106
107
  }
107
108
  }
108
109
  }
110
+ },
111
+ {
112
+ "type": "object",
113
+ "properties": {
114
+ "id": {
115
+ "type": "string",
116
+ "pattern": "^[A-Fa-f\\d]{24}$"
117
+ },
118
+ "email": {
119
+ "oneOf": [
120
+ {
121
+ "type": "string",
122
+ "format": "email",
123
+ "maxLength": 1024
124
+ },
125
+ {
126
+ "type": "string",
127
+ "maxLength": 0
128
+ }
129
+ ]
130
+ },
131
+ "firstName": {
132
+ "type": "string",
133
+ "maxLength": 255
134
+ },
135
+ "lastName": {
136
+ "type": "string",
137
+ "maxLength": 255
138
+ },
139
+ "avatarUrl": {
140
+ "type": "string",
141
+ "format": "uri",
142
+ "maxLength": 1024
143
+ },
144
+ "userTags": {
145
+ "type": "object",
146
+ "patternProperties": {
147
+ "^[0-9a-zA-Z_-]{1,255}$": {
148
+ "type": "string",
149
+ "minLength": 1,
150
+ "maxLength": 255
151
+ }
152
+ },
153
+ "additionalProperties": false
154
+ }
155
+ }
109
156
  }
110
157
  ]
111
158
  }
@@ -13,30 +13,32 @@
13
13
  "patternProperties": {
14
14
  "^[0-9a-zA-Z_-]{1,255}$": {
15
15
  "anyOf": [
16
- [
17
- {
18
- "type": "string",
19
- "maxLength": 32767
20
- },
21
- {
22
- "type": "number"
23
- },
24
- {
25
- "type": "object",
26
- "properties": {
27
- "key": {
28
- "type": "string",
29
- "pattern": "^[0-9a-zA-Z_-]{1,255}$"
30
- },
31
- "value": {
32
- "type": "string",
33
- "minLength": 1,
34
- "maxLength": 255
35
- }
16
+ {
17
+ "oneOf": [
18
+ {
19
+ "type": "string",
20
+ "maxLength": 32767
36
21
  },
37
- "additionalProperties": false
38
- }
39
- ],
22
+ {
23
+ "type": "number"
24
+ },
25
+ {
26
+ "type": "object",
27
+ "properties": {
28
+ "key": {
29
+ "type": "string",
30
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
31
+ },
32
+ "value": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "maxLength": 255
36
+ }
37
+ },
38
+ "additionalProperties": false
39
+ }
40
+ ]
41
+ },
40
42
  {
41
43
  "type": "object",
42
44
  "properties": {
@@ -46,7 +48,6 @@
46
48
  },
47
49
  "name": {
48
50
  "type": "string",
49
- "minLength": 1,
50
51
  "maxLength": 255
51
52
  },
52
53
  "description": {
@@ -102,6 +103,52 @@
102
103
  }
103
104
  }
104
105
  }
106
+ },
107
+ {
108
+ "type": "object",
109
+ "properties": {
110
+ "id": {
111
+ "type": "string",
112
+ "pattern": "^[A-Fa-f\\d]{24}$"
113
+ },
114
+ "email": {
115
+ "oneOf": [
116
+ {
117
+ "type": "string",
118
+ "format": "email",
119
+ "maxLength": 1024
120
+ },
121
+ {
122
+ "type": "string",
123
+ "maxLength": 0
124
+ }
125
+ ]
126
+ },
127
+ "firstName": {
128
+ "type": "string",
129
+ "maxLength": 255
130
+ },
131
+ "lastName": {
132
+ "type": "string",
133
+ "maxLength": 255
134
+ },
135
+ "avatarUrl": {
136
+ "type": "string",
137
+ "format": "uri",
138
+ "maxLength": 1024
139
+ },
140
+ "userTags": {
141
+ "type": "object",
142
+ "patternProperties": {
143
+ "^[0-9a-zA-Z_-]{1,255}$": {
144
+ "type": "string",
145
+ "minLength": 1,
146
+ "maxLength": 255
147
+ }
148
+ },
149
+ "additionalProperties": false
150
+ }
151
+ }
105
152
  }
106
153
  ]
107
154
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: losant_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
@@ -190,6 +190,8 @@ files:
190
190
  - docs/resourceJobs.md
191
191
  - docs/userApiToken.md
192
192
  - docs/userApiTokens.md
193
+ - docs/userOauthToken.md
194
+ - docs/userOauthTokens.md
193
195
  - docs/webhook.md
194
196
  - docs/webhooks.md
195
197
  - examples/auth.rb
@@ -292,11 +294,14 @@ files:
292
294
  - lib/platform_rest/resource_jobs.rb
293
295
  - lib/platform_rest/user_api_token.rb
294
296
  - lib/platform_rest/user_api_tokens.rb
297
+ - lib/platform_rest/user_oauth_token.rb
298
+ - lib/platform_rest/user_oauth_tokens.rb
295
299
  - lib/platform_rest/utils.rb
296
300
  - lib/platform_rest/version.rb
297
301
  - lib/platform_rest/webhook.rb
298
302
  - lib/platform_rest/webhooks.rb
299
303
  - losant_rest.gemspec
304
+ - schemas/advancedApplicationCertQuery.json
300
305
  - schemas/advancedApplicationJobLogQuery.json
301
306
  - schemas/advancedApplicationKeyQuery.json
302
307
  - schemas/advancedDeviceQuery.json
@@ -332,6 +337,7 @@ files:
332
337
  - schemas/applicationGlobalPatch.json
333
338
  - schemas/applicationImportExecutions.json
334
339
  - schemas/applicationImportOptions.json
340
+ - schemas/applicationImportResult.json
335
341
  - schemas/applicationJobLog.json
336
342
  - schemas/applicationJobLogs.json
337
343
  - schemas/applicationKey.json
@@ -373,6 +379,7 @@ files:
373
379
  - schemas/dashboardPost.json
374
380
  - schemas/dashboardSendReport.json
375
381
  - schemas/dashboardUpdateEvents.json
382
+ - schemas/dashboardUpdateEventsResult.json
376
383
  - schemas/dashboards.json
377
384
  - schemas/dataExport.json
378
385
  - schemas/dataTable.json
@@ -384,6 +391,9 @@ files:
384
391
  - schemas/dataTableRowInsert.json
385
392
  - schemas/dataTableRowInsertResult.json
386
393
  - schemas/dataTableRowInsertUpdate.json
394
+ - schemas/dataTableRowPatch.json
395
+ - schemas/dataTableRowPost.json
396
+ - schemas/dataTableRowPostResult.json
387
397
  - schemas/dataTableRows.json
388
398
  - schemas/dataTableRowsDelete.json
389
399
  - schemas/dataTableRowsExport.json
@@ -527,6 +537,9 @@ files:
527
537
  - schemas/instanceMemberPost.json
528
538
  - schemas/instanceMembers.json
529
539
  - schemas/instanceOrg.json
540
+ - schemas/instanceOrgInvite.json
541
+ - schemas/instanceOrgInviteSent.json
542
+ - schemas/instanceOrgInvites.json
530
543
  - schemas/instanceOrgMember.json
531
544
  - schemas/instanceOrgMemberPatch.json
532
545
  - schemas/instanceOrgMemberPost.json
@@ -567,6 +580,10 @@ files:
567
580
  - schemas/notificationRulePatch.json
568
581
  - schemas/notificationRulePost.json
569
582
  - schemas/notificationRules.json
583
+ - schemas/oauthClient.json
584
+ - schemas/oauthClientPost.json
585
+ - schemas/oauthDcrError.json
586
+ - schemas/oauthError.json
570
587
  - schemas/org.json
571
588
  - schemas/orgInvite.json
572
589
  - schemas/orgInviteAction.json
@@ -615,6 +632,10 @@ files:
615
632
  - schemas/timeSeriesQuery.json
616
633
  - schemas/twoFactorAuthInfo.json
617
634
  - schemas/userCredentials.json
635
+ - schemas/userOauthToken.json
636
+ - schemas/userOauthTokenPatch.json
637
+ - schemas/userOauthTokenPost.json
638
+ - schemas/userOauthTokens.json
618
639
  - schemas/userPost.json
619
640
  - schemas/validateContextError.json
620
641
  - schemas/validateContextSuccess.json