@kusinta/iot-schema 0.2.0-beta.3 → 0.2.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -1
- package/src/kusinta/iot/access/v1/acl_pb.d.ts +118 -2
- package/src/kusinta/iot/access/v1/acl_pb.js +20 -3
- package/src/kusinta/iot/access/v1/roles_pb.d.ts +119 -4
- package/src/kusinta/iot/access/v1/roles_pb.js +98 -5
- package/src/kusinta/iot/climate/v1/climate_pb.d.ts +726 -0
- package/src/kusinta/iot/climate/v1/climate_pb.js +142 -0
- package/src/kusinta/iot/common/v1/pairing_pb.d.ts +217 -0
- package/src/kusinta/iot/common/v1/pairing_pb.js +50 -0
- package/src/kusinta/iot/common/v1/types_pb.d.ts +175 -0
- package/src/kusinta/iot/common/v1/types_pb.js +70 -1
- package/src/kusinta/iot/connector/v1/connector_pb.d.ts +691 -2
- package/src/kusinta/iot/connector/v1/connector_pb.js +104 -13
- package/src/kusinta/iot/device/v1/cluster_state_pb.d.ts +44 -0
- package/src/kusinta/iot/device/v1/cluster_state_pb.js +1 -1
- package/src/kusinta/iot/device/v1/descriptor_pb.d.ts +22 -2
- package/src/kusinta/iot/device/v1/descriptor_pb.js +2 -1
- package/src/kusinta/iot/device/v1/device_event_pb.d.ts +87 -5
- package/src/kusinta/iot/device/v1/device_event_pb.js +1 -1
- package/src/kusinta/iot/device/v1/device_pb.d.ts +150 -6
- package/src/kusinta/iot/device/v1/device_pb.js +33 -2
- package/src/kusinta/iot/device/v1/matter_options_pb.d.ts +26 -0
- package/src/kusinta/iot/device/v1/matter_options_pb.js +31 -4
- package/src/kusinta/iot/device/v1/properties_pb.d.ts +14 -0
- package/src/kusinta/iot/device/v1/properties_pb.js +1 -1
- package/src/kusinta/iot/device/v1/property_update_pb.d.ts +3 -2
- package/src/kusinta/iot/link/v1/link_pb.d.ts +438 -0
- package/src/kusinta/iot/link/v1/link_pb.js +121 -0
- package/src/kusinta/iot/reporting/v1/reporting_pb.d.ts +1219 -0
- package/src/kusinta/iot/reporting/v1/reporting_pb.js +238 -0
- package/src/kusinta/iot/reporting/v1/reporting_service_pb.d.ts +63 -0
- package/src/kusinta/iot/reporting/v1/reporting_service_pb.js +24 -0
- package/src/kusinta/iot/signaling/v1/signaling_pb.d.ts +361 -7
- package/src/kusinta/iot/signaling/v1/signaling_pb.js +68 -4
- package/src/kusinta/iot/signaling/v1/signaling_service_pb.d.ts +24 -1
- package/src/kusinta/iot/signaling/v1/signaling_service_pb.js +1 -1
- package/src/kusinta/iot/space/v1/space_pb.d.ts +103 -2
- package/src/kusinta/iot/space/v1/space_pb.js +10 -1
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.d.ts +162 -13
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.js +8 -1
- package/src/kusinta/iot/vendor/lorawan/v1/lorawan_pb.d.ts +69 -0
- package/src/kusinta/iot/vendor/lorawan/v1/lorawan_pb.js +19 -0
- package/src/kusinta/iot/vendor/v1/vendor_options_pb.d.ts +25 -4
- package/src/kusinta/iot/vendor/v1/vendor_options_pb.js +28 -6
- package/src/kusinta/iot/webrtc/v1/app_token_pb.d.ts +45 -5
- package/src/kusinta/iot/webrtc/v1/app_token_pb.js +1 -1
- package/src/kusinta/iot/webrtc/v1/command_pb.d.ts +14 -0
- package/src/kusinta/iot/webrtc/v1/command_pb.js +1 -1
- package/src/kusinta/iot/webrtc/v1/device_state_pb.d.ts +179 -5
- package/src/kusinta/iot/webrtc/v1/device_state_pb.js +35 -6
- package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +520 -3
- package/src/kusinta/iot/webrtc/v1/envelope_pb.js +65 -3
- package/src/kusinta/iot/webrtc/v1/invite_pb.d.ts +496 -0
- package/src/kusinta/iot/webrtc/v1/invite_pb.js +108 -0
- package/src/kusinta/iot/webrtc/v1/management_pb.d.ts +977 -12
- package/src/kusinta/iot/webrtc/v1/management_pb.js +132 -5
- package/src/kusinta/iot/webrtc/v1/members_pb.d.ts +327 -0
- package/src/kusinta/iot/webrtc/v1/members_pb.js +78 -0
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.d.ts +66 -4
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.js +10 -2
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts,import_extension=js"
|
|
2
|
+
// @generated from file kusinta/iot/climate/v1/climate.proto (package kusinta.iot.climate.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
7
|
+
import { file_kusinta_iot_identity_v1_identity } from "../../identity/v1/identity_pb.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file kusinta/iot/climate/v1/climate.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_kusinta_iot_climate_v1_climate = /*@__PURE__*/
|
|
13
|
+
fileDesc("CiRrdXNpbnRhL2lvdC9jbGltYXRlL3YxL2NsaW1hdGUucHJvdG8SFmt1c2ludGEuaW90LmNsaW1hdGUudjEiogEKDFRhcmdldENoYW5nZRImCgJhdBgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoEdXNlchgCIAEoCzIfLmt1c2ludGEuaW90LmlkZW50aXR5LnYxLlVzZXJJZEgAEjMKBmRldmljZRgDIAEoCzIhLmt1c2ludGEuaW90LmlkZW50aXR5LnYxLkRldmljZUlkSABCBAoCYnki/wUKC1Jvb21DbGltYXRlEjIKCHNwYWNlX2lkGAEgASgLMiAua3VzaW50YS5pb3QuaWRlbnRpdHkudjEuU3BhY2VJZBIgChN0YXJnZXRfY2VudGlkZWdyZWVzGAIgASgRSACIAQESOwoNdGFyZ2V0X2NoYW5nZRgDIAEoCzIkLmt1c2ludGEua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BAAEiIKHlJPT01fQ0xJTUFURV9DT05ESVRJT05fSE9MRElORxABEiQKIFJPT01fQ0xJTUFURV9DT05ESVRJT05fTk9fVEFSR0VUEAISJgoiUk9PTV9DTElNQVRFX0NPTkRJVElPTl9TRU5TT1JfTE9TVBADEiYKIlJPT01fQ0xJTUFURV9DT05ESVRJT05fV0lORE9XX09QRU4QBBIlCiFST09NX0NMSU1BVEVfQ09ORElUSU9OX05PX0hFQVRJTkcQBRIuCipST09NX0NMSU1BVEVfQ09ORElUSU9OX0hFQVRJTkdfVU5SRUFDSEFCTEUQBhIkCiBST09NX0NMSU1BVEVfQ09ORElUSU9OX05PX1NFTlNPUhAHKm8KD0NsaW1hdGVNb2RlS2luZBIhCh1DTElNQVRFX01PREVfS0lORF9VTlNQRUNJRklFRBAAEhoKFkNMSU1BVEVfTU9ERV9LSU5EX0FXQVkQARIdChlDTElNQVRFX01PREVfS0lORF9IT0xJREFZEAIqoQEKFENsaW1hdGVTdW1tYXJ5UGVyaW9kEiYKIkNMSU1BVEVfU1VNTUFSWV9QRVJJT0RfVU5TUEVDSUZJRUQQABIeChpDTElNQVRFX1NVTU1BUllfUEVSSU9EX0RBWRABEh8KG0NMSU1BVEVfU1VNTUFSWV9QRVJJT0RfV0VFSxACEiAKHENMSU1BVEVfU1VNTUFSWV9QRVJJT0RfTU9OVEgQAypvChdDbGltYXRlU3VtbWFyeVdlaWdodGluZxIpCiVDTElNQVRFX1NVTU1BUllfV0VJR0hUSU5HX1VOU1BFQ0lGSUVEEAASKQolQ0xJTUFURV9TVU1NQVJZX1dFSUdIVElOR19ST09NU19FUVVBTBABQgJIAWIGcHJvdG8z", [file_google_protobuf_timestamp, file_kusinta_iot_identity_v1_identity]);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message kusinta.iot.climate.v1.TargetChange.
|
|
17
|
+
* Use `create(TargetChangeSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const TargetChangeSchema = /*@__PURE__*/
|
|
20
|
+
messageDesc(file_kusinta_iot_climate_v1_climate, 0);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message kusinta.iot.climate.v1.RoomClimate.
|
|
24
|
+
* Use `create(RoomClimateSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const RoomClimateSchema = /*@__PURE__*/
|
|
27
|
+
messageDesc(file_kusinta_iot_climate_v1_climate, 1);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message kusinta.iot.climate.v1.ClimateMode.
|
|
31
|
+
* Use `create(ClimateModeSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export const ClimateModeSchema = /*@__PURE__*/
|
|
34
|
+
messageDesc(file_kusinta_iot_climate_v1_climate, 2);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message kusinta.iot.climate.v1.RoomClimateList.
|
|
38
|
+
* Use `create(RoomClimateListSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export const RoomClimateListSchema = /*@__PURE__*/
|
|
41
|
+
messageDesc(file_kusinta_iot_climate_v1_climate, 3);
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Describes the message kusinta.iot.climate.v1.RoomHistorySample.
|
|
45
|
+
* Use `create(RoomHistorySampleSchema)` to create a new message.
|
|
46
|
+
*/
|
|
47
|
+
export const RoomHistorySampleSchema = /*@__PURE__*/
|
|
48
|
+
messageDesc(file_kusinta_iot_climate_v1_climate, 4);
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message kusinta.iot.climate.v1.RoomHistory.
|
|
52
|
+
* Use `create(RoomHistorySchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export const RoomHistorySchema = /*@__PURE__*/
|
|
55
|
+
messageDesc(file_kusinta_iot_climate_v1_climate, 5);
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Describes the message kusinta.iot.climate.v1.ClimatePeriodMean.
|
|
59
|
+
* Use `create(ClimatePeriodMeanSchema)` to create a new message.
|
|
60
|
+
*/
|
|
61
|
+
export const ClimatePeriodMeanSchema = /*@__PURE__*/
|
|
62
|
+
messageDesc(file_kusinta_iot_climate_v1_climate, 6);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message kusinta.iot.climate.v1.ApartmentClimateSummary.
|
|
66
|
+
* Use `create(ApartmentClimateSummarySchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export const ApartmentClimateSummarySchema = /*@__PURE__*/
|
|
69
|
+
messageDesc(file_kusinta_iot_climate_v1_climate, 7);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Describes the enum kusinta.iot.climate.v1.RoomClimateCondition.
|
|
73
|
+
*/
|
|
74
|
+
export const RoomClimateConditionSchema = /*@__PURE__*/
|
|
75
|
+
enumDesc(file_kusinta_iot_climate_v1_climate, 0);
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* What a room is doing right now, in one word. Details live in the fields of
|
|
79
|
+
* RoomClimate; this is what a list row shows.
|
|
80
|
+
*
|
|
81
|
+
* Where several hold at once the room reports the first that applies, in this order:
|
|
82
|
+
* NO_TARGET, NO_HEATING, WINDOW_OPEN, HEATING_UNREACHABLE, SENSOR_LOST, NO_SENSOR,
|
|
83
|
+
* HOLDING — the one that most changes what a person should expect of the room.
|
|
84
|
+
*
|
|
85
|
+
* @generated from enum kusinta.iot.climate.v1.RoomClimateCondition
|
|
86
|
+
*/
|
|
87
|
+
export const RoomClimateCondition = /*@__PURE__*/
|
|
88
|
+
tsEnum(RoomClimateConditionSchema);
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Describes the enum kusinta.iot.climate.v1.ClimateModeKind.
|
|
92
|
+
*/
|
|
93
|
+
export const ClimateModeKindSchema = /*@__PURE__*/
|
|
94
|
+
enumDesc(file_kusinta_iot_climate_v1_climate, 1);
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* A setback that applies to every room in a space while it is on.
|
|
98
|
+
*
|
|
99
|
+
* @generated from enum kusinta.iot.climate.v1.ClimateModeKind
|
|
100
|
+
*/
|
|
101
|
+
export const ClimateModeKind = /*@__PURE__*/
|
|
102
|
+
tsEnum(ClimateModeKindSchema);
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Describes the enum kusinta.iot.climate.v1.ClimateSummaryPeriod.
|
|
106
|
+
*/
|
|
107
|
+
export const ClimateSummaryPeriodSchema = /*@__PURE__*/
|
|
108
|
+
enumDesc(file_kusinta_iot_climate_v1_climate, 2);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The length of the periods an ApartmentClimateSummary is given in. Each period runs from
|
|
112
|
+
* the start of one local date to the start of another in the building's time zone
|
|
113
|
+
* (space.v1.Space.time_zone) — midnight, or the first moment of the date where daylight
|
|
114
|
+
* saving skips midnight — so a day is 23 or 25 hours long across a change of daylight
|
|
115
|
+
* saving time. A period is cut by the time zone in force when it opened, and kept as cut.
|
|
116
|
+
* After a change of zone, the next period runs from that cut to the first boundary of its
|
|
117
|
+
* length in the new zone — a midnight, a Monday or a first of the month — that leaves it
|
|
118
|
+
* covering at least one whole day, week or month of the new zone's calendar, so no period
|
|
119
|
+
* covers less than one whole day, week or month of its calendar, however many hours that
|
|
120
|
+
* is. While the zone is unknown — never set, or cleared — nothing is summarised, and the
|
|
121
|
+
* period open when it was cleared ends unsummarised; once it is known again, the first
|
|
122
|
+
* period begins at the first boundary of its length after that.
|
|
123
|
+
*
|
|
124
|
+
* @generated from enum kusinta.iot.climate.v1.ClimateSummaryPeriod
|
|
125
|
+
*/
|
|
126
|
+
export const ClimateSummaryPeriod = /*@__PURE__*/
|
|
127
|
+
tsEnum(ClimateSummaryPeriodSchema);
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Describes the enum kusinta.iot.climate.v1.ClimateSummaryWeighting.
|
|
131
|
+
*/
|
|
132
|
+
export const ClimateSummaryWeightingSchema = /*@__PURE__*/
|
|
133
|
+
enumDesc(file_kusinta_iot_climate_v1_climate, 3);
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* How an apartment's mean is formed from its rooms' means.
|
|
137
|
+
*
|
|
138
|
+
* @generated from enum kusinta.iot.climate.v1.ClimateSummaryWeighting
|
|
139
|
+
*/
|
|
140
|
+
export const ClimateSummaryWeighting = /*@__PURE__*/
|
|
141
|
+
tsEnum(ClimateSummaryWeightingSchema);
|
|
142
|
+
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts,import_extension=js"
|
|
2
|
+
// @generated from file kusinta/iot/common/v1/pairing.proto (package kusinta.iot.common.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file kusinta/iot/common/v1/pairing.proto.
|
|
10
|
+
*/
|
|
11
|
+
export declare const file_kusinta_iot_common_v1_pairing: GenFile;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A pairing failure and what can be said about it, the pairing counterpart of CommandError.
|
|
15
|
+
*
|
|
16
|
+
* The message matters more here than elsewhere: DEVICE_UNUSABLE is the code a user is most
|
|
17
|
+
* likely to see and least able to act on, and naming the device that joined is the whole
|
|
18
|
+
* difference between "something went wrong" and "this hub does not support that model yet".
|
|
19
|
+
*
|
|
20
|
+
* @generated from message kusinta.iot.common.v1.PairingErrorDetail
|
|
21
|
+
*/
|
|
22
|
+
export declare type PairingErrorDetail = Message<"kusinta.iot.common.v1.PairingErrorDetail"> & {
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: kusinta.iot.common.v1.PairingError code = 1;
|
|
25
|
+
*/
|
|
26
|
+
code: PairingError;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* human-readable; may name the device, its model, or the fault
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: string message = 2;
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message kusinta.iot.common.v1.PairingErrorDetail.
|
|
38
|
+
* Use `create(PairingErrorDetailSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export declare const PairingErrorDetailSchema: GenMessage<PairingErrorDetail>;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* How long a hub accepts new devices, and which it will take.
|
|
44
|
+
*
|
|
45
|
+
* One message on both legs rather than the same three fields declared twice: the clamp rule
|
|
46
|
+
* and the meaning of a hint are the sort of thing that is written once and then diverges,
|
|
47
|
+
* and the two copies had already begun to.
|
|
48
|
+
*
|
|
49
|
+
* @generated from message kusinta.iot.common.v1.PairingWindow
|
|
50
|
+
*/
|
|
51
|
+
export declare type PairingWindow = Message<"kusinta.iot.common.v1.PairingWindow"> & {
|
|
52
|
+
/**
|
|
53
|
+
* How long to accept arrivals. Whoever forwards this clamps it, and so does whoever acts
|
|
54
|
+
* on it: a window is an interval during which anything nearby can join, so its length is a
|
|
55
|
+
* security parameter rather than purely the caller's to choose.
|
|
56
|
+
*
|
|
57
|
+
* Absent means "no preference, use the default" — distinct from a caller asking for zero.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: optional uint32 duration_seconds = 1;
|
|
60
|
+
*/
|
|
61
|
+
durationSeconds?: number | undefined;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The identifier printed on the device being paired, where the technology has one that is
|
|
65
|
+
* legible and the person is holding it. Free-form: what is printed differs per technology,
|
|
66
|
+
* and nothing between the app and the hub interprets it.
|
|
67
|
+
*
|
|
68
|
+
* Setting it changes the mechanism, not just the accuracy. The hub is restricted to that
|
|
69
|
+
* device and the arrival is verified against this value, so an arrival is attributed on
|
|
70
|
+
* identity. Leaving it empty opens the window to anything nearby, and attribution falls
|
|
71
|
+
* back to the arrival being the only one — which is why one window may be open at a time.
|
|
72
|
+
*
|
|
73
|
+
* Verification is not optional where this is set. A restriction can silently fail to take,
|
|
74
|
+
* and an arrival attributed on a restriction that did not hold is the wrong device in
|
|
75
|
+
* someone's home.
|
|
76
|
+
*
|
|
77
|
+
* @generated from field: string device_hint = 2;
|
|
78
|
+
*/
|
|
79
|
+
deviceHint: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* How many arrivals this one window may attribute. Absent means one.
|
|
83
|
+
*
|
|
84
|
+
* A batch suits commissioning, where devices are paired in a row and become a building's
|
|
85
|
+
* rather than any person's. It does not suit a caller whose pairing mints personal
|
|
86
|
+
* ownership.
|
|
87
|
+
*
|
|
88
|
+
* Ignored where device_hint is set, and narrowed to one rather than refused: a hint names
|
|
89
|
+
* one device, so a window restricted to it can never produce a second arrival to attribute.
|
|
90
|
+
* The combination is meaningless rather than dangerous, and there is no honest code in
|
|
91
|
+
* PairingError for "your request contradicted itself" — refusing it would mean answering a
|
|
92
|
+
* malformed request with an entitlement decision that was never made.
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: optional uint32 max_devices = 3;
|
|
95
|
+
*/
|
|
96
|
+
maxDevices?: number | undefined;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Describes the message kusinta.iot.common.v1.PairingWindow.
|
|
101
|
+
* Use `create(PairingWindowSchema)` to create a new message.
|
|
102
|
+
*/
|
|
103
|
+
export declare const PairingWindowSchema: GenMessage<PairingWindow>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Why a pairing attempt did not produce a device, in one vocabulary both the app and a
|
|
107
|
+
* connector speak.
|
|
108
|
+
*
|
|
109
|
+
* Shared rather than mirrored, for the reason CommandError's comment gives: mirrored enums
|
|
110
|
+
* leave every connector inventing its own spellings and something in the middle keeping a
|
|
111
|
+
* translation table that silently falls behind. A connector produces the subset it can
|
|
112
|
+
* observe; the gateway produces the rest and passes a connector's value through unchanged.
|
|
113
|
+
*
|
|
114
|
+
* Every value answers one question: *what should the client do now?* A code that does not
|
|
115
|
+
* change the answer does not need to exist, which is why "the device is on the hub and
|
|
116
|
+
* unusable" is one value and not two.
|
|
117
|
+
*
|
|
118
|
+
* @generated from enum kusinta.iot.common.v1.PairingError
|
|
119
|
+
*/
|
|
120
|
+
export enum PairingError {
|
|
121
|
+
/**
|
|
122
|
+
* Sender set no code, or sent one this client's schema does not know.
|
|
123
|
+
*
|
|
124
|
+
* This must stay the safe reading. A client decodes every value added after its build as
|
|
125
|
+
* UNSPECIFIED, so the sensible handling is "it did not work, offering a retry is
|
|
126
|
+
* reasonable" — and no value below is so dangerous that reading it this way misleads.
|
|
127
|
+
*
|
|
128
|
+
* @generated from enum value: PAIRING_ERROR_UNSPECIFIED = 0;
|
|
129
|
+
*/
|
|
130
|
+
UNSPECIFIED = 0,
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* The caller may not pair here. Permanent for this caller: stop, and say so.
|
|
134
|
+
*
|
|
135
|
+
* @generated from enum value: PAIRING_ERROR_NOT_ENTITLED = 1;
|
|
136
|
+
*/
|
|
137
|
+
NOT_ENTITLED = 1,
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* A pairing window is already open, and only one may be. Retrying after it closes is the
|
|
141
|
+
* right response; retrying at once is not.
|
|
142
|
+
*
|
|
143
|
+
* The exclusivity is not incidental. Where a request names no device, the only thing
|
|
144
|
+
* attributing an arrival to a requester is that theirs was the one window open.
|
|
145
|
+
*
|
|
146
|
+
* @generated from enum value: PAIRING_ERROR_ALREADY_IN_PROGRESS = 2;
|
|
147
|
+
*/
|
|
148
|
+
ALREADY_IN_PROGRESS = 2,
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The connector could not be reached, or refused to open its window. Transient.
|
|
152
|
+
*
|
|
153
|
+
* @generated from enum value: PAIRING_ERROR_CONNECTOR_UNAVAILABLE = 3;
|
|
154
|
+
*/
|
|
155
|
+
CONNECTOR_UNAVAILABLE = 3,
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* The window closed with nothing paired: no device was put into pairing mode, or it was
|
|
159
|
+
* out of range, or its batteries are flat. The ordinary outcome of a user who walked away,
|
|
160
|
+
* so the useful response is to say what to do and offer another go, not to report a fault.
|
|
161
|
+
*
|
|
162
|
+
* @generated from enum value: PAIRING_ERROR_NO_DEVICE_APPEARED = 4;
|
|
163
|
+
*/
|
|
164
|
+
NO_DEVICE_APPEARED = 4,
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* A device joined the hub and cannot be presented — the connector has no model for it, or
|
|
168
|
+
* could not assemble a complete description of it.
|
|
169
|
+
*
|
|
170
|
+
* One value rather than two, because the client does the same thing either way: stop, do
|
|
171
|
+
* not retry, and tell the user there is now an unusable device on their hub. Which of the
|
|
172
|
+
* two it was belongs in PairingErrorDetail.message, where it can name the device.
|
|
173
|
+
*
|
|
174
|
+
* It stays joined deliberately. A later connector release that models it adopts it with
|
|
175
|
+
* nobody returning to the hardware, where removing it would need someone standing there.
|
|
176
|
+
*
|
|
177
|
+
* @generated from enum value: PAIRING_ERROR_DEVICE_UNUSABLE = 5;
|
|
178
|
+
*/
|
|
179
|
+
DEVICE_UNUSABLE = 5,
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* A device joined that is not the one the request named. The connector checked the arrival
|
|
183
|
+
* against the identifier it was given and they did not match, so it was not attributed.
|
|
184
|
+
*
|
|
185
|
+
* @generated from enum value: PAIRING_ERROR_WRONG_DEVICE = 6;
|
|
186
|
+
*/
|
|
187
|
+
WRONG_DEVICE = 6,
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* A fault on the gateway's or the connector's own side. Not the caller's doing.
|
|
191
|
+
*
|
|
192
|
+
* @generated from enum value: PAIRING_ERROR_INTERNAL = 7;
|
|
193
|
+
*/
|
|
194
|
+
INTERNAL = 7,
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* The request named no connector. Pairing always targets exactly one connector,
|
|
198
|
+
* chosen from the connector enumeration; an untargeted "pair anything" is refused
|
|
199
|
+
* rather than fanned out across every hub. Permanent for the request as sent —
|
|
200
|
+
* naming a connector and asking again is the fix, retrying identically is not —
|
|
201
|
+
* which is why this is not CONNECTOR_UNAVAILABLE, whose retry is reasonable.
|
|
202
|
+
*
|
|
203
|
+
* The gateway is the enforcer: connector_id is a message field, so proto cannot
|
|
204
|
+
* mark it required, and the check lives where the fan-out used to. A client whose
|
|
205
|
+
* schema predates this reads it as UNSPECIFIED and offers a retry, which is
|
|
206
|
+
* harmless — an app built against the enumeration always names a connector anyway.
|
|
207
|
+
*
|
|
208
|
+
* @generated from enum value: PAIRING_ERROR_CONNECTOR_REQUIRED = 8;
|
|
209
|
+
*/
|
|
210
|
+
CONNECTOR_REQUIRED = 8,
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Describes the enum kusinta.iot.common.v1.PairingError.
|
|
215
|
+
*/
|
|
216
|
+
export declare const PairingErrorSchema: GenEnum<PairingError>;
|
|
217
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts,import_extension=js"
|
|
2
|
+
// @generated from file kusinta/iot/common/v1/pairing.proto (package kusinta.iot.common.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file kusinta/iot/common/v1/pairing.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_kusinta_iot_common_v1_pairing = /*@__PURE__*/
|
|
11
|
+
fileDesc("CiNrdXNpbnRhL2lvdC9jb21tb24vdjEvcGFpcmluZy5wcm90bxIVa3VzaW50YS5pb3QuY29tbW9uLnYxIlgKElBhaXJpbmdFcnJvckRldGFpbBIxCgRjb2RlGAEgASgOMiMua3VzaW50YS5pb3QuY29tbW9uLnYxLlBhaXJpbmdFcnJvchIPCgdtZXNzYWdlGAIgASgJIoIBCg1QYWlyaW5nV2luZG93Eh0KEGR1cmF0aW9uX3NlY29uZHMYASABKA1IAIgBARITCgtkZXZpY2VfaGludBgCIAEoCRIYCgttYXhfZGV2aWNlcxgDIAEoDUgBiAEBQhMKEV9kdXJhdGlvbl9zZWNvbmRzQg4KDF9tYXhfZGV2aWNlcyrIAgoMUGFpcmluZ0Vycm9yEh0KGVBBSVJJTkdfRVJST1JfVU5TUEVDSUZJRUQQABIeChpQQUlSSU5HX0VSUk9SX05PVF9FTlRJVExFRBABEiUKIVBBSVJJTkdfRVJST1JfQUxSRUFEWV9JTl9QUk9HUkVTUxACEicKI1BBSVJJTkdfRVJST1JfQ09OTkVDVE9SX1VOQVZBSUxBQkxFEAMSJAogUEFJUklOR19FUlJPUl9OT19ERVZJQ0VfQVBQRUFSRUQQBBIhCh1QQUlSSU5HX0VSUk9SX0RFVklDRV9VTlVTQUJMRRAFEh4KGlBBSVJJTkdfRVJST1JfV1JPTkdfREVWSUNFEAYSGgoWUEFJUklOR19FUlJPUl9JTlRFUk5BTBAHEiQKIFBBSVJJTkdfRVJST1JfQ09OTkVDVE9SX1JFUVVJUkVEEAhCAkgBYgZwcm90bzM");
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message kusinta.iot.common.v1.PairingErrorDetail.
|
|
15
|
+
* Use `create(PairingErrorDetailSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
export const PairingErrorDetailSchema = /*@__PURE__*/
|
|
18
|
+
messageDesc(file_kusinta_iot_common_v1_pairing, 0);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message kusinta.iot.common.v1.PairingWindow.
|
|
22
|
+
* Use `create(PairingWindowSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const PairingWindowSchema = /*@__PURE__*/
|
|
25
|
+
messageDesc(file_kusinta_iot_common_v1_pairing, 1);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Describes the enum kusinta.iot.common.v1.PairingError.
|
|
29
|
+
*/
|
|
30
|
+
export const PairingErrorSchema = /*@__PURE__*/
|
|
31
|
+
enumDesc(file_kusinta_iot_common_v1_pairing, 0);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Why a pairing attempt did not produce a device, in one vocabulary both the app and a
|
|
35
|
+
* connector speak.
|
|
36
|
+
*
|
|
37
|
+
* Shared rather than mirrored, for the reason CommandError's comment gives: mirrored enums
|
|
38
|
+
* leave every connector inventing its own spellings and something in the middle keeping a
|
|
39
|
+
* translation table that silently falls behind. A connector produces the subset it can
|
|
40
|
+
* observe; the gateway produces the rest and passes a connector's value through unchanged.
|
|
41
|
+
*
|
|
42
|
+
* Every value answers one question: *what should the client do now?* A code that does not
|
|
43
|
+
* change the answer does not need to exist, which is why "the device is on the hub and
|
|
44
|
+
* unusable" is one value and not two.
|
|
45
|
+
*
|
|
46
|
+
* @generated from enum kusinta.iot.common.v1.PairingError
|
|
47
|
+
*/
|
|
48
|
+
export const PairingError = /*@__PURE__*/
|
|
49
|
+
tsEnum(PairingErrorSchema);
|
|
50
|
+
|
|
@@ -36,6 +36,37 @@ export declare type ErrorDetail = Message<"kusinta.iot.common.v1.ErrorDetail"> &
|
|
|
36
36
|
*/
|
|
37
37
|
export declare const ErrorDetailSchema: GenMessage<ErrorDetail>;
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* A connector's backend health, as both legs carry it: connector to gateway inside
|
|
41
|
+
* connector.v1.BackendHealthReport, and gateway to app on webrtc.v1.ConnectorDescriptor.
|
|
42
|
+
*
|
|
43
|
+
* Deliberately state and category only. A connector's free-text detail travels beside this,
|
|
44
|
+
* on the connector leg alone, and is for the gateway's logs: it may name hosts, addresses or
|
|
45
|
+
* accounts, and it never reaches the app or the cloud. Carrying only this type on the app
|
|
46
|
+
* leg is what keeps it there.
|
|
47
|
+
*
|
|
48
|
+
* @generated from message kusinta.iot.common.v1.BackendHealth
|
|
49
|
+
*/
|
|
50
|
+
export declare type BackendHealth = Message<"kusinta.iot.common.v1.BackendHealth"> & {
|
|
51
|
+
/**
|
|
52
|
+
* @generated from field: kusinta.iot.common.v1.BackendHealthState state = 1;
|
|
53
|
+
*/
|
|
54
|
+
state: BackendHealthState;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Why, when state is FAILING. UNSPECIFIED otherwise, and ignored when state is not FAILING.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: kusinta.iot.common.v1.BackendFailureReason reason = 2;
|
|
60
|
+
*/
|
|
61
|
+
reason: BackendFailureReason;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message kusinta.iot.common.v1.BackendHealth.
|
|
66
|
+
* Use `create(BackendHealthSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export declare const BackendHealthSchema: GenMessage<BackendHealth>;
|
|
69
|
+
|
|
39
70
|
/**
|
|
40
71
|
* @generated from enum kusinta.iot.common.v1.SpaceType
|
|
41
72
|
*/
|
|
@@ -161,3 +192,147 @@ export enum ConnectorTransport {
|
|
|
161
192
|
*/
|
|
162
193
|
export declare const ConnectorTransportSchema: GenEnum<ConnectorTransport>;
|
|
163
194
|
|
|
195
|
+
/**
|
|
196
|
+
* What technology a connector speaks, for an interface to pick an icon or an
|
|
197
|
+
* explanatory phrase. Presentation only, and never a behaviour gate: what a
|
|
198
|
+
* connector can do is stated by the capability booleans on ConnectorInfo
|
|
199
|
+
* (supports_pairing, supports_provisioning, brokers_links), and branching on the
|
|
200
|
+
* kind instead would hardcode vendor knowledge and force a client change for every
|
|
201
|
+
* new technology. A proto3 open enum: a reader given a value its schema predates
|
|
202
|
+
* keeps UNSPECIFIED's fallback rather than failing, which is exactly why the kind
|
|
203
|
+
* may never decide anything that matters.
|
|
204
|
+
*
|
|
205
|
+
* @generated from enum kusinta.iot.common.v1.ConnectorKind
|
|
206
|
+
*/
|
|
207
|
+
export enum ConnectorKind {
|
|
208
|
+
/**
|
|
209
|
+
* @generated from enum value: CONNECTOR_KIND_UNSPECIFIED = 0;
|
|
210
|
+
*/
|
|
211
|
+
UNSPECIFIED = 0,
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @generated from enum value: CONNECTOR_KIND_HOMEMATIC_IP = 1;
|
|
215
|
+
*/
|
|
216
|
+
HOMEMATIC_IP = 1,
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @generated from enum value: CONNECTOR_KIND_LORAWAN = 2;
|
|
220
|
+
*/
|
|
221
|
+
LORAWAN = 2,
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Describes the enum kusinta.iot.common.v1.ConnectorKind.
|
|
226
|
+
*/
|
|
227
|
+
export declare const ConnectorKindSchema: GenEnum<ConnectorKind>;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Whether the backend a connector drives is working: the radio central, the network server,
|
|
231
|
+
* whatever the connector talks to on the far side from the gateway. Distinct from whether
|
|
232
|
+
* the connector itself is connected — that is the gateway↔connector stream, and a connector
|
|
233
|
+
* whose stream is down states nothing at all.
|
|
234
|
+
*
|
|
235
|
+
* Open, like every proto3 enum: a reader given a value its schema predates holds the number.
|
|
236
|
+
* Every reader treats anything but FAILING as healthy, so a state added later must be one an
|
|
237
|
+
* older reader may safely take for OK. A new way of failing is a new BackendFailureReason
|
|
238
|
+
* under FAILING, never a new state.
|
|
239
|
+
*
|
|
240
|
+
* @generated from enum kusinta.iot.common.v1.BackendHealthState
|
|
241
|
+
*/
|
|
242
|
+
export enum BackendHealthState {
|
|
243
|
+
/**
|
|
244
|
+
* No statement. Read as OK: a connector that predates backend health, or one whose backend
|
|
245
|
+
* is still in doubt as it handshakes (see connector.v1.BackendHealthReport), has said
|
|
246
|
+
* nothing is wrong.
|
|
247
|
+
*
|
|
248
|
+
* @generated from enum value: BACKEND_HEALTH_STATE_UNSPECIFIED = 0;
|
|
249
|
+
*/
|
|
250
|
+
UNSPECIFIED = 0,
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* The backend is reachable and answering.
|
|
254
|
+
*
|
|
255
|
+
* @generated from enum value: BACKEND_HEALTH_STATE_OK = 1;
|
|
256
|
+
*/
|
|
257
|
+
OK = 1,
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* The backend is failing, and not for a single dropped call: it has been in doubt for 60
|
|
261
|
+
* seconds within the last 120 (see connector.v1.BackendHealthReport), or the connector's own
|
|
262
|
+
* retries are used up, or a requested re-initialisation
|
|
263
|
+
* left it failing (see connector.v1.BackendHealthReport). The connector stays connected to
|
|
264
|
+
* the gateway.
|
|
265
|
+
*
|
|
266
|
+
* @generated from enum value: BACKEND_HEALTH_STATE_FAILING = 2;
|
|
267
|
+
*/
|
|
268
|
+
FAILING = 2,
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Describes the enum kusinta.iot.common.v1.BackendHealthState.
|
|
273
|
+
*/
|
|
274
|
+
export declare const BackendHealthStateSchema: GenEnum<BackendHealthState>;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Why a backend is failing, or why a re-initialisation could not be attempted. Coarse on
|
|
278
|
+
* purpose: each value answers "what should someone do now?", and the specifics belong in a
|
|
279
|
+
* connector's log-only detail, never here.
|
|
280
|
+
*
|
|
281
|
+
* Shared rather than mirrored, for the reason PairingError gives: the connector produces it
|
|
282
|
+
* and the gateway passes it through unchanged.
|
|
283
|
+
*
|
|
284
|
+
* @generated from enum kusinta.iot.common.v1.BackendFailureReason
|
|
285
|
+
*/
|
|
286
|
+
export enum BackendFailureReason {
|
|
287
|
+
/**
|
|
288
|
+
* Not stated, or a value this reader's schema does not know. Read as BACKEND_ERROR.
|
|
289
|
+
*
|
|
290
|
+
* @generated from enum value: BACKEND_FAILURE_REASON_UNSPECIFIED = 0;
|
|
291
|
+
*/
|
|
292
|
+
UNSPECIFIED = 0,
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* The backend cannot be reached: no route, connection refused, no answer. Often a power or
|
|
296
|
+
* network fault at the backend's side; a re-initialisation may help once that is fixed.
|
|
297
|
+
*
|
|
298
|
+
* @generated from enum value: BACKEND_FAILURE_REASON_UNREACHABLE = 1;
|
|
299
|
+
*/
|
|
300
|
+
UNREACHABLE = 1,
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The backend answered and refused the connector's credentials. Retrying the same
|
|
304
|
+
* credentials will not help; someone must change them.
|
|
305
|
+
*
|
|
306
|
+
* @generated from enum value: BACKEND_FAILURE_REASON_AUTH_FAILED = 2;
|
|
307
|
+
*/
|
|
308
|
+
AUTH_FAILED = 2,
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* The backend is reached and authenticated, but answers with errors or not as the connector
|
|
312
|
+
* expects: a fault on the backend's side, or a version the connector does not understand.
|
|
313
|
+
*
|
|
314
|
+
* @generated from enum value: BACKEND_FAILURE_REASON_BACKEND_ERROR = 3;
|
|
315
|
+
*/
|
|
316
|
+
BACKEND_ERROR = 3,
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* The connector lacks what it needs to reach the backend at all: an address, credentials.
|
|
320
|
+
* Needs an installer, not a retry.
|
|
321
|
+
*
|
|
322
|
+
* @generated from enum value: BACKEND_FAILURE_REASON_MISCONFIGURED = 4;
|
|
323
|
+
*/
|
|
324
|
+
MISCONFIGURED = 4,
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* A fault in the connector itself, not in the backend.
|
|
328
|
+
*
|
|
329
|
+
* @generated from enum value: BACKEND_FAILURE_REASON_INTERNAL = 5;
|
|
330
|
+
*/
|
|
331
|
+
INTERNAL = 5,
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Describes the enum kusinta.iot.common.v1.BackendFailureReason.
|
|
336
|
+
*/
|
|
337
|
+
export declare const BackendFailureReasonSchema: GenEnum<BackendFailureReason>;
|
|
338
|
+
|