losant_rest 1.15.1 → 1.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/docs/_schemas.md +12170 -4718
  4. data/docs/application.md +3 -4
  5. data/docs/applicationDashboard.md +43 -0
  6. data/docs/applications.md +3 -2
  7. data/docs/devices.md +40 -0
  8. data/docs/flows.md +38 -0
  9. data/docs/instanceCustomNode.md +222 -0
  10. data/docs/instanceCustomNodes.md +91 -0
  11. data/lib/losant_rest/application.rb +1 -1
  12. data/lib/losant_rest/application_api_token.rb +1 -1
  13. data/lib/losant_rest/application_api_tokens.rb +1 -1
  14. data/lib/losant_rest/application_certificate.rb +1 -1
  15. data/lib/losant_rest/application_certificate_authorities.rb +1 -1
  16. data/lib/losant_rest/application_certificate_authority.rb +1 -1
  17. data/lib/losant_rest/application_certificates.rb +1 -1
  18. data/lib/losant_rest/application_dashboard.rb +50 -1
  19. data/lib/losant_rest/application_dashboards.rb +1 -1
  20. data/lib/losant_rest/application_key.rb +1 -1
  21. data/lib/losant_rest/application_keys.rb +1 -1
  22. data/lib/losant_rest/application_template.rb +1 -1
  23. data/lib/losant_rest/application_templates.rb +1 -1
  24. data/lib/losant_rest/applications.rb +1 -1
  25. data/lib/losant_rest/audit_log.rb +1 -1
  26. data/lib/losant_rest/audit_logs.rb +1 -1
  27. data/lib/losant_rest/auth.rb +1 -1
  28. data/lib/losant_rest/client.rb +11 -3
  29. data/lib/losant_rest/dashboard.rb +1 -1
  30. data/lib/losant_rest/dashboards.rb +1 -1
  31. data/lib/losant_rest/data.rb +1 -1
  32. data/lib/losant_rest/data_table.rb +1 -1
  33. data/lib/losant_rest/data_table_row.rb +1 -1
  34. data/lib/losant_rest/data_table_rows.rb +1 -1
  35. data/lib/losant_rest/data_tables.rb +1 -1
  36. data/lib/losant_rest/device.rb +1 -1
  37. data/lib/losant_rest/device_recipe.rb +1 -1
  38. data/lib/losant_rest/device_recipes.rb +1 -1
  39. data/lib/losant_rest/devices.rb +50 -1
  40. data/lib/losant_rest/edge_deployment.rb +1 -1
  41. data/lib/losant_rest/edge_deployments.rb +1 -1
  42. data/lib/losant_rest/embedded_deployment.rb +1 -1
  43. data/lib/losant_rest/embedded_deployments.rb +1 -1
  44. data/lib/losant_rest/error.rb +1 -1
  45. data/lib/losant_rest/event.rb +1 -1
  46. data/lib/losant_rest/events.rb +1 -1
  47. data/lib/losant_rest/experience.rb +1 -1
  48. data/lib/losant_rest/experience_domain.rb +1 -1
  49. data/lib/losant_rest/experience_domains.rb +1 -1
  50. data/lib/losant_rest/experience_endpoint.rb +1 -1
  51. data/lib/losant_rest/experience_endpoints.rb +1 -1
  52. data/lib/losant_rest/experience_group.rb +1 -1
  53. data/lib/losant_rest/experience_groups.rb +1 -1
  54. data/lib/losant_rest/experience_slug.rb +1 -1
  55. data/lib/losant_rest/experience_slugs.rb +1 -1
  56. data/lib/losant_rest/experience_user.rb +1 -1
  57. data/lib/losant_rest/experience_users.rb +1 -1
  58. data/lib/losant_rest/experience_version.rb +1 -1
  59. data/lib/losant_rest/experience_versions.rb +1 -1
  60. data/lib/losant_rest/experience_view.rb +1 -1
  61. data/lib/losant_rest/experience_views.rb +1 -1
  62. data/lib/losant_rest/file.rb +1 -1
  63. data/lib/losant_rest/files.rb +1 -1
  64. data/lib/losant_rest/flow.rb +1 -1
  65. data/lib/losant_rest/flow_version.rb +1 -1
  66. data/lib/losant_rest/flow_versions.rb +1 -1
  67. data/lib/losant_rest/flows.rb +45 -1
  68. data/lib/losant_rest/instance.rb +1 -1
  69. data/lib/losant_rest/instance_api_token.rb +1 -1
  70. data/lib/losant_rest/instance_api_tokens.rb +1 -1
  71. data/lib/losant_rest/instance_custom_node.rb +282 -0
  72. data/lib/losant_rest/instance_custom_nodes.rb +136 -0
  73. data/lib/losant_rest/instance_member.rb +1 -1
  74. data/lib/losant_rest/instance_members.rb +1 -1
  75. data/lib/losant_rest/instance_org.rb +1 -1
  76. data/lib/losant_rest/instance_org_invite.rb +1 -1
  77. data/lib/losant_rest/instance_org_invites.rb +1 -1
  78. data/lib/losant_rest/instance_org_member.rb +1 -1
  79. data/lib/losant_rest/instance_org_members.rb +1 -1
  80. data/lib/losant_rest/instance_orgs.rb +1 -1
  81. data/lib/losant_rest/instances.rb +1 -1
  82. data/lib/losant_rest/integration.rb +1 -1
  83. data/lib/losant_rest/integrations.rb +1 -1
  84. data/lib/losant_rest/me.rb +1 -1
  85. data/lib/losant_rest/notebook.rb +1 -1
  86. data/lib/losant_rest/notebooks.rb +1 -1
  87. data/lib/losant_rest/org.rb +1 -1
  88. data/lib/losant_rest/org_invites.rb +1 -1
  89. data/lib/losant_rest/orgs.rb +1 -1
  90. data/lib/losant_rest/user_api_token.rb +1 -1
  91. data/lib/losant_rest/user_api_tokens.rb +1 -1
  92. data/lib/losant_rest/utils.rb +1 -1
  93. data/lib/losant_rest/version.rb +2 -2
  94. data/lib/losant_rest/webhook.rb +1 -1
  95. data/lib/losant_rest/webhooks.rb +1 -1
  96. data/lib/losant_rest.rb +3 -1
  97. data/schemas/apiTokenPost.json +13 -1
  98. data/schemas/application.json +1 -1
  99. data/schemas/applicationApplyTemplatePatch.json +5 -0
  100. data/schemas/applicationClonePost.json +5 -0
  101. data/schemas/applicationCreationByTemplateResult.json +1 -1
  102. data/schemas/applicationDashboardPost.json +162 -3
  103. data/schemas/applicationExportPost.json +4 -0
  104. data/schemas/applicationImportOptions.json +43 -0
  105. data/schemas/applicationPatch.json +1 -1
  106. data/schemas/applicationPost.json +1 -1
  107. data/schemas/applications.json +1 -1
  108. data/schemas/dashboard.json +162 -3
  109. data/schemas/dashboardPatch.json +162 -3
  110. data/schemas/dashboardPost.json +162 -3
  111. data/schemas/dashboardSendReport.json +20 -3
  112. data/schemas/dashboards.json +162 -3
  113. data/schemas/deviceNamesResponse.json +36 -0
  114. data/schemas/experienceBootstrapOptions.json +1 -1
  115. data/schemas/experienceLinkedResources.json +485 -5
  116. data/schemas/experienceSlug.json +1 -1
  117. data/schemas/experienceSlugPatch.json +1 -1
  118. data/schemas/experienceSlugPost.json +1 -1
  119. data/schemas/experienceSlugs.json +1 -1
  120. data/schemas/experienceUser.json +2 -1
  121. data/schemas/experienceUsers.json +2 -1
  122. data/schemas/flow.json +173 -0
  123. data/schemas/flowPatch.json +174 -0
  124. data/schemas/flowPost.json +174 -0
  125. data/schemas/flowVersion.json +312 -5
  126. data/schemas/flowVersionPost.json +156 -0
  127. data/schemas/flowVersions.json +312 -5
  128. data/schemas/flows.json +173 -0
  129. data/schemas/flowsImportPost.json +339 -2
  130. data/schemas/flowsImportResult.json +485 -5
  131. data/schemas/githubLogin.json +13 -1
  132. data/schemas/instanceCustomNode.json +589 -0
  133. data/schemas/instanceCustomNodePatch.json +674 -0
  134. data/schemas/instanceCustomNodePost.json +679 -0
  135. data/schemas/instanceCustomNodes.json +634 -0
  136. data/schemas/instanceMember.json +2 -2
  137. data/schemas/instanceMembers.json +2 -2
  138. data/schemas/instanceOrg.json +8 -0
  139. data/schemas/instanceOrgMember.json +2 -2
  140. data/schemas/instanceOrgs.json +8 -0
  141. data/schemas/integration.json +30 -2
  142. data/schemas/integrationPatch.json +30 -2
  143. data/schemas/integrationPost.json +30 -2
  144. data/schemas/integrations.json +30 -2
  145. data/schemas/me.json +2 -2
  146. data/schemas/mePatch.json +0 -1
  147. data/schemas/org.json +2 -2
  148. data/schemas/orgs.json +2 -2
  149. data/schemas/paletteResponse.json +785 -0
  150. data/schemas/userCredentials.json +13 -1
  151. data/schemas/userPost.json +13 -2
  152. metadata +13 -2
@@ -9,6 +9,14 @@
9
9
  "description": "Schema for the body of an Organization owned by an instance",
10
10
  "type": "object",
11
11
  "properties": {
12
+ "creationDate": {
13
+ "type": "string",
14
+ "format": "date-time"
15
+ },
16
+ "lastUpdated": {
17
+ "type": "string",
18
+ "format": "date-time"
19
+ },
12
20
  "name": {
13
21
  "type": "string",
14
22
  "minLength": 1,
@@ -25,11 +25,12 @@
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",
32
32
  "enum": [
33
+ "azureEventHub",
33
34
  "googlePubSub",
34
35
  "meridian",
35
36
  "mqtt",
@@ -45,7 +46,34 @@
45
46
  "type": "string",
46
47
  "minLength": 1,
47
48
  "maxLength": 1024
48
- }
49
+ },
50
+ "uniqueItems": true
51
+ },
52
+ "azureEventHubConfig": {
53
+ "type": "object",
54
+ "properties": {
55
+ "hubName": {
56
+ "type": "string",
57
+ "maxLength": 256,
58
+ "minLength": 1
59
+ },
60
+ "consumerGroup": {
61
+ "type": "string",
62
+ "maxLength": 256,
63
+ "minLength": 1
64
+ },
65
+ "connectionString": {
66
+ "type": "string",
67
+ "minLength": 1,
68
+ "maxLength": 1024
69
+ }
70
+ },
71
+ "additionalProperties": false,
72
+ "required": [
73
+ "hubName",
74
+ "consumerGroup",
75
+ "connectionString"
76
+ ]
49
77
  },
50
78
  "googlePubSubConfig": {
51
79
  "type": "object",
@@ -5,11 +5,12 @@
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",
12
12
  "enum": [
13
+ "azureEventHub",
13
14
  "googlePubSub",
14
15
  "meridian",
15
16
  "mqtt",
@@ -25,7 +26,34 @@
25
26
  "type": "string",
26
27
  "minLength": 1,
27
28
  "maxLength": 1024
28
- }
29
+ },
30
+ "uniqueItems": true
31
+ },
32
+ "azureEventHubConfig": {
33
+ "type": "object",
34
+ "properties": {
35
+ "hubName": {
36
+ "type": "string",
37
+ "maxLength": 256,
38
+ "minLength": 1
39
+ },
40
+ "consumerGroup": {
41
+ "type": "string",
42
+ "maxLength": 256,
43
+ "minLength": 1
44
+ },
45
+ "connectionString": {
46
+ "type": "string",
47
+ "minLength": 1,
48
+ "maxLength": 1024
49
+ }
50
+ },
51
+ "additionalProperties": false,
52
+ "required": [
53
+ "hubName",
54
+ "consumerGroup",
55
+ "connectionString"
56
+ ]
29
57
  },
30
58
  "googlePubSubConfig": {
31
59
  "type": "object",
@@ -5,11 +5,12 @@
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",
12
12
  "enum": [
13
+ "azureEventHub",
13
14
  "googlePubSub",
14
15
  "meridian",
15
16
  "mqtt",
@@ -25,7 +26,34 @@
25
26
  "type": "string",
26
27
  "minLength": 1,
27
28
  "maxLength": 1024
28
- }
29
+ },
30
+ "uniqueItems": true
31
+ },
32
+ "azureEventHubConfig": {
33
+ "type": "object",
34
+ "properties": {
35
+ "hubName": {
36
+ "type": "string",
37
+ "maxLength": 256,
38
+ "minLength": 1
39
+ },
40
+ "consumerGroup": {
41
+ "type": "string",
42
+ "maxLength": 256,
43
+ "minLength": 1
44
+ },
45
+ "connectionString": {
46
+ "type": "string",
47
+ "minLength": 1,
48
+ "maxLength": 1024
49
+ }
50
+ },
51
+ "additionalProperties": false,
52
+ "required": [
53
+ "hubName",
54
+ "consumerGroup",
55
+ "connectionString"
56
+ ]
29
57
  },
30
58
  "googlePubSubConfig": {
31
59
  "type": "object",
@@ -32,11 +32,12 @@
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",
39
39
  "enum": [
40
+ "azureEventHub",
40
41
  "googlePubSub",
41
42
  "meridian",
42
43
  "mqtt",
@@ -52,7 +53,34 @@
52
53
  "type": "string",
53
54
  "minLength": 1,
54
55
  "maxLength": 1024
55
- }
56
+ },
57
+ "uniqueItems": true
58
+ },
59
+ "azureEventHubConfig": {
60
+ "type": "object",
61
+ "properties": {
62
+ "hubName": {
63
+ "type": "string",
64
+ "maxLength": 256,
65
+ "minLength": 1
66
+ },
67
+ "consumerGroup": {
68
+ "type": "string",
69
+ "maxLength": 256,
70
+ "minLength": 1
71
+ },
72
+ "connectionString": {
73
+ "type": "string",
74
+ "minLength": 1,
75
+ "maxLength": 1024
76
+ }
77
+ },
78
+ "additionalProperties": false,
79
+ "required": [
80
+ "hubName",
81
+ "consumerGroup",
82
+ "connectionString"
83
+ ]
56
84
  },
57
85
  "googlePubSubConfig": {
58
86
  "type": "object",
data/schemas/me.json CHANGED
@@ -34,7 +34,6 @@
34
34
  },
35
35
  "lastName": {
36
36
  "type": "string",
37
- "minLength": 1,
38
37
  "maxLength": 1024
39
38
  },
40
39
  "companyName": {
@@ -78,7 +77,8 @@
78
77
  },
79
78
  "avatarUrl": {
80
79
  "type": "string",
81
- "format": "url"
80
+ "format": "uri",
81
+ "maxLength": 1024
82
82
  },
83
83
  "limits": {
84
84
  "type": "object",
data/schemas/mePatch.json CHANGED
@@ -14,7 +14,6 @@
14
14
  },
15
15
  "lastName": {
16
16
  "type": "string",
17
- "minLength": 1,
18
17
  "maxLength": 1024
19
18
  },
20
19
  "companyName": {
data/schemas/org.json CHANGED
@@ -43,7 +43,6 @@
43
43
  },
44
44
  "lastName": {
45
45
  "type": "string",
46
- "minLength": 1,
47
46
  "maxLength": 1024
48
47
  },
49
48
  "email": {
@@ -53,7 +52,8 @@
53
52
  },
54
53
  "avatarUrl": {
55
54
  "type": "string",
56
- "format": "url"
55
+ "format": "uri",
56
+ "maxLength": 1024
57
57
  },
58
58
  "role": {
59
59
  "type": "string",
data/schemas/orgs.json CHANGED
@@ -50,7 +50,6 @@
50
50
  },
51
51
  "lastName": {
52
52
  "type": "string",
53
- "minLength": 1,
54
53
  "maxLength": 1024
55
54
  },
56
55
  "email": {
@@ -60,7 +59,8 @@
60
59
  },
61
60
  "avatarUrl": {
62
61
  "type": "string",
63
- "format": "url"
62
+ "format": "uri",
63
+ "maxLength": 1024
64
64
  },
65
65
  "role": {
66
66
  "type": "string",