losant_rest 1.11.1 → 1.12.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 +17165 -8770
- data/docs/application.md +41 -0
- data/docs/applicationDashboard.md +133 -0
- data/docs/applicationDashboards.md +93 -0
- data/docs/applicationKeys.md +3 -2
- data/docs/experienceEndpoint.md +1 -0
- data/docs/flows.md +1 -0
- data/docs/integration.md +1 -0
- data/docs/webhook.md +1 -0
- data/lib/losant_rest.rb +2 -0
- data/lib/losant_rest/application.rb +47 -0
- data/lib/losant_rest/application_dashboard.rb +176 -0
- data/lib/losant_rest/application_dashboards.rb +138 -0
- data/lib/losant_rest/application_keys.rb +3 -0
- data/lib/losant_rest/client.rb +10 -2
- data/lib/losant_rest/experience_endpoint.rb +2 -0
- data/lib/losant_rest/flows.rb +2 -0
- data/lib/losant_rest/integration.rb +2 -0
- data/lib/losant_rest/version.rb +1 -1
- data/lib/losant_rest/webhook.rb +2 -0
- data/schemas/advancedApplicationKeyQuery.json +1082 -0
- data/schemas/advancedFlowQuery.json +218 -0
- data/schemas/advancedFlowVersionQuery.json +218 -0
- data/schemas/applicationApiTokenPost.json +7 -0
- data/schemas/applicationDashboardPost.json +5665 -0
- data/schemas/applicationGlobalPatch.json +33 -0
- data/schemas/dashboard.json +28 -1
- data/schemas/dashboardPatch.json +28 -1
- data/schemas/dashboardPost.json +28 -1
- data/schemas/dashboards.json +28 -1
- data/schemas/files.json +3 -0
- data/schemas/githubLogin.json +18 -0
- data/schemas/instance.json +132 -0
- data/schemas/instanceOrg.json +119 -0
- data/schemas/instanceOrgPatch.json +103 -0
- data/schemas/instanceOrgPost.json +114 -0
- data/schemas/instanceOrgs.json +160 -0
- data/schemas/instances.json +43 -0
- data/schemas/userCredentials.json +18 -0
- data/schemas/userPost.json +18 -0
- metadata +16 -3
@@ -0,0 +1,103 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"name": {
|
6
|
+
"type": "string",
|
7
|
+
"minLength": 1,
|
8
|
+
"maxLength": 255
|
9
|
+
},
|
10
|
+
"description": {
|
11
|
+
"type": "string",
|
12
|
+
"maxLength": 32767
|
13
|
+
},
|
14
|
+
"iconColor": {
|
15
|
+
"type": "string",
|
16
|
+
"maxLength": 64
|
17
|
+
},
|
18
|
+
"limits": {
|
19
|
+
"type": "object",
|
20
|
+
"properties": {
|
21
|
+
"apitoken": {
|
22
|
+
"type": "number"
|
23
|
+
},
|
24
|
+
"application": {
|
25
|
+
"type": "number"
|
26
|
+
},
|
27
|
+
"applicationkey": {
|
28
|
+
"type": "number"
|
29
|
+
},
|
30
|
+
"dashboard": {
|
31
|
+
"type": "number"
|
32
|
+
},
|
33
|
+
"datatable": {
|
34
|
+
"type": "number"
|
35
|
+
},
|
36
|
+
"device": {
|
37
|
+
"type": "number"
|
38
|
+
},
|
39
|
+
"devicerecipe": {
|
40
|
+
"type": "number"
|
41
|
+
},
|
42
|
+
"experiencedomain": {
|
43
|
+
"type": "number"
|
44
|
+
},
|
45
|
+
"experienceendpoint": {
|
46
|
+
"type": "number"
|
47
|
+
},
|
48
|
+
"experiencegroup": {
|
49
|
+
"type": "number"
|
50
|
+
},
|
51
|
+
"experienceslug": {
|
52
|
+
"type": "number"
|
53
|
+
},
|
54
|
+
"experienceuser": {
|
55
|
+
"type": "number"
|
56
|
+
},
|
57
|
+
"experienceversion": {
|
58
|
+
"type": "number"
|
59
|
+
},
|
60
|
+
"experienceview": {
|
61
|
+
"type": "number"
|
62
|
+
},
|
63
|
+
"file": {
|
64
|
+
"type": "number"
|
65
|
+
},
|
66
|
+
"flow": {
|
67
|
+
"type": "number"
|
68
|
+
},
|
69
|
+
"integration": {
|
70
|
+
"type": "number"
|
71
|
+
},
|
72
|
+
"notebook": {
|
73
|
+
"type": "number"
|
74
|
+
},
|
75
|
+
"webhook": {
|
76
|
+
"type": "number"
|
77
|
+
},
|
78
|
+
"dataTTL": {
|
79
|
+
"type": "number"
|
80
|
+
},
|
81
|
+
"member": {
|
82
|
+
"type": "number"
|
83
|
+
},
|
84
|
+
"payload": {
|
85
|
+
"type": "number"
|
86
|
+
},
|
87
|
+
"notebookMinutesPerRun": {
|
88
|
+
"type": "number"
|
89
|
+
},
|
90
|
+
"notebookMinutesPerMonth": {
|
91
|
+
"type": "number"
|
92
|
+
},
|
93
|
+
"notebookInParallel": {
|
94
|
+
"type": "number"
|
95
|
+
}
|
96
|
+
}
|
97
|
+
},
|
98
|
+
"auditLogEnabled": {
|
99
|
+
"type": "boolean"
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"additionalProperties": false
|
103
|
+
}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"name": {
|
6
|
+
"type": "string",
|
7
|
+
"minLength": 1,
|
8
|
+
"maxLength": 255
|
9
|
+
},
|
10
|
+
"description": {
|
11
|
+
"type": "string",
|
12
|
+
"maxLength": 32767
|
13
|
+
},
|
14
|
+
"iconColor": {
|
15
|
+
"type": "string",
|
16
|
+
"maxLength": 64
|
17
|
+
},
|
18
|
+
"limits": {
|
19
|
+
"type": "object",
|
20
|
+
"properties": {
|
21
|
+
"apitoken": {
|
22
|
+
"type": "number"
|
23
|
+
},
|
24
|
+
"application": {
|
25
|
+
"type": "number"
|
26
|
+
},
|
27
|
+
"applicationkey": {
|
28
|
+
"type": "number"
|
29
|
+
},
|
30
|
+
"dashboard": {
|
31
|
+
"type": "number"
|
32
|
+
},
|
33
|
+
"datatable": {
|
34
|
+
"type": "number"
|
35
|
+
},
|
36
|
+
"device": {
|
37
|
+
"type": "number"
|
38
|
+
},
|
39
|
+
"devicerecipe": {
|
40
|
+
"type": "number"
|
41
|
+
},
|
42
|
+
"experiencedomain": {
|
43
|
+
"type": "number"
|
44
|
+
},
|
45
|
+
"experienceendpoint": {
|
46
|
+
"type": "number"
|
47
|
+
},
|
48
|
+
"experiencegroup": {
|
49
|
+
"type": "number"
|
50
|
+
},
|
51
|
+
"experienceslug": {
|
52
|
+
"type": "number"
|
53
|
+
},
|
54
|
+
"experienceuser": {
|
55
|
+
"type": "number"
|
56
|
+
},
|
57
|
+
"experienceversion": {
|
58
|
+
"type": "number"
|
59
|
+
},
|
60
|
+
"experienceview": {
|
61
|
+
"type": "number"
|
62
|
+
},
|
63
|
+
"file": {
|
64
|
+
"type": "number"
|
65
|
+
},
|
66
|
+
"flow": {
|
67
|
+
"type": "number"
|
68
|
+
},
|
69
|
+
"integration": {
|
70
|
+
"type": "number"
|
71
|
+
},
|
72
|
+
"notebook": {
|
73
|
+
"type": "number"
|
74
|
+
},
|
75
|
+
"webhook": {
|
76
|
+
"type": "number"
|
77
|
+
},
|
78
|
+
"dataTTL": {
|
79
|
+
"type": "number"
|
80
|
+
},
|
81
|
+
"member": {
|
82
|
+
"type": "number"
|
83
|
+
},
|
84
|
+
"payload": {
|
85
|
+
"type": "number"
|
86
|
+
},
|
87
|
+
"notebookMinutesPerRun": {
|
88
|
+
"type": "number"
|
89
|
+
},
|
90
|
+
"notebookMinutesPerMonth": {
|
91
|
+
"type": "number"
|
92
|
+
},
|
93
|
+
"notebookInParallel": {
|
94
|
+
"type": "number"
|
95
|
+
}
|
96
|
+
}
|
97
|
+
},
|
98
|
+
"whitelistedEmailDomains": {
|
99
|
+
"type": "array",
|
100
|
+
"items": {
|
101
|
+
"type": "string",
|
102
|
+
"maxLength": 45,
|
103
|
+
"minLength": 3
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"auditLogEnabled": {
|
107
|
+
"type": "boolean"
|
108
|
+
}
|
109
|
+
},
|
110
|
+
"additionalProperties": false,
|
111
|
+
"required": [
|
112
|
+
"name"
|
113
|
+
]
|
114
|
+
}
|
@@ -0,0 +1,160 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"items": {
|
6
|
+
"type": "array",
|
7
|
+
"items": {
|
8
|
+
"title": "Instance Organization",
|
9
|
+
"description": "Schema for the body of an Organization owned by an instance",
|
10
|
+
"type": "object",
|
11
|
+
"properties": {
|
12
|
+
"name": {
|
13
|
+
"type": "string",
|
14
|
+
"minLength": 1,
|
15
|
+
"maxLength": 255
|
16
|
+
},
|
17
|
+
"id": {
|
18
|
+
"type": "string",
|
19
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
20
|
+
},
|
21
|
+
"instanceId": {
|
22
|
+
"type": "string",
|
23
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
24
|
+
},
|
25
|
+
"description": {
|
26
|
+
"type": "string",
|
27
|
+
"maxLength": 32767
|
28
|
+
},
|
29
|
+
"iconColor": {
|
30
|
+
"type": "string",
|
31
|
+
"maxLength": 64
|
32
|
+
},
|
33
|
+
"limits": {
|
34
|
+
"apitoken": {
|
35
|
+
"type": "number"
|
36
|
+
},
|
37
|
+
"application": {
|
38
|
+
"type": "number"
|
39
|
+
},
|
40
|
+
"applicationkey": {
|
41
|
+
"type": "number"
|
42
|
+
},
|
43
|
+
"dashboard": {
|
44
|
+
"type": "number"
|
45
|
+
},
|
46
|
+
"datatable": {
|
47
|
+
"type": "number"
|
48
|
+
},
|
49
|
+
"device": {
|
50
|
+
"type": "number"
|
51
|
+
},
|
52
|
+
"devicerecipe": {
|
53
|
+
"type": "number"
|
54
|
+
},
|
55
|
+
"experiencedomain": {
|
56
|
+
"type": "number"
|
57
|
+
},
|
58
|
+
"experienceendpoint": {
|
59
|
+
"type": "number"
|
60
|
+
},
|
61
|
+
"experiencegroup": {
|
62
|
+
"type": "number"
|
63
|
+
},
|
64
|
+
"experienceslug": {
|
65
|
+
"type": "number"
|
66
|
+
},
|
67
|
+
"experienceuser": {
|
68
|
+
"type": "number"
|
69
|
+
},
|
70
|
+
"experienceversion": {
|
71
|
+
"type": "number"
|
72
|
+
},
|
73
|
+
"experienceview": {
|
74
|
+
"type": "number"
|
75
|
+
},
|
76
|
+
"file": {
|
77
|
+
"type": "number"
|
78
|
+
},
|
79
|
+
"flow": {
|
80
|
+
"type": "number"
|
81
|
+
},
|
82
|
+
"integration": {
|
83
|
+
"type": "number"
|
84
|
+
},
|
85
|
+
"notebook": {
|
86
|
+
"type": "number"
|
87
|
+
},
|
88
|
+
"webhook": {
|
89
|
+
"type": "number"
|
90
|
+
},
|
91
|
+
"dataTTL": {
|
92
|
+
"type": "number"
|
93
|
+
},
|
94
|
+
"member": {
|
95
|
+
"type": "number"
|
96
|
+
},
|
97
|
+
"payload": {
|
98
|
+
"type": "number"
|
99
|
+
},
|
100
|
+
"notebookMinutesPerRun": {
|
101
|
+
"type": "number"
|
102
|
+
},
|
103
|
+
"notebookMinutesPerMonth": {
|
104
|
+
"type": "number"
|
105
|
+
},
|
106
|
+
"notebookInParallel": {
|
107
|
+
"type": "number"
|
108
|
+
}
|
109
|
+
},
|
110
|
+
"whitelistedEmailDomains": {
|
111
|
+
"type": "array",
|
112
|
+
"items": {
|
113
|
+
"type": "string",
|
114
|
+
"maxLength": 45,
|
115
|
+
"minLength": 3
|
116
|
+
}
|
117
|
+
},
|
118
|
+
"auditLogEnabled": {
|
119
|
+
"type": "boolean"
|
120
|
+
}
|
121
|
+
},
|
122
|
+
"additionalProperties": false,
|
123
|
+
"required": [
|
124
|
+
"name"
|
125
|
+
]
|
126
|
+
}
|
127
|
+
},
|
128
|
+
"count": {
|
129
|
+
"type": "integer"
|
130
|
+
},
|
131
|
+
"totalCount": {
|
132
|
+
"type": "integer"
|
133
|
+
},
|
134
|
+
"perPage": {
|
135
|
+
"type": "integer"
|
136
|
+
},
|
137
|
+
"page": {
|
138
|
+
"type": "integer"
|
139
|
+
},
|
140
|
+
"filter": {
|
141
|
+
"type": "string"
|
142
|
+
},
|
143
|
+
"filterField": {
|
144
|
+
"type": "string"
|
145
|
+
},
|
146
|
+
"sortField": {
|
147
|
+
"type": "string"
|
148
|
+
},
|
149
|
+
"sortDirection": {
|
150
|
+
"type": "string",
|
151
|
+
"enum": [
|
152
|
+
"asc",
|
153
|
+
"desc",
|
154
|
+
"ASC",
|
155
|
+
"DESC",
|
156
|
+
""
|
157
|
+
]
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"items": {
|
6
|
+
"type": "array",
|
7
|
+
"items": {
|
8
|
+
"type": "#/definitions/instance"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
"count": {
|
12
|
+
"type": "integer"
|
13
|
+
},
|
14
|
+
"totalCount": {
|
15
|
+
"type": "integer"
|
16
|
+
},
|
17
|
+
"perPage": {
|
18
|
+
"type": "integer"
|
19
|
+
},
|
20
|
+
"page": {
|
21
|
+
"type": "integer"
|
22
|
+
},
|
23
|
+
"filter": {
|
24
|
+
"type": "string"
|
25
|
+
},
|
26
|
+
"filterField": {
|
27
|
+
"type": "string"
|
28
|
+
},
|
29
|
+
"sortField": {
|
30
|
+
"type": "string"
|
31
|
+
},
|
32
|
+
"sortDirection": {
|
33
|
+
"type": "string",
|
34
|
+
"enum": [
|
35
|
+
"asc",
|
36
|
+
"desc",
|
37
|
+
"ASC",
|
38
|
+
"DESC",
|
39
|
+
""
|
40
|
+
]
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
@@ -37,6 +37,8 @@
|
|
37
37
|
"applicationCertificates.*",
|
38
38
|
"applicationCertificateAuthority.*",
|
39
39
|
"applicationCertificateAuthorities.*",
|
40
|
+
"applicationDashboards.*",
|
41
|
+
"applicationDashboard.*",
|
40
42
|
"applicationKey.*",
|
41
43
|
"applicationKeys.*",
|
42
44
|
"data.*",
|
@@ -109,6 +111,11 @@
|
|
109
111
|
"applicationCertificateAuthority.patch",
|
110
112
|
"applicationCertificateAuthorities.get",
|
111
113
|
"applicationCertificateAuthorities.post",
|
114
|
+
"applicationDashboard.get",
|
115
|
+
"applicationDashboard.patch",
|
116
|
+
"applicationDashboard.delete",
|
117
|
+
"applicationDashboards.get",
|
118
|
+
"applicationDashboards.post",
|
112
119
|
"applicationKey.delete",
|
113
120
|
"applicationKey.get",
|
114
121
|
"applicationKey.patch",
|
@@ -326,6 +333,17 @@
|
|
326
333
|
"applicationTemplates.getUniqueKeywords",
|
327
334
|
"me.*",
|
328
335
|
"orgs.*",
|
336
|
+
"instance.*",
|
337
|
+
"instance.get",
|
338
|
+
"instances.*",
|
339
|
+
"instances.get",
|
340
|
+
"instanceOrg.*",
|
341
|
+
"instanceOrg.get",
|
342
|
+
"instanceOrg.patch",
|
343
|
+
"instanceOrg.delete",
|
344
|
+
"instanceOrgs.*",
|
345
|
+
"instanceOrgs.get",
|
346
|
+
"instanceOrgs.post",
|
329
347
|
"me.get",
|
330
348
|
"me.patch",
|
331
349
|
"me.delete",
|