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/flowVersions.json
CHANGED
@@ -99,6 +99,7 @@
|
|
99
99
|
"deviceCommand",
|
100
100
|
"deviceIdsTagsConnect",
|
101
101
|
"deviceIdsTagsDisconnect",
|
102
|
+
"flowError",
|
102
103
|
"googlePubSub",
|
103
104
|
"meridian",
|
104
105
|
"mqtt",
|
@@ -924,6 +925,96 @@
|
|
924
925
|
],
|
925
926
|
"additionalProperties": false
|
926
927
|
},
|
928
|
+
{
|
929
|
+
"type": "object",
|
930
|
+
"properties": {
|
931
|
+
"key": {
|
932
|
+
"type": "string",
|
933
|
+
"maxLength": 1024
|
934
|
+
},
|
935
|
+
"type": {
|
936
|
+
"type": "string",
|
937
|
+
"enum": [
|
938
|
+
"flowError"
|
939
|
+
]
|
940
|
+
},
|
941
|
+
"config": {
|
942
|
+
"type": "object",
|
943
|
+
"additionalProperties": false
|
944
|
+
},
|
945
|
+
"meta": {
|
946
|
+
"type": "object",
|
947
|
+
"properties": {
|
948
|
+
"category": {
|
949
|
+
"type": "string",
|
950
|
+
"enum": [
|
951
|
+
"trigger"
|
952
|
+
]
|
953
|
+
},
|
954
|
+
"name": {
|
955
|
+
"type": "string",
|
956
|
+
"enum": [
|
957
|
+
"flowError"
|
958
|
+
]
|
959
|
+
},
|
960
|
+
"label": {
|
961
|
+
"type": "string",
|
962
|
+
"minLength": 1,
|
963
|
+
"maxLength": 255
|
964
|
+
},
|
965
|
+
"x": {
|
966
|
+
"type": "number"
|
967
|
+
},
|
968
|
+
"y": {
|
969
|
+
"type": "number"
|
970
|
+
},
|
971
|
+
"uiId": {
|
972
|
+
"type": "string",
|
973
|
+
"maxLength": 48
|
974
|
+
},
|
975
|
+
"description": {
|
976
|
+
"type": "string",
|
977
|
+
"maxLength": 32767
|
978
|
+
},
|
979
|
+
"icon": {
|
980
|
+
"type": "string",
|
981
|
+
"maxLength": 1024
|
982
|
+
},
|
983
|
+
"color": {
|
984
|
+
"type": "string",
|
985
|
+
"maxLength": 1024
|
986
|
+
},
|
987
|
+
"inputCount": {
|
988
|
+
"type": "number"
|
989
|
+
},
|
990
|
+
"outputCount": {
|
991
|
+
"type": "number"
|
992
|
+
},
|
993
|
+
"id": {
|
994
|
+
"type": "string",
|
995
|
+
"maxLength": 48
|
996
|
+
}
|
997
|
+
},
|
998
|
+
"additionalProperties": false
|
999
|
+
},
|
1000
|
+
"outputIds": {
|
1001
|
+
"type": "array",
|
1002
|
+
"items": {
|
1003
|
+
"type": "array",
|
1004
|
+
"items": {
|
1005
|
+
"type": "string",
|
1006
|
+
"maxLength": 255
|
1007
|
+
},
|
1008
|
+
"maxItems": 100
|
1009
|
+
},
|
1010
|
+
"maxItems": 100
|
1011
|
+
}
|
1012
|
+
},
|
1013
|
+
"required": [
|
1014
|
+
"type"
|
1015
|
+
],
|
1016
|
+
"additionalProperties": false
|
1017
|
+
},
|
927
1018
|
{
|
928
1019
|
"type": "object",
|
929
1020
|
"properties": {
|
@@ -2072,6 +2163,7 @@
|
|
2072
2163
|
"deviceCommand",
|
2073
2164
|
"deviceIdsTagsConnect",
|
2074
2165
|
"deviceIdsTagsDisconnect",
|
2166
|
+
"flowError",
|
2075
2167
|
"googlePubSub",
|
2076
2168
|
"meridian",
|
2077
2169
|
"mqtt",
|
@@ -2897,6 +2989,96 @@
|
|
2897
2989
|
],
|
2898
2990
|
"additionalProperties": false
|
2899
2991
|
},
|
2992
|
+
{
|
2993
|
+
"type": "object",
|
2994
|
+
"properties": {
|
2995
|
+
"key": {
|
2996
|
+
"type": "string",
|
2997
|
+
"maxLength": 1024
|
2998
|
+
},
|
2999
|
+
"type": {
|
3000
|
+
"type": "string",
|
3001
|
+
"enum": [
|
3002
|
+
"flowError"
|
3003
|
+
]
|
3004
|
+
},
|
3005
|
+
"config": {
|
3006
|
+
"type": "object",
|
3007
|
+
"additionalProperties": false
|
3008
|
+
},
|
3009
|
+
"meta": {
|
3010
|
+
"type": "object",
|
3011
|
+
"properties": {
|
3012
|
+
"category": {
|
3013
|
+
"type": "string",
|
3014
|
+
"enum": [
|
3015
|
+
"trigger"
|
3016
|
+
]
|
3017
|
+
},
|
3018
|
+
"name": {
|
3019
|
+
"type": "string",
|
3020
|
+
"enum": [
|
3021
|
+
"flowError"
|
3022
|
+
]
|
3023
|
+
},
|
3024
|
+
"label": {
|
3025
|
+
"type": "string",
|
3026
|
+
"minLength": 1,
|
3027
|
+
"maxLength": 255
|
3028
|
+
},
|
3029
|
+
"x": {
|
3030
|
+
"type": "number"
|
3031
|
+
},
|
3032
|
+
"y": {
|
3033
|
+
"type": "number"
|
3034
|
+
},
|
3035
|
+
"uiId": {
|
3036
|
+
"type": "string",
|
3037
|
+
"maxLength": 48
|
3038
|
+
},
|
3039
|
+
"description": {
|
3040
|
+
"type": "string",
|
3041
|
+
"maxLength": 32767
|
3042
|
+
},
|
3043
|
+
"icon": {
|
3044
|
+
"type": "string",
|
3045
|
+
"maxLength": 1024
|
3046
|
+
},
|
3047
|
+
"color": {
|
3048
|
+
"type": "string",
|
3049
|
+
"maxLength": 1024
|
3050
|
+
},
|
3051
|
+
"inputCount": {
|
3052
|
+
"type": "number"
|
3053
|
+
},
|
3054
|
+
"outputCount": {
|
3055
|
+
"type": "number"
|
3056
|
+
},
|
3057
|
+
"id": {
|
3058
|
+
"type": "string",
|
3059
|
+
"maxLength": 48
|
3060
|
+
}
|
3061
|
+
},
|
3062
|
+
"additionalProperties": false
|
3063
|
+
},
|
3064
|
+
"outputIds": {
|
3065
|
+
"type": "array",
|
3066
|
+
"items": {
|
3067
|
+
"type": "array",
|
3068
|
+
"items": {
|
3069
|
+
"type": "string",
|
3070
|
+
"maxLength": 255
|
3071
|
+
},
|
3072
|
+
"maxItems": 100
|
3073
|
+
},
|
3074
|
+
"maxItems": 100
|
3075
|
+
}
|
3076
|
+
},
|
3077
|
+
"required": [
|
3078
|
+
"type"
|
3079
|
+
],
|
3080
|
+
"additionalProperties": false
|
3081
|
+
},
|
2900
3082
|
{
|
2901
3083
|
"type": "object",
|
2902
3084
|
"properties": {
|
data/schemas/flows.json
CHANGED
@@ -114,6 +114,7 @@
|
|
114
114
|
"deviceCommand",
|
115
115
|
"deviceIdsTagsConnect",
|
116
116
|
"deviceIdsTagsDisconnect",
|
117
|
+
"flowError",
|
117
118
|
"googlePubSub",
|
118
119
|
"meridian",
|
119
120
|
"mqtt",
|
@@ -939,6 +940,96 @@
|
|
939
940
|
],
|
940
941
|
"additionalProperties": false
|
941
942
|
},
|
943
|
+
{
|
944
|
+
"type": "object",
|
945
|
+
"properties": {
|
946
|
+
"key": {
|
947
|
+
"type": "string",
|
948
|
+
"maxLength": 1024
|
949
|
+
},
|
950
|
+
"type": {
|
951
|
+
"type": "string",
|
952
|
+
"enum": [
|
953
|
+
"flowError"
|
954
|
+
]
|
955
|
+
},
|
956
|
+
"config": {
|
957
|
+
"type": "object",
|
958
|
+
"additionalProperties": false
|
959
|
+
},
|
960
|
+
"meta": {
|
961
|
+
"type": "object",
|
962
|
+
"properties": {
|
963
|
+
"category": {
|
964
|
+
"type": "string",
|
965
|
+
"enum": [
|
966
|
+
"trigger"
|
967
|
+
]
|
968
|
+
},
|
969
|
+
"name": {
|
970
|
+
"type": "string",
|
971
|
+
"enum": [
|
972
|
+
"flowError"
|
973
|
+
]
|
974
|
+
},
|
975
|
+
"label": {
|
976
|
+
"type": "string",
|
977
|
+
"minLength": 1,
|
978
|
+
"maxLength": 255
|
979
|
+
},
|
980
|
+
"x": {
|
981
|
+
"type": "number"
|
982
|
+
},
|
983
|
+
"y": {
|
984
|
+
"type": "number"
|
985
|
+
},
|
986
|
+
"uiId": {
|
987
|
+
"type": "string",
|
988
|
+
"maxLength": 48
|
989
|
+
},
|
990
|
+
"description": {
|
991
|
+
"type": "string",
|
992
|
+
"maxLength": 32767
|
993
|
+
},
|
994
|
+
"icon": {
|
995
|
+
"type": "string",
|
996
|
+
"maxLength": 1024
|
997
|
+
},
|
998
|
+
"color": {
|
999
|
+
"type": "string",
|
1000
|
+
"maxLength": 1024
|
1001
|
+
},
|
1002
|
+
"inputCount": {
|
1003
|
+
"type": "number"
|
1004
|
+
},
|
1005
|
+
"outputCount": {
|
1006
|
+
"type": "number"
|
1007
|
+
},
|
1008
|
+
"id": {
|
1009
|
+
"type": "string",
|
1010
|
+
"maxLength": 48
|
1011
|
+
}
|
1012
|
+
},
|
1013
|
+
"additionalProperties": false
|
1014
|
+
},
|
1015
|
+
"outputIds": {
|
1016
|
+
"type": "array",
|
1017
|
+
"items": {
|
1018
|
+
"type": "array",
|
1019
|
+
"items": {
|
1020
|
+
"type": "string",
|
1021
|
+
"maxLength": 255
|
1022
|
+
},
|
1023
|
+
"maxItems": 100
|
1024
|
+
},
|
1025
|
+
"maxItems": 100
|
1026
|
+
}
|
1027
|
+
},
|
1028
|
+
"required": [
|
1029
|
+
"type"
|
1030
|
+
],
|
1031
|
+
"additionalProperties": false
|
1032
|
+
},
|
942
1033
|
{
|
943
1034
|
"type": "object",
|
944
1035
|
"properties": {
|
@@ -84,6 +84,7 @@
|
|
84
84
|
"deviceCommand",
|
85
85
|
"deviceIdsTagsConnect",
|
86
86
|
"deviceIdsTagsDisconnect",
|
87
|
+
"flowError",
|
87
88
|
"googlePubSub",
|
88
89
|
"meridian",
|
89
90
|
"mqtt",
|
@@ -909,6 +910,96 @@
|
|
909
910
|
],
|
910
911
|
"additionalProperties": false
|
911
912
|
},
|
913
|
+
{
|
914
|
+
"type": "object",
|
915
|
+
"properties": {
|
916
|
+
"key": {
|
917
|
+
"type": "string",
|
918
|
+
"maxLength": 1024
|
919
|
+
},
|
920
|
+
"type": {
|
921
|
+
"type": "string",
|
922
|
+
"enum": [
|
923
|
+
"flowError"
|
924
|
+
]
|
925
|
+
},
|
926
|
+
"config": {
|
927
|
+
"type": "object",
|
928
|
+
"additionalProperties": false
|
929
|
+
},
|
930
|
+
"meta": {
|
931
|
+
"type": "object",
|
932
|
+
"properties": {
|
933
|
+
"category": {
|
934
|
+
"type": "string",
|
935
|
+
"enum": [
|
936
|
+
"trigger"
|
937
|
+
]
|
938
|
+
},
|
939
|
+
"name": {
|
940
|
+
"type": "string",
|
941
|
+
"enum": [
|
942
|
+
"flowError"
|
943
|
+
]
|
944
|
+
},
|
945
|
+
"label": {
|
946
|
+
"type": "string",
|
947
|
+
"minLength": 1,
|
948
|
+
"maxLength": 255
|
949
|
+
},
|
950
|
+
"x": {
|
951
|
+
"type": "number"
|
952
|
+
},
|
953
|
+
"y": {
|
954
|
+
"type": "number"
|
955
|
+
},
|
956
|
+
"uiId": {
|
957
|
+
"type": "string",
|
958
|
+
"maxLength": 48
|
959
|
+
},
|
960
|
+
"description": {
|
961
|
+
"type": "string",
|
962
|
+
"maxLength": 32767
|
963
|
+
},
|
964
|
+
"icon": {
|
965
|
+
"type": "string",
|
966
|
+
"maxLength": 1024
|
967
|
+
},
|
968
|
+
"color": {
|
969
|
+
"type": "string",
|
970
|
+
"maxLength": 1024
|
971
|
+
},
|
972
|
+
"inputCount": {
|
973
|
+
"type": "number"
|
974
|
+
},
|
975
|
+
"outputCount": {
|
976
|
+
"type": "number"
|
977
|
+
},
|
978
|
+
"id": {
|
979
|
+
"type": "string",
|
980
|
+
"maxLength": 48
|
981
|
+
}
|
982
|
+
},
|
983
|
+
"additionalProperties": false
|
984
|
+
},
|
985
|
+
"outputIds": {
|
986
|
+
"type": "array",
|
987
|
+
"items": {
|
988
|
+
"type": "array",
|
989
|
+
"items": {
|
990
|
+
"type": "string",
|
991
|
+
"maxLength": 255
|
992
|
+
},
|
993
|
+
"maxItems": 100
|
994
|
+
},
|
995
|
+
"maxItems": 100
|
996
|
+
}
|
997
|
+
},
|
998
|
+
"required": [
|
999
|
+
"type"
|
1000
|
+
],
|
1001
|
+
"additionalProperties": false
|
1002
|
+
},
|
912
1003
|
{
|
913
1004
|
"type": "object",
|
914
1005
|
"properties": {
|
@@ -2038,6 +2129,7 @@
|
|
2038
2129
|
"deviceCommand",
|
2039
2130
|
"deviceIdsTagsConnect",
|
2040
2131
|
"deviceIdsTagsDisconnect",
|
2132
|
+
"flowError",
|
2041
2133
|
"googlePubSub",
|
2042
2134
|
"meridian",
|
2043
2135
|
"mqtt",
|
@@ -2863,6 +2955,96 @@
|
|
2863
2955
|
],
|
2864
2956
|
"additionalProperties": false
|
2865
2957
|
},
|
2958
|
+
{
|
2959
|
+
"type": "object",
|
2960
|
+
"properties": {
|
2961
|
+
"key": {
|
2962
|
+
"type": "string",
|
2963
|
+
"maxLength": 1024
|
2964
|
+
},
|
2965
|
+
"type": {
|
2966
|
+
"type": "string",
|
2967
|
+
"enum": [
|
2968
|
+
"flowError"
|
2969
|
+
]
|
2970
|
+
},
|
2971
|
+
"config": {
|
2972
|
+
"type": "object",
|
2973
|
+
"additionalProperties": false
|
2974
|
+
},
|
2975
|
+
"meta": {
|
2976
|
+
"type": "object",
|
2977
|
+
"properties": {
|
2978
|
+
"category": {
|
2979
|
+
"type": "string",
|
2980
|
+
"enum": [
|
2981
|
+
"trigger"
|
2982
|
+
]
|
2983
|
+
},
|
2984
|
+
"name": {
|
2985
|
+
"type": "string",
|
2986
|
+
"enum": [
|
2987
|
+
"flowError"
|
2988
|
+
]
|
2989
|
+
},
|
2990
|
+
"label": {
|
2991
|
+
"type": "string",
|
2992
|
+
"minLength": 1,
|
2993
|
+
"maxLength": 255
|
2994
|
+
},
|
2995
|
+
"x": {
|
2996
|
+
"type": "number"
|
2997
|
+
},
|
2998
|
+
"y": {
|
2999
|
+
"type": "number"
|
3000
|
+
},
|
3001
|
+
"uiId": {
|
3002
|
+
"type": "string",
|
3003
|
+
"maxLength": 48
|
3004
|
+
},
|
3005
|
+
"description": {
|
3006
|
+
"type": "string",
|
3007
|
+
"maxLength": 32767
|
3008
|
+
},
|
3009
|
+
"icon": {
|
3010
|
+
"type": "string",
|
3011
|
+
"maxLength": 1024
|
3012
|
+
},
|
3013
|
+
"color": {
|
3014
|
+
"type": "string",
|
3015
|
+
"maxLength": 1024
|
3016
|
+
},
|
3017
|
+
"inputCount": {
|
3018
|
+
"type": "number"
|
3019
|
+
},
|
3020
|
+
"outputCount": {
|
3021
|
+
"type": "number"
|
3022
|
+
},
|
3023
|
+
"id": {
|
3024
|
+
"type": "string",
|
3025
|
+
"maxLength": 48
|
3026
|
+
}
|
3027
|
+
},
|
3028
|
+
"additionalProperties": false
|
3029
|
+
},
|
3030
|
+
"outputIds": {
|
3031
|
+
"type": "array",
|
3032
|
+
"items": {
|
3033
|
+
"type": "array",
|
3034
|
+
"items": {
|
3035
|
+
"type": "string",
|
3036
|
+
"maxLength": 255
|
3037
|
+
},
|
3038
|
+
"maxItems": 100
|
3039
|
+
},
|
3040
|
+
"maxItems": 100
|
3041
|
+
}
|
3042
|
+
},
|
3043
|
+
"required": [
|
3044
|
+
"type"
|
3045
|
+
],
|
3046
|
+
"additionalProperties": false
|
3047
|
+
},
|
2866
3048
|
{
|
2867
3049
|
"type": "object",
|
2868
3050
|
"properties": {
|