@kusinta/iot-schema 0.1.0-beta.9 → 0.2.0-beta.10

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.
Files changed (53) hide show
  1. package/package.json +19 -2
  2. package/src/kusinta/iot/access/v1/acl_pb.d.ts +230 -11
  3. package/src/kusinta/iot/access/v1/acl_pb.js +26 -5
  4. package/src/kusinta/iot/access/v1/roles_pb.d.ts +95 -2
  5. package/src/kusinta/iot/access/v1/roles_pb.js +37 -1
  6. package/src/kusinta/iot/common/v1/pairing_pb.d.ts +201 -0
  7. package/src/kusinta/iot/common/v1/pairing_pb.js +50 -0
  8. package/src/kusinta/iot/connector/v1/connector_pb.d.ts +481 -34
  9. package/src/kusinta/iot/connector/v1/connector_pb.js +81 -22
  10. package/src/kusinta/iot/connector/v1/connector_service_pb.d.ts +5 -5
  11. package/src/kusinta/iot/connector/v1/connector_service_pb.js +1 -1
  12. package/src/kusinta/iot/device/v1/cluster_state_pb.d.ts +263 -0
  13. package/src/kusinta/iot/device/v1/cluster_state_pb.js +54 -0
  14. package/src/kusinta/iot/device/v1/descriptor_pb.d.ts +53 -9
  15. package/src/kusinta/iot/device/v1/descriptor_pb.js +3 -1
  16. package/src/kusinta/iot/device/v1/device_event_pb.d.ts +162 -0
  17. package/src/kusinta/iot/device/v1/device_event_pb.js +45 -0
  18. package/src/kusinta/iot/device/v1/device_pb.d.ts +185 -28
  19. package/src/kusinta/iot/device/v1/device_pb.js +10 -2
  20. package/src/kusinta/iot/device/v1/matter_options_pb.d.ts +110 -0
  21. package/src/kusinta/iot/device/v1/matter_options_pb.js +118 -0
  22. package/src/kusinta/iot/device/v1/properties_pb.d.ts +240 -205
  23. package/src/kusinta/iot/device/v1/properties_pb.js +9 -1
  24. package/src/kusinta/iot/device/v1/property_update_pb.d.ts +197 -8
  25. package/src/kusinta/iot/device/v1/property_update_pb.js +20 -2
  26. package/src/kusinta/iot/link/v1/link_pb.d.ts +419 -0
  27. package/src/kusinta/iot/link/v1/link_pb.js +121 -0
  28. package/src/kusinta/iot/registration/v1/registration_pb.d.ts +170 -0
  29. package/src/kusinta/iot/registration/v1/registration_pb.js +61 -0
  30. package/src/kusinta/iot/registration/v1/registration_service_pb.d.ts +34 -0
  31. package/src/kusinta/iot/registration/v1/registration_service_pb.js +19 -0
  32. package/src/kusinta/iot/signaling/v1/signaling_pb.d.ts +320 -0
  33. package/src/kusinta/iot/signaling/v1/signaling_pb.js +83 -0
  34. package/src/kusinta/iot/signaling/v1/signaling_service_pb.d.ts +34 -0
  35. package/src/kusinta/iot/signaling/v1/signaling_service_pb.js +19 -0
  36. package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.d.ts +202 -35
  37. package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.js +14 -6
  38. package/src/kusinta/iot/vendor/v1/vendor_options_pb.d.ts +71 -0
  39. package/src/kusinta/iot/vendor/v1/vendor_options_pb.js +75 -0
  40. package/src/kusinta/iot/webrtc/v1/app_token_pb.d.ts +152 -0
  41. package/src/kusinta/iot/webrtc/v1/app_token_pb.js +28 -0
  42. package/src/kusinta/iot/webrtc/v1/command_pb.d.ts +277 -39
  43. package/src/kusinta/iot/webrtc/v1/command_pb.js +29 -2
  44. package/src/kusinta/iot/webrtc/v1/device_state_pb.d.ts +76 -7
  45. package/src/kusinta/iot/webrtc/v1/device_state_pb.js +20 -5
  46. package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +603 -25
  47. package/src/kusinta/iot/webrtc/v1/envelope_pb.js +99 -5
  48. package/src/kusinta/iot/webrtc/v1/management_pb.d.ts +627 -0
  49. package/src/kusinta/iot/webrtc/v1/management_pb.js +135 -0
  50. package/src/kusinta/iot/webrtc/v1/permission_push_pb.d.ts +7 -1
  51. package/src/kusinta/iot/webrtc/v1/permission_push_pb.js +2 -2
  52. package/src/kusinta/iot/webrtc/v1/setpoint_mode_pb.d.ts +63 -0
  53. package/src/kusinta/iot/webrtc/v1/setpoint_mode_pb.js +45 -0
@@ -0,0 +1,201 @@
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
+ /**
198
+ * Describes the enum kusinta.iot.common.v1.PairingError.
199
+ */
200
+ export declare const PairingErrorSchema: GenEnum<PairingError>;
201
+
@@ -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("CiNrdXNpbnRhL2lvdC9jb21tb24vdjEvcGFpcmluZy5wcm90bxIVa3VzaW50YS5pb3QuY29tbW9uLnYxIlgKElBhaXJpbmdFcnJvckRldGFpbBIxCgRjb2RlGAEgASgOMiMua3VzaW50YS5pb3QuY29tbW9uLnYxLlBhaXJpbmdFcnJvchIPCgdtZXNzYWdlGAIgASgJIoIBCg1QYWlyaW5nV2luZG93Eh0KEGR1cmF0aW9uX3NlY29uZHMYASABKA1IAIgBARITCgtkZXZpY2VfaGludBgCIAEoCRIYCgttYXhfZGV2aWNlcxgDIAEoDUgBiAEBQhMKEV9kdXJhdGlvbl9zZWNvbmRzQg4KDF9tYXhfZGV2aWNlcyqiAgoMUGFpcmluZ0Vycm9yEh0KGVBBSVJJTkdfRVJST1JfVU5TUEVDSUZJRUQQABIeChpQQUlSSU5HX0VSUk9SX05PVF9FTlRJVExFRBABEiUKIVBBSVJJTkdfRVJST1JfQUxSRUFEWV9JTl9QUk9HUkVTUxACEicKI1BBSVJJTkdfRVJST1JfQ09OTkVDVE9SX1VOQVZBSUxBQkxFEAMSJAogUEFJUklOR19FUlJPUl9OT19ERVZJQ0VfQVBQRUFSRUQQBBIhCh1QQUlSSU5HX0VSUk9SX0RFVklDRV9VTlVTQUJMRRAFEh4KGlBBSVJJTkdfRVJST1JfV1JPTkdfREVWSUNFEAYSGgoWUEFJUklOR19FUlJPUl9JTlRFUk5BTBAHQgJIAWIGcHJvdG8z");
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
+