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.
- checksums.yaml +5 -5
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/docs/_schemas.md +8502 -580
- data/docs/application.md +45 -3
- data/docs/applications.md +46 -0
- data/docs/experienceEndpoint.md +43 -0
- data/docs/experienceEndpoints.md +1 -1
- data/docs/experienceView.md +43 -0
- data/lib/losant_rest.rb +1 -1
- data/lib/losant_rest/application.rb +52 -4
- data/lib/losant_rest/application_api_token.rb +1 -1
- data/lib/losant_rest/application_api_tokens.rb +1 -1
- data/lib/losant_rest/application_certificate.rb +1 -1
- data/lib/losant_rest/application_certificate_authorities.rb +1 -1
- data/lib/losant_rest/application_certificate_authority.rb +1 -1
- data/lib/losant_rest/application_certificates.rb +1 -1
- data/lib/losant_rest/application_key.rb +1 -1
- data/lib/losant_rest/application_keys.rb +1 -1
- data/lib/losant_rest/applications.rb +1 -1
- data/lib/losant_rest/audit_log.rb +1 -1
- data/lib/losant_rest/audit_logs.rb +1 -1
- data/lib/losant_rest/auth.rb +1 -1
- data/lib/losant_rest/client.rb +3 -3
- data/lib/losant_rest/dashboard.rb +1 -1
- data/lib/losant_rest/dashboards.rb +1 -1
- data/lib/losant_rest/data.rb +1 -1
- data/lib/losant_rest/data_table.rb +1 -1
- data/lib/losant_rest/data_table_row.rb +1 -1
- data/lib/losant_rest/data_table_rows.rb +1 -1
- data/lib/losant_rest/data_tables.rb +1 -1
- data/lib/losant_rest/device.rb +1 -1
- data/lib/losant_rest/device_recipe.rb +1 -1
- data/lib/losant_rest/device_recipes.rb +1 -1
- data/lib/losant_rest/devices.rb +1 -1
- data/lib/losant_rest/edge_deployments.rb +1 -1
- data/lib/losant_rest/error.rb +1 -1
- data/lib/losant_rest/event.rb +1 -1
- data/lib/losant_rest/events.rb +1 -1
- data/lib/losant_rest/experience.rb +1 -1
- data/lib/losant_rest/experience_domain.rb +1 -1
- data/lib/losant_rest/experience_domains.rb +1 -1
- data/lib/losant_rest/experience_endpoint.rb +51 -1
- data/lib/losant_rest/experience_endpoints.rb +1 -1
- data/lib/losant_rest/experience_group.rb +1 -1
- data/lib/losant_rest/experience_groups.rb +1 -1
- data/lib/losant_rest/experience_slug.rb +1 -1
- data/lib/losant_rest/experience_slugs.rb +1 -1
- data/lib/losant_rest/experience_user.rb +1 -1
- data/lib/losant_rest/experience_users.rb +1 -1
- data/lib/losant_rest/experience_version.rb +1 -1
- data/lib/losant_rest/experience_versions.rb +1 -1
- data/lib/losant_rest/experience_view.rb +51 -1
- data/lib/losant_rest/experience_views.rb +1 -1
- data/lib/losant_rest/file.rb +1 -1
- data/lib/losant_rest/files.rb +1 -1
- data/lib/losant_rest/flow.rb +1 -1
- data/lib/losant_rest/flow_version.rb +1 -1
- data/lib/losant_rest/flow_versions.rb +1 -1
- data/lib/losant_rest/flows.rb +1 -1
- data/lib/losant_rest/integration.rb +1 -1
- data/lib/losant_rest/integrations.rb +1 -1
- data/lib/losant_rest/me.rb +1 -1
- data/lib/losant_rest/notebook.rb +1 -1
- data/lib/losant_rest/notebooks.rb +1 -1
- data/lib/losant_rest/org.rb +1 -1
- data/lib/losant_rest/org_invites.rb +1 -1
- data/lib/losant_rest/orgs.rb +1 -1
- data/lib/losant_rest/utils.rb +1 -1
- data/lib/losant_rest/version.rb +1 -1
- data/lib/losant_rest/webhook.rb +1 -1
- data/lib/losant_rest/webhooks.rb +1 -1
- data/schemas/application.json +3 -3
- data/schemas/applicationApiTokenPost.json +3 -0
- data/schemas/applicationCertificate.json +34 -0
- data/schemas/applicationCertificatePatch.json +34 -0
- data/schemas/applicationCertificatePost.json +34 -0
- data/schemas/applicationCertificates.json +34 -0
- data/schemas/{applicationCloneResult.json → applicationCreationByTemplateResult.json} +14 -6
- data/schemas/applicationExportPost.json +24 -0
- data/schemas/applicationExportResult.json +10 -0
- data/schemas/applicationKey.json +34 -0
- data/schemas/applicationKeyPatch.json +34 -0
- data/schemas/applicationKeyPost.json +34 -0
- data/schemas/applicationKeyPostResponse.json +34 -0
- data/schemas/applicationKeys.json +34 -0
- data/schemas/applicationPatch.json +3 -3
- data/schemas/applicationPost.json +3 -3
- data/schemas/applications.json +3 -3
- data/schemas/authedDevice.json +34 -0
- data/schemas/dashboard.json +76 -0
- data/schemas/dashboardPatch.json +76 -0
- data/schemas/dashboardPost.json +76 -0
- data/schemas/dashboards.json +76 -0
- data/schemas/experienceLinkedResources.json +6353 -0
- data/schemas/githubLogin.json +4 -0
- data/schemas/integration.json +4 -4
- data/schemas/integrationPatch.json +4 -4
- data/schemas/integrationPost.json +4 -4
- data/schemas/integrations.json +4 -4
- data/schemas/{applicationCloneEnqueued.json → jobEnqueuedResult.json} +0 -0
- data/schemas/notebook.json +198 -34
- data/schemas/notebookDataExportOptions.json +4 -0
- data/schemas/notebookExecutionLogs.json +4 -0
- data/schemas/notebookExecutionOptions.json +4 -0
- data/schemas/notebookPatch.json +198 -34
- data/schemas/notebookPost.json +198 -34
- data/schemas/notebooks.json +198 -34
- data/schemas/userCredentials.json +4 -0
- data/schemas/userPost.json +4 -0
- data/schemas/{validationCloneErrors.json → validationErrors.json} +9 -2
- metadata +9 -6
data/lib/losant_rest/flows.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2020 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2020 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2020 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/me.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2020 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/notebook.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2020 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2020 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/org.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2020 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2020 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/orgs.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2020 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/utils.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2020 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/version.rb
CHANGED
data/lib/losant_rest/webhook.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2020 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/losant_rest/webhooks.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c)
|
3
|
+
# Copyright (c) 2020 Losant IoT, Inc.
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/schemas/application.json
CHANGED
@@ -266,12 +266,12 @@
|
|
266
266
|
},
|
267
267
|
"accessKeyId": {
|
268
268
|
"type": "string",
|
269
|
-
"min":
|
269
|
+
"min": 4,
|
270
270
|
"max": 128
|
271
271
|
},
|
272
272
|
"secretAccessKey": {
|
273
273
|
"type": "string",
|
274
|
-
"min":
|
274
|
+
"min": 4,
|
275
275
|
"max": 128
|
276
276
|
},
|
277
277
|
"region": {
|
@@ -298,7 +298,7 @@
|
|
298
298
|
"keyJson": {
|
299
299
|
"type": "string",
|
300
300
|
"maxLength": 32767,
|
301
|
-
"minLength":
|
301
|
+
"minLength": 4
|
302
302
|
},
|
303
303
|
"bucket": {
|
304
304
|
"type": "string",
|
@@ -76,6 +76,7 @@
|
|
76
76
|
"application.archiveData",
|
77
77
|
"application.backfillArchiveData",
|
78
78
|
"application.clone",
|
79
|
+
"application.export",
|
79
80
|
"application.fullEventsArchive",
|
80
81
|
"application.fullDataTablesArchive",
|
81
82
|
"application.debug",
|
@@ -174,6 +175,7 @@
|
|
174
175
|
"experienceDomains.post",
|
175
176
|
"experienceEndpoint.delete",
|
176
177
|
"experienceEndpoint.get",
|
178
|
+
"experienceEndpoint.linkedResources",
|
177
179
|
"experienceEndpoint.patch",
|
178
180
|
"experienceEndpoints.get",
|
179
181
|
"experienceEndpoints.post",
|
@@ -203,6 +205,7 @@
|
|
203
205
|
"experienceView.debug",
|
204
206
|
"experienceView.delete",
|
205
207
|
"experienceView.get",
|
208
|
+
"experienceView.linkedResources",
|
206
209
|
"experienceView.patch",
|
207
210
|
"experienceViews.debug",
|
208
211
|
"experienceViews.detailedSummary",
|
@@ -90,6 +90,40 @@
|
|
90
90
|
"format": "date-time"
|
91
91
|
}
|
92
92
|
}
|
93
|
+
},
|
94
|
+
"filterType": {
|
95
|
+
"oneOf": [
|
96
|
+
{
|
97
|
+
"type": "string",
|
98
|
+
"enum": [
|
99
|
+
"all",
|
100
|
+
"whitelist",
|
101
|
+
"blacklist"
|
102
|
+
]
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"type": "string",
|
106
|
+
"enum": [
|
107
|
+
"none"
|
108
|
+
]
|
109
|
+
}
|
110
|
+
]
|
111
|
+
},
|
112
|
+
"pubTopics": {
|
113
|
+
"type": "array",
|
114
|
+
"items": {
|
115
|
+
"type": "string",
|
116
|
+
"minLength": 1,
|
117
|
+
"maxLength": 1024
|
118
|
+
}
|
119
|
+
},
|
120
|
+
"subTopics": {
|
121
|
+
"type": "array",
|
122
|
+
"items": {
|
123
|
+
"type": "string",
|
124
|
+
"minLength": 1,
|
125
|
+
"maxLength": 1024
|
126
|
+
}
|
93
127
|
}
|
94
128
|
}
|
95
129
|
}
|
@@ -17,6 +17,40 @@
|
|
17
17
|
"type": "string",
|
18
18
|
"maxLength": 32767,
|
19
19
|
"minLength": 50
|
20
|
+
},
|
21
|
+
"filterType": {
|
22
|
+
"oneOf": [
|
23
|
+
{
|
24
|
+
"type": "string",
|
25
|
+
"enum": [
|
26
|
+
"all",
|
27
|
+
"whitelist",
|
28
|
+
"blacklist"
|
29
|
+
]
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"type": "string",
|
33
|
+
"enum": [
|
34
|
+
"none"
|
35
|
+
]
|
36
|
+
}
|
37
|
+
]
|
38
|
+
},
|
39
|
+
"pubTopics": {
|
40
|
+
"type": "array",
|
41
|
+
"items": {
|
42
|
+
"type": "string",
|
43
|
+
"minLength": 1,
|
44
|
+
"maxLength": 1024
|
45
|
+
}
|
46
|
+
},
|
47
|
+
"subTopics": {
|
48
|
+
"type": "array",
|
49
|
+
"items": {
|
50
|
+
"type": "string",
|
51
|
+
"minLength": 1,
|
52
|
+
"maxLength": 1024
|
53
|
+
}
|
20
54
|
}
|
21
55
|
},
|
22
56
|
"additionalProperties": false
|
@@ -44,6 +44,40 @@
|
|
44
44
|
"type": "string",
|
45
45
|
"maxLength": 32767,
|
46
46
|
"minLength": 50
|
47
|
+
},
|
48
|
+
"filterType": {
|
49
|
+
"oneOf": [
|
50
|
+
{
|
51
|
+
"type": "string",
|
52
|
+
"enum": [
|
53
|
+
"all",
|
54
|
+
"whitelist",
|
55
|
+
"blacklist"
|
56
|
+
]
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"type": "string",
|
60
|
+
"enum": [
|
61
|
+
"none"
|
62
|
+
]
|
63
|
+
}
|
64
|
+
]
|
65
|
+
},
|
66
|
+
"pubTopics": {
|
67
|
+
"type": "array",
|
68
|
+
"items": {
|
69
|
+
"type": "string",
|
70
|
+
"minLength": 1,
|
71
|
+
"maxLength": 1024
|
72
|
+
}
|
73
|
+
},
|
74
|
+
"subTopics": {
|
75
|
+
"type": "array",
|
76
|
+
"items": {
|
77
|
+
"type": "string",
|
78
|
+
"minLength": 1,
|
79
|
+
"maxLength": 1024
|
80
|
+
}
|
47
81
|
}
|
48
82
|
},
|
49
83
|
"required": [
|
@@ -97,6 +97,40 @@
|
|
97
97
|
"format": "date-time"
|
98
98
|
}
|
99
99
|
}
|
100
|
+
},
|
101
|
+
"filterType": {
|
102
|
+
"oneOf": [
|
103
|
+
{
|
104
|
+
"type": "string",
|
105
|
+
"enum": [
|
106
|
+
"all",
|
107
|
+
"whitelist",
|
108
|
+
"blacklist"
|
109
|
+
]
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"type": "string",
|
113
|
+
"enum": [
|
114
|
+
"none"
|
115
|
+
]
|
116
|
+
}
|
117
|
+
]
|
118
|
+
},
|
119
|
+
"pubTopics": {
|
120
|
+
"type": "array",
|
121
|
+
"items": {
|
122
|
+
"type": "string",
|
123
|
+
"minLength": 1,
|
124
|
+
"maxLength": 1024
|
125
|
+
}
|
126
|
+
},
|
127
|
+
"subTopics": {
|
128
|
+
"type": "array",
|
129
|
+
"items": {
|
130
|
+
"type": "string",
|
131
|
+
"minLength": 1,
|
132
|
+
"maxLength": 1024
|
133
|
+
}
|
100
134
|
}
|
101
135
|
}
|
102
136
|
}
|
@@ -271,12 +271,12 @@
|
|
271
271
|
},
|
272
272
|
"accessKeyId": {
|
273
273
|
"type": "string",
|
274
|
-
"min":
|
274
|
+
"min": 4,
|
275
275
|
"max": 128
|
276
276
|
},
|
277
277
|
"secretAccessKey": {
|
278
278
|
"type": "string",
|
279
|
-
"min":
|
279
|
+
"min": 4,
|
280
280
|
"max": 128
|
281
281
|
},
|
282
282
|
"region": {
|
@@ -303,7 +303,7 @@
|
|
303
303
|
"keyJson": {
|
304
304
|
"type": "string",
|
305
305
|
"maxLength": 32767,
|
306
|
-
"minLength":
|
306
|
+
"minLength": 4
|
307
307
|
},
|
308
308
|
"bucket": {
|
309
309
|
"type": "string",
|
@@ -359,8 +359,15 @@
|
|
359
359
|
"type": "string"
|
360
360
|
},
|
361
361
|
"id": {
|
362
|
-
"
|
363
|
-
|
362
|
+
"oneOf": [
|
363
|
+
{
|
364
|
+
"type": "string",
|
365
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"type": "string"
|
369
|
+
}
|
370
|
+
]
|
364
371
|
},
|
365
372
|
"message": {
|
366
373
|
"type": "string"
|
@@ -368,5 +375,6 @@
|
|
368
375
|
}
|
369
376
|
}
|
370
377
|
}
|
371
|
-
}
|
378
|
+
},
|
379
|
+
"additionalProperties": false
|
372
380
|
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"includeFiles": {
|
6
|
+
"type": "boolean",
|
7
|
+
"default": false
|
8
|
+
},
|
9
|
+
"includeDataTableRows": {
|
10
|
+
"type": "boolean",
|
11
|
+
"default": false
|
12
|
+
},
|
13
|
+
"includeDevices": {
|
14
|
+
"type": "boolean",
|
15
|
+
"default": false
|
16
|
+
},
|
17
|
+
"email": {
|
18
|
+
"type": "string",
|
19
|
+
"format": "email",
|
20
|
+
"maxLength": 1024
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"additionalProperties": false
|
24
|
+
}
|
data/schemas/applicationKey.json
CHANGED
@@ -62,6 +62,40 @@
|
|
62
62
|
"description": {
|
63
63
|
"type": "string",
|
64
64
|
"maxLength": 32767
|
65
|
+
},
|
66
|
+
"filterType": {
|
67
|
+
"oneOf": [
|
68
|
+
{
|
69
|
+
"type": "string",
|
70
|
+
"enum": [
|
71
|
+
"all",
|
72
|
+
"whitelist",
|
73
|
+
"blacklist"
|
74
|
+
]
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"type": "string",
|
78
|
+
"enum": [
|
79
|
+
"none"
|
80
|
+
]
|
81
|
+
}
|
82
|
+
]
|
83
|
+
},
|
84
|
+
"pubTopics": {
|
85
|
+
"type": "array",
|
86
|
+
"items": {
|
87
|
+
"type": "string",
|
88
|
+
"minLength": 1,
|
89
|
+
"maxLength": 1024
|
90
|
+
}
|
91
|
+
},
|
92
|
+
"subTopics": {
|
93
|
+
"type": "array",
|
94
|
+
"items": {
|
95
|
+
"type": "string",
|
96
|
+
"minLength": 1,
|
97
|
+
"maxLength": 1024
|
98
|
+
}
|
65
99
|
}
|
66
100
|
}
|
67
101
|
}
|