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/flow.json
CHANGED
@@ -52,6 +52,7 @@
|
|
52
52
|
"enum": [
|
53
53
|
"cloud",
|
54
54
|
"edge",
|
55
|
+
"embedded",
|
55
56
|
"experience",
|
56
57
|
"customNode"
|
57
58
|
]
|
@@ -81,7 +82,6 @@
|
|
81
82
|
"onBoot",
|
82
83
|
"onConnect",
|
83
84
|
"onDisconnect",
|
84
|
-
"request",
|
85
85
|
"udp",
|
86
86
|
"webhook"
|
87
87
|
]
|
@@ -106,6 +106,7 @@
|
|
106
106
|
"deviceCommand",
|
107
107
|
"deviceIdsTagsConnect",
|
108
108
|
"deviceIdsTagsDisconnect",
|
109
|
+
"eeaInit",
|
109
110
|
"flowError",
|
110
111
|
"googlePubSub",
|
111
112
|
"meridian",
|
@@ -115,7 +116,6 @@
|
|
115
116
|
"onConnect",
|
116
117
|
"onDisconnect",
|
117
118
|
"particle",
|
118
|
-
"request",
|
119
119
|
"udp",
|
120
120
|
"webhook"
|
121
121
|
]
|
@@ -170,7 +170,8 @@
|
|
170
170
|
"type": "array",
|
171
171
|
"items": {
|
172
172
|
"type": "string",
|
173
|
-
"maxLength":
|
173
|
+
"maxLength": 48,
|
174
|
+
"minLength": 1
|
174
175
|
},
|
175
176
|
"maxItems": 100
|
176
177
|
},
|
@@ -274,7 +275,8 @@
|
|
274
275
|
"type": "array",
|
275
276
|
"items": {
|
276
277
|
"type": "string",
|
277
|
-
"maxLength":
|
278
|
+
"maxLength": 48,
|
279
|
+
"minLength": 1
|
278
280
|
},
|
279
281
|
"maxItems": 100
|
280
282
|
},
|
@@ -321,6 +323,21 @@
|
|
321
323
|
},
|
322
324
|
"maxAge": {
|
323
325
|
"type": "number"
|
326
|
+
},
|
327
|
+
"triggerOn": {
|
328
|
+
"type": "string",
|
329
|
+
"enum": [
|
330
|
+
"batch",
|
331
|
+
"individual",
|
332
|
+
"both"
|
333
|
+
]
|
334
|
+
},
|
335
|
+
"batchBehavior": {
|
336
|
+
"type": "string",
|
337
|
+
"enum": [
|
338
|
+
"once",
|
339
|
+
"each"
|
340
|
+
]
|
324
341
|
}
|
325
342
|
},
|
326
343
|
"additionalProperties": false
|
@@ -403,7 +420,8 @@
|
|
403
420
|
"type": "array",
|
404
421
|
"items": {
|
405
422
|
"type": "string",
|
406
|
-
"maxLength":
|
423
|
+
"maxLength": 48,
|
424
|
+
"minLength": 1
|
407
425
|
},
|
408
426
|
"maxItems": 100
|
409
427
|
},
|
@@ -499,8 +517,101 @@
|
|
499
517
|
"type": "array",
|
500
518
|
"items": {
|
501
519
|
"type": "string",
|
520
|
+
"maxLength": 48,
|
521
|
+
"minLength": 1
|
522
|
+
},
|
523
|
+
"maxItems": 100
|
524
|
+
},
|
525
|
+
"maxItems": 100
|
526
|
+
}
|
527
|
+
},
|
528
|
+
"required": [
|
529
|
+
"type"
|
530
|
+
],
|
531
|
+
"additionalProperties": false
|
532
|
+
},
|
533
|
+
{
|
534
|
+
"type": "object",
|
535
|
+
"properties": {
|
536
|
+
"key": {
|
537
|
+
"type": "string",
|
538
|
+
"maxLength": 1024
|
539
|
+
},
|
540
|
+
"type": {
|
541
|
+
"type": "string",
|
542
|
+
"enum": [
|
543
|
+
"direct"
|
544
|
+
]
|
545
|
+
},
|
546
|
+
"config": {
|
547
|
+
"type": "object",
|
548
|
+
"properties": {},
|
549
|
+
"additionalProperties": false
|
550
|
+
},
|
551
|
+
"meta": {
|
552
|
+
"type": "object",
|
553
|
+
"properties": {
|
554
|
+
"category": {
|
555
|
+
"type": "string",
|
556
|
+
"enum": [
|
557
|
+
"trigger"
|
558
|
+
]
|
559
|
+
},
|
560
|
+
"name": {
|
561
|
+
"type": "string",
|
562
|
+
"enum": [
|
563
|
+
"direct"
|
564
|
+
]
|
565
|
+
},
|
566
|
+
"label": {
|
567
|
+
"type": "string",
|
568
|
+
"minLength": 1,
|
502
569
|
"maxLength": 255
|
503
570
|
},
|
571
|
+
"x": {
|
572
|
+
"type": "number"
|
573
|
+
},
|
574
|
+
"y": {
|
575
|
+
"type": "number"
|
576
|
+
},
|
577
|
+
"uiId": {
|
578
|
+
"type": "string",
|
579
|
+
"maxLength": 48
|
580
|
+
},
|
581
|
+
"description": {
|
582
|
+
"type": "string",
|
583
|
+
"maxLength": 32767
|
584
|
+
},
|
585
|
+
"icon": {
|
586
|
+
"type": "string",
|
587
|
+
"maxLength": 1024
|
588
|
+
},
|
589
|
+
"color": {
|
590
|
+
"type": "string",
|
591
|
+
"maxLength": 1024
|
592
|
+
},
|
593
|
+
"inputCount": {
|
594
|
+
"type": "number"
|
595
|
+
},
|
596
|
+
"outputCount": {
|
597
|
+
"type": "number"
|
598
|
+
},
|
599
|
+
"id": {
|
600
|
+
"type": "string",
|
601
|
+
"maxLength": 48
|
602
|
+
}
|
603
|
+
},
|
604
|
+
"additionalProperties": false
|
605
|
+
},
|
606
|
+
"outputIds": {
|
607
|
+
"type": "array",
|
608
|
+
"items": {
|
609
|
+
"type": "array",
|
610
|
+
"items": {
|
611
|
+
"type": "string",
|
612
|
+
"maxLength": 48,
|
613
|
+
"minLength": 1
|
614
|
+
},
|
504
615
|
"maxItems": 100
|
505
616
|
},
|
506
617
|
"maxItems": 100
|
@@ -596,7 +707,8 @@
|
|
596
707
|
"type": "array",
|
597
708
|
"items": {
|
598
709
|
"type": "string",
|
599
|
-
"maxLength":
|
710
|
+
"maxLength": 48,
|
711
|
+
"minLength": 1
|
600
712
|
},
|
601
713
|
"maxItems": 100
|
602
714
|
},
|
@@ -701,7 +813,8 @@
|
|
701
813
|
"type": "array",
|
702
814
|
"items": {
|
703
815
|
"type": "string",
|
704
|
-
"maxLength":
|
816
|
+
"maxLength": 48,
|
817
|
+
"minLength": 1
|
705
818
|
},
|
706
819
|
"maxItems": 100
|
707
820
|
},
|
@@ -809,7 +922,8 @@
|
|
809
922
|
"type": "array",
|
810
923
|
"items": {
|
811
924
|
"type": "string",
|
812
|
-
"maxLength":
|
925
|
+
"maxLength": 48,
|
926
|
+
"minLength": 1
|
813
927
|
},
|
814
928
|
"maxItems": 100
|
815
929
|
},
|
@@ -920,7 +1034,8 @@
|
|
920
1034
|
"type": "array",
|
921
1035
|
"items": {
|
922
1036
|
"type": "string",
|
923
|
-
"maxLength":
|
1037
|
+
"maxLength": 48,
|
1038
|
+
"minLength": 1
|
924
1039
|
},
|
925
1040
|
"maxItems": 100
|
926
1041
|
},
|
@@ -1021,7 +1136,8 @@
|
|
1021
1136
|
"type": "array",
|
1022
1137
|
"items": {
|
1023
1138
|
"type": "string",
|
1024
|
-
"maxLength":
|
1139
|
+
"maxLength": 48,
|
1140
|
+
"minLength": 1
|
1025
1141
|
},
|
1026
1142
|
"maxItems": 100
|
1027
1143
|
},
|
@@ -1124,7 +1240,8 @@
|
|
1124
1240
|
"type": "array",
|
1125
1241
|
"items": {
|
1126
1242
|
"type": "string",
|
1127
|
-
"maxLength":
|
1243
|
+
"maxLength": 48,
|
1244
|
+
"minLength": 1
|
1128
1245
|
},
|
1129
1246
|
"maxItems": 100
|
1130
1247
|
},
|
@@ -1264,7 +1381,8 @@
|
|
1264
1381
|
"type": "array",
|
1265
1382
|
"items": {
|
1266
1383
|
"type": "string",
|
1267
|
-
"maxLength":
|
1384
|
+
"maxLength": 48,
|
1385
|
+
"minLength": 1
|
1268
1386
|
},
|
1269
1387
|
"maxItems": 100
|
1270
1388
|
},
|
@@ -1387,8 +1505,122 @@
|
|
1387
1505
|
"type": "array",
|
1388
1506
|
"items": {
|
1389
1507
|
"type": "string",
|
1508
|
+
"maxLength": 48,
|
1509
|
+
"minLength": 1
|
1510
|
+
},
|
1511
|
+
"maxItems": 100
|
1512
|
+
},
|
1513
|
+
"maxItems": 100
|
1514
|
+
}
|
1515
|
+
},
|
1516
|
+
"required": [
|
1517
|
+
"type"
|
1518
|
+
],
|
1519
|
+
"additionalProperties": false
|
1520
|
+
},
|
1521
|
+
{
|
1522
|
+
"type": "object",
|
1523
|
+
"properties": {
|
1524
|
+
"key": {
|
1525
|
+
"type": "string",
|
1526
|
+
"maxLength": 1024
|
1527
|
+
},
|
1528
|
+
"type": {
|
1529
|
+
"type": "string",
|
1530
|
+
"enum": [
|
1531
|
+
"request"
|
1532
|
+
]
|
1533
|
+
},
|
1534
|
+
"config": {
|
1535
|
+
"type": "object",
|
1536
|
+
"properties": {
|
1537
|
+
"method": {
|
1538
|
+
"type": "string",
|
1539
|
+
"enum": [
|
1540
|
+
"*",
|
1541
|
+
"delete",
|
1542
|
+
"get",
|
1543
|
+
"options",
|
1544
|
+
"patch",
|
1545
|
+
"post",
|
1546
|
+
"put"
|
1547
|
+
]
|
1548
|
+
},
|
1549
|
+
"route": {
|
1550
|
+
"type": "string",
|
1551
|
+
"maxLength": 1024
|
1552
|
+
}
|
1553
|
+
},
|
1554
|
+
"additionalProperties": false
|
1555
|
+
},
|
1556
|
+
"meta": {
|
1557
|
+
"type": "object",
|
1558
|
+
"properties": {
|
1559
|
+
"category": {
|
1560
|
+
"type": "string",
|
1561
|
+
"enum": [
|
1562
|
+
"trigger"
|
1563
|
+
]
|
1564
|
+
},
|
1565
|
+
"name": {
|
1566
|
+
"type": "string",
|
1567
|
+
"enum": [
|
1568
|
+
"request"
|
1569
|
+
]
|
1570
|
+
},
|
1571
|
+
"label": {
|
1572
|
+
"type": "string",
|
1573
|
+
"minLength": 1,
|
1390
1574
|
"maxLength": 255
|
1391
1575
|
},
|
1576
|
+
"x": {
|
1577
|
+
"type": "number"
|
1578
|
+
},
|
1579
|
+
"y": {
|
1580
|
+
"type": "number"
|
1581
|
+
},
|
1582
|
+
"uiId": {
|
1583
|
+
"type": "string",
|
1584
|
+
"maxLength": 48
|
1585
|
+
},
|
1586
|
+
"description": {
|
1587
|
+
"type": "string",
|
1588
|
+
"maxLength": 32767
|
1589
|
+
},
|
1590
|
+
"icon": {
|
1591
|
+
"type": "string",
|
1592
|
+
"maxLength": 1024
|
1593
|
+
},
|
1594
|
+
"color": {
|
1595
|
+
"type": "string",
|
1596
|
+
"maxLength": 1024
|
1597
|
+
},
|
1598
|
+
"inputCount": {
|
1599
|
+
"type": "number"
|
1600
|
+
},
|
1601
|
+
"outputCount": {
|
1602
|
+
"type": "number"
|
1603
|
+
},
|
1604
|
+
"triggerId": {
|
1605
|
+
"type": "string",
|
1606
|
+
"maxLength": 48
|
1607
|
+
},
|
1608
|
+
"id": {
|
1609
|
+
"type": "string",
|
1610
|
+
"maxLength": 48
|
1611
|
+
}
|
1612
|
+
},
|
1613
|
+
"additionalProperties": false
|
1614
|
+
},
|
1615
|
+
"outputIds": {
|
1616
|
+
"type": "array",
|
1617
|
+
"items": {
|
1618
|
+
"type": "array",
|
1619
|
+
"items": {
|
1620
|
+
"type": "string",
|
1621
|
+
"maxLength": 48,
|
1622
|
+
"minLength": 1
|
1623
|
+
},
|
1392
1624
|
"maxItems": 100
|
1393
1625
|
},
|
1394
1626
|
"maxItems": 100
|
@@ -1530,7 +1762,8 @@
|
|
1530
1762
|
"type": "array",
|
1531
1763
|
"items": {
|
1532
1764
|
"type": "string",
|
1533
|
-
"maxLength":
|
1765
|
+
"maxLength": 48,
|
1766
|
+
"minLength": 1
|
1534
1767
|
},
|
1535
1768
|
"maxItems": 100
|
1536
1769
|
},
|
@@ -1656,7 +1889,8 @@
|
|
1656
1889
|
"type": "array",
|
1657
1890
|
"items": {
|
1658
1891
|
"type": "string",
|
1659
|
-
"maxLength":
|
1892
|
+
"maxLength": 48,
|
1893
|
+
"minLength": 1
|
1660
1894
|
},
|
1661
1895
|
"maxItems": 100
|
1662
1896
|
},
|
@@ -1771,7 +2005,8 @@
|
|
1771
2005
|
"type": "array",
|
1772
2006
|
"items": {
|
1773
2007
|
"type": "string",
|
1774
|
-
"maxLength":
|
2008
|
+
"maxLength": 48,
|
2009
|
+
"minLength": 1
|
1775
2010
|
},
|
1776
2011
|
"maxItems": 100
|
1777
2012
|
},
|
@@ -1812,7 +2047,8 @@
|
|
1812
2047
|
"type": "array",
|
1813
2048
|
"items": {
|
1814
2049
|
"type": "string",
|
1815
|
-
"maxLength":
|
2050
|
+
"maxLength": 48,
|
2051
|
+
"minLength": 1
|
1816
2052
|
},
|
1817
2053
|
"maxItems": 100
|
1818
2054
|
},
|