losant_rest 2.1.1 → 2.1.2
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.
- checksums.yaml +4 -4
- data/docs/_schemas.md +1391 -55
- data/lib/platform_rest/client.rb +2 -2
- data/lib/platform_rest/version.rb +1 -1
- data/schemas/apiTokenPost.json +4 -0
- data/schemas/applicationDashboardPost.json +142 -11
- data/schemas/dashboard.json +142 -11
- data/schemas/dashboardPatch.json +142 -11
- data/schemas/dashboardPost.json +142 -11
- data/schemas/dashboards.json +142 -11
- data/schemas/githubLogin.json +4 -0
- data/schemas/instance.json +6 -0
- data/schemas/instanceOrg.json +12 -0
- data/schemas/instanceOrgEntitlement.json +182 -0
- data/schemas/instanceOrgEntitlementSync.json +64 -0
- data/schemas/instanceOrgs.json +12 -0
- data/schemas/instances.json +6 -0
- data/schemas/meEntitlements.json +194 -0
- data/schemas/org.json +16 -0
- data/schemas/orgPost.json +4 -0
- data/schemas/orgs.json +16 -0
- data/schemas/samlResponse.json +4 -0
- data/schemas/userCredentials.json +4 -0
- data/schemas/userPost.json +4 -0
- data/schemas/validateContextError.json +28 -0
- data/schemas/validateContextSuccess.json +28 -0
- metadata +4 -1
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"userFound": {
|
|
6
|
+
"type": "boolean"
|
|
7
|
+
},
|
|
8
|
+
"entitlements": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"title": "Entitlement",
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"entitlementId": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"expiresAt": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "date-time"
|
|
20
|
+
},
|
|
21
|
+
"externalOrgId": {
|
|
22
|
+
"type": "integer"
|
|
23
|
+
},
|
|
24
|
+
"externalOrgName": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"subscriptionName": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"hasSupport": {
|
|
31
|
+
"type": "boolean"
|
|
32
|
+
},
|
|
33
|
+
"allowedOrgCount": {
|
|
34
|
+
"type": "integer"
|
|
35
|
+
},
|
|
36
|
+
"usedOrgCount": {
|
|
37
|
+
"type": "integer"
|
|
38
|
+
},
|
|
39
|
+
"orgIds": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
44
|
+
},
|
|
45
|
+
"maxItems": 1000
|
|
46
|
+
},
|
|
47
|
+
"limits": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"apitoken": {
|
|
51
|
+
"type": "integer",
|
|
52
|
+
"minimum": 0
|
|
53
|
+
},
|
|
54
|
+
"application": {
|
|
55
|
+
"type": "integer",
|
|
56
|
+
"minimum": 0
|
|
57
|
+
},
|
|
58
|
+
"applicationcertificate": {
|
|
59
|
+
"type": "integer",
|
|
60
|
+
"minimum": 0
|
|
61
|
+
},
|
|
62
|
+
"applicationcertificateauthority": {
|
|
63
|
+
"type": "integer",
|
|
64
|
+
"minimum": 0
|
|
65
|
+
},
|
|
66
|
+
"applicationkey": {
|
|
67
|
+
"type": "integer",
|
|
68
|
+
"minimum": 0
|
|
69
|
+
},
|
|
70
|
+
"credential": {
|
|
71
|
+
"type": "integer",
|
|
72
|
+
"minimum": 0
|
|
73
|
+
},
|
|
74
|
+
"dashboard": {
|
|
75
|
+
"type": "integer",
|
|
76
|
+
"minimum": 0
|
|
77
|
+
},
|
|
78
|
+
"datatable": {
|
|
79
|
+
"type": "integer",
|
|
80
|
+
"minimum": 0
|
|
81
|
+
},
|
|
82
|
+
"device": {
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"minimum": 0
|
|
85
|
+
},
|
|
86
|
+
"devicerecipe": {
|
|
87
|
+
"type": "integer",
|
|
88
|
+
"minimum": 0
|
|
89
|
+
},
|
|
90
|
+
"experiencedomain": {
|
|
91
|
+
"type": "integer",
|
|
92
|
+
"minimum": 0
|
|
93
|
+
},
|
|
94
|
+
"experienceendpoint": {
|
|
95
|
+
"type": "integer",
|
|
96
|
+
"minimum": 0
|
|
97
|
+
},
|
|
98
|
+
"experiencegroup": {
|
|
99
|
+
"type": "integer",
|
|
100
|
+
"minimum": 0
|
|
101
|
+
},
|
|
102
|
+
"experienceslug": {
|
|
103
|
+
"type": "integer",
|
|
104
|
+
"minimum": 0
|
|
105
|
+
},
|
|
106
|
+
"experienceuser": {
|
|
107
|
+
"type": "integer",
|
|
108
|
+
"minimum": 0
|
|
109
|
+
},
|
|
110
|
+
"experienceversion": {
|
|
111
|
+
"type": "integer",
|
|
112
|
+
"minimum": 0
|
|
113
|
+
},
|
|
114
|
+
"experienceview": {
|
|
115
|
+
"type": "integer",
|
|
116
|
+
"minimum": 0
|
|
117
|
+
},
|
|
118
|
+
"file": {
|
|
119
|
+
"type": "integer",
|
|
120
|
+
"minimum": 0
|
|
121
|
+
},
|
|
122
|
+
"flow": {
|
|
123
|
+
"type": "integer",
|
|
124
|
+
"minimum": 0
|
|
125
|
+
},
|
|
126
|
+
"integration": {
|
|
127
|
+
"type": "integer",
|
|
128
|
+
"minimum": 0
|
|
129
|
+
},
|
|
130
|
+
"notebook": {
|
|
131
|
+
"type": "integer",
|
|
132
|
+
"minimum": 0
|
|
133
|
+
},
|
|
134
|
+
"privatefile": {
|
|
135
|
+
"type": "integer",
|
|
136
|
+
"minimum": 0
|
|
137
|
+
},
|
|
138
|
+
"resourcejob": {
|
|
139
|
+
"type": "integer",
|
|
140
|
+
"minimum": 0
|
|
141
|
+
},
|
|
142
|
+
"webhook": {
|
|
143
|
+
"type": "integer",
|
|
144
|
+
"minimum": 0
|
|
145
|
+
},
|
|
146
|
+
"dataTTL": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"minimum": 86400
|
|
149
|
+
},
|
|
150
|
+
"member": {
|
|
151
|
+
"type": "integer",
|
|
152
|
+
"minimum": 0
|
|
153
|
+
},
|
|
154
|
+
"payload": {
|
|
155
|
+
"type": "integer",
|
|
156
|
+
"minimum": 0
|
|
157
|
+
},
|
|
158
|
+
"storage": {
|
|
159
|
+
"type": "integer",
|
|
160
|
+
"minimum": 0
|
|
161
|
+
},
|
|
162
|
+
"notebookMinutesPerRun": {
|
|
163
|
+
"type": "integer",
|
|
164
|
+
"minimum": 0
|
|
165
|
+
},
|
|
166
|
+
"notebookMinutesPerMonth": {
|
|
167
|
+
"type": "integer",
|
|
168
|
+
"minimum": 0
|
|
169
|
+
},
|
|
170
|
+
"notebookInParallel": {
|
|
171
|
+
"type": "integer",
|
|
172
|
+
"minimum": 0
|
|
173
|
+
},
|
|
174
|
+
"experienceFlowSlots": {
|
|
175
|
+
"type": "integer",
|
|
176
|
+
"minimum": 0
|
|
177
|
+
},
|
|
178
|
+
"applicationFlowSlots": {
|
|
179
|
+
"type": "integer",
|
|
180
|
+
"minimum": 0
|
|
181
|
+
},
|
|
182
|
+
"systemInterval": {
|
|
183
|
+
"type": "integer",
|
|
184
|
+
"minimum": 5,
|
|
185
|
+
"maximum": 3600
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"additionalProperties": false
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
data/schemas/org.json
CHANGED
|
@@ -275,6 +275,18 @@
|
|
|
275
275
|
"type": "integer",
|
|
276
276
|
"minimum": 5,
|
|
277
277
|
"maximum": 3600
|
|
278
|
+
},
|
|
279
|
+
"deviceHard": {
|
|
280
|
+
"type": "integer",
|
|
281
|
+
"minimum": 0
|
|
282
|
+
},
|
|
283
|
+
"applicationkeyHard": {
|
|
284
|
+
"type": "integer",
|
|
285
|
+
"minimum": 0
|
|
286
|
+
},
|
|
287
|
+
"applicationcertificateHard": {
|
|
288
|
+
"type": "integer",
|
|
289
|
+
"minimum": 0
|
|
278
290
|
}
|
|
279
291
|
},
|
|
280
292
|
"additionalProperties": false
|
|
@@ -549,6 +561,10 @@
|
|
|
549
561
|
}
|
|
550
562
|
}
|
|
551
563
|
},
|
|
564
|
+
"entitlementOrgId": {
|
|
565
|
+
"type": "string",
|
|
566
|
+
"maxLength": 1024
|
|
567
|
+
},
|
|
552
568
|
"planId": {
|
|
553
569
|
"type": "string",
|
|
554
570
|
"maxLength": 1024
|
data/schemas/orgPost.json
CHANGED
data/schemas/orgs.json
CHANGED
|
@@ -282,6 +282,18 @@
|
|
|
282
282
|
"type": "integer",
|
|
283
283
|
"minimum": 5,
|
|
284
284
|
"maximum": 3600
|
|
285
|
+
},
|
|
286
|
+
"deviceHard": {
|
|
287
|
+
"type": "integer",
|
|
288
|
+
"minimum": 0
|
|
289
|
+
},
|
|
290
|
+
"applicationkeyHard": {
|
|
291
|
+
"type": "integer",
|
|
292
|
+
"minimum": 0
|
|
293
|
+
},
|
|
294
|
+
"applicationcertificateHard": {
|
|
295
|
+
"type": "integer",
|
|
296
|
+
"minimum": 0
|
|
285
297
|
}
|
|
286
298
|
},
|
|
287
299
|
"additionalProperties": false
|
|
@@ -556,6 +568,10 @@
|
|
|
556
568
|
}
|
|
557
569
|
}
|
|
558
570
|
},
|
|
571
|
+
"entitlementOrgId": {
|
|
572
|
+
"type": "string",
|
|
573
|
+
"maxLength": 1024
|
|
574
|
+
},
|
|
559
575
|
"planId": {
|
|
560
576
|
"type": "string",
|
|
561
577
|
"maxLength": 1024
|
data/schemas/samlResponse.json
CHANGED
|
@@ -408,6 +408,7 @@
|
|
|
408
408
|
"instance.payloadCountsBreakdown",
|
|
409
409
|
"instance.deviceCounts",
|
|
410
410
|
"instance.notebookMinuteCounts",
|
|
411
|
+
"instance.entitlements",
|
|
411
412
|
"instanceOrg.*",
|
|
412
413
|
"instanceOrg.get",
|
|
413
414
|
"instanceOrg.patch",
|
|
@@ -416,6 +417,8 @@
|
|
|
416
417
|
"instanceOrg.payloadCountsBreakdown",
|
|
417
418
|
"instanceOrg.deviceCounts",
|
|
418
419
|
"instanceOrg.notebookMinuteCounts",
|
|
420
|
+
"instanceOrg.entitlement",
|
|
421
|
+
"instanceOrg.entitlementSync",
|
|
419
422
|
"instanceOrg.convertToEnterprise",
|
|
420
423
|
"instanceOrgs.*",
|
|
421
424
|
"instanceOrgs.get",
|
|
@@ -536,6 +539,7 @@
|
|
|
536
539
|
"me.invites",
|
|
537
540
|
"me.respondToInvite",
|
|
538
541
|
"me.refreshToken",
|
|
542
|
+
"me.entitlements",
|
|
539
543
|
"orgs.*",
|
|
540
544
|
"orgs.get",
|
|
541
545
|
"orgs.post"
|
|
@@ -412,6 +412,7 @@
|
|
|
412
412
|
"instance.payloadCountsBreakdown",
|
|
413
413
|
"instance.deviceCounts",
|
|
414
414
|
"instance.notebookMinuteCounts",
|
|
415
|
+
"instance.entitlements",
|
|
415
416
|
"instanceOrg.*",
|
|
416
417
|
"instanceOrg.get",
|
|
417
418
|
"instanceOrg.patch",
|
|
@@ -420,6 +421,8 @@
|
|
|
420
421
|
"instanceOrg.payloadCountsBreakdown",
|
|
421
422
|
"instanceOrg.deviceCounts",
|
|
422
423
|
"instanceOrg.notebookMinuteCounts",
|
|
424
|
+
"instanceOrg.entitlement",
|
|
425
|
+
"instanceOrg.entitlementSync",
|
|
423
426
|
"instanceOrg.convertToEnterprise",
|
|
424
427
|
"instanceOrgs.*",
|
|
425
428
|
"instanceOrgs.get",
|
|
@@ -540,6 +543,7 @@
|
|
|
540
543
|
"me.invites",
|
|
541
544
|
"me.respondToInvite",
|
|
542
545
|
"me.refreshToken",
|
|
546
|
+
"me.entitlements",
|
|
543
547
|
"orgs.*",
|
|
544
548
|
"orgs.get",
|
|
545
549
|
"orgs.post"
|
data/schemas/userPost.json
CHANGED
|
@@ -470,6 +470,7 @@
|
|
|
470
470
|
"instance.payloadCountsBreakdown",
|
|
471
471
|
"instance.deviceCounts",
|
|
472
472
|
"instance.notebookMinuteCounts",
|
|
473
|
+
"instance.entitlements",
|
|
473
474
|
"instanceOrg.*",
|
|
474
475
|
"instanceOrg.get",
|
|
475
476
|
"instanceOrg.patch",
|
|
@@ -478,6 +479,8 @@
|
|
|
478
479
|
"instanceOrg.payloadCountsBreakdown",
|
|
479
480
|
"instanceOrg.deviceCounts",
|
|
480
481
|
"instanceOrg.notebookMinuteCounts",
|
|
482
|
+
"instanceOrg.entitlement",
|
|
483
|
+
"instanceOrg.entitlementSync",
|
|
481
484
|
"instanceOrg.convertToEnterprise",
|
|
482
485
|
"instanceOrgs.*",
|
|
483
486
|
"instanceOrgs.get",
|
|
@@ -598,6 +601,7 @@
|
|
|
598
601
|
"me.invites",
|
|
599
602
|
"me.respondToInvite",
|
|
600
603
|
"me.refreshToken",
|
|
604
|
+
"me.entitlements",
|
|
601
605
|
"orgs.*",
|
|
602
606
|
"orgs.get",
|
|
603
607
|
"orgs.post"
|
|
@@ -151,6 +151,34 @@
|
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
"additionalProperties": false
|
|
154
|
+
},
|
|
155
|
+
"experienceGroups": {
|
|
156
|
+
"type": "array",
|
|
157
|
+
"items": {
|
|
158
|
+
"type": "object",
|
|
159
|
+
"properties": {
|
|
160
|
+
"name": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"minLength": 1,
|
|
163
|
+
"maxLength": 255
|
|
164
|
+
},
|
|
165
|
+
"id": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
168
|
+
},
|
|
169
|
+
"parentId": {
|
|
170
|
+
"oneOf": [
|
|
171
|
+
{
|
|
172
|
+
"type": "string",
|
|
173
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"type": "null"
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
154
182
|
}
|
|
155
183
|
}
|
|
156
184
|
}
|
|
@@ -147,6 +147,34 @@
|
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
"additionalProperties": false
|
|
150
|
+
},
|
|
151
|
+
"experienceGroups": {
|
|
152
|
+
"type": "array",
|
|
153
|
+
"items": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"properties": {
|
|
156
|
+
"name": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"minLength": 1,
|
|
159
|
+
"maxLength": 255
|
|
160
|
+
},
|
|
161
|
+
"id": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
164
|
+
},
|
|
165
|
+
"parentId": {
|
|
166
|
+
"oneOf": [
|
|
167
|
+
{
|
|
168
|
+
"type": "string",
|
|
169
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"type": "null"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
150
178
|
}
|
|
151
179
|
}
|
|
152
180
|
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: losant_rest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Kuehl
|
|
@@ -537,6 +537,8 @@ files:
|
|
|
537
537
|
- schemas/instanceMemberPost.json
|
|
538
538
|
- schemas/instanceMembers.json
|
|
539
539
|
- schemas/instanceOrg.json
|
|
540
|
+
- schemas/instanceOrgEntitlement.json
|
|
541
|
+
- schemas/instanceOrgEntitlementSync.json
|
|
540
542
|
- schemas/instanceOrgInvite.json
|
|
541
543
|
- schemas/instanceOrgInviteSent.json
|
|
542
544
|
- schemas/instanceOrgInvites.json
|
|
@@ -560,6 +562,7 @@ files:
|
|
|
560
562
|
- schemas/lastValueData.json
|
|
561
563
|
- schemas/lastValueQuery.json
|
|
562
564
|
- schemas/me.json
|
|
565
|
+
- schemas/meEntitlements.json
|
|
563
566
|
- schemas/mePatch.json
|
|
564
567
|
- schemas/mqttPublishBody.json
|
|
565
568
|
- schemas/multiDeviceCommand.json
|