losant_rest 1.9.0 → 1.9.1
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 +3306 -1245
- data/docs/application.md +42 -0
- data/lib/losant_rest/application.rb +49 -0
- data/lib/losant_rest/client.rb +2 -2
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/application.json +4 -0
- data/schemas/applicationApiTokenPost.json +1 -0
- data/schemas/applicationCloneDryRunResult.json +15 -0
- data/schemas/applicationCloneEnqueued.json +9 -0
- data/schemas/applicationClonePost.json +46 -0
- data/schemas/applicationCloneResult.json +372 -0
- data/schemas/applicationPatch.json +4 -0
- data/schemas/applicationPost.json +4 -0
- data/schemas/applications.json +4 -0
- data/schemas/dashboard.json +9 -0
- data/schemas/dashboardPatch.json +9 -0
- data/schemas/dashboardPost.json +9 -0
- data/schemas/dashboards.json +9 -0
- data/schemas/flow.json +91 -0
- data/schemas/flowPatch.json +91 -0
- data/schemas/flowPost.json +91 -0
- data/schemas/flowVersion.json +182 -0
- data/schemas/flowVersionPost.json +91 -0
- data/schemas/flowVersions.json +182 -0
- data/schemas/flows.json +91 -0
- data/schemas/flowsImportPost.json +182 -0
- data/schemas/flowsImportResult.json +273 -0
- data/schemas/githubLogin.json +1 -0
- data/schemas/notebook.json +26 -0
- data/schemas/notebookPatch.json +26 -0
- data/schemas/notebookPost.json +26 -0
- data/schemas/notebooks.json +26 -0
- data/schemas/userCredentials.json +1 -0
- data/schemas/userPost.json +1 -0
- data/schemas/validationCloneErrors.json +33 -0
- metadata +7 -2
data/schemas/dashboards.json
CHANGED
data/schemas/flow.json
CHANGED
@@ -107,6 +107,7 @@
|
|
107
107
|
"deviceCommand",
|
108
108
|
"deviceIdsTagsConnect",
|
109
109
|
"deviceIdsTagsDisconnect",
|
110
|
+
"flowError",
|
110
111
|
"googlePubSub",
|
111
112
|
"meridian",
|
112
113
|
"mqtt",
|
@@ -932,6 +933,96 @@
|
|
932
933
|
],
|
933
934
|
"additionalProperties": false
|
934
935
|
},
|
936
|
+
{
|
937
|
+
"type": "object",
|
938
|
+
"properties": {
|
939
|
+
"key": {
|
940
|
+
"type": "string",
|
941
|
+
"maxLength": 1024
|
942
|
+
},
|
943
|
+
"type": {
|
944
|
+
"type": "string",
|
945
|
+
"enum": [
|
946
|
+
"flowError"
|
947
|
+
]
|
948
|
+
},
|
949
|
+
"config": {
|
950
|
+
"type": "object",
|
951
|
+
"additionalProperties": false
|
952
|
+
},
|
953
|
+
"meta": {
|
954
|
+
"type": "object",
|
955
|
+
"properties": {
|
956
|
+
"category": {
|
957
|
+
"type": "string",
|
958
|
+
"enum": [
|
959
|
+
"trigger"
|
960
|
+
]
|
961
|
+
},
|
962
|
+
"name": {
|
963
|
+
"type": "string",
|
964
|
+
"enum": [
|
965
|
+
"flowError"
|
966
|
+
]
|
967
|
+
},
|
968
|
+
"label": {
|
969
|
+
"type": "string",
|
970
|
+
"minLength": 1,
|
971
|
+
"maxLength": 255
|
972
|
+
},
|
973
|
+
"x": {
|
974
|
+
"type": "number"
|
975
|
+
},
|
976
|
+
"y": {
|
977
|
+
"type": "number"
|
978
|
+
},
|
979
|
+
"uiId": {
|
980
|
+
"type": "string",
|
981
|
+
"maxLength": 48
|
982
|
+
},
|
983
|
+
"description": {
|
984
|
+
"type": "string",
|
985
|
+
"maxLength": 32767
|
986
|
+
},
|
987
|
+
"icon": {
|
988
|
+
"type": "string",
|
989
|
+
"maxLength": 1024
|
990
|
+
},
|
991
|
+
"color": {
|
992
|
+
"type": "string",
|
993
|
+
"maxLength": 1024
|
994
|
+
},
|
995
|
+
"inputCount": {
|
996
|
+
"type": "number"
|
997
|
+
},
|
998
|
+
"outputCount": {
|
999
|
+
"type": "number"
|
1000
|
+
},
|
1001
|
+
"id": {
|
1002
|
+
"type": "string",
|
1003
|
+
"maxLength": 48
|
1004
|
+
}
|
1005
|
+
},
|
1006
|
+
"additionalProperties": false
|
1007
|
+
},
|
1008
|
+
"outputIds": {
|
1009
|
+
"type": "array",
|
1010
|
+
"items": {
|
1011
|
+
"type": "array",
|
1012
|
+
"items": {
|
1013
|
+
"type": "string",
|
1014
|
+
"maxLength": 255
|
1015
|
+
},
|
1016
|
+
"maxItems": 100
|
1017
|
+
},
|
1018
|
+
"maxItems": 100
|
1019
|
+
}
|
1020
|
+
},
|
1021
|
+
"required": [
|
1022
|
+
"type"
|
1023
|
+
],
|
1024
|
+
"additionalProperties": false
|
1025
|
+
},
|
935
1026
|
{
|
936
1027
|
"type": "object",
|
937
1028
|
"properties": {
|
data/schemas/flowPatch.json
CHANGED
@@ -88,6 +88,7 @@
|
|
88
88
|
"deviceCommand",
|
89
89
|
"deviceIdsTagsConnect",
|
90
90
|
"deviceIdsTagsDisconnect",
|
91
|
+
"flowError",
|
91
92
|
"googlePubSub",
|
92
93
|
"meridian",
|
93
94
|
"mqtt",
|
@@ -913,6 +914,96 @@
|
|
913
914
|
],
|
914
915
|
"additionalProperties": false
|
915
916
|
},
|
917
|
+
{
|
918
|
+
"type": "object",
|
919
|
+
"properties": {
|
920
|
+
"key": {
|
921
|
+
"type": "string",
|
922
|
+
"maxLength": 1024
|
923
|
+
},
|
924
|
+
"type": {
|
925
|
+
"type": "string",
|
926
|
+
"enum": [
|
927
|
+
"flowError"
|
928
|
+
]
|
929
|
+
},
|
930
|
+
"config": {
|
931
|
+
"type": "object",
|
932
|
+
"additionalProperties": false
|
933
|
+
},
|
934
|
+
"meta": {
|
935
|
+
"type": "object",
|
936
|
+
"properties": {
|
937
|
+
"category": {
|
938
|
+
"type": "string",
|
939
|
+
"enum": [
|
940
|
+
"trigger"
|
941
|
+
]
|
942
|
+
},
|
943
|
+
"name": {
|
944
|
+
"type": "string",
|
945
|
+
"enum": [
|
946
|
+
"flowError"
|
947
|
+
]
|
948
|
+
},
|
949
|
+
"label": {
|
950
|
+
"type": "string",
|
951
|
+
"minLength": 1,
|
952
|
+
"maxLength": 255
|
953
|
+
},
|
954
|
+
"x": {
|
955
|
+
"type": "number"
|
956
|
+
},
|
957
|
+
"y": {
|
958
|
+
"type": "number"
|
959
|
+
},
|
960
|
+
"uiId": {
|
961
|
+
"type": "string",
|
962
|
+
"maxLength": 48
|
963
|
+
},
|
964
|
+
"description": {
|
965
|
+
"type": "string",
|
966
|
+
"maxLength": 32767
|
967
|
+
},
|
968
|
+
"icon": {
|
969
|
+
"type": "string",
|
970
|
+
"maxLength": 1024
|
971
|
+
},
|
972
|
+
"color": {
|
973
|
+
"type": "string",
|
974
|
+
"maxLength": 1024
|
975
|
+
},
|
976
|
+
"inputCount": {
|
977
|
+
"type": "number"
|
978
|
+
},
|
979
|
+
"outputCount": {
|
980
|
+
"type": "number"
|
981
|
+
},
|
982
|
+
"id": {
|
983
|
+
"type": "string",
|
984
|
+
"maxLength": 48
|
985
|
+
}
|
986
|
+
},
|
987
|
+
"additionalProperties": false
|
988
|
+
},
|
989
|
+
"outputIds": {
|
990
|
+
"type": "array",
|
991
|
+
"items": {
|
992
|
+
"type": "array",
|
993
|
+
"items": {
|
994
|
+
"type": "string",
|
995
|
+
"maxLength": 255
|
996
|
+
},
|
997
|
+
"maxItems": 100
|
998
|
+
},
|
999
|
+
"maxItems": 100
|
1000
|
+
}
|
1001
|
+
},
|
1002
|
+
"required": [
|
1003
|
+
"type"
|
1004
|
+
],
|
1005
|
+
"additionalProperties": false
|
1006
|
+
},
|
916
1007
|
{
|
917
1008
|
"type": "object",
|
918
1009
|
"properties": {
|
data/schemas/flowPost.json
CHANGED
@@ -77,6 +77,7 @@
|
|
77
77
|
"deviceCommand",
|
78
78
|
"deviceIdsTagsConnect",
|
79
79
|
"deviceIdsTagsDisconnect",
|
80
|
+
"flowError",
|
80
81
|
"googlePubSub",
|
81
82
|
"meridian",
|
82
83
|
"mqtt",
|
@@ -902,6 +903,96 @@
|
|
902
903
|
],
|
903
904
|
"additionalProperties": false
|
904
905
|
},
|
906
|
+
{
|
907
|
+
"type": "object",
|
908
|
+
"properties": {
|
909
|
+
"key": {
|
910
|
+
"type": "string",
|
911
|
+
"maxLength": 1024
|
912
|
+
},
|
913
|
+
"type": {
|
914
|
+
"type": "string",
|
915
|
+
"enum": [
|
916
|
+
"flowError"
|
917
|
+
]
|
918
|
+
},
|
919
|
+
"config": {
|
920
|
+
"type": "object",
|
921
|
+
"additionalProperties": false
|
922
|
+
},
|
923
|
+
"meta": {
|
924
|
+
"type": "object",
|
925
|
+
"properties": {
|
926
|
+
"category": {
|
927
|
+
"type": "string",
|
928
|
+
"enum": [
|
929
|
+
"trigger"
|
930
|
+
]
|
931
|
+
},
|
932
|
+
"name": {
|
933
|
+
"type": "string",
|
934
|
+
"enum": [
|
935
|
+
"flowError"
|
936
|
+
]
|
937
|
+
},
|
938
|
+
"label": {
|
939
|
+
"type": "string",
|
940
|
+
"minLength": 1,
|
941
|
+
"maxLength": 255
|
942
|
+
},
|
943
|
+
"x": {
|
944
|
+
"type": "number"
|
945
|
+
},
|
946
|
+
"y": {
|
947
|
+
"type": "number"
|
948
|
+
},
|
949
|
+
"uiId": {
|
950
|
+
"type": "string",
|
951
|
+
"maxLength": 48
|
952
|
+
},
|
953
|
+
"description": {
|
954
|
+
"type": "string",
|
955
|
+
"maxLength": 32767
|
956
|
+
},
|
957
|
+
"icon": {
|
958
|
+
"type": "string",
|
959
|
+
"maxLength": 1024
|
960
|
+
},
|
961
|
+
"color": {
|
962
|
+
"type": "string",
|
963
|
+
"maxLength": 1024
|
964
|
+
},
|
965
|
+
"inputCount": {
|
966
|
+
"type": "number"
|
967
|
+
},
|
968
|
+
"outputCount": {
|
969
|
+
"type": "number"
|
970
|
+
},
|
971
|
+
"id": {
|
972
|
+
"type": "string",
|
973
|
+
"maxLength": 48
|
974
|
+
}
|
975
|
+
},
|
976
|
+
"additionalProperties": false
|
977
|
+
},
|
978
|
+
"outputIds": {
|
979
|
+
"type": "array",
|
980
|
+
"items": {
|
981
|
+
"type": "array",
|
982
|
+
"items": {
|
983
|
+
"type": "string",
|
984
|
+
"maxLength": 255
|
985
|
+
},
|
986
|
+
"maxItems": 100
|
987
|
+
},
|
988
|
+
"maxItems": 100
|
989
|
+
}
|
990
|
+
},
|
991
|
+
"required": [
|
992
|
+
"type"
|
993
|
+
],
|
994
|
+
"additionalProperties": false
|
995
|
+
},
|
905
996
|
{
|
906
997
|
"type": "object",
|
907
998
|
"properties": {
|
data/schemas/flowVersion.json
CHANGED
@@ -92,6 +92,7 @@
|
|
92
92
|
"deviceCommand",
|
93
93
|
"deviceIdsTagsConnect",
|
94
94
|
"deviceIdsTagsDisconnect",
|
95
|
+
"flowError",
|
95
96
|
"googlePubSub",
|
96
97
|
"meridian",
|
97
98
|
"mqtt",
|
@@ -917,6 +918,96 @@
|
|
917
918
|
],
|
918
919
|
"additionalProperties": false
|
919
920
|
},
|
921
|
+
{
|
922
|
+
"type": "object",
|
923
|
+
"properties": {
|
924
|
+
"key": {
|
925
|
+
"type": "string",
|
926
|
+
"maxLength": 1024
|
927
|
+
},
|
928
|
+
"type": {
|
929
|
+
"type": "string",
|
930
|
+
"enum": [
|
931
|
+
"flowError"
|
932
|
+
]
|
933
|
+
},
|
934
|
+
"config": {
|
935
|
+
"type": "object",
|
936
|
+
"additionalProperties": false
|
937
|
+
},
|
938
|
+
"meta": {
|
939
|
+
"type": "object",
|
940
|
+
"properties": {
|
941
|
+
"category": {
|
942
|
+
"type": "string",
|
943
|
+
"enum": [
|
944
|
+
"trigger"
|
945
|
+
]
|
946
|
+
},
|
947
|
+
"name": {
|
948
|
+
"type": "string",
|
949
|
+
"enum": [
|
950
|
+
"flowError"
|
951
|
+
]
|
952
|
+
},
|
953
|
+
"label": {
|
954
|
+
"type": "string",
|
955
|
+
"minLength": 1,
|
956
|
+
"maxLength": 255
|
957
|
+
},
|
958
|
+
"x": {
|
959
|
+
"type": "number"
|
960
|
+
},
|
961
|
+
"y": {
|
962
|
+
"type": "number"
|
963
|
+
},
|
964
|
+
"uiId": {
|
965
|
+
"type": "string",
|
966
|
+
"maxLength": 48
|
967
|
+
},
|
968
|
+
"description": {
|
969
|
+
"type": "string",
|
970
|
+
"maxLength": 32767
|
971
|
+
},
|
972
|
+
"icon": {
|
973
|
+
"type": "string",
|
974
|
+
"maxLength": 1024
|
975
|
+
},
|
976
|
+
"color": {
|
977
|
+
"type": "string",
|
978
|
+
"maxLength": 1024
|
979
|
+
},
|
980
|
+
"inputCount": {
|
981
|
+
"type": "number"
|
982
|
+
},
|
983
|
+
"outputCount": {
|
984
|
+
"type": "number"
|
985
|
+
},
|
986
|
+
"id": {
|
987
|
+
"type": "string",
|
988
|
+
"maxLength": 48
|
989
|
+
}
|
990
|
+
},
|
991
|
+
"additionalProperties": false
|
992
|
+
},
|
993
|
+
"outputIds": {
|
994
|
+
"type": "array",
|
995
|
+
"items": {
|
996
|
+
"type": "array",
|
997
|
+
"items": {
|
998
|
+
"type": "string",
|
999
|
+
"maxLength": 255
|
1000
|
+
},
|
1001
|
+
"maxItems": 100
|
1002
|
+
},
|
1003
|
+
"maxItems": 100
|
1004
|
+
}
|
1005
|
+
},
|
1006
|
+
"required": [
|
1007
|
+
"type"
|
1008
|
+
],
|
1009
|
+
"additionalProperties": false
|
1010
|
+
},
|
920
1011
|
{
|
921
1012
|
"type": "object",
|
922
1013
|
"properties": {
|
@@ -2065,6 +2156,7 @@
|
|
2065
2156
|
"deviceCommand",
|
2066
2157
|
"deviceIdsTagsConnect",
|
2067
2158
|
"deviceIdsTagsDisconnect",
|
2159
|
+
"flowError",
|
2068
2160
|
"googlePubSub",
|
2069
2161
|
"meridian",
|
2070
2162
|
"mqtt",
|
@@ -2890,6 +2982,96 @@
|
|
2890
2982
|
],
|
2891
2983
|
"additionalProperties": false
|
2892
2984
|
},
|
2985
|
+
{
|
2986
|
+
"type": "object",
|
2987
|
+
"properties": {
|
2988
|
+
"key": {
|
2989
|
+
"type": "string",
|
2990
|
+
"maxLength": 1024
|
2991
|
+
},
|
2992
|
+
"type": {
|
2993
|
+
"type": "string",
|
2994
|
+
"enum": [
|
2995
|
+
"flowError"
|
2996
|
+
]
|
2997
|
+
},
|
2998
|
+
"config": {
|
2999
|
+
"type": "object",
|
3000
|
+
"additionalProperties": false
|
3001
|
+
},
|
3002
|
+
"meta": {
|
3003
|
+
"type": "object",
|
3004
|
+
"properties": {
|
3005
|
+
"category": {
|
3006
|
+
"type": "string",
|
3007
|
+
"enum": [
|
3008
|
+
"trigger"
|
3009
|
+
]
|
3010
|
+
},
|
3011
|
+
"name": {
|
3012
|
+
"type": "string",
|
3013
|
+
"enum": [
|
3014
|
+
"flowError"
|
3015
|
+
]
|
3016
|
+
},
|
3017
|
+
"label": {
|
3018
|
+
"type": "string",
|
3019
|
+
"minLength": 1,
|
3020
|
+
"maxLength": 255
|
3021
|
+
},
|
3022
|
+
"x": {
|
3023
|
+
"type": "number"
|
3024
|
+
},
|
3025
|
+
"y": {
|
3026
|
+
"type": "number"
|
3027
|
+
},
|
3028
|
+
"uiId": {
|
3029
|
+
"type": "string",
|
3030
|
+
"maxLength": 48
|
3031
|
+
},
|
3032
|
+
"description": {
|
3033
|
+
"type": "string",
|
3034
|
+
"maxLength": 32767
|
3035
|
+
},
|
3036
|
+
"icon": {
|
3037
|
+
"type": "string",
|
3038
|
+
"maxLength": 1024
|
3039
|
+
},
|
3040
|
+
"color": {
|
3041
|
+
"type": "string",
|
3042
|
+
"maxLength": 1024
|
3043
|
+
},
|
3044
|
+
"inputCount": {
|
3045
|
+
"type": "number"
|
3046
|
+
},
|
3047
|
+
"outputCount": {
|
3048
|
+
"type": "number"
|
3049
|
+
},
|
3050
|
+
"id": {
|
3051
|
+
"type": "string",
|
3052
|
+
"maxLength": 48
|
3053
|
+
}
|
3054
|
+
},
|
3055
|
+
"additionalProperties": false
|
3056
|
+
},
|
3057
|
+
"outputIds": {
|
3058
|
+
"type": "array",
|
3059
|
+
"items": {
|
3060
|
+
"type": "array",
|
3061
|
+
"items": {
|
3062
|
+
"type": "string",
|
3063
|
+
"maxLength": 255
|
3064
|
+
},
|
3065
|
+
"maxItems": 100
|
3066
|
+
},
|
3067
|
+
"maxItems": 100
|
3068
|
+
}
|
3069
|
+
},
|
3070
|
+
"required": [
|
3071
|
+
"type"
|
3072
|
+
],
|
3073
|
+
"additionalProperties": false
|
3074
|
+
},
|
2893
3075
|
{
|
2894
3076
|
"type": "object",
|
2895
3077
|
"properties": {
|
@@ -65,6 +65,7 @@
|
|
65
65
|
"deviceCommand",
|
66
66
|
"deviceIdsTagsConnect",
|
67
67
|
"deviceIdsTagsDisconnect",
|
68
|
+
"flowError",
|
68
69
|
"googlePubSub",
|
69
70
|
"meridian",
|
70
71
|
"mqtt",
|
@@ -890,6 +891,96 @@
|
|
890
891
|
],
|
891
892
|
"additionalProperties": false
|
892
893
|
},
|
894
|
+
{
|
895
|
+
"type": "object",
|
896
|
+
"properties": {
|
897
|
+
"key": {
|
898
|
+
"type": "string",
|
899
|
+
"maxLength": 1024
|
900
|
+
},
|
901
|
+
"type": {
|
902
|
+
"type": "string",
|
903
|
+
"enum": [
|
904
|
+
"flowError"
|
905
|
+
]
|
906
|
+
},
|
907
|
+
"config": {
|
908
|
+
"type": "object",
|
909
|
+
"additionalProperties": false
|
910
|
+
},
|
911
|
+
"meta": {
|
912
|
+
"type": "object",
|
913
|
+
"properties": {
|
914
|
+
"category": {
|
915
|
+
"type": "string",
|
916
|
+
"enum": [
|
917
|
+
"trigger"
|
918
|
+
]
|
919
|
+
},
|
920
|
+
"name": {
|
921
|
+
"type": "string",
|
922
|
+
"enum": [
|
923
|
+
"flowError"
|
924
|
+
]
|
925
|
+
},
|
926
|
+
"label": {
|
927
|
+
"type": "string",
|
928
|
+
"minLength": 1,
|
929
|
+
"maxLength": 255
|
930
|
+
},
|
931
|
+
"x": {
|
932
|
+
"type": "number"
|
933
|
+
},
|
934
|
+
"y": {
|
935
|
+
"type": "number"
|
936
|
+
},
|
937
|
+
"uiId": {
|
938
|
+
"type": "string",
|
939
|
+
"maxLength": 48
|
940
|
+
},
|
941
|
+
"description": {
|
942
|
+
"type": "string",
|
943
|
+
"maxLength": 32767
|
944
|
+
},
|
945
|
+
"icon": {
|
946
|
+
"type": "string",
|
947
|
+
"maxLength": 1024
|
948
|
+
},
|
949
|
+
"color": {
|
950
|
+
"type": "string",
|
951
|
+
"maxLength": 1024
|
952
|
+
},
|
953
|
+
"inputCount": {
|
954
|
+
"type": "number"
|
955
|
+
},
|
956
|
+
"outputCount": {
|
957
|
+
"type": "number"
|
958
|
+
},
|
959
|
+
"id": {
|
960
|
+
"type": "string",
|
961
|
+
"maxLength": 48
|
962
|
+
}
|
963
|
+
},
|
964
|
+
"additionalProperties": false
|
965
|
+
},
|
966
|
+
"outputIds": {
|
967
|
+
"type": "array",
|
968
|
+
"items": {
|
969
|
+
"type": "array",
|
970
|
+
"items": {
|
971
|
+
"type": "string",
|
972
|
+
"maxLength": 255
|
973
|
+
},
|
974
|
+
"maxItems": 100
|
975
|
+
},
|
976
|
+
"maxItems": 100
|
977
|
+
}
|
978
|
+
},
|
979
|
+
"required": [
|
980
|
+
"type"
|
981
|
+
],
|
982
|
+
"additionalProperties": false
|
983
|
+
},
|
893
984
|
{
|
894
985
|
"type": "object",
|
895
986
|
"properties": {
|