losant_rest 1.13.0 → 1.15.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 +19437 -10622
- data/docs/application.md +6 -6
- data/docs/applicationApiTokens.md +1 -1
- data/docs/applications.md +1 -1
- data/docs/dataTable.md +1 -1
- data/docs/dataTableRows.md +1 -1
- data/docs/dataTables.md +1 -1
- data/docs/device.md +43 -0
- data/docs/devices.md +41 -2
- data/docs/edgeDeployment.md +49 -0
- data/docs/embeddedDeployment.md +49 -0
- data/docs/embeddedDeployments.md +215 -0
- data/docs/experience.md +1 -1
- data/docs/experienceDomains.md +1 -1
- data/docs/experienceGroup.md +2 -0
- data/docs/experienceSlugs.md +1 -1
- data/docs/experienceVersion.md +3 -3
- data/docs/experienceVersions.md +2 -2
- data/docs/experienceView.md +4 -4
- data/docs/experienceViews.md +2 -2
- data/docs/file.md +5 -5
- data/docs/files.md +2 -2
- data/docs/flow.md +3 -3
- data/docs/flowVersions.md +44 -0
- data/docs/flows.md +2 -2
- data/docs/instance.md +40 -0
- data/docs/instanceApiToken.md +133 -0
- data/docs/instanceApiTokens.md +91 -0
- data/docs/instanceMembers.md +1 -1
- data/docs/instanceOrg.md +2 -0
- data/docs/instanceOrgInvite.md +139 -0
- data/docs/instanceOrgInvites.md +96 -0
- data/docs/instanceOrgMembers.md +3 -3
- data/docs/instanceOrgs.md +1 -1
- data/docs/me.md +1 -1
- data/docs/org.md +1 -1
- data/docs/userApiToken.md +125 -0
- data/docs/userApiTokens.md +87 -0
- data/lib/losant_rest/application.rb +5 -5
- data/lib/losant_rest/application_api_tokens.rb +1 -1
- data/lib/losant_rest/applications.rb +1 -1
- data/lib/losant_rest/client.rb +38 -2
- data/lib/losant_rest/data_table.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 +50 -0
- data/lib/losant_rest/devices.rb +48 -2
- data/lib/losant_rest/edge_deployment.rb +81 -0
- data/lib/losant_rest/embedded_deployment.rb +81 -0
- data/lib/losant_rest/embedded_deployments.rb +280 -0
- data/lib/losant_rest/experience.rb +1 -1
- data/lib/losant_rest/experience_domains.rb +1 -1
- data/lib/losant_rest/experience_group.rb +4 -0
- data/lib/losant_rest/experience_slugs.rb +1 -1
- data/lib/losant_rest/experience_version.rb +3 -3
- data/lib/losant_rest/experience_versions.rb +2 -2
- data/lib/losant_rest/experience_view.rb +4 -4
- data/lib/losant_rest/experience_views.rb +2 -2
- data/lib/losant_rest/file.rb +4 -4
- data/lib/losant_rest/files.rb +2 -2
- data/lib/losant_rest/flow.rb +3 -3
- data/lib/losant_rest/flow_versions.rb +50 -0
- data/lib/losant_rest/flows.rb +2 -2
- data/lib/losant_rest/instance.rb +47 -1
- data/lib/losant_rest/instance_api_token.rb +176 -0
- data/lib/losant_rest/instance_api_tokens.rb +136 -0
- data/lib/losant_rest/instance_member.rb +1 -1
- data/lib/losant_rest/instance_members.rb +2 -2
- data/lib/losant_rest/instance_org.rb +5 -1
- data/lib/losant_rest/instance_org_invite.rb +182 -0
- data/lib/losant_rest/instance_org_invites.rb +138 -0
- data/lib/losant_rest/instance_org_member.rb +1 -1
- data/lib/losant_rest/instance_org_members.rb +4 -4
- data/lib/losant_rest/instance_orgs.rb +3 -3
- data/lib/losant_rest/instances.rb +1 -1
- data/lib/losant_rest/user_api_token.rb +170 -0
- data/lib/losant_rest/user_api_tokens.rb +132 -0
- data/lib/losant_rest/version.rb +1 -1
- data/lib/losant_rest.rb +9 -0
- data/schemas/apiToken.json +2 -1
- data/schemas/apiTokenPost.json +439 -0
- data/schemas/apiTokens.json +4 -2
- data/schemas/application.json +32 -32
- data/schemas/applicationCreationByTemplateResult.json +32 -32
- data/schemas/applicationDashboardPost.json +28 -21
- data/schemas/applicationPatch.json +13 -13
- data/schemas/applicationPost.json +13 -13
- data/schemas/applicationTemplate.json +16 -16
- data/schemas/applicationTemplates.json +16 -16
- data/schemas/applications.json +32 -32
- data/schemas/auditLog.json +4 -0
- data/schemas/auditLogFilter.json +4 -0
- data/schemas/auditLogs.json +4 -0
- data/schemas/authedDevice.json +2 -1
- data/schemas/bulkDeleteResponse.json +12 -0
- data/schemas/dashboard.json +28 -21
- data/schemas/dashboardPatch.json +28 -21
- data/schemas/dashboardPost.json +28 -21
- data/schemas/dashboardSendReport.json +9 -5
- data/schemas/dashboards.json +28 -21
- data/schemas/dataTableRowsDelete.json +1 -1
- data/schemas/device.json +2 -1
- data/schemas/deviceClassFilter.json +4 -2
- data/schemas/devicePatch.json +2 -1
- data/schemas/devicePayloadCounts.json +24 -0
- data/schemas/devicePost.json +2 -1
- data/schemas/deviceRecipe.json +2 -1
- data/schemas/deviceRecipePatch.json +2 -1
- data/schemas/deviceRecipePost.json +2 -1
- data/schemas/deviceRecipes.json +2 -1
- data/schemas/devices.json +4 -2
- data/schemas/devicesExportPayloadCountPost.json +1350 -0
- data/schemas/devicesPatch.json +4 -2
- data/schemas/edgeDeployment.json +20 -0
- data/schemas/edgeDeployments.json +20 -0
- data/schemas/embeddedDeployment.json +179 -0
- data/schemas/embeddedDeploymentExport.json +44 -0
- data/schemas/embeddedDeploymentRelease.json +58 -0
- data/schemas/embeddedDeploymentRemove.json +25 -0
- data/schemas/embeddedDeploymentReplace.json +29 -0
- data/schemas/embeddedDeployments.json +212 -0
- data/schemas/eventsDeleted.json +1 -1
- data/schemas/experienceEndpoint.json +6 -8
- data/schemas/experienceEndpointPatch.json +6 -8
- data/schemas/experienceEndpointPost.json +6 -8
- data/schemas/experienceEndpoints.json +6 -8
- data/schemas/experienceGroup.json +6 -0
- data/schemas/experienceGroups.json +6 -0
- data/schemas/experienceLinkedResources.json +790 -85
- data/schemas/flow.json +252 -16
- data/schemas/flowPatch.json +251 -16
- data/schemas/flowPost.json +252 -16
- data/schemas/flowVersion.json +503 -33
- data/schemas/flowVersionPost.json +251 -16
- data/schemas/flowVersions.json +503 -33
- data/schemas/flowVersionsDeletePost.json +941 -0
- data/schemas/flows.json +253 -16
- data/schemas/flowsImportPost.json +503 -32
- data/schemas/flowsImportResult.json +785 -79
- data/schemas/githubLogin.json +38 -1
- data/schemas/historicalSummary.json +150 -102
- data/schemas/instance.json +150 -77
- data/schemas/instanceMember.json +10 -0
- data/schemas/instanceMemberPost.json +18 -3
- data/schemas/instanceMembers.json +14 -0
- data/schemas/instanceOrg.json +87 -74
- data/schemas/instanceOrgMember.json +14 -0
- data/schemas/instanceOrgMembers.json +8 -0
- data/schemas/instanceOrgPatch.json +64 -26
- data/schemas/instanceOrgPost.json +229 -25
- data/schemas/instanceOrgs.json +91 -74
- data/schemas/instancePatch.json +67 -0
- data/schemas/instanceReportOptionsPost.json +1 -0
- data/schemas/me.json +134 -105
- data/schemas/notebook.json +45 -0
- data/schemas/notebookPatch.json +30 -0
- data/schemas/notebookPost.json +30 -0
- data/schemas/notebooks.json +45 -0
- data/schemas/org.json +145 -110
- data/schemas/orgInvite.json +90 -0
- data/schemas/orgInviteCollection.json +130 -0
- data/schemas/orgInvites.json +82 -77
- data/schemas/orgRoleInfo.json +69 -0
- data/schemas/orgs.json +145 -110
- data/schemas/payloadStats.json +28 -12
- data/schemas/userCredentials.json +38 -1
- data/schemas/userPost.json +38 -1
- data/schemas/validateContextError.json +34 -0
- data/schemas/validateContextSuccess.json +34 -0
- data/schemas/virtualButtonPress.json +4 -0
- metadata +39 -6
data/schemas/flowPatch.json
CHANGED
@@ -62,7 +62,6 @@
|
|
62
62
|
"onBoot",
|
63
63
|
"onConnect",
|
64
64
|
"onDisconnect",
|
65
|
-
"request",
|
66
65
|
"udp",
|
67
66
|
"webhook"
|
68
67
|
]
|
@@ -87,6 +86,7 @@
|
|
87
86
|
"deviceCommand",
|
88
87
|
"deviceIdsTagsConnect",
|
89
88
|
"deviceIdsTagsDisconnect",
|
89
|
+
"eeaInit",
|
90
90
|
"flowError",
|
91
91
|
"googlePubSub",
|
92
92
|
"meridian",
|
@@ -96,7 +96,6 @@
|
|
96
96
|
"onConnect",
|
97
97
|
"onDisconnect",
|
98
98
|
"particle",
|
99
|
-
"request",
|
100
99
|
"udp",
|
101
100
|
"webhook"
|
102
101
|
]
|
@@ -151,7 +150,8 @@
|
|
151
150
|
"type": "array",
|
152
151
|
"items": {
|
153
152
|
"type": "string",
|
154
|
-
"maxLength":
|
153
|
+
"maxLength": 48,
|
154
|
+
"minLength": 1
|
155
155
|
},
|
156
156
|
"maxItems": 100
|
157
157
|
},
|
@@ -255,7 +255,8 @@
|
|
255
255
|
"type": "array",
|
256
256
|
"items": {
|
257
257
|
"type": "string",
|
258
|
-
"maxLength":
|
258
|
+
"maxLength": 48,
|
259
|
+
"minLength": 1
|
259
260
|
},
|
260
261
|
"maxItems": 100
|
261
262
|
},
|
@@ -302,6 +303,21 @@
|
|
302
303
|
},
|
303
304
|
"maxAge": {
|
304
305
|
"type": "number"
|
306
|
+
},
|
307
|
+
"triggerOn": {
|
308
|
+
"type": "string",
|
309
|
+
"enum": [
|
310
|
+
"batch",
|
311
|
+
"individual",
|
312
|
+
"both"
|
313
|
+
]
|
314
|
+
},
|
315
|
+
"batchBehavior": {
|
316
|
+
"type": "string",
|
317
|
+
"enum": [
|
318
|
+
"once",
|
319
|
+
"each"
|
320
|
+
]
|
305
321
|
}
|
306
322
|
},
|
307
323
|
"additionalProperties": false
|
@@ -384,7 +400,8 @@
|
|
384
400
|
"type": "array",
|
385
401
|
"items": {
|
386
402
|
"type": "string",
|
387
|
-
"maxLength":
|
403
|
+
"maxLength": 48,
|
404
|
+
"minLength": 1
|
388
405
|
},
|
389
406
|
"maxItems": 100
|
390
407
|
},
|
@@ -480,8 +497,101 @@
|
|
480
497
|
"type": "array",
|
481
498
|
"items": {
|
482
499
|
"type": "string",
|
500
|
+
"maxLength": 48,
|
501
|
+
"minLength": 1
|
502
|
+
},
|
503
|
+
"maxItems": 100
|
504
|
+
},
|
505
|
+
"maxItems": 100
|
506
|
+
}
|
507
|
+
},
|
508
|
+
"required": [
|
509
|
+
"type"
|
510
|
+
],
|
511
|
+
"additionalProperties": false
|
512
|
+
},
|
513
|
+
{
|
514
|
+
"type": "object",
|
515
|
+
"properties": {
|
516
|
+
"key": {
|
517
|
+
"type": "string",
|
518
|
+
"maxLength": 1024
|
519
|
+
},
|
520
|
+
"type": {
|
521
|
+
"type": "string",
|
522
|
+
"enum": [
|
523
|
+
"direct"
|
524
|
+
]
|
525
|
+
},
|
526
|
+
"config": {
|
527
|
+
"type": "object",
|
528
|
+
"properties": {},
|
529
|
+
"additionalProperties": false
|
530
|
+
},
|
531
|
+
"meta": {
|
532
|
+
"type": "object",
|
533
|
+
"properties": {
|
534
|
+
"category": {
|
535
|
+
"type": "string",
|
536
|
+
"enum": [
|
537
|
+
"trigger"
|
538
|
+
]
|
539
|
+
},
|
540
|
+
"name": {
|
541
|
+
"type": "string",
|
542
|
+
"enum": [
|
543
|
+
"direct"
|
544
|
+
]
|
545
|
+
},
|
546
|
+
"label": {
|
547
|
+
"type": "string",
|
548
|
+
"minLength": 1,
|
483
549
|
"maxLength": 255
|
484
550
|
},
|
551
|
+
"x": {
|
552
|
+
"type": "number"
|
553
|
+
},
|
554
|
+
"y": {
|
555
|
+
"type": "number"
|
556
|
+
},
|
557
|
+
"uiId": {
|
558
|
+
"type": "string",
|
559
|
+
"maxLength": 48
|
560
|
+
},
|
561
|
+
"description": {
|
562
|
+
"type": "string",
|
563
|
+
"maxLength": 32767
|
564
|
+
},
|
565
|
+
"icon": {
|
566
|
+
"type": "string",
|
567
|
+
"maxLength": 1024
|
568
|
+
},
|
569
|
+
"color": {
|
570
|
+
"type": "string",
|
571
|
+
"maxLength": 1024
|
572
|
+
},
|
573
|
+
"inputCount": {
|
574
|
+
"type": "number"
|
575
|
+
},
|
576
|
+
"outputCount": {
|
577
|
+
"type": "number"
|
578
|
+
},
|
579
|
+
"id": {
|
580
|
+
"type": "string",
|
581
|
+
"maxLength": 48
|
582
|
+
}
|
583
|
+
},
|
584
|
+
"additionalProperties": false
|
585
|
+
},
|
586
|
+
"outputIds": {
|
587
|
+
"type": "array",
|
588
|
+
"items": {
|
589
|
+
"type": "array",
|
590
|
+
"items": {
|
591
|
+
"type": "string",
|
592
|
+
"maxLength": 48,
|
593
|
+
"minLength": 1
|
594
|
+
},
|
485
595
|
"maxItems": 100
|
486
596
|
},
|
487
597
|
"maxItems": 100
|
@@ -577,7 +687,8 @@
|
|
577
687
|
"type": "array",
|
578
688
|
"items": {
|
579
689
|
"type": "string",
|
580
|
-
"maxLength":
|
690
|
+
"maxLength": 48,
|
691
|
+
"minLength": 1
|
581
692
|
},
|
582
693
|
"maxItems": 100
|
583
694
|
},
|
@@ -682,7 +793,8 @@
|
|
682
793
|
"type": "array",
|
683
794
|
"items": {
|
684
795
|
"type": "string",
|
685
|
-
"maxLength":
|
796
|
+
"maxLength": 48,
|
797
|
+
"minLength": 1
|
686
798
|
},
|
687
799
|
"maxItems": 100
|
688
800
|
},
|
@@ -790,7 +902,8 @@
|
|
790
902
|
"type": "array",
|
791
903
|
"items": {
|
792
904
|
"type": "string",
|
793
|
-
"maxLength":
|
905
|
+
"maxLength": 48,
|
906
|
+
"minLength": 1
|
794
907
|
},
|
795
908
|
"maxItems": 100
|
796
909
|
},
|
@@ -901,7 +1014,8 @@
|
|
901
1014
|
"type": "array",
|
902
1015
|
"items": {
|
903
1016
|
"type": "string",
|
904
|
-
"maxLength":
|
1017
|
+
"maxLength": 48,
|
1018
|
+
"minLength": 1
|
905
1019
|
},
|
906
1020
|
"maxItems": 100
|
907
1021
|
},
|
@@ -1002,7 +1116,8 @@
|
|
1002
1116
|
"type": "array",
|
1003
1117
|
"items": {
|
1004
1118
|
"type": "string",
|
1005
|
-
"maxLength":
|
1119
|
+
"maxLength": 48,
|
1120
|
+
"minLength": 1
|
1006
1121
|
},
|
1007
1122
|
"maxItems": 100
|
1008
1123
|
},
|
@@ -1105,7 +1220,8 @@
|
|
1105
1220
|
"type": "array",
|
1106
1221
|
"items": {
|
1107
1222
|
"type": "string",
|
1108
|
-
"maxLength":
|
1223
|
+
"maxLength": 48,
|
1224
|
+
"minLength": 1
|
1109
1225
|
},
|
1110
1226
|
"maxItems": 100
|
1111
1227
|
},
|
@@ -1245,7 +1361,8 @@
|
|
1245
1361
|
"type": "array",
|
1246
1362
|
"items": {
|
1247
1363
|
"type": "string",
|
1248
|
-
"maxLength":
|
1364
|
+
"maxLength": 48,
|
1365
|
+
"minLength": 1
|
1249
1366
|
},
|
1250
1367
|
"maxItems": 100
|
1251
1368
|
},
|
@@ -1368,8 +1485,122 @@
|
|
1368
1485
|
"type": "array",
|
1369
1486
|
"items": {
|
1370
1487
|
"type": "string",
|
1488
|
+
"maxLength": 48,
|
1489
|
+
"minLength": 1
|
1490
|
+
},
|
1491
|
+
"maxItems": 100
|
1492
|
+
},
|
1493
|
+
"maxItems": 100
|
1494
|
+
}
|
1495
|
+
},
|
1496
|
+
"required": [
|
1497
|
+
"type"
|
1498
|
+
],
|
1499
|
+
"additionalProperties": false
|
1500
|
+
},
|
1501
|
+
{
|
1502
|
+
"type": "object",
|
1503
|
+
"properties": {
|
1504
|
+
"key": {
|
1505
|
+
"type": "string",
|
1506
|
+
"maxLength": 1024
|
1507
|
+
},
|
1508
|
+
"type": {
|
1509
|
+
"type": "string",
|
1510
|
+
"enum": [
|
1511
|
+
"request"
|
1512
|
+
]
|
1513
|
+
},
|
1514
|
+
"config": {
|
1515
|
+
"type": "object",
|
1516
|
+
"properties": {
|
1517
|
+
"method": {
|
1518
|
+
"type": "string",
|
1519
|
+
"enum": [
|
1520
|
+
"*",
|
1521
|
+
"delete",
|
1522
|
+
"get",
|
1523
|
+
"options",
|
1524
|
+
"patch",
|
1525
|
+
"post",
|
1526
|
+
"put"
|
1527
|
+
]
|
1528
|
+
},
|
1529
|
+
"route": {
|
1530
|
+
"type": "string",
|
1531
|
+
"maxLength": 1024
|
1532
|
+
}
|
1533
|
+
},
|
1534
|
+
"additionalProperties": false
|
1535
|
+
},
|
1536
|
+
"meta": {
|
1537
|
+
"type": "object",
|
1538
|
+
"properties": {
|
1539
|
+
"category": {
|
1540
|
+
"type": "string",
|
1541
|
+
"enum": [
|
1542
|
+
"trigger"
|
1543
|
+
]
|
1544
|
+
},
|
1545
|
+
"name": {
|
1546
|
+
"type": "string",
|
1547
|
+
"enum": [
|
1548
|
+
"request"
|
1549
|
+
]
|
1550
|
+
},
|
1551
|
+
"label": {
|
1552
|
+
"type": "string",
|
1553
|
+
"minLength": 1,
|
1371
1554
|
"maxLength": 255
|
1372
1555
|
},
|
1556
|
+
"x": {
|
1557
|
+
"type": "number"
|
1558
|
+
},
|
1559
|
+
"y": {
|
1560
|
+
"type": "number"
|
1561
|
+
},
|
1562
|
+
"uiId": {
|
1563
|
+
"type": "string",
|
1564
|
+
"maxLength": 48
|
1565
|
+
},
|
1566
|
+
"description": {
|
1567
|
+
"type": "string",
|
1568
|
+
"maxLength": 32767
|
1569
|
+
},
|
1570
|
+
"icon": {
|
1571
|
+
"type": "string",
|
1572
|
+
"maxLength": 1024
|
1573
|
+
},
|
1574
|
+
"color": {
|
1575
|
+
"type": "string",
|
1576
|
+
"maxLength": 1024
|
1577
|
+
},
|
1578
|
+
"inputCount": {
|
1579
|
+
"type": "number"
|
1580
|
+
},
|
1581
|
+
"outputCount": {
|
1582
|
+
"type": "number"
|
1583
|
+
},
|
1584
|
+
"triggerId": {
|
1585
|
+
"type": "string",
|
1586
|
+
"maxLength": 48
|
1587
|
+
},
|
1588
|
+
"id": {
|
1589
|
+
"type": "string",
|
1590
|
+
"maxLength": 48
|
1591
|
+
}
|
1592
|
+
},
|
1593
|
+
"additionalProperties": false
|
1594
|
+
},
|
1595
|
+
"outputIds": {
|
1596
|
+
"type": "array",
|
1597
|
+
"items": {
|
1598
|
+
"type": "array",
|
1599
|
+
"items": {
|
1600
|
+
"type": "string",
|
1601
|
+
"maxLength": 48,
|
1602
|
+
"minLength": 1
|
1603
|
+
},
|
1373
1604
|
"maxItems": 100
|
1374
1605
|
},
|
1375
1606
|
"maxItems": 100
|
@@ -1511,7 +1742,8 @@
|
|
1511
1742
|
"type": "array",
|
1512
1743
|
"items": {
|
1513
1744
|
"type": "string",
|
1514
|
-
"maxLength":
|
1745
|
+
"maxLength": 48,
|
1746
|
+
"minLength": 1
|
1515
1747
|
},
|
1516
1748
|
"maxItems": 100
|
1517
1749
|
},
|
@@ -1637,7 +1869,8 @@
|
|
1637
1869
|
"type": "array",
|
1638
1870
|
"items": {
|
1639
1871
|
"type": "string",
|
1640
|
-
"maxLength":
|
1872
|
+
"maxLength": 48,
|
1873
|
+
"minLength": 1
|
1641
1874
|
},
|
1642
1875
|
"maxItems": 100
|
1643
1876
|
},
|
@@ -1752,7 +1985,8 @@
|
|
1752
1985
|
"type": "array",
|
1753
1986
|
"items": {
|
1754
1987
|
"type": "string",
|
1755
|
-
"maxLength":
|
1988
|
+
"maxLength": 48,
|
1989
|
+
"minLength": 1
|
1756
1990
|
},
|
1757
1991
|
"maxItems": 100
|
1758
1992
|
},
|
@@ -1793,7 +2027,8 @@
|
|
1793
2027
|
"type": "array",
|
1794
2028
|
"items": {
|
1795
2029
|
"type": "string",
|
1796
|
-
"maxLength":
|
2030
|
+
"maxLength": 48,
|
2031
|
+
"minLength": 1
|
1797
2032
|
},
|
1798
2033
|
"maxItems": 100
|
1799
2034
|
},
|