losant_rest 1.9.1 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/docs/_schemas.md +8502 -580
  5. data/docs/application.md +45 -3
  6. data/docs/applications.md +46 -0
  7. data/docs/experienceEndpoint.md +43 -0
  8. data/docs/experienceEndpoints.md +1 -1
  9. data/docs/experienceView.md +43 -0
  10. data/lib/losant_rest.rb +1 -1
  11. data/lib/losant_rest/application.rb +52 -4
  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_key.rb +1 -1
  19. data/lib/losant_rest/application_keys.rb +1 -1
  20. data/lib/losant_rest/applications.rb +1 -1
  21. data/lib/losant_rest/audit_log.rb +1 -1
  22. data/lib/losant_rest/audit_logs.rb +1 -1
  23. data/lib/losant_rest/auth.rb +1 -1
  24. data/lib/losant_rest/client.rb +3 -3
  25. data/lib/losant_rest/dashboard.rb +1 -1
  26. data/lib/losant_rest/dashboards.rb +1 -1
  27. data/lib/losant_rest/data.rb +1 -1
  28. data/lib/losant_rest/data_table.rb +1 -1
  29. data/lib/losant_rest/data_table_row.rb +1 -1
  30. data/lib/losant_rest/data_table_rows.rb +1 -1
  31. data/lib/losant_rest/data_tables.rb +1 -1
  32. data/lib/losant_rest/device.rb +1 -1
  33. data/lib/losant_rest/device_recipe.rb +1 -1
  34. data/lib/losant_rest/device_recipes.rb +1 -1
  35. data/lib/losant_rest/devices.rb +1 -1
  36. data/lib/losant_rest/edge_deployments.rb +1 -1
  37. data/lib/losant_rest/error.rb +1 -1
  38. data/lib/losant_rest/event.rb +1 -1
  39. data/lib/losant_rest/events.rb +1 -1
  40. data/lib/losant_rest/experience.rb +1 -1
  41. data/lib/losant_rest/experience_domain.rb +1 -1
  42. data/lib/losant_rest/experience_domains.rb +1 -1
  43. data/lib/losant_rest/experience_endpoint.rb +51 -1
  44. data/lib/losant_rest/experience_endpoints.rb +1 -1
  45. data/lib/losant_rest/experience_group.rb +1 -1
  46. data/lib/losant_rest/experience_groups.rb +1 -1
  47. data/lib/losant_rest/experience_slug.rb +1 -1
  48. data/lib/losant_rest/experience_slugs.rb +1 -1
  49. data/lib/losant_rest/experience_user.rb +1 -1
  50. data/lib/losant_rest/experience_users.rb +1 -1
  51. data/lib/losant_rest/experience_version.rb +1 -1
  52. data/lib/losant_rest/experience_versions.rb +1 -1
  53. data/lib/losant_rest/experience_view.rb +51 -1
  54. data/lib/losant_rest/experience_views.rb +1 -1
  55. data/lib/losant_rest/file.rb +1 -1
  56. data/lib/losant_rest/files.rb +1 -1
  57. data/lib/losant_rest/flow.rb +1 -1
  58. data/lib/losant_rest/flow_version.rb +1 -1
  59. data/lib/losant_rest/flow_versions.rb +1 -1
  60. data/lib/losant_rest/flows.rb +1 -1
  61. data/lib/losant_rest/integration.rb +1 -1
  62. data/lib/losant_rest/integrations.rb +1 -1
  63. data/lib/losant_rest/me.rb +1 -1
  64. data/lib/losant_rest/notebook.rb +1 -1
  65. data/lib/losant_rest/notebooks.rb +1 -1
  66. data/lib/losant_rest/org.rb +1 -1
  67. data/lib/losant_rest/org_invites.rb +1 -1
  68. data/lib/losant_rest/orgs.rb +1 -1
  69. data/lib/losant_rest/utils.rb +1 -1
  70. data/lib/losant_rest/version.rb +1 -1
  71. data/lib/losant_rest/webhook.rb +1 -1
  72. data/lib/losant_rest/webhooks.rb +1 -1
  73. data/schemas/application.json +3 -3
  74. data/schemas/applicationApiTokenPost.json +3 -0
  75. data/schemas/applicationCertificate.json +34 -0
  76. data/schemas/applicationCertificatePatch.json +34 -0
  77. data/schemas/applicationCertificatePost.json +34 -0
  78. data/schemas/applicationCertificates.json +34 -0
  79. data/schemas/{applicationCloneResult.json → applicationCreationByTemplateResult.json} +14 -6
  80. data/schemas/applicationExportPost.json +24 -0
  81. data/schemas/applicationExportResult.json +10 -0
  82. data/schemas/applicationKey.json +34 -0
  83. data/schemas/applicationKeyPatch.json +34 -0
  84. data/schemas/applicationKeyPost.json +34 -0
  85. data/schemas/applicationKeyPostResponse.json +34 -0
  86. data/schemas/applicationKeys.json +34 -0
  87. data/schemas/applicationPatch.json +3 -3
  88. data/schemas/applicationPost.json +3 -3
  89. data/schemas/applications.json +3 -3
  90. data/schemas/authedDevice.json +34 -0
  91. data/schemas/dashboard.json +76 -0
  92. data/schemas/dashboardPatch.json +76 -0
  93. data/schemas/dashboardPost.json +76 -0
  94. data/schemas/dashboards.json +76 -0
  95. data/schemas/experienceLinkedResources.json +6353 -0
  96. data/schemas/githubLogin.json +4 -0
  97. data/schemas/integration.json +4 -4
  98. data/schemas/integrationPatch.json +4 -4
  99. data/schemas/integrationPost.json +4 -4
  100. data/schemas/integrations.json +4 -4
  101. data/schemas/{applicationCloneEnqueued.json → jobEnqueuedResult.json} +0 -0
  102. data/schemas/notebook.json +198 -34
  103. data/schemas/notebookDataExportOptions.json +4 -0
  104. data/schemas/notebookExecutionLogs.json +4 -0
  105. data/schemas/notebookExecutionOptions.json +4 -0
  106. data/schemas/notebookPatch.json +198 -34
  107. data/schemas/notebookPost.json +198 -34
  108. data/schemas/notebooks.json +198 -34
  109. data/schemas/userCredentials.json +4 -0
  110. data/schemas/userPost.json +4 -0
  111. data/schemas/{validationCloneErrors.json → validationErrors.json} +9 -2
  112. metadata +9 -6
@@ -12,6 +12,40 @@
12
12
  "description": {
13
13
  "type": "string",
14
14
  "maxLength": 32767
15
+ },
16
+ "filterType": {
17
+ "oneOf": [
18
+ {
19
+ "type": "string",
20
+ "enum": [
21
+ "all",
22
+ "whitelist",
23
+ "blacklist"
24
+ ]
25
+ },
26
+ {
27
+ "type": "string",
28
+ "enum": [
29
+ "none"
30
+ ]
31
+ }
32
+ ]
33
+ },
34
+ "pubTopics": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string",
38
+ "minLength": 1,
39
+ "maxLength": 1024
40
+ }
41
+ },
42
+ "subTopics": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string",
46
+ "minLength": 1,
47
+ "maxLength": 1024
48
+ }
15
49
  }
16
50
  },
17
51
  "additionalProperties": false
@@ -32,6 +32,40 @@
32
32
  "description": {
33
33
  "type": "string",
34
34
  "maxLength": 32767
35
+ },
36
+ "filterType": {
37
+ "oneOf": [
38
+ {
39
+ "type": "string",
40
+ "enum": [
41
+ "all",
42
+ "whitelist",
43
+ "blacklist"
44
+ ]
45
+ },
46
+ {
47
+ "type": "string",
48
+ "enum": [
49
+ "none"
50
+ ]
51
+ }
52
+ ]
53
+ },
54
+ "pubTopics": {
55
+ "type": "array",
56
+ "items": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "maxLength": 1024
60
+ }
61
+ },
62
+ "subTopics": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "string",
66
+ "minLength": 1,
67
+ "maxLength": 1024
68
+ }
35
69
  }
36
70
  },
37
71
  "additionalProperties": false
@@ -65,6 +65,40 @@
65
65
  "description": {
66
66
  "type": "string",
67
67
  "maxLength": 32767
68
+ },
69
+ "filterType": {
70
+ "oneOf": [
71
+ {
72
+ "type": "string",
73
+ "enum": [
74
+ "all",
75
+ "whitelist",
76
+ "blacklist"
77
+ ]
78
+ },
79
+ {
80
+ "type": "string",
81
+ "enum": [
82
+ "none"
83
+ ]
84
+ }
85
+ ]
86
+ },
87
+ "pubTopics": {
88
+ "type": "array",
89
+ "items": {
90
+ "type": "string",
91
+ "minLength": 1,
92
+ "maxLength": 1024
93
+ }
94
+ },
95
+ "subTopics": {
96
+ "type": "array",
97
+ "items": {
98
+ "type": "string",
99
+ "minLength": 1,
100
+ "maxLength": 1024
101
+ }
68
102
  }
69
103
  }
70
104
  }
@@ -69,6 +69,40 @@
69
69
  "description": {
70
70
  "type": "string",
71
71
  "maxLength": 32767
72
+ },
73
+ "filterType": {
74
+ "oneOf": [
75
+ {
76
+ "type": "string",
77
+ "enum": [
78
+ "all",
79
+ "whitelist",
80
+ "blacklist"
81
+ ]
82
+ },
83
+ {
84
+ "type": "string",
85
+ "enum": [
86
+ "none"
87
+ ]
88
+ }
89
+ ]
90
+ },
91
+ "pubTopics": {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "string",
95
+ "minLength": 1,
96
+ "maxLength": 1024
97
+ }
98
+ },
99
+ "subTopics": {
100
+ "type": "array",
101
+ "items": {
102
+ "type": "string",
103
+ "minLength": 1,
104
+ "maxLength": 1024
105
+ }
72
106
  }
73
107
  }
74
108
  }
@@ -163,12 +163,12 @@
163
163
  },
164
164
  "accessKeyId": {
165
165
  "type": "string",
166
- "min": 16,
166
+ "min": 4,
167
167
  "max": 128
168
168
  },
169
169
  "secretAccessKey": {
170
170
  "type": "string",
171
- "min": 16,
171
+ "min": 4,
172
172
  "max": 128
173
173
  },
174
174
  "region": {
@@ -195,7 +195,7 @@
195
195
  "keyJson": {
196
196
  "type": "string",
197
197
  "maxLength": 32767,
198
- "minLength": 50
198
+ "minLength": 4
199
199
  },
200
200
  "bucket": {
201
201
  "type": "string",
@@ -138,12 +138,12 @@
138
138
  },
139
139
  "accessKeyId": {
140
140
  "type": "string",
141
- "min": 16,
141
+ "min": 4,
142
142
  "max": 128
143
143
  },
144
144
  "secretAccessKey": {
145
145
  "type": "string",
146
- "min": 16,
146
+ "min": 4,
147
147
  "max": 128
148
148
  },
149
149
  "region": {
@@ -170,7 +170,7 @@
170
170
  "keyJson": {
171
171
  "type": "string",
172
172
  "maxLength": 32767,
173
- "minLength": 50
173
+ "minLength": 4
174
174
  },
175
175
  "bucket": {
176
176
  "type": "string",
@@ -273,12 +273,12 @@
273
273
  },
274
274
  "accessKeyId": {
275
275
  "type": "string",
276
- "min": 16,
276
+ "min": 4,
277
277
  "max": 128
278
278
  },
279
279
  "secretAccessKey": {
280
280
  "type": "string",
281
- "min": 16,
281
+ "min": 4,
282
282
  "max": 128
283
283
  },
284
284
  "region": {
@@ -305,7 +305,7 @@
305
305
  "keyJson": {
306
306
  "type": "string",
307
307
  "maxLength": 32767,
308
- "minLength": 50
308
+ "minLength": 4
309
309
  },
310
310
  "bucket": {
311
311
  "type": "string",
@@ -31,6 +31,40 @@
31
31
  "user",
32
32
  "organization"
33
33
  ]
34
+ },
35
+ "filterType": {
36
+ "oneOf": [
37
+ {
38
+ "type": "string",
39
+ "enum": [
40
+ "all",
41
+ "whitelist",
42
+ "blacklist"
43
+ ]
44
+ },
45
+ {
46
+ "type": "string",
47
+ "enum": [
48
+ "none"
49
+ ]
50
+ }
51
+ ]
52
+ },
53
+ "pubTopics": {
54
+ "type": "array",
55
+ "items": {
56
+ "type": "string",
57
+ "minLength": 1,
58
+ "maxLength": 1024
59
+ }
60
+ },
61
+ "subTopics": {
62
+ "type": "array",
63
+ "items": {
64
+ "type": "string",
65
+ "minLength": 1,
66
+ "maxLength": 1024
67
+ }
34
68
  }
35
69
  },
36
70
  "required": [
@@ -817,6 +817,24 @@
817
817
  "config": {
818
818
  "type": "object",
819
819
  "properties": {
820
+ "additionalAttributes": {
821
+ "oneOf": [
822
+ {
823
+ "type": "null"
824
+ },
825
+ {
826
+ "type": "array",
827
+ "maxItems": 100,
828
+ "items": {
829
+ "type": "string",
830
+ "maxLength": 255
831
+ }
832
+ }
833
+ ]
834
+ },
835
+ "excludeConnectionInfo": {
836
+ "type": "boolean"
837
+ },
820
838
  "deviceLinkNewWindow": {
821
839
  "type": "boolean"
822
840
  },
@@ -842,6 +860,25 @@
842
860
  "showPublicFilter": {
843
861
  "type": "boolean"
844
862
  },
863
+ "sortField": {
864
+ "type": "string",
865
+ "enum": [
866
+ "id",
867
+ "creationDate",
868
+ "lastUpdated",
869
+ "name"
870
+ ]
871
+ },
872
+ "sortDirection": {
873
+ "type": "string",
874
+ "enum": [
875
+ "asc",
876
+ "desc",
877
+ "ASC",
878
+ "DESC",
879
+ ""
880
+ ]
881
+ },
845
882
  "filter": {
846
883
  "oneOf": [
847
884
  {
@@ -889,6 +926,45 @@
889
926
  "additionalProperties": false
890
927
  }
891
928
  ]
929
+ },
930
+ "columns": {
931
+ "type": "array",
932
+ "maxItems": 100,
933
+ "items": {
934
+ "type": "object",
935
+ "properties": {
936
+ "id": {
937
+ "type": "string",
938
+ "maxLength": 48
939
+ },
940
+ "type": {
941
+ "type": "string",
942
+ "enum": [
943
+ "id",
944
+ "connectionStatus",
945
+ "attribute",
946
+ "tag",
947
+ "name",
948
+ "custom",
949
+ "created",
950
+ "updated"
951
+ ]
952
+ },
953
+ "source": {
954
+ "type": "string",
955
+ "maxLength": 255
956
+ },
957
+ "headerTemplate": {
958
+ "type": "string",
959
+ "maxLength": 1024
960
+ },
961
+ "rowTemplate": {
962
+ "type": "string",
963
+ "maxLength": 32767
964
+ }
965
+ },
966
+ "additionalProperties": false
967
+ }
892
968
  }
893
969
  },
894
970
  "additionalProperties": false
@@ -699,6 +699,24 @@
699
699
  "config": {
700
700
  "type": "object",
701
701
  "properties": {
702
+ "additionalAttributes": {
703
+ "oneOf": [
704
+ {
705
+ "type": "null"
706
+ },
707
+ {
708
+ "type": "array",
709
+ "maxItems": 100,
710
+ "items": {
711
+ "type": "string",
712
+ "maxLength": 255
713
+ }
714
+ }
715
+ ]
716
+ },
717
+ "excludeConnectionInfo": {
718
+ "type": "boolean"
719
+ },
702
720
  "deviceLinkNewWindow": {
703
721
  "type": "boolean"
704
722
  },
@@ -724,6 +742,25 @@
724
742
  "showPublicFilter": {
725
743
  "type": "boolean"
726
744
  },
745
+ "sortField": {
746
+ "type": "string",
747
+ "enum": [
748
+ "id",
749
+ "creationDate",
750
+ "lastUpdated",
751
+ "name"
752
+ ]
753
+ },
754
+ "sortDirection": {
755
+ "type": "string",
756
+ "enum": [
757
+ "asc",
758
+ "desc",
759
+ "ASC",
760
+ "DESC",
761
+ ""
762
+ ]
763
+ },
727
764
  "filter": {
728
765
  "oneOf": [
729
766
  {
@@ -771,6 +808,45 @@
771
808
  "additionalProperties": false
772
809
  }
773
810
  ]
811
+ },
812
+ "columns": {
813
+ "type": "array",
814
+ "maxItems": 100,
815
+ "items": {
816
+ "type": "object",
817
+ "properties": {
818
+ "id": {
819
+ "type": "string",
820
+ "maxLength": 48
821
+ },
822
+ "type": {
823
+ "type": "string",
824
+ "enum": [
825
+ "id",
826
+ "connectionStatus",
827
+ "attribute",
828
+ "tag",
829
+ "name",
830
+ "custom",
831
+ "created",
832
+ "updated"
833
+ ]
834
+ },
835
+ "source": {
836
+ "type": "string",
837
+ "maxLength": 255
838
+ },
839
+ "headerTemplate": {
840
+ "type": "string",
841
+ "maxLength": 1024
842
+ },
843
+ "rowTemplate": {
844
+ "type": "string",
845
+ "maxLength": 32767
846
+ }
847
+ },
848
+ "additionalProperties": false
849
+ }
774
850
  }
775
851
  },
776
852
  "additionalProperties": false