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/flows.json
CHANGED
@@ -59,6 +59,7 @@
|
|
59
59
|
"enum": [
|
60
60
|
"cloud",
|
61
61
|
"edge",
|
62
|
+
"embedded",
|
62
63
|
"experience",
|
63
64
|
"customNode"
|
64
65
|
]
|
@@ -88,7 +89,6 @@
|
|
88
89
|
"onBoot",
|
89
90
|
"onConnect",
|
90
91
|
"onDisconnect",
|
91
|
-
"request",
|
92
92
|
"udp",
|
93
93
|
"webhook"
|
94
94
|
]
|
@@ -113,6 +113,7 @@
|
|
113
113
|
"deviceCommand",
|
114
114
|
"deviceIdsTagsConnect",
|
115
115
|
"deviceIdsTagsDisconnect",
|
116
|
+
"eeaInit",
|
116
117
|
"flowError",
|
117
118
|
"googlePubSub",
|
118
119
|
"meridian",
|
@@ -122,7 +123,6 @@
|
|
122
123
|
"onConnect",
|
123
124
|
"onDisconnect",
|
124
125
|
"particle",
|
125
|
-
"request",
|
126
126
|
"udp",
|
127
127
|
"webhook"
|
128
128
|
]
|
@@ -177,7 +177,8 @@
|
|
177
177
|
"type": "array",
|
178
178
|
"items": {
|
179
179
|
"type": "string",
|
180
|
-
"maxLength":
|
180
|
+
"maxLength": 48,
|
181
|
+
"minLength": 1
|
181
182
|
},
|
182
183
|
"maxItems": 100
|
183
184
|
},
|
@@ -281,7 +282,8 @@
|
|
281
282
|
"type": "array",
|
282
283
|
"items": {
|
283
284
|
"type": "string",
|
284
|
-
"maxLength":
|
285
|
+
"maxLength": 48,
|
286
|
+
"minLength": 1
|
285
287
|
},
|
286
288
|
"maxItems": 100
|
287
289
|
},
|
@@ -328,6 +330,21 @@
|
|
328
330
|
},
|
329
331
|
"maxAge": {
|
330
332
|
"type": "number"
|
333
|
+
},
|
334
|
+
"triggerOn": {
|
335
|
+
"type": "string",
|
336
|
+
"enum": [
|
337
|
+
"batch",
|
338
|
+
"individual",
|
339
|
+
"both"
|
340
|
+
]
|
341
|
+
},
|
342
|
+
"batchBehavior": {
|
343
|
+
"type": "string",
|
344
|
+
"enum": [
|
345
|
+
"once",
|
346
|
+
"each"
|
347
|
+
]
|
331
348
|
}
|
332
349
|
},
|
333
350
|
"additionalProperties": false
|
@@ -410,7 +427,8 @@
|
|
410
427
|
"type": "array",
|
411
428
|
"items": {
|
412
429
|
"type": "string",
|
413
|
-
"maxLength":
|
430
|
+
"maxLength": 48,
|
431
|
+
"minLength": 1
|
414
432
|
},
|
415
433
|
"maxItems": 100
|
416
434
|
},
|
@@ -506,8 +524,101 @@
|
|
506
524
|
"type": "array",
|
507
525
|
"items": {
|
508
526
|
"type": "string",
|
527
|
+
"maxLength": 48,
|
528
|
+
"minLength": 1
|
529
|
+
},
|
530
|
+
"maxItems": 100
|
531
|
+
},
|
532
|
+
"maxItems": 100
|
533
|
+
}
|
534
|
+
},
|
535
|
+
"required": [
|
536
|
+
"type"
|
537
|
+
],
|
538
|
+
"additionalProperties": false
|
539
|
+
},
|
540
|
+
{
|
541
|
+
"type": "object",
|
542
|
+
"properties": {
|
543
|
+
"key": {
|
544
|
+
"type": "string",
|
545
|
+
"maxLength": 1024
|
546
|
+
},
|
547
|
+
"type": {
|
548
|
+
"type": "string",
|
549
|
+
"enum": [
|
550
|
+
"direct"
|
551
|
+
]
|
552
|
+
},
|
553
|
+
"config": {
|
554
|
+
"type": "object",
|
555
|
+
"properties": {},
|
556
|
+
"additionalProperties": false
|
557
|
+
},
|
558
|
+
"meta": {
|
559
|
+
"type": "object",
|
560
|
+
"properties": {
|
561
|
+
"category": {
|
562
|
+
"type": "string",
|
563
|
+
"enum": [
|
564
|
+
"trigger"
|
565
|
+
]
|
566
|
+
},
|
567
|
+
"name": {
|
568
|
+
"type": "string",
|
569
|
+
"enum": [
|
570
|
+
"direct"
|
571
|
+
]
|
572
|
+
},
|
573
|
+
"label": {
|
574
|
+
"type": "string",
|
575
|
+
"minLength": 1,
|
509
576
|
"maxLength": 255
|
510
577
|
},
|
578
|
+
"x": {
|
579
|
+
"type": "number"
|
580
|
+
},
|
581
|
+
"y": {
|
582
|
+
"type": "number"
|
583
|
+
},
|
584
|
+
"uiId": {
|
585
|
+
"type": "string",
|
586
|
+
"maxLength": 48
|
587
|
+
},
|
588
|
+
"description": {
|
589
|
+
"type": "string",
|
590
|
+
"maxLength": 32767
|
591
|
+
},
|
592
|
+
"icon": {
|
593
|
+
"type": "string",
|
594
|
+
"maxLength": 1024
|
595
|
+
},
|
596
|
+
"color": {
|
597
|
+
"type": "string",
|
598
|
+
"maxLength": 1024
|
599
|
+
},
|
600
|
+
"inputCount": {
|
601
|
+
"type": "number"
|
602
|
+
},
|
603
|
+
"outputCount": {
|
604
|
+
"type": "number"
|
605
|
+
},
|
606
|
+
"id": {
|
607
|
+
"type": "string",
|
608
|
+
"maxLength": 48
|
609
|
+
}
|
610
|
+
},
|
611
|
+
"additionalProperties": false
|
612
|
+
},
|
613
|
+
"outputIds": {
|
614
|
+
"type": "array",
|
615
|
+
"items": {
|
616
|
+
"type": "array",
|
617
|
+
"items": {
|
618
|
+
"type": "string",
|
619
|
+
"maxLength": 48,
|
620
|
+
"minLength": 1
|
621
|
+
},
|
511
622
|
"maxItems": 100
|
512
623
|
},
|
513
624
|
"maxItems": 100
|
@@ -603,7 +714,8 @@
|
|
603
714
|
"type": "array",
|
604
715
|
"items": {
|
605
716
|
"type": "string",
|
606
|
-
"maxLength":
|
717
|
+
"maxLength": 48,
|
718
|
+
"minLength": 1
|
607
719
|
},
|
608
720
|
"maxItems": 100
|
609
721
|
},
|
@@ -708,7 +820,8 @@
|
|
708
820
|
"type": "array",
|
709
821
|
"items": {
|
710
822
|
"type": "string",
|
711
|
-
"maxLength":
|
823
|
+
"maxLength": 48,
|
824
|
+
"minLength": 1
|
712
825
|
},
|
713
826
|
"maxItems": 100
|
714
827
|
},
|
@@ -816,7 +929,8 @@
|
|
816
929
|
"type": "array",
|
817
930
|
"items": {
|
818
931
|
"type": "string",
|
819
|
-
"maxLength":
|
932
|
+
"maxLength": 48,
|
933
|
+
"minLength": 1
|
820
934
|
},
|
821
935
|
"maxItems": 100
|
822
936
|
},
|
@@ -927,7 +1041,8 @@
|
|
927
1041
|
"type": "array",
|
928
1042
|
"items": {
|
929
1043
|
"type": "string",
|
930
|
-
"maxLength":
|
1044
|
+
"maxLength": 48,
|
1045
|
+
"minLength": 1
|
931
1046
|
},
|
932
1047
|
"maxItems": 100
|
933
1048
|
},
|
@@ -1028,7 +1143,8 @@
|
|
1028
1143
|
"type": "array",
|
1029
1144
|
"items": {
|
1030
1145
|
"type": "string",
|
1031
|
-
"maxLength":
|
1146
|
+
"maxLength": 48,
|
1147
|
+
"minLength": 1
|
1032
1148
|
},
|
1033
1149
|
"maxItems": 100
|
1034
1150
|
},
|
@@ -1131,7 +1247,8 @@
|
|
1131
1247
|
"type": "array",
|
1132
1248
|
"items": {
|
1133
1249
|
"type": "string",
|
1134
|
-
"maxLength":
|
1250
|
+
"maxLength": 48,
|
1251
|
+
"minLength": 1
|
1135
1252
|
},
|
1136
1253
|
"maxItems": 100
|
1137
1254
|
},
|
@@ -1271,7 +1388,8 @@
|
|
1271
1388
|
"type": "array",
|
1272
1389
|
"items": {
|
1273
1390
|
"type": "string",
|
1274
|
-
"maxLength":
|
1391
|
+
"maxLength": 48,
|
1392
|
+
"minLength": 1
|
1275
1393
|
},
|
1276
1394
|
"maxItems": 100
|
1277
1395
|
},
|
@@ -1394,8 +1512,122 @@
|
|
1394
1512
|
"type": "array",
|
1395
1513
|
"items": {
|
1396
1514
|
"type": "string",
|
1515
|
+
"maxLength": 48,
|
1516
|
+
"minLength": 1
|
1517
|
+
},
|
1518
|
+
"maxItems": 100
|
1519
|
+
},
|
1520
|
+
"maxItems": 100
|
1521
|
+
}
|
1522
|
+
},
|
1523
|
+
"required": [
|
1524
|
+
"type"
|
1525
|
+
],
|
1526
|
+
"additionalProperties": false
|
1527
|
+
},
|
1528
|
+
{
|
1529
|
+
"type": "object",
|
1530
|
+
"properties": {
|
1531
|
+
"key": {
|
1532
|
+
"type": "string",
|
1533
|
+
"maxLength": 1024
|
1534
|
+
},
|
1535
|
+
"type": {
|
1536
|
+
"type": "string",
|
1537
|
+
"enum": [
|
1538
|
+
"request"
|
1539
|
+
]
|
1540
|
+
},
|
1541
|
+
"config": {
|
1542
|
+
"type": "object",
|
1543
|
+
"properties": {
|
1544
|
+
"method": {
|
1545
|
+
"type": "string",
|
1546
|
+
"enum": [
|
1547
|
+
"*",
|
1548
|
+
"delete",
|
1549
|
+
"get",
|
1550
|
+
"options",
|
1551
|
+
"patch",
|
1552
|
+
"post",
|
1553
|
+
"put"
|
1554
|
+
]
|
1555
|
+
},
|
1556
|
+
"route": {
|
1557
|
+
"type": "string",
|
1558
|
+
"maxLength": 1024
|
1559
|
+
}
|
1560
|
+
},
|
1561
|
+
"additionalProperties": false
|
1562
|
+
},
|
1563
|
+
"meta": {
|
1564
|
+
"type": "object",
|
1565
|
+
"properties": {
|
1566
|
+
"category": {
|
1567
|
+
"type": "string",
|
1568
|
+
"enum": [
|
1569
|
+
"trigger"
|
1570
|
+
]
|
1571
|
+
},
|
1572
|
+
"name": {
|
1573
|
+
"type": "string",
|
1574
|
+
"enum": [
|
1575
|
+
"request"
|
1576
|
+
]
|
1577
|
+
},
|
1578
|
+
"label": {
|
1579
|
+
"type": "string",
|
1580
|
+
"minLength": 1,
|
1397
1581
|
"maxLength": 255
|
1398
1582
|
},
|
1583
|
+
"x": {
|
1584
|
+
"type": "number"
|
1585
|
+
},
|
1586
|
+
"y": {
|
1587
|
+
"type": "number"
|
1588
|
+
},
|
1589
|
+
"uiId": {
|
1590
|
+
"type": "string",
|
1591
|
+
"maxLength": 48
|
1592
|
+
},
|
1593
|
+
"description": {
|
1594
|
+
"type": "string",
|
1595
|
+
"maxLength": 32767
|
1596
|
+
},
|
1597
|
+
"icon": {
|
1598
|
+
"type": "string",
|
1599
|
+
"maxLength": 1024
|
1600
|
+
},
|
1601
|
+
"color": {
|
1602
|
+
"type": "string",
|
1603
|
+
"maxLength": 1024
|
1604
|
+
},
|
1605
|
+
"inputCount": {
|
1606
|
+
"type": "number"
|
1607
|
+
},
|
1608
|
+
"outputCount": {
|
1609
|
+
"type": "number"
|
1610
|
+
},
|
1611
|
+
"triggerId": {
|
1612
|
+
"type": "string",
|
1613
|
+
"maxLength": 48
|
1614
|
+
},
|
1615
|
+
"id": {
|
1616
|
+
"type": "string",
|
1617
|
+
"maxLength": 48
|
1618
|
+
}
|
1619
|
+
},
|
1620
|
+
"additionalProperties": false
|
1621
|
+
},
|
1622
|
+
"outputIds": {
|
1623
|
+
"type": "array",
|
1624
|
+
"items": {
|
1625
|
+
"type": "array",
|
1626
|
+
"items": {
|
1627
|
+
"type": "string",
|
1628
|
+
"maxLength": 48,
|
1629
|
+
"minLength": 1
|
1630
|
+
},
|
1399
1631
|
"maxItems": 100
|
1400
1632
|
},
|
1401
1633
|
"maxItems": 100
|
@@ -1537,7 +1769,8 @@
|
|
1537
1769
|
"type": "array",
|
1538
1770
|
"items": {
|
1539
1771
|
"type": "string",
|
1540
|
-
"maxLength":
|
1772
|
+
"maxLength": 48,
|
1773
|
+
"minLength": 1
|
1541
1774
|
},
|
1542
1775
|
"maxItems": 100
|
1543
1776
|
},
|
@@ -1663,7 +1896,8 @@
|
|
1663
1896
|
"type": "array",
|
1664
1897
|
"items": {
|
1665
1898
|
"type": "string",
|
1666
|
-
"maxLength":
|
1899
|
+
"maxLength": 48,
|
1900
|
+
"minLength": 1
|
1667
1901
|
},
|
1668
1902
|
"maxItems": 100
|
1669
1903
|
},
|
@@ -1778,7 +2012,8 @@
|
|
1778
2012
|
"type": "array",
|
1779
2013
|
"items": {
|
1780
2014
|
"type": "string",
|
1781
|
-
"maxLength":
|
2015
|
+
"maxLength": 48,
|
2016
|
+
"minLength": 1
|
1782
2017
|
},
|
1783
2018
|
"maxItems": 100
|
1784
2019
|
},
|
@@ -1819,7 +2054,8 @@
|
|
1819
2054
|
"type": "array",
|
1820
2055
|
"items": {
|
1821
2056
|
"type": "string",
|
1822
|
-
"maxLength":
|
2057
|
+
"maxLength": 48,
|
2058
|
+
"minLength": 1
|
1823
2059
|
},
|
1824
2060
|
"maxItems": 100
|
1825
2061
|
},
|
@@ -2254,6 +2490,7 @@
|
|
2254
2490
|
"enum": [
|
2255
2491
|
"cloud",
|
2256
2492
|
"edge",
|
2493
|
+
"embedded",
|
2257
2494
|
"experience",
|
2258
2495
|
"customNode"
|
2259
2496
|
]
|