losant_rest 1.14.0 → 1.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/docs/_schemas.md +10590 -3153
  4. data/docs/devices.md +40 -0
  5. data/docs/embeddedDeployment.md +49 -0
  6. data/docs/embeddedDeployments.md +215 -0
  7. data/docs/flow.md +2 -2
  8. data/docs/flows.md +2 -2
  9. data/docs/instance.md +4 -2
  10. data/lib/losant_rest/application.rb +1 -1
  11. data/lib/losant_rest/application_api_token.rb +1 -1
  12. data/lib/losant_rest/application_api_tokens.rb +1 -1
  13. data/lib/losant_rest/application_certificate.rb +1 -1
  14. data/lib/losant_rest/application_certificate_authorities.rb +1 -1
  15. data/lib/losant_rest/application_certificate_authority.rb +1 -1
  16. data/lib/losant_rest/application_certificates.rb +1 -1
  17. data/lib/losant_rest/application_dashboard.rb +1 -1
  18. data/lib/losant_rest/application_dashboards.rb +1 -1
  19. data/lib/losant_rest/application_key.rb +1 -1
  20. data/lib/losant_rest/application_keys.rb +1 -1
  21. data/lib/losant_rest/application_template.rb +1 -1
  22. data/lib/losant_rest/application_templates.rb +1 -1
  23. data/lib/losant_rest/applications.rb +1 -1
  24. data/lib/losant_rest/audit_log.rb +1 -1
  25. data/lib/losant_rest/audit_logs.rb +1 -1
  26. data/lib/losant_rest/auth.rb +1 -1
  27. data/lib/losant_rest/client.rb +11 -3
  28. data/lib/losant_rest/dashboard.rb +1 -1
  29. data/lib/losant_rest/dashboards.rb +1 -1
  30. data/lib/losant_rest/data.rb +1 -1
  31. data/lib/losant_rest/data_table.rb +1 -1
  32. data/lib/losant_rest/data_table_row.rb +1 -1
  33. data/lib/losant_rest/data_table_rows.rb +1 -1
  34. data/lib/losant_rest/data_tables.rb +1 -1
  35. data/lib/losant_rest/device.rb +1 -1
  36. data/lib/losant_rest/device_recipe.rb +1 -1
  37. data/lib/losant_rest/device_recipes.rb +1 -1
  38. data/lib/losant_rest/devices.rb +50 -1
  39. data/lib/losant_rest/edge_deployment.rb +1 -1
  40. data/lib/losant_rest/edge_deployments.rb +1 -1
  41. data/lib/losant_rest/embedded_deployment.rb +81 -0
  42. data/lib/losant_rest/embedded_deployments.rb +280 -0
  43. data/lib/losant_rest/error.rb +1 -1
  44. data/lib/losant_rest/event.rb +1 -1
  45. data/lib/losant_rest/events.rb +1 -1
  46. data/lib/losant_rest/experience.rb +1 -1
  47. data/lib/losant_rest/experience_domain.rb +1 -1
  48. data/lib/losant_rest/experience_domains.rb +1 -1
  49. data/lib/losant_rest/experience_endpoint.rb +1 -1
  50. data/lib/losant_rest/experience_endpoints.rb +1 -1
  51. data/lib/losant_rest/experience_group.rb +1 -1
  52. data/lib/losant_rest/experience_groups.rb +1 -1
  53. data/lib/losant_rest/experience_slug.rb +1 -1
  54. data/lib/losant_rest/experience_slugs.rb +1 -1
  55. data/lib/losant_rest/experience_user.rb +1 -1
  56. data/lib/losant_rest/experience_users.rb +1 -1
  57. data/lib/losant_rest/experience_version.rb +1 -1
  58. data/lib/losant_rest/experience_versions.rb +1 -1
  59. data/lib/losant_rest/experience_view.rb +1 -1
  60. data/lib/losant_rest/experience_views.rb +1 -1
  61. data/lib/losant_rest/file.rb +1 -1
  62. data/lib/losant_rest/files.rb +1 -1
  63. data/lib/losant_rest/flow.rb +3 -3
  64. data/lib/losant_rest/flow_version.rb +1 -1
  65. data/lib/losant_rest/flow_versions.rb +1 -1
  66. data/lib/losant_rest/flows.rb +3 -3
  67. data/lib/losant_rest/instance.rb +2 -1
  68. data/lib/losant_rest/instance_api_token.rb +1 -1
  69. data/lib/losant_rest/instance_api_tokens.rb +1 -1
  70. data/lib/losant_rest/instance_member.rb +1 -1
  71. data/lib/losant_rest/instance_members.rb +1 -1
  72. data/lib/losant_rest/instance_org.rb +1 -1
  73. data/lib/losant_rest/instance_org_invite.rb +1 -1
  74. data/lib/losant_rest/instance_org_invites.rb +1 -1
  75. data/lib/losant_rest/instance_org_member.rb +1 -1
  76. data/lib/losant_rest/instance_org_members.rb +1 -1
  77. data/lib/losant_rest/instance_orgs.rb +1 -1
  78. data/lib/losant_rest/instances.rb +1 -1
  79. data/lib/losant_rest/integration.rb +1 -1
  80. data/lib/losant_rest/integrations.rb +1 -1
  81. data/lib/losant_rest/me.rb +1 -1
  82. data/lib/losant_rest/notebook.rb +1 -1
  83. data/lib/losant_rest/notebooks.rb +1 -1
  84. data/lib/losant_rest/org.rb +1 -1
  85. data/lib/losant_rest/org_invites.rb +1 -1
  86. data/lib/losant_rest/orgs.rb +1 -1
  87. data/lib/losant_rest/user_api_token.rb +1 -1
  88. data/lib/losant_rest/user_api_tokens.rb +1 -1
  89. data/lib/losant_rest/utils.rb +1 -1
  90. data/lib/losant_rest/version.rb +2 -2
  91. data/lib/losant_rest/webhook.rb +1 -1
  92. data/lib/losant_rest/webhooks.rb +1 -1
  93. data/lib/losant_rest.rb +3 -1
  94. data/schemas/apiTokenPost.json +9 -0
  95. data/schemas/application.json +32 -32
  96. data/schemas/applicationCreationByTemplateResult.json +32 -32
  97. data/schemas/applicationDashboardPost.json +8 -5
  98. data/schemas/applicationPatch.json +13 -13
  99. data/schemas/applicationPost.json +13 -13
  100. data/schemas/applicationTemplate.json +16 -16
  101. data/schemas/applicationTemplates.json +16 -16
  102. data/schemas/applications.json +32 -32
  103. data/schemas/authedDevice.json +2 -1
  104. data/schemas/dashboard.json +8 -5
  105. data/schemas/dashboardPatch.json +8 -5
  106. data/schemas/dashboardPost.json +8 -5
  107. data/schemas/dashboardSendReport.json +6 -6
  108. data/schemas/dashboards.json +8 -5
  109. data/schemas/dataTableRowsDelete.json +1 -1
  110. data/schemas/device.json +2 -1
  111. data/schemas/deviceClassFilter.json +4 -2
  112. data/schemas/deviceNamesResponse.json +36 -0
  113. data/schemas/devicePatch.json +2 -1
  114. data/schemas/devicePost.json +2 -1
  115. data/schemas/deviceRecipe.json +2 -1
  116. data/schemas/deviceRecipePatch.json +2 -1
  117. data/schemas/deviceRecipePost.json +2 -1
  118. data/schemas/deviceRecipes.json +2 -1
  119. data/schemas/devices.json +4 -2
  120. data/schemas/devicesPatch.json +4 -2
  121. data/schemas/edgeDeployment.json +4 -0
  122. data/schemas/edgeDeployments.json +4 -0
  123. data/schemas/embeddedDeployment.json +179 -0
  124. data/schemas/embeddedDeploymentExport.json +44 -0
  125. data/schemas/embeddedDeploymentRelease.json +58 -0
  126. data/schemas/embeddedDeploymentRemove.json +25 -0
  127. data/schemas/embeddedDeploymentReplace.json +29 -0
  128. data/schemas/embeddedDeployments.json +212 -0
  129. data/schemas/eventsDeleted.json +1 -1
  130. data/schemas/eventsExport.json +4 -0
  131. data/schemas/experienceEndpoint.json +6 -8
  132. data/schemas/experienceEndpointPatch.json +6 -8
  133. data/schemas/experienceEndpointPost.json +6 -8
  134. data/schemas/experienceEndpoints.json +6 -8
  135. data/schemas/experienceLinkedResources.json +1292 -167
  136. data/schemas/flow.json +391 -15
  137. data/schemas/flowPatch.json +390 -15
  138. data/schemas/flowPost.json +391 -15
  139. data/schemas/flowVersion.json +821 -71
  140. data/schemas/flowVersionPost.json +390 -15
  141. data/schemas/flowVersions.json +821 -71
  142. data/schemas/flows.json +392 -15
  143. data/schemas/flowsImportPost.json +821 -70
  144. data/schemas/flowsImportResult.json +1392 -266
  145. data/schemas/githubLogin.json +9 -0
  146. data/schemas/historicalSummary.json +87 -74
  147. data/schemas/instance.json +92 -79
  148. data/schemas/instanceMember.json +6 -1
  149. data/schemas/instanceMembers.json +6 -1
  150. data/schemas/instanceOrg.json +87 -74
  151. data/schemas/instanceOrgMember.json +6 -1
  152. data/schemas/instanceOrgPatch.json +64 -26
  153. data/schemas/instanceOrgPost.json +65 -27
  154. data/schemas/instanceOrgs.json +87 -74
  155. data/schemas/instancePatch.json +2 -2
  156. data/schemas/integration.json +1 -1
  157. data/schemas/integrationPatch.json +1 -1
  158. data/schemas/integrationPost.json +1 -1
  159. data/schemas/integrations.json +1 -1
  160. data/schemas/me.json +104 -92
  161. data/schemas/mePatch.json +0 -1
  162. data/schemas/notebook.json +2 -1
  163. data/schemas/notebookExecutionLogs.json +2 -1
  164. data/schemas/notebookPatch.json +2 -1
  165. data/schemas/notebookPost.json +2 -1
  166. data/schemas/notebooks.json +2 -1
  167. data/schemas/org.json +115 -97
  168. data/schemas/orgs.json +115 -97
  169. data/schemas/userCredentials.json +9 -0
  170. data/schemas/userPost.json +9 -1
  171. metadata +17 -6
@@ -19,81 +19,119 @@
19
19
  "type": "object",
20
20
  "properties": {
21
21
  "apitoken": {
22
- "type": "number"
22
+ "type": "integer",
23
+ "minimum": 0
23
24
  },
24
25
  "application": {
25
- "type": "number"
26
+ "type": "integer",
27
+ "minimum": 0
26
28
  },
27
29
  "applicationkey": {
28
- "type": "number"
30
+ "type": "integer",
31
+ "minimum": 0
29
32
  },
30
33
  "dashboard": {
31
- "type": "number"
34
+ "type": "integer",
35
+ "minimum": 0
32
36
  },
33
37
  "datatable": {
34
- "type": "number"
38
+ "type": "integer",
39
+ "minimum": 0
35
40
  },
36
41
  "device": {
37
- "type": "number"
42
+ "type": "integer",
43
+ "minimum": 0
38
44
  },
39
45
  "devicerecipe": {
40
- "type": "number"
46
+ "type": "integer",
47
+ "minimum": 0
41
48
  },
42
49
  "experiencedomain": {
43
- "type": "number"
50
+ "type": "integer",
51
+ "minimum": 0
44
52
  },
45
53
  "experienceendpoint": {
46
- "type": "number"
54
+ "type": "integer",
55
+ "minimum": 0
47
56
  },
48
57
  "experiencegroup": {
49
- "type": "number"
58
+ "type": "integer",
59
+ "minimum": 0
50
60
  },
51
61
  "experienceslug": {
52
- "type": "number"
62
+ "type": "integer",
63
+ "minimum": 0
53
64
  },
54
65
  "experienceuser": {
55
- "type": "number"
66
+ "type": "integer",
67
+ "minimum": 0
56
68
  },
57
69
  "experienceversion": {
58
- "type": "number"
70
+ "type": "integer",
71
+ "minimum": 0
59
72
  },
60
73
  "experienceview": {
61
- "type": "number"
74
+ "type": "integer",
75
+ "minimum": 0
62
76
  },
63
77
  "file": {
64
- "type": "number"
78
+ "type": "integer",
79
+ "minimum": 0
65
80
  },
66
81
  "flow": {
67
- "type": "number"
82
+ "type": "integer",
83
+ "minimum": 0
68
84
  },
69
85
  "integration": {
70
- "type": "number"
86
+ "type": "integer",
87
+ "minimum": 0
71
88
  },
72
89
  "notebook": {
73
- "type": "number"
90
+ "type": "integer",
91
+ "minimum": 0
74
92
  },
75
93
  "webhook": {
76
- "type": "number"
94
+ "type": "integer",
95
+ "minimum": 0
77
96
  },
78
97
  "dataTTL": {
79
- "type": "number"
98
+ "type": "integer",
99
+ "minimum": 86400
80
100
  },
81
101
  "member": {
82
- "type": "number"
102
+ "type": "integer",
103
+ "minimum": 0
83
104
  },
84
105
  "payload": {
85
- "type": "number"
106
+ "type": "integer",
107
+ "minimum": 0
108
+ },
109
+ "storage": {
110
+ "type": "integer",
111
+ "minimum": 0
86
112
  },
87
113
  "notebookMinutesPerRun": {
88
- "type": "number"
114
+ "type": "integer",
115
+ "minimum": 0
89
116
  },
90
117
  "notebookMinutesPerMonth": {
91
- "type": "number"
118
+ "type": "integer",
119
+ "minimum": 0
92
120
  },
93
121
  "notebookInParallel": {
94
- "type": "number"
122
+ "type": "integer",
123
+ "minimum": 0
124
+ },
125
+ "experienceFlowSlots": {
126
+ "type": "integer",
127
+ "minimum": 0
128
+ },
129
+ "applicationFlowSlots": {
130
+ "type": "integer",
131
+ "minimum": 0
95
132
  }
96
- }
133
+ },
134
+ "additionalProperties": false
97
135
  },
98
136
  "whitelistedEmailDomains": {
99
137
  "type": "array",
@@ -19,85 +19,123 @@
19
19
  "type": "object",
20
20
  "properties": {
21
21
  "apitoken": {
22
- "type": "number"
22
+ "type": "integer",
23
+ "minimum": 0
23
24
  },
24
25
  "application": {
25
- "type": "number"
26
+ "type": "integer",
27
+ "minimum": 0
26
28
  },
27
29
  "applicationkey": {
28
- "type": "number"
30
+ "type": "integer",
31
+ "minimum": 0
29
32
  },
30
33
  "dashboard": {
31
- "type": "number"
34
+ "type": "integer",
35
+ "minimum": 0
32
36
  },
33
37
  "datatable": {
34
- "type": "number"
38
+ "type": "integer",
39
+ "minimum": 0
35
40
  },
36
41
  "device": {
37
- "type": "number"
42
+ "type": "integer",
43
+ "minimum": 0
38
44
  },
39
45
  "devicerecipe": {
40
- "type": "number"
46
+ "type": "integer",
47
+ "minimum": 0
41
48
  },
42
49
  "experiencedomain": {
43
- "type": "number"
50
+ "type": "integer",
51
+ "minimum": 0
44
52
  },
45
53
  "experienceendpoint": {
46
- "type": "number"
54
+ "type": "integer",
55
+ "minimum": 0
47
56
  },
48
57
  "experiencegroup": {
49
- "type": "number"
58
+ "type": "integer",
59
+ "minimum": 0
50
60
  },
51
61
  "experienceslug": {
52
- "type": "number"
62
+ "type": "integer",
63
+ "minimum": 0
53
64
  },
54
65
  "experienceuser": {
55
- "type": "number"
66
+ "type": "integer",
67
+ "minimum": 0
56
68
  },
57
69
  "experienceversion": {
58
- "type": "number"
70
+ "type": "integer",
71
+ "minimum": 0
59
72
  },
60
73
  "experienceview": {
61
- "type": "number"
74
+ "type": "integer",
75
+ "minimum": 0
62
76
  },
63
77
  "file": {
64
- "type": "number"
78
+ "type": "integer",
79
+ "minimum": 0
65
80
  },
66
81
  "flow": {
67
- "type": "number"
82
+ "type": "integer",
83
+ "minimum": 0
68
84
  },
69
85
  "integration": {
70
- "type": "number"
86
+ "type": "integer",
87
+ "minimum": 0
71
88
  },
72
89
  "notebook": {
73
- "type": "number"
90
+ "type": "integer",
91
+ "minimum": 0
74
92
  },
75
93
  "webhook": {
76
- "type": "number"
94
+ "type": "integer",
95
+ "minimum": 0
77
96
  },
78
97
  "dataTTL": {
79
- "type": "number"
98
+ "type": "integer",
99
+ "minimum": 86400
80
100
  },
81
101
  "member": {
82
- "type": "number"
102
+ "type": "integer",
103
+ "minimum": 0
83
104
  },
84
105
  "payload": {
85
- "type": "number"
106
+ "type": "integer",
107
+ "minimum": 0
108
+ },
109
+ "storage": {
110
+ "type": "integer",
111
+ "minimum": 0
86
112
  },
87
113
  "notebookMinutesPerRun": {
88
- "type": "number"
114
+ "type": "integer",
115
+ "minimum": 0
89
116
  },
90
117
  "notebookMinutesPerMonth": {
91
- "type": "number"
118
+ "type": "integer",
119
+ "minimum": 0
92
120
  },
93
121
  "notebookInParallel": {
94
- "type": "number"
122
+ "type": "integer",
123
+ "minimum": 0
124
+ },
125
+ "experienceFlowSlots": {
126
+ "type": "integer",
127
+ "minimum": 0
128
+ },
129
+ "applicationFlowSlots": {
130
+ "type": "integer",
131
+ "minimum": 0
95
132
  }
96
- }
133
+ },
134
+ "additionalProperties": false
97
135
  },
98
136
  "members": {
99
137
  "type": "array",
100
- "max": "10",
138
+ "maxItems": "10",
101
139
  "items": {
102
140
  "title": "Instance Org Member Post",
103
141
  "description": "Schema for an Instance Organization member creation request",
@@ -31,81 +31,94 @@
31
31
  "maxLength": 64
32
32
  },
33
33
  "limits": {
34
- "apitoken": {
35
- "type": "number"
36
- },
37
- "application": {
38
- "type": "number"
39
- },
40
- "applicationkey": {
41
- "type": "number"
42
- },
43
- "dashboard": {
44
- "type": "number"
45
- },
46
- "datatable": {
47
- "type": "number"
48
- },
49
- "device": {
50
- "type": "number"
51
- },
52
- "devicerecipe": {
53
- "type": "number"
54
- },
55
- "experiencedomain": {
56
- "type": "number"
57
- },
58
- "experienceendpoint": {
59
- "type": "number"
60
- },
61
- "experiencegroup": {
62
- "type": "number"
63
- },
64
- "experienceslug": {
65
- "type": "number"
66
- },
67
- "experienceuser": {
68
- "type": "number"
69
- },
70
- "experienceversion": {
71
- "type": "number"
72
- },
73
- "experienceview": {
74
- "type": "number"
75
- },
76
- "file": {
77
- "type": "number"
78
- },
79
- "flow": {
80
- "type": "number"
81
- },
82
- "integration": {
83
- "type": "number"
84
- },
85
- "notebook": {
86
- "type": "number"
87
- },
88
- "webhook": {
89
- "type": "number"
90
- },
91
- "dataTTL": {
92
- "type": "number"
93
- },
94
- "member": {
95
- "type": "number"
96
- },
97
- "payload": {
98
- "type": "number"
99
- },
100
- "notebookMinutesPerRun": {
101
- "type": "number"
102
- },
103
- "notebookMinutesPerMonth": {
104
- "type": "number"
34
+ "type": "object",
35
+ "properties": {
36
+ "apitoken": {
37
+ "type": "integer"
38
+ },
39
+ "application": {
40
+ "type": "integer"
41
+ },
42
+ "applicationkey": {
43
+ "type": "integer"
44
+ },
45
+ "dashboard": {
46
+ "type": "integer"
47
+ },
48
+ "datatable": {
49
+ "type": "integer"
50
+ },
51
+ "device": {
52
+ "type": "integer"
53
+ },
54
+ "devicerecipe": {
55
+ "type": "integer"
56
+ },
57
+ "experiencedomain": {
58
+ "type": "integer"
59
+ },
60
+ "experienceendpoint": {
61
+ "type": "integer"
62
+ },
63
+ "experiencegroup": {
64
+ "type": "integer"
65
+ },
66
+ "experienceslug": {
67
+ "type": "integer"
68
+ },
69
+ "experienceuser": {
70
+ "type": "integer"
71
+ },
72
+ "experienceversion": {
73
+ "type": "integer"
74
+ },
75
+ "experienceview": {
76
+ "type": "integer"
77
+ },
78
+ "file": {
79
+ "type": "integer"
80
+ },
81
+ "flow": {
82
+ "type": "integer"
83
+ },
84
+ "integration": {
85
+ "type": "integer"
86
+ },
87
+ "notebook": {
88
+ "type": "integer"
89
+ },
90
+ "webhook": {
91
+ "type": "integer"
92
+ },
93
+ "dataTTL": {
94
+ "type": "integer"
95
+ },
96
+ "member": {
97
+ "type": "integer"
98
+ },
99
+ "payload": {
100
+ "type": "integer"
101
+ },
102
+ "storage": {
103
+ "type": "integer"
104
+ },
105
+ "notebookMinutesPerRun": {
106
+ "type": "integer"
107
+ },
108
+ "notebookMinutesPerMonth": {
109
+ "type": "integer"
110
+ },
111
+ "notebookInParallel": {
112
+ "type": "integer"
113
+ },
114
+ "experienceFlowSlots": {
115
+ "type": "integer"
116
+ },
117
+ "applicationFlowSlots": {
118
+ "type": "integer"
119
+ }
105
120
  },
106
- "notebookInParallel": {
107
- "type": "number"
108
- }
121
+ "additionalProperties": false
109
122
  },
110
123
  "whitelistedEmailDomains": {
111
124
  "type": "array",
@@ -4,9 +4,9 @@
4
4
  "properties": {
5
5
  "reportConfigs": {
6
6
  "type": "array",
7
+ "maxItems": 10,
7
8
  "items": {
8
9
  "type": "object",
9
- "max": 10,
10
10
  "properties": {
11
11
  "id": {
12
12
  "type": "string",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "emails": {
24
24
  "type": "array",
25
- "max": 10,
25
+ "maxItems": 10,
26
26
  "items": {
27
27
  "type": "string",
28
28
  "format": "email",
@@ -25,7 +25,7 @@
25
25
  "name": {
26
26
  "type": "string",
27
27
  "minLength": 1,
28
- "maxLength": 1024
28
+ "maxLength": 255
29
29
  },
30
30
  "integrationType": {
31
31
  "type": "string",
@@ -5,7 +5,7 @@
5
5
  "name": {
6
6
  "type": "string",
7
7
  "minLength": 1,
8
- "maxLength": 1024
8
+ "maxLength": 255
9
9
  },
10
10
  "integrationType": {
11
11
  "type": "string",
@@ -5,7 +5,7 @@
5
5
  "name": {
6
6
  "type": "string",
7
7
  "minLength": 1,
8
- "maxLength": 1024
8
+ "maxLength": 255
9
9
  },
10
10
  "integrationType": {
11
11
  "type": "string",
@@ -32,7 +32,7 @@
32
32
  "name": {
33
33
  "type": "string",
34
34
  "minLength": 1,
35
- "maxLength": 1024
35
+ "maxLength": 255
36
36
  },
37
37
  "integrationType": {
38
38
  "type": "string",