losant_rest 1.8.7 → 1.8.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/_schemas.md +38618 -21196
- data/docs/application.md +76 -0
- data/docs/auth.md +0 -36
- data/docs/dashboards.md +1 -1
- data/docs/dataTableRows.md +2 -2
- data/docs/device.md +1 -0
- data/docs/events.md +81 -0
- data/docs/file.md +43 -0
- data/docs/me.md +50 -13
- data/lib/losant_rest.rb +0 -4
- data/lib/losant_rest/application.rb +90 -0
- data/lib/losant_rest/application_api_token.rb +2 -0
- data/lib/losant_rest/application_api_tokens.rb +2 -0
- data/lib/losant_rest/application_certificate.rb +2 -0
- data/lib/losant_rest/application_certificate_authorities.rb +2 -0
- data/lib/losant_rest/application_certificate_authority.rb +2 -0
- data/lib/losant_rest/application_certificates.rb +2 -0
- data/lib/losant_rest/application_key.rb +2 -0
- data/lib/losant_rest/application_keys.rb +2 -0
- data/lib/losant_rest/applications.rb +2 -0
- data/lib/losant_rest/audit_log.rb +2 -0
- data/lib/losant_rest/audit_logs.rb +2 -0
- data/lib/losant_rest/auth.rb +2 -42
- data/lib/losant_rest/client.rb +2 -18
- data/lib/losant_rest/dashboard.rb +2 -0
- data/lib/losant_rest/dashboards.rb +3 -1
- data/lib/losant_rest/data.rb +2 -0
- data/lib/losant_rest/data_table.rb +2 -0
- data/lib/losant_rest/data_table_row.rb +2 -0
- data/lib/losant_rest/data_table_rows.rb +4 -2
- data/lib/losant_rest/data_tables.rb +2 -0
- data/lib/losant_rest/device.rb +4 -0
- data/lib/losant_rest/device_recipe.rb +2 -0
- data/lib/losant_rest/device_recipes.rb +2 -0
- data/lib/losant_rest/devices.rb +2 -0
- data/lib/losant_rest/edge_deployments.rb +2 -0
- data/lib/losant_rest/event.rb +2 -0
- data/lib/losant_rest/events.rb +103 -0
- data/lib/losant_rest/experience.rb +2 -0
- data/lib/losant_rest/experience_domain.rb +2 -0
- data/lib/losant_rest/experience_domains.rb +2 -0
- data/lib/losant_rest/experience_endpoint.rb +2 -0
- data/lib/losant_rest/experience_endpoints.rb +2 -0
- data/lib/losant_rest/experience_group.rb +2 -0
- data/lib/losant_rest/experience_groups.rb +2 -0
- data/lib/losant_rest/experience_slug.rb +2 -0
- data/lib/losant_rest/experience_slugs.rb +2 -0
- data/lib/losant_rest/experience_user.rb +2 -0
- data/lib/losant_rest/experience_users.rb +2 -0
- data/lib/losant_rest/experience_version.rb +2 -0
- data/lib/losant_rest/experience_versions.rb +2 -0
- data/lib/losant_rest/experience_view.rb +2 -0
- data/lib/losant_rest/experience_views.rb +2 -0
- data/lib/losant_rest/file.rb +2 -0
- data/lib/losant_rest/files.rb +2 -0
- data/lib/losant_rest/flow.rb +2 -0
- data/lib/losant_rest/flow_version.rb +2 -0
- data/lib/losant_rest/flow_versions.rb +2 -0
- data/lib/losant_rest/flows.rb +2 -0
- data/lib/losant_rest/integration.rb +2 -0
- data/lib/losant_rest/integrations.rb +2 -0
- data/lib/losant_rest/me.rb +57 -13
- data/lib/losant_rest/notebook.rb +2 -0
- data/lib/losant_rest/notebooks.rb +2 -0
- data/lib/losant_rest/org.rb +2 -0
- data/lib/losant_rest/org_invites.rb +2 -0
- data/lib/losant_rest/orgs.rb +2 -0
- data/lib/losant_rest/version.rb +1 -1
- data/lib/losant_rest/webhook.rb +2 -0
- data/lib/losant_rest/webhooks.rb +2 -0
- data/schemas/advancedEventQuery.json +817 -0
- data/schemas/{dataTableQuery.json → advancedQuery.json} +5 -4
- data/schemas/apiTokens.json +4 -1
- data/schemas/application.json +30 -1
- data/schemas/applicationApiTokenPost.json +5 -0
- data/schemas/applicationCertificate.json +29 -1
- data/schemas/applicationCertificateAuthorities.json +36 -3
- data/schemas/applicationCertificateAuthority.json +32 -2
- data/schemas/applicationCertificateAuthorityPatch.json +3 -1
- data/schemas/applicationCertificateAuthorityPost.json +3 -1
- data/schemas/applicationCertificatePatch.json +3 -1
- data/schemas/applicationCertificatePost.json +3 -1
- data/schemas/applicationCertificates.json +33 -2
- data/schemas/applicationKeys.json +4 -1
- data/schemas/applicationPatch.json +28 -0
- data/schemas/applicationPost.json +28 -0
- data/schemas/applications.json +34 -2
- data/schemas/auditLog.json +0 -3
- data/schemas/auditLogFilter.json +0 -3
- data/schemas/auditLogs.json +4 -4
- data/schemas/authedDevice.json +7 -0
- data/schemas/dashboard.json +3970 -72
- data/schemas/dashboardPatch.json +3969 -72
- data/schemas/dashboardPost.json +3969 -72
- data/schemas/dashboardSendReport.json +4 -0
- data/schemas/dashboardUpdateEvents.json +46 -0
- data/schemas/dashboards.json +3974 -73
- data/schemas/dataTableRows.json +4 -1
- data/schemas/dataTableRowsExport.json +11 -7
- data/schemas/dataTables.json +4 -1
- data/schemas/deviceRecipes.json +4 -1
- data/schemas/devices.json +4 -1
- data/schemas/event.json +19 -2
- data/schemas/eventPost.json +0 -1
- data/schemas/eventTagsSummary.json +28 -0
- data/schemas/events.json +841 -3
- data/schemas/eventsDeleted.json +9 -0
- data/schemas/eventsExport.json +830 -0
- data/schemas/experienceDomain.json +6 -2
- data/schemas/experienceDomainPatch.json +14 -10
- data/schemas/experienceDomainPost.json +8 -4
- data/schemas/experienceDomains.json +6 -2
- data/schemas/experienceEndpoints.json +4 -1
- data/schemas/experienceGroup.json +2 -2
- data/schemas/experienceGroupPatch.json +2 -2
- data/schemas/experienceGroupPost.json +2 -2
- data/schemas/experienceGroups.json +6 -3
- data/schemas/experienceSlugPatch.json +2 -2
- data/schemas/experienceSlugPost.json +2 -2
- data/schemas/experienceUsers.json +4 -1
- data/schemas/experienceViews.json +4 -1
- data/schemas/files.json +4 -1
- data/schemas/flow.json +4 -0
- data/schemas/flowPatch.json +6 -2
- data/schemas/flowPost.json +4 -0
- data/schemas/flowVersion.json +8 -0
- data/schemas/flowVersionPost.json +4 -0
- data/schemas/flowVersions.json +12 -1
- data/schemas/flows.json +8 -1
- data/schemas/flowsImportPost.json +10 -2
- data/schemas/flowsImportResult.json +12 -0
- data/schemas/githubLogin.json +6 -15
- data/schemas/integrations.json +4 -1
- data/schemas/notebooks.json +4 -1
- data/schemas/org.json +2 -4
- data/schemas/orgPatch.json +2 -1
- data/schemas/orgPost.json +2 -1
- data/schemas/orgs.json +6 -5
- data/schemas/passwordResetFinish.json +0 -4
- data/schemas/passwordResetInput.json +0 -4
- data/schemas/resourceTransfer.json +0 -8
- data/schemas/userCredentials.json +6 -15
- data/schemas/userPost.json +6 -15
- data/schemas/webhooks.json +4 -1
- data/test/basic_test.rb +15 -0
- metadata +8 -23
- data/docs/solution.md +0 -133
- data/docs/solutionUser.md +0 -139
- data/docs/solutionUsers.md +0 -96
- data/docs/solutions.md +0 -91
- data/lib/losant_rest/solution.rb +0 -174
- data/lib/losant_rest/solution_user.rb +0 -180
- data/lib/losant_rest/solution_users.rb +0 -138
- data/lib/losant_rest/solutions.rb +0 -134
- data/schemas/authedSolutionUser.json +0 -18
- data/schemas/fileUploadPostResp.json +0 -109
- data/schemas/solution.json +0 -76
- data/schemas/solutionMe.json +0 -150
- data/schemas/solutionPatch.json +0 -48
- data/schemas/solutionPost.json +0 -52
- data/schemas/solutionUser.json +0 -103
- data/schemas/solutionUserCredentials.json +0 -34
- data/schemas/solutionUserPatch.json +0 -74
- data/schemas/solutionUserPost.json +0 -80
- data/schemas/solutionUsers.json +0 -149
- data/schemas/solutions.json +0 -118
@@ -23,10 +23,14 @@
|
|
23
23
|
"format": "date-time"
|
24
24
|
},
|
25
25
|
"sslCert": {
|
26
|
-
"
|
26
|
+
"type": "string",
|
27
|
+
"maxLength": 32767,
|
28
|
+
"minLength": 50
|
27
29
|
},
|
28
30
|
"sslBundle": {
|
29
|
-
"
|
31
|
+
"type": "string",
|
32
|
+
"maxLength": 32767,
|
33
|
+
"minLength": 50
|
30
34
|
},
|
31
35
|
"domainName": {
|
32
36
|
"type": "string",
|
@@ -3,46 +3,50 @@
|
|
3
3
|
"type": "object",
|
4
4
|
"properties": {
|
5
5
|
"sslKey": {
|
6
|
-
"
|
6
|
+
"oneOf": [
|
7
7
|
{
|
8
8
|
"type": "string",
|
9
9
|
"maxLength": 32767,
|
10
10
|
"minLength": 50
|
11
11
|
},
|
12
12
|
{
|
13
|
-
"type": null
|
13
|
+
"type": "null"
|
14
14
|
}
|
15
15
|
]
|
16
16
|
},
|
17
17
|
"sslCert": {
|
18
|
-
"
|
18
|
+
"oneOf": [
|
19
19
|
{
|
20
|
-
"
|
20
|
+
"type": "string",
|
21
|
+
"maxLength": 32767,
|
22
|
+
"minLength": 50
|
21
23
|
},
|
22
24
|
{
|
23
|
-
"type": null
|
25
|
+
"type": "null"
|
24
26
|
}
|
25
27
|
]
|
26
28
|
},
|
27
29
|
"sslBundle": {
|
28
|
-
"
|
30
|
+
"oneOf": [
|
29
31
|
{
|
30
|
-
"
|
32
|
+
"type": "string",
|
33
|
+
"maxLength": 32767,
|
34
|
+
"minLength": 50
|
31
35
|
},
|
32
36
|
{
|
33
|
-
"type": null
|
37
|
+
"type": "null"
|
34
38
|
}
|
35
39
|
]
|
36
40
|
},
|
37
41
|
"version": {
|
38
|
-
"
|
42
|
+
"oneOf": [
|
39
43
|
{
|
40
44
|
"type": "string",
|
41
45
|
"minLength": 1,
|
42
46
|
"maxLength": 255
|
43
47
|
},
|
44
48
|
{
|
45
|
-
"type": null
|
49
|
+
"type": "null"
|
46
50
|
}
|
47
51
|
]
|
48
52
|
},
|
@@ -8,10 +8,14 @@
|
|
8
8
|
"minLength": 50
|
9
9
|
},
|
10
10
|
"sslCert": {
|
11
|
-
"
|
11
|
+
"type": "string",
|
12
|
+
"maxLength": 32767,
|
13
|
+
"minLength": 50
|
12
14
|
},
|
13
15
|
"sslBundle": {
|
14
|
-
"
|
16
|
+
"type": "string",
|
17
|
+
"maxLength": 32767,
|
18
|
+
"minLength": 50
|
15
19
|
},
|
16
20
|
"domainName": {
|
17
21
|
"type": "string",
|
@@ -19,14 +23,14 @@
|
|
19
23
|
"minLength": 3
|
20
24
|
},
|
21
25
|
"version": {
|
22
|
-
"
|
26
|
+
"oneOf": [
|
23
27
|
{
|
24
28
|
"type": "string",
|
25
29
|
"minLength": 1,
|
26
30
|
"maxLength": 255
|
27
31
|
},
|
28
32
|
{
|
29
|
-
"type": null
|
33
|
+
"type": "null"
|
30
34
|
}
|
31
35
|
]
|
32
36
|
}
|
@@ -30,10 +30,14 @@
|
|
30
30
|
"format": "date-time"
|
31
31
|
},
|
32
32
|
"sslCert": {
|
33
|
-
"
|
33
|
+
"type": "string",
|
34
|
+
"maxLength": 32767,
|
35
|
+
"minLength": 50
|
34
36
|
},
|
35
37
|
"sslBundle": {
|
36
|
-
"
|
38
|
+
"type": "string",
|
39
|
+
"maxLength": 32767,
|
40
|
+
"minLength": 50
|
37
41
|
},
|
38
42
|
"domainName": {
|
39
43
|
"type": "string",
|
@@ -93,13 +93,13 @@
|
|
93
93
|
"maxItems": 100
|
94
94
|
},
|
95
95
|
"parentId": {
|
96
|
-
"
|
96
|
+
"oneOf": [
|
97
97
|
{
|
98
98
|
"type": "string",
|
99
99
|
"pattern": "^[A-Fa-f\\d]{24}$"
|
100
100
|
},
|
101
101
|
{
|
102
|
-
"type": null
|
102
|
+
"type": "null"
|
103
103
|
}
|
104
104
|
]
|
105
105
|
}
|
@@ -131,7 +131,10 @@
|
|
131
131
|
"type": "string",
|
132
132
|
"enum": [
|
133
133
|
"asc",
|
134
|
-
"desc"
|
134
|
+
"desc",
|
135
|
+
"ASC",
|
136
|
+
"DESC",
|
137
|
+
""
|
135
138
|
]
|
136
139
|
},
|
137
140
|
"applicationId": {
|
data/schemas/files.json
CHANGED
data/schemas/flow.json
CHANGED
data/schemas/flowPatch.json
CHANGED
@@ -27,13 +27,13 @@
|
|
27
27
|
"type": "boolean"
|
28
28
|
},
|
29
29
|
"defaultVersionId": {
|
30
|
-
"
|
30
|
+
"oneOf": [
|
31
31
|
{
|
32
32
|
"type": "string",
|
33
33
|
"pattern": "^[A-Fa-f\\d]{24}$"
|
34
34
|
},
|
35
35
|
{
|
36
|
-
"type": null
|
36
|
+
"type": "null"
|
37
37
|
}
|
38
38
|
]
|
39
39
|
},
|
@@ -62,10 +62,14 @@
|
|
62
62
|
"deviceTagInactivity",
|
63
63
|
"endpoint",
|
64
64
|
"event",
|
65
|
+
"fileTail",
|
65
66
|
"fileWatch",
|
66
67
|
"integration",
|
67
68
|
"mqttTopic",
|
68
69
|
"notebook",
|
70
|
+
"onBoot",
|
71
|
+
"onConnect",
|
72
|
+
"onDisconnect",
|
69
73
|
"opcua",
|
70
74
|
"redis",
|
71
75
|
"request",
|
data/schemas/flowPost.json
CHANGED
data/schemas/flowVersion.json
CHANGED
@@ -66,10 +66,14 @@
|
|
66
66
|
"deviceTagInactivity",
|
67
67
|
"endpoint",
|
68
68
|
"event",
|
69
|
+
"fileTail",
|
69
70
|
"fileWatch",
|
70
71
|
"integration",
|
71
72
|
"mqttTopic",
|
72
73
|
"notebook",
|
74
|
+
"onBoot",
|
75
|
+
"onConnect",
|
76
|
+
"onDisconnect",
|
73
77
|
"opcua",
|
74
78
|
"redis",
|
75
79
|
"request",
|
@@ -598,10 +602,14 @@
|
|
598
602
|
"deviceTagInactivity",
|
599
603
|
"endpoint",
|
600
604
|
"event",
|
605
|
+
"fileTail",
|
601
606
|
"fileWatch",
|
602
607
|
"integration",
|
603
608
|
"mqttTopic",
|
604
609
|
"notebook",
|
610
|
+
"onBoot",
|
611
|
+
"onConnect",
|
612
|
+
"onDisconnect",
|
605
613
|
"opcua",
|
606
614
|
"redis",
|
607
615
|
"request",
|
data/schemas/flowVersions.json
CHANGED
@@ -73,10 +73,14 @@
|
|
73
73
|
"deviceTagInactivity",
|
74
74
|
"endpoint",
|
75
75
|
"event",
|
76
|
+
"fileTail",
|
76
77
|
"fileWatch",
|
77
78
|
"integration",
|
78
79
|
"mqttTopic",
|
79
80
|
"notebook",
|
81
|
+
"onBoot",
|
82
|
+
"onConnect",
|
83
|
+
"onDisconnect",
|
80
84
|
"opcua",
|
81
85
|
"redis",
|
82
86
|
"request",
|
@@ -605,10 +609,14 @@
|
|
605
609
|
"deviceTagInactivity",
|
606
610
|
"endpoint",
|
607
611
|
"event",
|
612
|
+
"fileTail",
|
608
613
|
"fileWatch",
|
609
614
|
"integration",
|
610
615
|
"mqttTopic",
|
611
616
|
"notebook",
|
617
|
+
"onBoot",
|
618
|
+
"onConnect",
|
619
|
+
"onDisconnect",
|
612
620
|
"opcua",
|
613
621
|
"redis",
|
614
622
|
"request",
|
@@ -763,7 +771,10 @@
|
|
763
771
|
"type": "string",
|
764
772
|
"enum": [
|
765
773
|
"asc",
|
766
|
-
"desc"
|
774
|
+
"desc",
|
775
|
+
"ASC",
|
776
|
+
"DESC",
|
777
|
+
""
|
767
778
|
]
|
768
779
|
},
|
769
780
|
"applicationId": {
|
data/schemas/flows.json
CHANGED
@@ -88,10 +88,14 @@
|
|
88
88
|
"deviceTagInactivity",
|
89
89
|
"endpoint",
|
90
90
|
"event",
|
91
|
+
"fileTail",
|
91
92
|
"fileWatch",
|
92
93
|
"integration",
|
93
94
|
"mqttTopic",
|
94
95
|
"notebook",
|
96
|
+
"onBoot",
|
97
|
+
"onConnect",
|
98
|
+
"onDisconnect",
|
95
99
|
"opcua",
|
96
100
|
"redis",
|
97
101
|
"request",
|
@@ -573,7 +577,10 @@
|
|
573
577
|
"type": "string",
|
574
578
|
"enum": [
|
575
579
|
"asc",
|
576
|
-
"desc"
|
580
|
+
"desc",
|
581
|
+
"ASC",
|
582
|
+
"DESC",
|
583
|
+
""
|
577
584
|
]
|
578
585
|
},
|
579
586
|
"applicationId": {
|