losant_rest 1.22.4 → 1.23.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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +1623 -142
  3. data/docs/file.md +3 -3
  4. data/docs/files.md +2 -2
  5. data/docs/privateFile.md +222 -0
  6. data/docs/privateFiles.md +97 -0
  7. data/lib/platform_rest/client.rb +10 -2
  8. data/lib/platform_rest/file.rb +3 -3
  9. data/lib/platform_rest/files.rb +1 -1
  10. data/lib/platform_rest/private_file.rb +230 -0
  11. data/lib/platform_rest/private_files.rb +146 -0
  12. data/lib/platform_rest/version.rb +1 -1
  13. data/lib/platform_rest.rb +2 -0
  14. data/schemas/apiTokenPost.json +12 -2
  15. data/schemas/application.json +7 -0
  16. data/schemas/applicationClonePost.json +4 -0
  17. data/schemas/applicationCreationByTemplateResult.json +7 -0
  18. data/schemas/applicationDashboardPost.json +3 -1
  19. data/schemas/applicationExportPost.json +4 -0
  20. data/schemas/applicationImportExecutions.json +2 -0
  21. data/schemas/applicationPatch.json +4 -0
  22. data/schemas/applicationPost.json +4 -0
  23. data/schemas/applicationTemplate.json +3 -0
  24. data/schemas/applicationTemplates.json +3 -0
  25. data/schemas/applications.json +7 -0
  26. data/schemas/auditLog.json +1 -0
  27. data/schemas/auditLogFilter.json +1 -0
  28. data/schemas/auditLogs.json +1 -0
  29. data/schemas/credentialLinkedResources.json +18 -0
  30. data/schemas/dashboard.json +3 -1
  31. data/schemas/dashboardBlockSuggestCodePost.json +620 -0
  32. data/schemas/dashboardBlockSuggestCodeResponse.json +49 -0
  33. data/schemas/dashboardPatch.json +3 -1
  34. data/schemas/dashboardPost.json +3 -1
  35. data/schemas/dashboardUpdateEvents.json +25 -0
  36. data/schemas/dashboards.json +3 -1
  37. data/schemas/event.json +81 -0
  38. data/schemas/eventPatch.json +25 -0
  39. data/schemas/eventPlusNewCount.json +81 -0
  40. data/schemas/events.json +81 -0
  41. data/schemas/eventsExport.json +8 -0
  42. data/schemas/experienceLinkedResources.json +18 -0
  43. data/schemas/fileUploadPostResponse.json +103 -82
  44. data/schemas/files.json +1 -1
  45. data/schemas/flow.json +6 -0
  46. data/schemas/flowPatch.json +6 -0
  47. data/schemas/flowPost.json +6 -0
  48. data/schemas/flowVersion.json +12 -0
  49. data/schemas/flowVersionPost.json +6 -0
  50. data/schemas/flowVersions.json +12 -0
  51. data/schemas/flows.json +6 -0
  52. data/schemas/flowsImportPost.json +12 -0
  53. data/schemas/flowsImportResult.json +18 -0
  54. data/schemas/githubLogin.json +12 -2
  55. data/schemas/historicalSummaries.json +10 -0
  56. data/schemas/historicalSummary.json +10 -0
  57. data/schemas/importIntoApplicationOptions.json +1 -0
  58. data/schemas/importNewApplicationOptions.json +1 -0
  59. data/schemas/instance.json +7 -0
  60. data/schemas/instanceOrg.json +7 -0
  61. data/schemas/instanceOrgPatch.json +4 -0
  62. data/schemas/instanceOrgPost.json +4 -0
  63. data/schemas/instanceOrgs.json +7 -0
  64. data/schemas/instancePatch.json +4 -0
  65. data/schemas/instanceSandbox.json +6 -0
  66. data/schemas/instanceSandboxes.json +6 -0
  67. data/schemas/instances.json +7 -0
  68. data/schemas/me.json +6 -0
  69. data/schemas/notebook.json +17 -0
  70. data/schemas/notebookPatch.json +17 -0
  71. data/schemas/notebookPost.json +17 -0
  72. data/schemas/notebooks.json +17 -0
  73. data/schemas/org.json +7 -0
  74. data/schemas/orgs.json +7 -0
  75. data/schemas/samlResponse.json +12 -2
  76. data/schemas/suggestFunctionResponse.json +13 -1
  77. data/schemas/userCredentials.json +12 -2
  78. data/schemas/userPost.json +12 -2
  79. metadata +8 -2
@@ -22,6 +22,31 @@
22
22
  "resolved"
23
23
  ]
24
24
  },
25
+ "level": {
26
+ "type": "string",
27
+ "enum": [
28
+ "info",
29
+ "warning",
30
+ "error",
31
+ "critical"
32
+ ]
33
+ },
34
+ "subject": {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "maxLength": 255
38
+ },
39
+ "deviceId": {
40
+ "oneOf": [
41
+ {
42
+ "type": "string",
43
+ "pattern": "^[A-Fa-f\\d]{24}$"
44
+ },
45
+ {
46
+ "type": "null"
47
+ }
48
+ ]
49
+ },
25
50
  "comment": {
26
51
  "type": "string",
27
52
  "maxLength": 32767
@@ -1143,8 +1143,10 @@
1143
1143
  "vegaLite3",
1144
1144
  "vegaLite4",
1145
1145
  "vegaLite5",
1146
+ "vegaLite6",
1146
1147
  "vega4",
1147
- "vega5"
1148
+ "vega5",
1149
+ "vega6"
1148
1150
  ]
1149
1151
  },
1150
1152
  "tooltipEventSubscribe": {
data/schemas/event.json CHANGED
@@ -151,6 +151,87 @@
151
151
  ]
152
152
  }
153
153
  }
154
+ },
155
+ "levelChange": {
156
+ "type": "object",
157
+ "properties": {
158
+ "old": {
159
+ "type": "string",
160
+ "enum": [
161
+ "info",
162
+ "warning",
163
+ "error",
164
+ "critical"
165
+ ]
166
+ },
167
+ "new": {
168
+ "type": "string",
169
+ "enum": [
170
+ "info",
171
+ "warning",
172
+ "error",
173
+ "critical"
174
+ ]
175
+ }
176
+ }
177
+ },
178
+ "subjectChange": {
179
+ "type": "object",
180
+ "properties": {
181
+ "old": {
182
+ "type": "string",
183
+ "minLength": 1,
184
+ "maxLength": 255
185
+ },
186
+ "new": {
187
+ "type": "string",
188
+ "minLength": 1,
189
+ "maxLength": 255
190
+ }
191
+ }
192
+ },
193
+ "deviceIdChange": {
194
+ "type": "object",
195
+ "properties": {
196
+ "old": {
197
+ "type": "string",
198
+ "pattern": "^[A-Fa-f\\d]{24}$"
199
+ },
200
+ "oldDeviceName": {
201
+ "type": "string",
202
+ "minLength": 1,
203
+ "maxLength": 255
204
+ },
205
+ "new": {
206
+ "type": "string",
207
+ "pattern": "^[A-Fa-f\\d]{24}$"
208
+ },
209
+ "newDeviceName": {
210
+ "type": "string",
211
+ "minLength": 1,
212
+ "maxLength": 255
213
+ }
214
+ }
215
+ },
216
+ "tagsChange": {
217
+ "type": "object",
218
+ "patternProperties": {
219
+ "^[0-9a-zA-Z_-]{1,255}$": {
220
+ "type": "object",
221
+ "properties": {
222
+ "old": {
223
+ "type": "string",
224
+ "minLength": 1,
225
+ "maxLength": 255
226
+ },
227
+ "new": {
228
+ "type": "string",
229
+ "minLength": 1,
230
+ "maxLength": 255
231
+ }
232
+ }
233
+ }
234
+ }
154
235
  }
155
236
  }
156
237
  }
@@ -10,6 +10,31 @@
10
10
  "resolved"
11
11
  ]
12
12
  },
13
+ "level": {
14
+ "type": "string",
15
+ "enum": [
16
+ "info",
17
+ "warning",
18
+ "error",
19
+ "critical"
20
+ ]
21
+ },
22
+ "subject": {
23
+ "type": "string",
24
+ "minLength": 1,
25
+ "maxLength": 255
26
+ },
27
+ "deviceId": {
28
+ "oneOf": [
29
+ {
30
+ "type": "string",
31
+ "pattern": "^[A-Fa-f\\d]{24}$"
32
+ },
33
+ {
34
+ "type": "null"
35
+ }
36
+ ]
37
+ },
13
38
  "comment": {
14
39
  "type": "string",
15
40
  "maxLength": 32767
@@ -156,6 +156,87 @@
156
156
  ]
157
157
  }
158
158
  }
159
+ },
160
+ "levelChange": {
161
+ "type": "object",
162
+ "properties": {
163
+ "old": {
164
+ "type": "string",
165
+ "enum": [
166
+ "info",
167
+ "warning",
168
+ "error",
169
+ "critical"
170
+ ]
171
+ },
172
+ "new": {
173
+ "type": "string",
174
+ "enum": [
175
+ "info",
176
+ "warning",
177
+ "error",
178
+ "critical"
179
+ ]
180
+ }
181
+ }
182
+ },
183
+ "subjectChange": {
184
+ "type": "object",
185
+ "properties": {
186
+ "old": {
187
+ "type": "string",
188
+ "minLength": 1,
189
+ "maxLength": 255
190
+ },
191
+ "new": {
192
+ "type": "string",
193
+ "minLength": 1,
194
+ "maxLength": 255
195
+ }
196
+ }
197
+ },
198
+ "deviceIdChange": {
199
+ "type": "object",
200
+ "properties": {
201
+ "old": {
202
+ "type": "string",
203
+ "pattern": "^[A-Fa-f\\d]{24}$"
204
+ },
205
+ "oldDeviceName": {
206
+ "type": "string",
207
+ "minLength": 1,
208
+ "maxLength": 255
209
+ },
210
+ "new": {
211
+ "type": "string",
212
+ "pattern": "^[A-Fa-f\\d]{24}$"
213
+ },
214
+ "newDeviceName": {
215
+ "type": "string",
216
+ "minLength": 1,
217
+ "maxLength": 255
218
+ }
219
+ }
220
+ },
221
+ "tagsChange": {
222
+ "type": "object",
223
+ "patternProperties": {
224
+ "^[0-9a-zA-Z_-]{1,255}$": {
225
+ "type": "object",
226
+ "properties": {
227
+ "old": {
228
+ "type": "string",
229
+ "minLength": 1,
230
+ "maxLength": 255
231
+ },
232
+ "new": {
233
+ "type": "string",
234
+ "minLength": 1,
235
+ "maxLength": 255
236
+ }
237
+ }
238
+ }
239
+ }
159
240
  }
160
241
  }
161
242
  }
data/schemas/events.json CHANGED
@@ -158,6 +158,87 @@
158
158
  ]
159
159
  }
160
160
  }
161
+ },
162
+ "levelChange": {
163
+ "type": "object",
164
+ "properties": {
165
+ "old": {
166
+ "type": "string",
167
+ "enum": [
168
+ "info",
169
+ "warning",
170
+ "error",
171
+ "critical"
172
+ ]
173
+ },
174
+ "new": {
175
+ "type": "string",
176
+ "enum": [
177
+ "info",
178
+ "warning",
179
+ "error",
180
+ "critical"
181
+ ]
182
+ }
183
+ }
184
+ },
185
+ "subjectChange": {
186
+ "type": "object",
187
+ "properties": {
188
+ "old": {
189
+ "type": "string",
190
+ "minLength": 1,
191
+ "maxLength": 255
192
+ },
193
+ "new": {
194
+ "type": "string",
195
+ "minLength": 1,
196
+ "maxLength": 255
197
+ }
198
+ }
199
+ },
200
+ "deviceIdChange": {
201
+ "type": "object",
202
+ "properties": {
203
+ "old": {
204
+ "type": "string",
205
+ "pattern": "^[A-Fa-f\\d]{24}$"
206
+ },
207
+ "oldDeviceName": {
208
+ "type": "string",
209
+ "minLength": 1,
210
+ "maxLength": 255
211
+ },
212
+ "new": {
213
+ "type": "string",
214
+ "pattern": "^[A-Fa-f\\d]{24}$"
215
+ },
216
+ "newDeviceName": {
217
+ "type": "string",
218
+ "minLength": 1,
219
+ "maxLength": 255
220
+ }
221
+ }
222
+ },
223
+ "tagsChange": {
224
+ "type": "object",
225
+ "patternProperties": {
226
+ "^[0-9a-zA-Z_-]{1,255}$": {
227
+ "type": "object",
228
+ "properties": {
229
+ "old": {
230
+ "type": "string",
231
+ "minLength": 1,
232
+ "maxLength": 255
233
+ },
234
+ "new": {
235
+ "type": "string",
236
+ "minLength": 1,
237
+ "maxLength": 255
238
+ }
239
+ }
240
+ }
241
+ }
161
242
  }
162
243
  }
163
244
  }
@@ -1628,6 +1628,14 @@
1628
1628
  }
1629
1629
  },
1630
1630
  "additionalProperties": false
1631
+ },
1632
+ "format": {
1633
+ "type": "string",
1634
+ "enum": [
1635
+ "csv",
1636
+ "json"
1637
+ ],
1638
+ "default": "csv"
1631
1639
  }
1632
1640
  },
1633
1641
  "additionalProperties": false
@@ -523,6 +523,12 @@
523
523
  },
524
524
  "update": {
525
525
  "type": "boolean"
526
+ },
527
+ "public": {
528
+ "type": "boolean"
529
+ },
530
+ "private": {
531
+ "type": "boolean"
526
532
  }
527
533
  },
528
534
  "additionalProperties": false
@@ -3654,6 +3660,12 @@
3654
3660
  },
3655
3661
  "update": {
3656
3662
  "type": "boolean"
3663
+ },
3664
+ "public": {
3665
+ "type": "boolean"
3666
+ },
3667
+ "private": {
3668
+ "type": "boolean"
3657
3669
  }
3658
3670
  },
3659
3671
  "additionalProperties": false
@@ -6694,6 +6706,12 @@
6694
6706
  },
6695
6707
  "update": {
6696
6708
  "type": "boolean"
6709
+ },
6710
+ "public": {
6711
+ "type": "boolean"
6712
+ },
6713
+ "private": {
6714
+ "type": "boolean"
6697
6715
  }
6698
6716
  },
6699
6717
  "additionalProperties": false
@@ -1,103 +1,124 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "properties": {
5
- "id": {
6
- "type": "string",
7
- "pattern": "^[A-Fa-f\\d]{24}$"
8
- },
9
- "applicationId": {
10
- "type": "string",
11
- "pattern": "^[A-Fa-f\\d]{24}$"
12
- },
13
- "creationDate": {
14
- "type": "string",
15
- "format": "date-time"
16
- },
17
- "lastUpdated": {
18
- "type": "string",
19
- "format": "date-time"
20
- },
21
- "authorId": {
22
- "type": "string",
23
- "pattern": "^[A-Fa-f\\d]{24}$"
24
- },
25
- "authorType": {
26
- "type": "string",
27
- "enum": [
28
- "flow",
29
- "user",
30
- "device",
31
- "apiToken",
32
- "notebook"
33
- ]
34
- },
35
- "status": {
36
- "type": "string",
37
- "enum": [
38
- "pending",
39
- "moving",
40
- "deleting",
41
- "completed"
42
- ]
43
- },
44
- "name": {
45
- "type": "string",
46
- "minLength": 1,
47
- "maxLength": 1024
48
- },
49
- "parentDirectory": {
50
- "type": "string",
51
- "maxLength": 1024
52
- },
53
- "type": {
54
- "type": "string",
55
- "enum": [
56
- "file",
57
- "directory"
58
- ]
59
- },
60
- "fileSize": {
61
- "type": "number"
62
- },
63
- "contentType": {
64
- "type": "string",
65
- "maxLength": 1024
66
- },
67
- "fileDimensions": {
3
+ "allOf": [
4
+ {
5
+ "title": "File Schema",
6
+ "description": "Schema for a single public or private file",
68
7
  "type": "object",
69
8
  "properties": {
70
- "width": {
71
- "type": "number"
9
+ "id": {
10
+ "type": "string",
11
+ "pattern": "^[A-Fa-f\\d]{24}$"
12
+ },
13
+ "applicationId": {
14
+ "type": "string",
15
+ "pattern": "^[A-Fa-f\\d]{24}$"
16
+ },
17
+ "creationDate": {
18
+ "type": "string",
19
+ "format": "date-time"
20
+ },
21
+ "lastUpdated": {
22
+ "type": "string",
23
+ "format": "date-time"
24
+ },
25
+ "authorId": {
26
+ "type": "string",
27
+ "pattern": "^[A-Fa-f\\d]{24}$"
28
+ },
29
+ "authorType": {
30
+ "type": "string",
31
+ "enum": [
32
+ "flow",
33
+ "user",
34
+ "device",
35
+ "apiToken",
36
+ "notebook"
37
+ ]
38
+ },
39
+ "status": {
40
+ "type": "string",
41
+ "enum": [
42
+ "pending",
43
+ "moving",
44
+ "deleting",
45
+ "completed"
46
+ ]
47
+ },
48
+ "name": {
49
+ "type": "string",
50
+ "minLength": 1,
51
+ "maxLength": 1024
52
+ },
53
+ "parentDirectory": {
54
+ "type": "string",
55
+ "maxLength": 1024
72
56
  },
73
- "height": {
57
+ "type": {
58
+ "type": "string",
59
+ "enum": [
60
+ "file",
61
+ "directory"
62
+ ]
63
+ },
64
+ "fileSize": {
74
65
  "type": "number"
66
+ },
67
+ "s3etag": {
68
+ "type": "string"
69
+ },
70
+ "contentType": {
71
+ "type": "string",
72
+ "maxLength": 1024
73
+ },
74
+ "fileDimensions": {
75
+ "type": "object",
76
+ "properties": {
77
+ "width": {
78
+ "type": "number"
79
+ },
80
+ "height": {
81
+ "type": "number"
82
+ }
83
+ }
84
+ },
85
+ "moveIntoId": {
86
+ "type": "string",
87
+ "pattern": "^[A-Fa-f\\d]{24}$"
88
+ },
89
+ "url": {
90
+ "type": "string"
75
91
  }
76
92
  }
77
93
  },
78
- "upload": {
94
+ {
79
95
  "type": "object",
80
96
  "properties": {
81
- "url": {
82
- "type": "string"
83
- },
84
- "fields": {
97
+ "upload": {
85
98
  "type": "object",
86
- "patternProperties": {
87
- "^.*$": {
88
- "type": "string"
89
- }
90
- },
91
99
  "properties": {
92
- "key": {
100
+ "url": {
93
101
  "type": "string"
94
102
  },
95
- "bucket": {
96
- "type": "string"
103
+ "fields": {
104
+ "type": "object",
105
+ "patternProperties": {
106
+ "^.*$": {
107
+ "type": "string"
108
+ }
109
+ },
110
+ "properties": {
111
+ "key": {
112
+ "type": "string"
113
+ },
114
+ "bucket": {
115
+ "type": "string"
116
+ }
117
+ }
97
118
  }
98
119
  }
99
120
  }
100
121
  }
101
122
  }
102
- }
123
+ ]
103
124
  }
data/schemas/files.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "type": "array",
7
7
  "items": {
8
8
  "title": "File Schema",
9
- "description": "Schema for a single file",
9
+ "description": "Schema for a single public or private file",
10
10
  "type": "object",
11
11
  "properties": {
12
12
  "id": {
data/schemas/flow.json CHANGED
@@ -127,6 +127,12 @@
127
127
  },
128
128
  "update": {
129
129
  "type": "boolean"
130
+ },
131
+ "public": {
132
+ "type": "boolean"
133
+ },
134
+ "private": {
135
+ "type": "boolean"
130
136
  }
131
137
  },
132
138
  "additionalProperties": false
@@ -84,6 +84,12 @@
84
84
  },
85
85
  "update": {
86
86
  "type": "boolean"
87
+ },
88
+ "public": {
89
+ "type": "boolean"
90
+ },
91
+ "private": {
92
+ "type": "boolean"
87
93
  }
88
94
  },
89
95
  "additionalProperties": false
@@ -73,6 +73,12 @@
73
73
  },
74
74
  "update": {
75
75
  "type": "boolean"
76
+ },
77
+ "public": {
78
+ "type": "boolean"
79
+ },
80
+ "private": {
81
+ "type": "boolean"
76
82
  }
77
83
  },
78
84
  "additionalProperties": false
@@ -102,6 +102,12 @@
102
102
  },
103
103
  "update": {
104
104
  "type": "boolean"
105
+ },
106
+ "public": {
107
+ "type": "boolean"
108
+ },
109
+ "private": {
110
+ "type": "boolean"
105
111
  }
106
112
  },
107
113
  "additionalProperties": false
@@ -3142,6 +3148,12 @@
3142
3148
  },
3143
3149
  "update": {
3144
3150
  "type": "boolean"
3151
+ },
3152
+ "public": {
3153
+ "type": "boolean"
3154
+ },
3155
+ "private": {
3156
+ "type": "boolean"
3145
3157
  }
3146
3158
  },
3147
3159
  "additionalProperties": false