losant_rest 1.15.2 → 1.16.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +7912 -2208
  3. data/docs/application.md +3 -4
  4. data/docs/applicationDashboard.md +43 -0
  5. data/docs/applications.md +3 -2
  6. data/docs/flows.md +38 -0
  7. data/docs/instanceCustomNode.md +222 -0
  8. data/docs/instanceCustomNodes.md +91 -0
  9. data/docs/instanceSandbox.md +135 -0
  10. data/docs/instanceSandboxes.md +53 -0
  11. data/lib/losant_rest/application_dashboard.rb +49 -0
  12. data/lib/losant_rest/client.rb +18 -2
  13. data/lib/losant_rest/flows.rb +44 -0
  14. data/lib/losant_rest/instance_custom_node.rb +282 -0
  15. data/lib/losant_rest/instance_custom_nodes.rb +136 -0
  16. data/lib/losant_rest/instance_sandbox.rb +181 -0
  17. data/lib/losant_rest/instance_sandboxes.rb +94 -0
  18. data/lib/losant_rest/version.rb +1 -1
  19. data/lib/losant_rest.rb +4 -0
  20. data/schemas/apiTokenPost.json +18 -1
  21. data/schemas/application.json +1 -1
  22. data/schemas/applicationApplyTemplatePatch.json +5 -0
  23. data/schemas/applicationClonePost.json +5 -0
  24. data/schemas/applicationCreationByTemplateResult.json +1 -1
  25. data/schemas/applicationDashboardPost.json +165 -3
  26. data/schemas/applicationExportPost.json +5 -0
  27. data/schemas/applicationImportOptions.json +43 -0
  28. data/schemas/applicationPatch.json +1 -1
  29. data/schemas/applicationPost.json +1 -1
  30. data/schemas/applicationSearchResult.json +2 -1
  31. data/schemas/applicationTemplateCategories.json +11 -0
  32. data/schemas/applicationTemplateCategory.json +11 -0
  33. data/schemas/applications.json +1 -1
  34. data/schemas/dashboard.json +165 -3
  35. data/schemas/dashboardPatch.json +165 -3
  36. data/schemas/dashboardPost.json +165 -3
  37. data/schemas/dashboardSendReport.json +23 -3
  38. data/schemas/dashboards.json +165 -3
  39. data/schemas/dataExport.json +1 -0
  40. data/schemas/devicesDeletePost.json +5 -0
  41. data/schemas/devicesExportPayloadCountPost.json +1 -0
  42. data/schemas/devicesExportPost.json +1 -0
  43. data/schemas/devicesPatch.json +5 -0
  44. data/schemas/embeddedDeploymentExport.json +5 -0
  45. data/schemas/eventsExport.json +1 -0
  46. data/schemas/experienceBootstrapOptions.json +1 -1
  47. data/schemas/experienceLinkedResources.json +20 -5
  48. data/schemas/experienceSlug.json +1 -1
  49. data/schemas/experienceSlugPatch.json +1 -1
  50. data/schemas/experienceSlugPost.json +1 -1
  51. data/schemas/experienceSlugs.json +1 -1
  52. data/schemas/experienceUser.json +2 -1
  53. data/schemas/experienceUsers.json +2 -1
  54. data/schemas/flow.json +18 -0
  55. data/schemas/flowPatch.json +19 -0
  56. data/schemas/flowPost.json +19 -0
  57. data/schemas/flowVersion.json +2 -5
  58. data/schemas/flowVersionPost.json +1 -0
  59. data/schemas/flowVersions.json +2 -5
  60. data/schemas/flowVersionsDeletePost.json +5 -0
  61. data/schemas/flows.json +18 -0
  62. data/schemas/flowsImportPost.json +29 -2
  63. data/schemas/flowsImportResult.json +20 -5
  64. data/schemas/githubLogin.json +18 -1
  65. data/schemas/importIntoApplicationOptions.json +52 -0
  66. data/schemas/importNewApplicationOptions.json +44 -0
  67. data/schemas/instance.json +1 -0
  68. data/schemas/instanceCustomNode.json +589 -0
  69. data/schemas/instanceCustomNodePatch.json +674 -0
  70. data/schemas/instanceCustomNodePost.json +679 -0
  71. data/schemas/instanceCustomNodes.json +634 -0
  72. data/schemas/instanceMember.json +2 -1
  73. data/schemas/instanceMembers.json +2 -1
  74. data/schemas/instanceOrg.json +38 -0
  75. data/schemas/instanceOrgMember.json +2 -1
  76. data/schemas/instanceOrgPatch.json +29 -0
  77. data/schemas/instanceOrgPost.json +29 -0
  78. data/schemas/instanceOrgs.json +38 -0
  79. data/schemas/instancePatch.json +1 -0
  80. data/schemas/instanceReportOptionsPost.json +1 -0
  81. data/schemas/instanceSandbox.json +423 -0
  82. data/schemas/instanceSandboxes.json +48 -0
  83. data/schemas/integration.json +29 -1
  84. data/schemas/integrationPatch.json +29 -1
  85. data/schemas/integrationPost.json +29 -1
  86. data/schemas/integrations.json +29 -1
  87. data/schemas/me.json +2 -1
  88. data/schemas/notebookDataExportOptions.json +5 -0
  89. data/schemas/org.json +19 -1
  90. data/schemas/orgs.json +19 -1
  91. data/schemas/paletteResponse.json +785 -0
  92. data/schemas/userCredentials.json +18 -1
  93. data/schemas/userPost.json +18 -1
  94. metadata +20 -2
@@ -25,10 +25,35 @@
25
25
  "type": "string",
26
26
  "maxLength": 32767
27
27
  },
28
+ "shortDescription": {
29
+ "type": "string",
30
+ "maxLength": 1024
31
+ },
28
32
  "iconData": {
33
+ "oneOf": [
34
+ {
35
+ "type": "string",
36
+ "maxLength": 32767,
37
+ "pattern": "^data:image/(jpg|jpeg|png|svg\\+xml);base64,[0-9a-zA-Z+/=]*$"
38
+ },
39
+ {
40
+ "type": "null"
41
+ }
42
+ ]
43
+ },
44
+ "docsUrl": {
45
+ "type": "string",
46
+ "maxLength": 1024
47
+ },
48
+ "category": {
29
49
  "type": "string",
30
- "maxLength": 32767,
31
- "pattern": "^data:image/(jpg|jpeg|png|svg\\+xml);base64,[0-9a-zA-Z+/=]*$"
50
+ "enum": [
51
+ "data",
52
+ "experience",
53
+ "logic",
54
+ "output",
55
+ ""
56
+ ]
32
57
  },
33
58
  "enabled": {
34
59
  "type": "boolean"
@@ -84,6 +109,7 @@
84
109
  "deviceIdsTagsDisconnect",
85
110
  "eeaInit",
86
111
  "flowError",
112
+ "azureEventHub",
87
113
  "googlePubSub",
88
114
  "meridian",
89
115
  "mqtt",
@@ -2654,6 +2680,7 @@
2654
2680
  "deviceIdsTagsDisconnect",
2655
2681
  "eeaInit",
2656
2682
  "flowError",
2683
+ "azureEventHub",
2657
2684
  "googlePubSub",
2658
2685
  "meridian",
2659
2686
  "mqtt",
@@ -39,11 +39,28 @@
39
39
  "type": "string",
40
40
  "maxLength": 32767
41
41
  },
42
+ "shortDescription": {
43
+ "type": "string",
44
+ "maxLength": 1024
45
+ },
42
46
  "iconData": {
43
47
  "type": "string",
44
48
  "maxLength": 32767,
45
49
  "pattern": "^data:image/(jpg|jpeg|png|svg\\+xml);base64,[0-9a-zA-Z+/=]*$"
46
50
  },
51
+ "docsUrl": {
52
+ "type": "string",
53
+ "maxLength": 1024
54
+ },
55
+ "category": {
56
+ "type": "string",
57
+ "enum": [
58
+ "data",
59
+ "experience",
60
+ "logic",
61
+ "output"
62
+ ]
63
+ },
47
64
  "enabled": {
48
65
  "type": "boolean"
49
66
  },
@@ -116,6 +133,7 @@
116
133
  "deviceIdsTagsDisconnect",
117
134
  "eeaInit",
118
135
  "flowError",
136
+ "azureEventHub",
119
137
  "googlePubSub",
120
138
  "meridian",
121
139
  "mqtt",
@@ -2704,6 +2722,7 @@
2704
2722
  "deviceIdsTagsDisconnect",
2705
2723
  "eeaInit",
2706
2724
  "flowError",
2725
+ "azureEventHub",
2707
2726
  "googlePubSub",
2708
2727
  "meridian",
2709
2728
  "mqtt",
@@ -5219,11 +5238,6 @@
5219
5238
  "type": "string",
5220
5239
  "maxLength": 32767
5221
5240
  },
5222
- "iconData": {
5223
- "type": "string",
5224
- "maxLength": 32767,
5225
- "pattern": "^data:image/(jpg|jpeg|png|svg\\+xml);base64,[0-9a-zA-Z+/=]*$"
5226
- },
5227
5241
  "flowClass": {
5228
5242
  "type": "string",
5229
5243
  "enum": [
@@ -5292,6 +5306,7 @@
5292
5306
  "deviceIdsTagsDisconnect",
5293
5307
  "eeaInit",
5294
5308
  "flowError",
5309
+ "azureEventHub",
5295
5310
  "googlePubSub",
5296
5311
  "meridian",
5297
5312
  "mqtt",
@@ -108,6 +108,7 @@
108
108
  "applicationCertificateAuthorities.post",
109
109
  "applicationDashboard.get",
110
110
  "applicationDashboard.patch",
111
+ "applicationDashboard.sendReport",
111
112
  "applicationDashboard.delete",
112
113
  "applicationDashboards.get",
113
114
  "applicationDashboards.post",
@@ -257,6 +258,7 @@
257
258
  "flows.get",
258
259
  "flows.getByVersion",
259
260
  "flows.import",
261
+ "flows.palette",
260
262
  "flows.post",
261
263
  "flowVersion.delete",
262
264
  "flowVersion.errors",
@@ -371,7 +373,22 @@
371
373
  "instanceApiToken.*",
372
374
  "instanceApiToken.get",
373
375
  "instanceApiToken.patch",
374
- "instanceApiToken.delete"
376
+ "instanceApiToken.delete",
377
+ "instanceCustomNodes.*",
378
+ "instanceCustomNodes.get",
379
+ "instanceCustomNodes.post",
380
+ "instanceCustomNode.*",
381
+ "instanceCustomNode.get",
382
+ "instanceCustomNode.patch",
383
+ "instanceCustomNode.delete",
384
+ "instanceCustomNode.errors",
385
+ "instanceCustomNode.stats",
386
+ "instanceSandbox.*",
387
+ "instanceSandbox.get",
388
+ "instanceSandbox.delete",
389
+ "instanceSandbox.undelete",
390
+ "instanceSandboxes.*",
391
+ "instanceSandboxes.get"
375
392
  ]
376
393
  },
377
394
  {
@@ -0,0 +1,52 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "importUrl": {
6
+ "type": "string",
7
+ "format": "uri",
8
+ "maxLength": 1024
9
+ },
10
+ "callbackUrl": {
11
+ "type": "string",
12
+ "format": "uri",
13
+ "maxLength": 1024
14
+ },
15
+ "conflictBehavior": {
16
+ "type": "string",
17
+ "enum": [
18
+ "create",
19
+ "error"
20
+ ],
21
+ "default": "create"
22
+ },
23
+ "include": {
24
+ "type": "array",
25
+ "items": {
26
+ "enum": [
27
+ "ApplicationCertificateAuthority",
28
+ "Dashboard",
29
+ "DataTableRow",
30
+ "DataTable",
31
+ "DeviceRecipe",
32
+ "Device",
33
+ "ExperienceDevelopConfig",
34
+ "ExperienceEndpoint",
35
+ "ExperienceFlowVersion",
36
+ "ExperienceGroup",
37
+ "ExperienceUser",
38
+ "ExperienceVersion",
39
+ "ExperienceView",
40
+ "File",
41
+ "FlowVersion",
42
+ "Flow",
43
+ "Integration",
44
+ "Notebook",
45
+ "Webhook"
46
+ ]
47
+ },
48
+ "uniqueItems": true
49
+ }
50
+ },
51
+ "additionalProperties": false
52
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "importUrl": {
6
+ "type": "string",
7
+ "format": "uri",
8
+ "maxLength": 1024
9
+ },
10
+ "callbackUrl": {
11
+ "type": "string",
12
+ "format": "uri",
13
+ "maxLength": 1024
14
+ },
15
+ "include": {
16
+ "type": "array",
17
+ "items": {
18
+ "enum": [
19
+ "ApplicationCertificateAuthority",
20
+ "Dashboard",
21
+ "DataTableRow",
22
+ "DataTable",
23
+ "DeviceRecipe",
24
+ "Device",
25
+ "ExperienceDevelopConfig",
26
+ "ExperienceEndpoint",
27
+ "ExperienceFlowVersion",
28
+ "ExperienceGroup",
29
+ "ExperienceUser",
30
+ "ExperienceVersion",
31
+ "ExperienceView",
32
+ "File",
33
+ "FlowVersion",
34
+ "Flow",
35
+ "Integration",
36
+ "Notebook",
37
+ "Webhook"
38
+ ]
39
+ },
40
+ "uniqueItems": true
41
+ }
42
+ },
43
+ "additionalProperties": false
44
+ }
@@ -55,6 +55,7 @@
55
55
  },
56
56
  "callbackUrl": {
57
57
  "type": "string",
58
+ "format": "uri",
58
59
  "maxLength": 1024
59
60
  },
60
61
  "resourceGroupBy": {