@kusinta/iot-schema 0.2.0-beta.1 → 0.2.0-beta.11

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 (40) hide show
  1. package/package.json +8 -1
  2. package/src/kusinta/iot/access/v1/acl_pb.d.ts +130 -0
  3. package/src/kusinta/iot/access/v1/acl_pb.js +19 -5
  4. package/src/kusinta/iot/access/v1/roles_pb.d.ts +80 -14
  5. package/src/kusinta/iot/access/v1/roles_pb.js +33 -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/common/v1/types_pb.d.ts +34 -0
  9. package/src/kusinta/iot/common/v1/types_pb.js +22 -1
  10. package/src/kusinta/iot/connector/v1/connector_pb.d.ts +476 -7
  11. package/src/kusinta/iot/connector/v1/connector_pb.js +70 -12
  12. package/src/kusinta/iot/device/v1/cluster_state_pb.d.ts +25 -0
  13. package/src/kusinta/iot/device/v1/cluster_state_pb.js +1 -1
  14. package/src/kusinta/iot/device/v1/descriptor_pb.d.ts +16 -1
  15. package/src/kusinta/iot/device/v1/descriptor_pb.js +2 -1
  16. package/src/kusinta/iot/device/v1/device_pb.d.ts +34 -3
  17. package/src/kusinta/iot/device/v1/device_pb.js +1 -1
  18. package/src/kusinta/iot/device/v1/matter_options_pb.d.ts +26 -0
  19. package/src/kusinta/iot/device/v1/matter_options_pb.js +31 -4
  20. package/src/kusinta/iot/device/v1/properties_pb.d.ts +14 -0
  21. package/src/kusinta/iot/device/v1/properties_pb.js +1 -1
  22. package/src/kusinta/iot/link/v1/link_pb.d.ts +419 -0
  23. package/src/kusinta/iot/link/v1/link_pb.js +121 -0
  24. package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.d.ts +162 -13
  25. package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.js +8 -1
  26. package/src/kusinta/iot/vendor/lorawan/v1/lorawan_pb.d.ts +69 -0
  27. package/src/kusinta/iot/vendor/lorawan/v1/lorawan_pb.js +19 -0
  28. package/src/kusinta/iot/vendor/v1/vendor_options_pb.d.ts +21 -0
  29. package/src/kusinta/iot/vendor/v1/vendor_options_pb.js +24 -2
  30. package/src/kusinta/iot/webrtc/v1/command_pb.d.ts +14 -6
  31. package/src/kusinta/iot/webrtc/v1/command_pb.js +2 -1
  32. package/src/kusinta/iot/webrtc/v1/device_state_pb.d.ts +12 -6
  33. package/src/kusinta/iot/webrtc/v1/device_state_pb.js +5 -5
  34. package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +339 -5
  35. package/src/kusinta/iot/webrtc/v1/envelope_pb.js +48 -3
  36. package/src/kusinta/iot/webrtc/v1/management_pb.d.ts +246 -3
  37. package/src/kusinta/iot/webrtc/v1/management_pb.js +42 -5
  38. package/src/kusinta/iot/webrtc/v1/permission_push_pb.js +2 -2
  39. package/src/kusinta/iot/webrtc/v1/setpoint_mode_pb.d.ts +63 -0
  40. package/src/kusinta/iot/webrtc/v1/setpoint_mode_pb.js +45 -0
@@ -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
+
@@ -161,3 +161,37 @@ export enum ConnectorTransport {
161
161
  */
162
162
  export declare const ConnectorTransportSchema: GenEnum<ConnectorTransport>;
163
163
 
164
+ /**
165
+ * What technology a connector speaks, for an interface to pick an icon or an
166
+ * explanatory phrase. Presentation only, and never a behaviour gate: what a
167
+ * connector can do is stated by the capability booleans on ConnectorInfo
168
+ * (supports_pairing, supports_provisioning, brokers_links), and branching on the
169
+ * kind instead would hardcode vendor knowledge and force a client change for every
170
+ * new technology. A proto3 open enum: a reader given a value its schema predates
171
+ * keeps UNSPECIFIED's fallback rather than failing, which is exactly why the kind
172
+ * may never decide anything that matters.
173
+ *
174
+ * @generated from enum kusinta.iot.common.v1.ConnectorKind
175
+ */
176
+ export enum ConnectorKind {
177
+ /**
178
+ * @generated from enum value: CONNECTOR_KIND_UNSPECIFIED = 0;
179
+ */
180
+ UNSPECIFIED = 0,
181
+
182
+ /**
183
+ * @generated from enum value: CONNECTOR_KIND_HOMEMATIC_IP = 1;
184
+ */
185
+ HOMEMATIC_IP = 1,
186
+
187
+ /**
188
+ * @generated from enum value: CONNECTOR_KIND_LORAWAN = 2;
189
+ */
190
+ LORAWAN = 2,
191
+ }
192
+
193
+ /**
194
+ * Describes the enum kusinta.iot.common.v1.ConnectorKind.
195
+ */
196
+ export declare const ConnectorKindSchema: GenEnum<ConnectorKind>;
197
+
@@ -8,7 +8,7 @@ import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/code
8
8
  * Describes the file kusinta/iot/common/v1/types.proto.
9
9
  */
10
10
  export const file_kusinta_iot_common_v1_types = /*@__PURE__*/
11
- fileDesc("CiFrdXNpbnRhL2lvdC9jb21tb24vdjEvdHlwZXMucHJvdG8SFWt1c2ludGEuaW90LmNvbW1vbi52MSKhAQoLRXJyb3JEZXRhaWwSDAoEY29kZRgBIAEoCRIPCgdtZXNzYWdlGAIgASgJEkIKCG1ldGFkYXRhGAMgAygLMjAua3VzaW50YS5pb3QuY29tbW9uLnYxLkVycm9yRGV0YWlsLk1ldGFkYXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBKqEBCglTcGFjZVR5cGUSGgoWU1BBQ0VfVFlQRV9VTlNQRUNJRklFRBAAEhcKE1NQQUNFX1RZUEVfQlVJTERJTkcQARIUChBTUEFDRV9UWVBFX0ZMT09SEAISGAoUU1BBQ0VfVFlQRV9BUEFSVE1FTlQQAxITCg9TUEFDRV9UWVBFX1JPT00QBBIaChZTUEFDRV9UWVBFX0NPTU1PTl9BUkVBEAUqgwEKE0RldmljZU93bmVyc2hpcFR5cGUSJQohREVWSUNFX09XTkVSU0hJUF9UWVBFX1VOU1BFQ0lGSUVEEAASIQodREVWSUNFX09XTkVSU0hJUF9UWVBFX0NPTVBBTlkQARIiCh5ERVZJQ0VfT1dORVJTSElQX1RZUEVfUkVTSURFTlQQAirhAQoURGV2aWNlTGlmZWN5Y2xlU3RhdGUSJgoiREVWSUNFX0xJRkVDWUNMRV9TVEFURV9VTlNQRUNJRklFRBAAEigKJERFVklDRV9MSUZFQ1lDTEVfU1RBVEVfUEVORElOR19DTEFJTRABEiAKHERFVklDRV9MSUZFQ1lDTEVfU1RBVEVfT1dORUQQAhIrCidERVZJQ0VfTElGRUNZQ0xFX1NUQVRFX1BFTkRJTkdfVFJBTlNGRVIQAxIoCiRERVZJQ0VfTElGRUNZQ0xFX1NUQVRFX0JVSUxESU5HX1BPT0wQBCqAAQoSQ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CidERVZJQ0VfTElGRUNZQ0xFX1NUQVRFX1BFTkRJTkdfVFJBTlNGRVIQAxIoCiRERVZJQ0VfTElGRUNZQ0xFX1NUQVRFX0JVSUxESU5HX1BPT0wQBCqAAQoSQ29ubmVjdG9yVHJhbnNwb3J0EiMKH0NPTk5FQ1RPUl9UUkFOU1BPUlRfVU5TUEVDSUZJRUQQABIjCh9DT05ORUNUT1JfVFJBTlNQT1JUX1VOSVhfU09DS0VUEAESIAocQ09OTkVDVE9SX1RSQU5TUE9SVF9NVExTX1RDUBACKmwKDUNvbm5lY3RvcktpbmQSHgoaQ09OTkVDVE9SX0tJTkRfVU5TUEVDSUZJRUQQABIfChtDT05ORUNUT1JfS0lORF9IT01FTUFUSUNfSVAQARIaChZDT05ORUNUT1JfS0lORF9MT1JBV0FOEAJCAkgBYgZwcm90bzM");
12
12
 
13
13
  /**
14
14
  * Describes the message kusinta.iot.common.v1.ErrorDetail.
@@ -65,3 +65,24 @@ export const ConnectorTransportSchema = /*@__PURE__*/
65
65
  export const ConnectorTransport = /*@__PURE__*/
66
66
  tsEnum(ConnectorTransportSchema);
67
67
 
68
+ /**
69
+ * Describes the enum kusinta.iot.common.v1.ConnectorKind.
70
+ */
71
+ export const ConnectorKindSchema = /*@__PURE__*/
72
+ enumDesc(file_kusinta_iot_common_v1_types, 4);
73
+
74
+ /**
75
+ * What technology a connector speaks, for an interface to pick an icon or an
76
+ * explanatory phrase. Presentation only, and never a behaviour gate: what a
77
+ * connector can do is stated by the capability booleans on ConnectorInfo
78
+ * (supports_pairing, supports_provisioning, brokers_links), and branching on the
79
+ * kind instead would hardcode vendor knowledge and force a client change for every
80
+ * new technology. A proto3 open enum: a reader given a value its schema predates
81
+ * keeps UNSPECIFIED's fallback rather than failing, which is exactly why the kind
82
+ * may never decide anything that matters.
83
+ *
84
+ * @generated from enum kusinta.iot.common.v1.ConnectorKind
85
+ */
86
+ export const ConnectorKind = /*@__PURE__*/
87
+ tsEnum(ConnectorKindSchema);
88
+