losant_rest 1.7.2 → 1.8.0
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 +7347 -4603
- data/docs/application.md +47 -0
- data/docs/applicationApiToken.md +3 -0
- data/docs/applicationApiTokens.md +2 -0
- data/docs/applicationKey.md +3 -0
- data/docs/applicationKeys.md +2 -0
- data/docs/applications.md +2 -0
- data/docs/auditLog.md +1 -0
- data/docs/auditLogs.md +1 -0
- data/docs/auth.md +4 -0
- data/docs/dashboard.md +4 -0
- data/docs/dashboards.md +2 -0
- data/docs/data.md +2 -0
- data/docs/dataTable.md +5 -0
- data/docs/dataTableRow.md +3 -0
- data/docs/dataTableRows.md +9 -3
- data/docs/dataTables.md +2 -0
- data/docs/device.md +12 -0
- data/docs/deviceRecipe.md +4 -0
- data/docs/deviceRecipes.md +2 -0
- data/docs/devices.md +4 -0
- data/docs/edgeDeployments.md +4 -0
- data/docs/event.md +3 -0
- data/docs/events.md +4 -0
- data/docs/experience.md +52 -8
- data/docs/experienceDomain.md +3 -0
- data/docs/experienceDomains.md +2 -0
- data/docs/experienceEndpoint.md +4 -0
- data/docs/experienceEndpoints.md +9 -1
- data/docs/experienceGroup.md +3 -0
- data/docs/experienceGroups.md +2 -0
- data/docs/experienceSlug.md +133 -0
- data/docs/experienceSlugs.md +87 -0
- data/docs/experienceUser.md +3 -0
- data/docs/experienceUsers.md +2 -0
- data/docs/experienceVersion.md +133 -0
- data/docs/experienceVersions.md +93 -0
- data/docs/experienceView.md +4 -0
- data/docs/experienceViews.md +3 -0
- data/docs/file.md +4 -0
- data/docs/files.md +2 -0
- data/docs/flow.md +8 -0
- data/docs/flowVersion.md +4 -0
- data/docs/flowVersions.md +2 -0
- data/docs/flows.md +54 -1
- data/docs/integration.md +3 -0
- data/docs/integrations.md +2 -0
- data/docs/me.md +19 -3
- data/docs/org.md +10 -0
- data/docs/orgInvites.md +2 -0
- data/docs/orgs.md +2 -0
- data/docs/solution.md +3 -0
- data/docs/solutionUser.md +3 -0
- data/docs/solutionUsers.md +2 -0
- data/docs/solutions.md +2 -0
- data/docs/webhook.md +3 -0
- data/docs/webhooks.md +2 -0
- data/lib/losant_rest/application.rb +47 -0
- data/lib/losant_rest/client.rb +18 -2
- data/lib/losant_rest/data_table_rows.rb +3 -3
- data/lib/losant_rest/experience.rb +62 -11
- data/lib/losant_rest/experience_endpoint.rb +2 -0
- data/lib/losant_rest/experience_endpoints.rb +11 -1
- data/lib/losant_rest/experience_slug.rb +174 -0
- data/lib/losant_rest/experience_slugs.rb +124 -0
- data/lib/losant_rest/experience_version.rb +174 -0
- data/lib/losant_rest/experience_versions.rb +136 -0
- data/lib/losant_rest/experience_view.rb +2 -0
- data/lib/losant_rest/experience_views.rb +2 -0
- data/lib/losant_rest/flows.rb +66 -1
- data/lib/losant_rest/version.rb +1 -1
- data/lib/losant_rest.rb +4 -0
- data/schemas/apiTokens.json +128 -0
- data/schemas/application.json +6 -0
- data/schemas/applicationApiTokenPost.json +18 -0
- data/schemas/applications.json +6 -0
- data/schemas/dataTableRowInMultiple.json +20 -0
- data/schemas/dataTableRowInsert.json +42 -0
- data/schemas/dataTableRowInsertResult.json +54 -0
- data/schemas/edgeDeployment.json +119 -0
- data/schemas/emailVerificationVerify.json +20 -0
- data/schemas/experienceBootstrapOptions.json +25 -0
- data/schemas/experienceBootstrapResult.json +16 -0
- data/schemas/experienceDomain.json +5 -0
- data/schemas/experienceDomainPatch.json +12 -0
- data/schemas/experienceDomainPost.json +12 -0
- data/schemas/experienceDomains.json +5 -0
- data/schemas/experienceSlug.json +37 -0
- data/schemas/experienceSlugPatch.json +25 -0
- data/schemas/experienceSlugPost.json +28 -0
- data/schemas/experienceSlugs.json +57 -0
- data/schemas/experienceVersion.json +82 -0
- data/schemas/experienceVersionPatch.json +19 -0
- data/schemas/experienceVersionPost.json +35 -0
- data/schemas/experienceVersions.json +102 -0
- data/schemas/file.json +3 -0
- data/schemas/files.json +3 -0
- data/schemas/flow.json +5 -0
- data/schemas/flowPatch.json +1 -0
- data/schemas/flowPost.json +2 -0
- data/schemas/flowVersion.json +622 -433
- data/schemas/flowVersionPost.json +1 -0
- data/schemas/flowVersions.json +622 -433
- data/schemas/flows.json +6 -0
- data/schemas/flowsImportPost.json +3 -0
- data/schemas/flowsImportResult.json +628 -434
- data/schemas/githubLogin.json +18 -0
- data/schemas/me.json +12 -0
- data/schemas/mqttPublishBody.json +20 -0
- data/schemas/org.json +12 -0
- data/schemas/orgs.json +12 -0
- data/schemas/passwordResetFinish.json +31 -0
- data/schemas/passwordResetInput.json +19 -0
- data/schemas/passwordResetResponse.json +18 -0
- data/schemas/solutionMe.json +150 -0
- data/schemas/userCredentials.json +18 -0
- data/schemas/userPost.json +388 -0
- metadata +32 -2
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"id": {
|
6
|
+
"type": "string",
|
7
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
8
|
+
},
|
9
|
+
"experienceSlugId": {
|
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
|
+
"slug": {
|
26
|
+
"type": "string",
|
27
|
+
"minLength": 4,
|
28
|
+
"maxLength": 63,
|
29
|
+
"pattern": "^[0-9a-z-]*$"
|
30
|
+
},
|
31
|
+
"version": {
|
32
|
+
"type": "string",
|
33
|
+
"minLength": 1,
|
34
|
+
"maxLength": 255
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"version": {
|
6
|
+
"$oneOf": [
|
7
|
+
{
|
8
|
+
"type": "string",
|
9
|
+
"minLength": 1,
|
10
|
+
"maxLength": 255
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"type": null
|
14
|
+
}
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"slug": {
|
18
|
+
"type": "string",
|
19
|
+
"minLength": 4,
|
20
|
+
"maxLength": 63,
|
21
|
+
"pattern": "^[0-9a-z-]*$"
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"additionalProperties": false
|
25
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"version": {
|
6
|
+
"$oneOf": [
|
7
|
+
{
|
8
|
+
"type": "string",
|
9
|
+
"minLength": 1,
|
10
|
+
"maxLength": 255
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"type": null
|
14
|
+
}
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"slug": {
|
18
|
+
"type": "string",
|
19
|
+
"minLength": 4,
|
20
|
+
"maxLength": 63,
|
21
|
+
"pattern": "^[0-9a-z-]*$"
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"additionalProperties": false,
|
25
|
+
"required": [
|
26
|
+
"slug"
|
27
|
+
]
|
28
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"items": {
|
6
|
+
"type": "array",
|
7
|
+
"items": {
|
8
|
+
"title": "Experience Slug",
|
9
|
+
"description": "Schema for a single Experience Slug",
|
10
|
+
"type": "object",
|
11
|
+
"properties": {
|
12
|
+
"id": {
|
13
|
+
"type": "string",
|
14
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
15
|
+
},
|
16
|
+
"experienceSlugId": {
|
17
|
+
"type": "string",
|
18
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
19
|
+
},
|
20
|
+
"applicationId": {
|
21
|
+
"type": "string",
|
22
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
23
|
+
},
|
24
|
+
"creationDate": {
|
25
|
+
"type": "string",
|
26
|
+
"format": "date-time"
|
27
|
+
},
|
28
|
+
"lastUpdated": {
|
29
|
+
"type": "string",
|
30
|
+
"format": "date-time"
|
31
|
+
},
|
32
|
+
"slug": {
|
33
|
+
"type": "string",
|
34
|
+
"minLength": 4,
|
35
|
+
"maxLength": 63,
|
36
|
+
"pattern": "^[0-9a-z-]*$"
|
37
|
+
},
|
38
|
+
"version": {
|
39
|
+
"type": "string",
|
40
|
+
"minLength": 1,
|
41
|
+
"maxLength": 255
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"count": {
|
47
|
+
"type": "integer"
|
48
|
+
},
|
49
|
+
"totalCount": {
|
50
|
+
"type": "integer"
|
51
|
+
},
|
52
|
+
"applicationId": {
|
53
|
+
"type": "string",
|
54
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"id": {
|
6
|
+
"type": "string",
|
7
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
8
|
+
},
|
9
|
+
"experienceVersionId": {
|
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
|
+
"createdById": {
|
22
|
+
"type": "string",
|
23
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
24
|
+
},
|
25
|
+
"createdByType": {
|
26
|
+
"type": "string",
|
27
|
+
"enum": [
|
28
|
+
"flow",
|
29
|
+
"user",
|
30
|
+
"apiToken"
|
31
|
+
]
|
32
|
+
},
|
33
|
+
"lastUpdated": {
|
34
|
+
"type": "string",
|
35
|
+
"format": "date-time"
|
36
|
+
},
|
37
|
+
"endpointDefaultCors": {
|
38
|
+
"type": "boolean"
|
39
|
+
},
|
40
|
+
"version": {
|
41
|
+
"type": "string",
|
42
|
+
"minLength": 1,
|
43
|
+
"maxLength": 255
|
44
|
+
},
|
45
|
+
"description": {
|
46
|
+
"type": "string",
|
47
|
+
"maxLength": 32767
|
48
|
+
},
|
49
|
+
"attachedDomains": {
|
50
|
+
"type": "array",
|
51
|
+
"items": {
|
52
|
+
"type": "object",
|
53
|
+
"properties": {
|
54
|
+
"domainName": {
|
55
|
+
"type": "string",
|
56
|
+
"maxLength": 1024,
|
57
|
+
"minLength": 3
|
58
|
+
},
|
59
|
+
"id": {
|
60
|
+
"type": "string",
|
61
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
},
|
66
|
+
"attachedSlugs": {
|
67
|
+
"type": "array",
|
68
|
+
"items": {
|
69
|
+
"type": "object",
|
70
|
+
"properties": {
|
71
|
+
"slug": {
|
72
|
+
"type": "string"
|
73
|
+
},
|
74
|
+
"id": {
|
75
|
+
"type": "string",
|
76
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"endpointDefaultCors": {
|
6
|
+
"type": "boolean"
|
7
|
+
},
|
8
|
+
"description": {
|
9
|
+
"type": "string",
|
10
|
+
"maxLength": 32767
|
11
|
+
},
|
12
|
+
"sourceVersionIdOrName": {
|
13
|
+
"type": "string",
|
14
|
+
"minLength": 1,
|
15
|
+
"maxLength": 255
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"additionalProperties": false
|
19
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"version": {
|
6
|
+
"type": "string",
|
7
|
+
"minLength": 1,
|
8
|
+
"maxLength": 255
|
9
|
+
},
|
10
|
+
"description": {
|
11
|
+
"type": "string",
|
12
|
+
"maxLength": 32767
|
13
|
+
},
|
14
|
+
"domainIds": {
|
15
|
+
"type": "array",
|
16
|
+
"items": {
|
17
|
+
"type": "string",
|
18
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
19
|
+
},
|
20
|
+
"maxItems": 1000
|
21
|
+
},
|
22
|
+
"slugIds": {
|
23
|
+
"type": "array",
|
24
|
+
"items": {
|
25
|
+
"type": "string",
|
26
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
27
|
+
},
|
28
|
+
"maxItems": 1000
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"additionalProperties": false,
|
32
|
+
"required": [
|
33
|
+
"version"
|
34
|
+
]
|
35
|
+
}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"items": {
|
6
|
+
"type": "array",
|
7
|
+
"items": {
|
8
|
+
"title": "Experience Version",
|
9
|
+
"description": "Schema for a single Experience Version",
|
10
|
+
"type": "object",
|
11
|
+
"properties": {
|
12
|
+
"id": {
|
13
|
+
"type": "string",
|
14
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
15
|
+
},
|
16
|
+
"experienceVersionId": {
|
17
|
+
"type": "string",
|
18
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
19
|
+
},
|
20
|
+
"applicationId": {
|
21
|
+
"type": "string",
|
22
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
23
|
+
},
|
24
|
+
"creationDate": {
|
25
|
+
"type": "string",
|
26
|
+
"format": "date-time"
|
27
|
+
},
|
28
|
+
"createdById": {
|
29
|
+
"type": "string",
|
30
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
31
|
+
},
|
32
|
+
"createdByType": {
|
33
|
+
"type": "string",
|
34
|
+
"enum": [
|
35
|
+
"flow",
|
36
|
+
"user",
|
37
|
+
"apiToken"
|
38
|
+
]
|
39
|
+
},
|
40
|
+
"lastUpdated": {
|
41
|
+
"type": "string",
|
42
|
+
"format": "date-time"
|
43
|
+
},
|
44
|
+
"endpointDefaultCors": {
|
45
|
+
"type": "boolean"
|
46
|
+
},
|
47
|
+
"version": {
|
48
|
+
"type": "string",
|
49
|
+
"minLength": 1,
|
50
|
+
"maxLength": 255
|
51
|
+
},
|
52
|
+
"description": {
|
53
|
+
"type": "string",
|
54
|
+
"maxLength": 32767
|
55
|
+
},
|
56
|
+
"attachedDomains": {
|
57
|
+
"type": "array",
|
58
|
+
"items": {
|
59
|
+
"type": "object",
|
60
|
+
"properties": {
|
61
|
+
"domainName": {
|
62
|
+
"type": "string",
|
63
|
+
"maxLength": 1024,
|
64
|
+
"minLength": 3
|
65
|
+
},
|
66
|
+
"id": {
|
67
|
+
"type": "string",
|
68
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
},
|
73
|
+
"attachedSlugs": {
|
74
|
+
"type": "array",
|
75
|
+
"items": {
|
76
|
+
"type": "object",
|
77
|
+
"properties": {
|
78
|
+
"slug": {
|
79
|
+
"type": "string"
|
80
|
+
},
|
81
|
+
"id": {
|
82
|
+
"type": "string",
|
83
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
},
|
91
|
+
"count": {
|
92
|
+
"type": "integer"
|
93
|
+
},
|
94
|
+
"totalCount": {
|
95
|
+
"type": "integer"
|
96
|
+
},
|
97
|
+
"applicationId": {
|
98
|
+
"type": "string",
|
99
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
data/schemas/file.json
CHANGED
data/schemas/files.json
CHANGED
data/schemas/flow.json
CHANGED
@@ -52,6 +52,7 @@
|
|
52
52
|
"enum": [
|
53
53
|
"cloud",
|
54
54
|
"edge",
|
55
|
+
"experience",
|
55
56
|
"customNode"
|
56
57
|
]
|
57
58
|
},
|
@@ -79,6 +80,7 @@
|
|
79
80
|
"deviceTagInactivity",
|
80
81
|
"endpoint",
|
81
82
|
"event",
|
83
|
+
"fileWatch",
|
82
84
|
"integration",
|
83
85
|
"mqttTopic",
|
84
86
|
"request",
|
@@ -502,6 +504,9 @@
|
|
502
504
|
]
|
503
505
|
}
|
504
506
|
},
|
507
|
+
"deletedInDevelop": {
|
508
|
+
"type": "boolean"
|
509
|
+
},
|
505
510
|
"stats": {
|
506
511
|
"type": "object",
|
507
512
|
"properties": {
|
data/schemas/flowPatch.json
CHANGED
data/schemas/flowPost.json
CHANGED