@kusinta/iot-schema 0.2.0-beta.1 → 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 (36) hide show
  1. package/package.json +7 -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/connector/v1/connector_pb.d.ts +423 -6
  9. package/src/kusinta/iot/connector/v1/connector_pb.js +70 -12
  10. package/src/kusinta/iot/device/v1/cluster_state_pb.d.ts +25 -0
  11. package/src/kusinta/iot/device/v1/cluster_state_pb.js +1 -1
  12. package/src/kusinta/iot/device/v1/descriptor_pb.d.ts +16 -1
  13. package/src/kusinta/iot/device/v1/descriptor_pb.js +2 -1
  14. package/src/kusinta/iot/device/v1/device_pb.d.ts +34 -3
  15. package/src/kusinta/iot/device/v1/device_pb.js +1 -1
  16. package/src/kusinta/iot/device/v1/matter_options_pb.d.ts +26 -0
  17. package/src/kusinta/iot/device/v1/matter_options_pb.js +31 -4
  18. package/src/kusinta/iot/device/v1/properties_pb.d.ts +14 -0
  19. package/src/kusinta/iot/device/v1/properties_pb.js +1 -1
  20. package/src/kusinta/iot/link/v1/link_pb.d.ts +419 -0
  21. package/src/kusinta/iot/link/v1/link_pb.js +121 -0
  22. package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.d.ts +162 -13
  23. package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.js +8 -1
  24. package/src/kusinta/iot/vendor/v1/vendor_options_pb.d.ts +21 -0
  25. package/src/kusinta/iot/vendor/v1/vendor_options_pb.js +24 -2
  26. package/src/kusinta/iot/webrtc/v1/command_pb.d.ts +14 -6
  27. package/src/kusinta/iot/webrtc/v1/command_pb.js +2 -1
  28. package/src/kusinta/iot/webrtc/v1/device_state_pb.d.ts +12 -6
  29. package/src/kusinta/iot/webrtc/v1/device_state_pb.js +5 -5
  30. package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +236 -5
  31. package/src/kusinta/iot/webrtc/v1/envelope_pb.js +34 -3
  32. package/src/kusinta/iot/webrtc/v1/management_pb.d.ts +178 -2
  33. package/src/kusinta/iot/webrtc/v1/management_pb.js +31 -2
  34. package/src/kusinta/iot/webrtc/v1/permission_push_pb.js +2 -2
  35. package/src/kusinta/iot/webrtc/v1/setpoint_mode_pb.d.ts +63 -0
  36. 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
+
@@ -7,10 +7,12 @@ import type { Message } from "@bufbuild/protobuf";
7
7
  import type { ConnectorId, DeviceId, GatewayId } from "../../identity/v1/identity_pb.js";
8
8
  import type { ConnectorTransport } from "../../common/v1/types_pb.js";
9
9
  import type { Device } from "../../device/v1/device_pb.js";
10
+ import type { DeviceLink, LinkFunction, LinkState } from "../../link/v1/link_pb.js";
10
11
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
12
+ import type { AttributeWriteRequest, CommandError, DeviceCommand } from "../../webrtc/v1/command_pb.js";
13
+ import type { PairingErrorDetail, PairingWindow } from "../../common/v1/pairing_pb.js";
11
14
  import type { PropertyUpdateBatch } from "../../device/v1/property_update_pb.js";
12
15
  import type { DeviceEventBatch } from "../../device/v1/device_event_pb.js";
13
- import type { AttributeWriteRequest, DeviceCommand } from "../../webrtc/v1/command_pb.js";
14
16
 
15
17
  /**
16
18
  * Describes the file kusinta/iot/connector/v1/connector.proto.
@@ -73,6 +75,22 @@ export declare type ConnectorHandshake = Message<"kusinta.iot.connector.v1.Conne
73
75
  * @generated from field: repeated kusinta.iot.device.v1.Device known_devices = 2;
74
76
  */
75
77
  knownDevices: Device[];
78
+
79
+ /**
80
+ * Every link the hub currently holds, reported the way known_devices is.
81
+ *
82
+ * Links are hub state, not gateway state: they outlive a connector restart and
83
+ * can be changed by anyone with access to the hub. The gateway's records are a
84
+ * statement of intent that can drift, so the handshake is the moment to
85
+ * reconcile them against what is really there. A link in the gateway's records
86
+ * and not here has gone; one here and not in the records was made elsewhere.
87
+ *
88
+ * Empty means "states nothing" — a connector that does not model linking is not
89
+ * asserting that no links exist.
90
+ *
91
+ * @generated from field: repeated kusinta.iot.link.v1.DeviceLink known_links = 3;
92
+ */
93
+ knownLinks: DeviceLink[];
76
94
  };
77
95
 
78
96
  /**
@@ -81,6 +99,163 @@ export declare type ConnectorHandshake = Message<"kusinta.iot.connector.v1.Conne
81
99
  */
82
100
  export declare const ConnectorHandshakeSchema: GenMessage<ConnectorHandshake>;
83
101
 
102
+ /**
103
+ * Asks the connector to make a link, gateway to connector.
104
+ *
105
+ * Names two devices and a function; resolving that into whatever set of
106
+ * underlying connections the hub needs is the connector's work. It is expected to
107
+ * build the set atomically and roll back a partial one, because a half-built set
108
+ * is a link that lists as healthy and carries nothing.
109
+ *
110
+ * The connector is also expected to repair whatever the operation disturbs. On at
111
+ * least one vendor, both making and removing a link leaves the receiving device
112
+ * in a state it was not in before, with settings that must be captured
113
+ * beforehand and put back after.
114
+ *
115
+ * @generated from message kusinta.iot.connector.v1.CreateLink
116
+ */
117
+ export declare type CreateLink = Message<"kusinta.iot.connector.v1.CreateLink"> & {
118
+ /**
119
+ * assigned by the gateway, echoed in the result
120
+ *
121
+ * @generated from field: string link_id = 1;
122
+ */
123
+ linkId: string;
124
+
125
+ /**
126
+ * @generated from field: kusinta.iot.identity.v1.DeviceId sender = 2;
127
+ */
128
+ sender?: DeviceId | undefined;
129
+
130
+ /**
131
+ * @generated from field: kusinta.iot.identity.v1.DeviceId receiver = 3;
132
+ */
133
+ receiver?: DeviceId | undefined;
134
+
135
+ /**
136
+ * @generated from field: kusinta.iot.link.v1.LinkFunction function = 4;
137
+ */
138
+ function: LinkFunction;
139
+ };
140
+
141
+ /**
142
+ * Describes the message kusinta.iot.connector.v1.CreateLink.
143
+ * Use `create(CreateLinkSchema)` to create a new message.
144
+ */
145
+ export declare const CreateLinkSchema: GenMessage<CreateLink>;
146
+
147
+ /**
148
+ * Asks the connector to remove a link it previously made.
149
+ *
150
+ * @generated from message kusinta.iot.connector.v1.RemoveLink
151
+ */
152
+ export declare type RemoveLink = Message<"kusinta.iot.connector.v1.RemoveLink"> & {
153
+ /**
154
+ * @generated from field: string link_id = 1;
155
+ */
156
+ linkId: string;
157
+
158
+ /**
159
+ * @generated from field: kusinta.iot.identity.v1.DeviceId sender = 2;
160
+ */
161
+ sender?: DeviceId | undefined;
162
+
163
+ /**
164
+ * @generated from field: kusinta.iot.identity.v1.DeviceId receiver = 3;
165
+ */
166
+ receiver?: DeviceId | undefined;
167
+
168
+ /**
169
+ * @generated from field: kusinta.iot.link.v1.LinkFunction function = 4;
170
+ */
171
+ function: LinkFunction;
172
+ };
173
+
174
+ /**
175
+ * Describes the message kusinta.iot.connector.v1.RemoveLink.
176
+ * Use `create(RemoveLinkSchema)` to create a new message.
177
+ */
178
+ export declare const RemoveLinkSchema: GenMessage<RemoveLink>;
179
+
180
+ /**
181
+ * Asks the connector what links the hub holds, for reconciliation outside a
182
+ * handshake.
183
+ *
184
+ * @generated from message kusinta.iot.connector.v1.ListLinks
185
+ */
186
+ export declare type ListLinks = Message<"kusinta.iot.connector.v1.ListLinks"> & {
187
+ /**
188
+ * Unset asks for every link the hub holds.
189
+ *
190
+ * @generated from field: kusinta.iot.identity.v1.DeviceId device_id = 1;
191
+ */
192
+ deviceId?: DeviceId | undefined;
193
+ };
194
+
195
+ /**
196
+ * Describes the message kusinta.iot.connector.v1.ListLinks.
197
+ * Use `create(ListLinksSchema)` to create a new message.
198
+ */
199
+ export declare const ListLinksSchema: GenMessage<ListLinks>;
200
+
201
+ /**
202
+ * What became of a CreateLink or RemoveLink, connector to gateway.
203
+ *
204
+ * Reports the link's observed state rather than merely whether the call was
205
+ * accepted. A hub will report a link as present and healthy while the devices
206
+ * ignore it, so "the request did not fail" is not the same claim as "the link is
207
+ * carrying" and must not be encoded as though it were.
208
+ *
209
+ * @generated from message kusinta.iot.connector.v1.LinkResult
210
+ */
211
+ export declare type LinkResult = Message<"kusinta.iot.connector.v1.LinkResult"> & {
212
+ /**
213
+ * @generated from field: string link_id = 1;
214
+ */
215
+ linkId: string;
216
+
217
+ /**
218
+ * @generated from field: bool success = 2;
219
+ */
220
+ success: boolean;
221
+
222
+ /**
223
+ * @generated from field: kusinta.iot.link.v1.LinkState state = 3;
224
+ */
225
+ state: LinkState;
226
+
227
+ /**
228
+ * Why not, when success is false. For a person; never parsed.
229
+ *
230
+ * @generated from field: string detail = 4;
231
+ */
232
+ detail: string;
233
+ };
234
+
235
+ /**
236
+ * Describes the message kusinta.iot.connector.v1.LinkResult.
237
+ * Use `create(LinkResultSchema)` to create a new message.
238
+ */
239
+ export declare const LinkResultSchema: GenMessage<LinkResult>;
240
+
241
+ /**
242
+ * Every link the hub holds, connector to gateway, in reply to ListLinks.
243
+ *
244
+ * @generated from message kusinta.iot.connector.v1.LinksReported
245
+ */
246
+ export declare type LinksReported = Message<"kusinta.iot.connector.v1.LinksReported"> & {
247
+ /**
248
+ * @generated from field: repeated kusinta.iot.link.v1.DeviceLink links = 1;
249
+ */
250
+ links: DeviceLink[];
251
+ };
252
+
253
+ /**
254
+ * Describes the message kusinta.iot.connector.v1.LinksReported.
255
+ * Use `create(LinksReportedSchema)` to create a new message.
256
+ */
257
+ export declare const LinksReportedSchema: GenMessage<LinksReported>;
258
+
84
259
  /**
85
260
  * @generated from message kusinta.iot.connector.v1.HandshakeAck
86
261
  */
@@ -122,6 +297,25 @@ export declare type DeviceAnnouncement = Message<"kusinta.iot.connector.v1.Devic
122
297
  * @generated from field: kusinta.iot.device.v1.Device device = 2;
123
298
  */
124
299
  device?: Device | undefined;
300
+
301
+ /**
302
+ * The pairing request this device arrived for, empty for a device that arrived on its own.
303
+ *
304
+ * This field is the whole attribution mechanism. A connector is the only party that knows
305
+ * when its own hub was accepting devices, so it decides whether an arrival belongs to a
306
+ * request and says so here.
307
+ *
308
+ * Set it only when the arrival was actually checked. An arrival that fails the check is
309
+ * still announced — the device exists and has joined — but with this empty, which files it
310
+ * as belonging to nobody rather than to the wrong person.
311
+ *
312
+ * This is EnterPairingMode.request_id, minted per connector, and NOT an app message id:
313
+ * whoever forwards the outcome to the app has to map it back. The name avoids `in_reply_to`
314
+ * for that reason, which everywhere else in this schema means the app's own message id.
315
+ *
316
+ * @generated from field: string pairing_request_id = 3;
317
+ */
318
+ pairingRequestId: string;
125
319
  };
126
320
 
127
321
  /**
@@ -196,6 +390,15 @@ export declare type UnsubscribeDevice = Message<"kusinta.iot.connector.v1.Unsubs
196
390
  export declare const UnsubscribeDeviceSchema: GenMessage<UnsubscribeDevice>;
197
391
 
198
392
  /**
393
+ * Session-level error, gateway → connector. NOT how a command or a write fails: that is
394
+ * an ordinary ConnectorCommandResult with success = false and a typed CommandError, and
395
+ * one operation failing says nothing about the session, which continues.
396
+ *
397
+ * code stays a free-form string here, unlike webrtc.v1.GatewayError's closed
398
+ * GatewayErrorCode and unlike the CommandError below. A connector is versioned on its own
399
+ * schedule and one may be a third party's, so the set of things that can go wrong between
400
+ * a gateway and a connector is not closed the way the app leg's is.
401
+ *
199
402
  * @generated from message kusinta.iot.connector.v1.GatewayError
200
403
  */
201
404
  export declare type GatewayError = Message<"kusinta.iot.connector.v1.GatewayError"> & {
@@ -210,7 +413,7 @@ export declare type GatewayError = Message<"kusinta.iot.connector.v1.GatewayErro
210
413
  message: string;
211
414
 
212
415
  /**
213
- * non-empty if the error answers a command or a write
416
+ * non-empty if the error refers to a specific request
214
417
  *
215
418
  * @generated from field: string request_id = 3;
216
419
  */
@@ -245,14 +448,53 @@ export declare type ConnectorCommandResult = Message<"kusinta.iot.connector.v1.C
245
448
  success: boolean;
246
449
 
247
450
  /**
248
- * @generated from field: kusinta.iot.connector.v1.GatewayError error = 3;
451
+ * @generated from field: google.protobuf.Timestamp completed_at = 4;
452
+ */
453
+ completedAt?: Timestamp | undefined;
454
+
455
+ /**
456
+ * Why it failed, in the same closed vocabulary the app is eventually given. The gateway
457
+ * forwards this into webrtc.v1.CommandResult.error unchanged; it does not translate.
458
+ *
459
+ * Shared rather than mirrored on purpose. The free-form string this replaces left every
460
+ * connector to invent its own spellings ("TIMEOUT", "UNSUPPORTED_MODE") and the gateway
461
+ * to keep a mapping table that silently fell behind whenever a connector coined a new
462
+ * one — which is the drift a closed vocabulary exists to prevent.
463
+ *
464
+ * A connector produces the subset it can actually observe: REJECTED_BY_DEVICE,
465
+ * UNREACHABLE, TIMEOUT, INVALID_COMMAND, INTERNAL. NOT_ENTITLED and
466
+ * CONSTRAINT_VIOLATED are the gateway's, decided before a command is forwarded at all;
467
+ * a connector never sees the caller's permissions and must not claim to.
468
+ *
469
+ * Rollout note: a connector whose schema predates this sends nothing on field 5 and the
470
+ * gateway reads UNSPECIFIED. Set success = false with no code and the meaning is "it
471
+ * failed, reason unstated" — which is what the string codes amounted to anyway.
472
+ *
473
+ * @generated from field: kusinta.iot.webrtc.v1.CommandError error = 5;
249
474
  */
250
- error?: GatewayError | undefined;
475
+ error?: CommandError | undefined;
251
476
 
252
477
  /**
253
- * @generated from field: google.protobuf.Timestamp completed_at = 4;
478
+ * When this connector's own optimistic window closes: by this time the value has either
479
+ * been confirmed by the device or restored, and either way the connector will have
480
+ * published a PropertyUpdate saying so.
481
+ *
482
+ * Set it when the connector applied the value optimistically and runs a rollback timer
483
+ * of its own — a downstream device with a known, device-specific timeout. The gateway
484
+ * carries it into webrtc.v1.CommandResult.settles_by instead of applying a fixed guess:
485
+ * the connector is the only party that knows the timer, and a gateway-side constant
486
+ * chasing it is the same hardcoded-window problem one level up.
487
+ *
488
+ * Absent means no claim — either the connector confirms synchronously, or it cannot
489
+ * state a bound. Absent is NOT "settles immediately", and the gateway is free to fall
490
+ * back to a deadline of its own when nothing is stated here.
491
+ *
492
+ * This bounds the wait; it does not label the values that arrive. Which update was the
493
+ * optimistic one is device.v1.PropertyUpdate.provenance.
494
+ *
495
+ * @generated from field: optional google.protobuf.Timestamp settles_by = 6;
254
496
  */
255
- completedAt?: Timestamp | undefined;
497
+ settlesBy?: Timestamp | undefined;
256
498
  };
257
499
 
258
500
  /**
@@ -261,6 +503,127 @@ export declare type ConnectorCommandResult = Message<"kusinta.iot.connector.v1.C
261
503
  */
262
504
  export declare const ConnectorCommandResultSchema: GenMessage<ConnectorCommandResult>;
263
505
 
506
+ /**
507
+ * Tells a connector to accept new devices for a while, gateway → connector.
508
+ *
509
+ * Named for what the connector does rather than for what the app asked. The two legs are
510
+ * named differently on purpose: the app starts one pairing, and the gateway may put several
511
+ * connectors into pairing mode to serve it.
512
+ *
513
+ * @generated from message kusinta.iot.connector.v1.EnterPairingMode
514
+ */
515
+ export declare type EnterPairingMode = Message<"kusinta.iot.connector.v1.EnterPairingMode"> & {
516
+ /**
517
+ * echoed on PairingModeResult, PairingModeEnded and the announcement
518
+ *
519
+ * @generated from field: string request_id = 1;
520
+ */
521
+ requestId: string;
522
+
523
+ /**
524
+ * How long, which device, how many. See PairingWindow — and clamp the duration again here.
525
+ * A connector is the last thing standing between a number on the wire and a radio that
526
+ * accepts anything nearby for that long.
527
+ *
528
+ * @generated from field: kusinta.iot.common.v1.PairingWindow window = 2;
529
+ */
530
+ window?: PairingWindow | undefined;
531
+ };
532
+
533
+ /**
534
+ * Describes the message kusinta.iot.connector.v1.EnterPairingMode.
535
+ * Use `create(EnterPairingModeSchema)` to create a new message.
536
+ */
537
+ export declare const EnterPairingModeSchema: GenMessage<EnterPairingMode>;
538
+
539
+ /**
540
+ * A connector's answer to EnterPairingMode: whether the window opened, and nothing more.
541
+ *
542
+ * The same accept-now-report-later split as ConnectorCommandResult, for the same reason — a
543
+ * connector that waited for a device to wake before answering would blow every deadline
544
+ * above it. What the window produced arrives later, as PairingModeEnded.
545
+ *
546
+ * @generated from message kusinta.iot.connector.v1.PairingModeResult
547
+ */
548
+ export declare type PairingModeResult = Message<"kusinta.iot.connector.v1.PairingModeResult"> & {
549
+ /**
550
+ * @generated from field: string request_id = 1;
551
+ */
552
+ requestId: string;
553
+
554
+ /**
555
+ * @generated from field: bool accepted = 2;
556
+ */
557
+ accepted: boolean;
558
+
559
+ /**
560
+ * Why the window did not open. Only what a connector can observe at this point:
561
+ * CONNECTOR_UNAVAILABLE, INTERNAL. NOT_ENTITLED and ALREADY_IN_PROGRESS are the gateway's,
562
+ * decided before this message is sent, and a connector must not claim them.
563
+ *
564
+ * @generated from field: kusinta.iot.common.v1.PairingErrorDetail error = 3;
565
+ */
566
+ error?: PairingErrorDetail | undefined;
567
+
568
+ /**
569
+ * When the window closes, if it opened. Lets the gateway expire its own record against the
570
+ * connector's clock rather than a guess — the connector is the party that clamped it.
571
+ *
572
+ * @generated from field: google.protobuf.Timestamp expires_at = 4;
573
+ */
574
+ expiresAt?: Timestamp | undefined;
575
+ };
576
+
577
+ /**
578
+ * Describes the message kusinta.iot.connector.v1.PairingModeResult.
579
+ * Use `create(PairingModeResultSchema)` to create a new message.
580
+ */
581
+ export declare const PairingModeResultSchema: GenMessage<PairingModeResult>;
582
+
583
+ /**
584
+ * What the window produced, connector → gateway, sent once when it closes.
585
+ *
586
+ * Without this the connector has no way to report anything it learned after the window
587
+ * opened: a device that joined and cannot be modelled, or one that joined and was not the
588
+ * device the hint named. Neither can travel on a DeviceAnnouncement — the first has nothing
589
+ * announceable, and the second is announced but unattributed, which says a device arrived
590
+ * and not why it was refused.
591
+ *
592
+ * It also gives a batch window a definite end. Counting announcements cannot distinguish
593
+ * "three of five so far" from "three of five, and that is all".
594
+ *
595
+ * @generated from message kusinta.iot.connector.v1.PairingModeEnded
596
+ */
597
+ export declare type PairingModeEnded = Message<"kusinta.iot.connector.v1.PairingModeEnded"> & {
598
+ /**
599
+ * @generated from field: string request_id = 1;
600
+ */
601
+ requestId: string;
602
+
603
+ /**
604
+ * How many arrivals this connector attributed to the request. The gateway can count the
605
+ * announcements it received, but only the connector knows it has stopped.
606
+ *
607
+ * @generated from field: uint32 devices_attributed = 2;
608
+ */
609
+ devicesAttributed: number;
610
+
611
+ /**
612
+ * Why it produced fewer than asked for, absent when it produced them all. DEVICE_UNUSABLE
613
+ * and WRONG_DEVICE are reported here and should name the device in the message, since that
614
+ * is the only place a user learns which device is now sitting on their hub.
615
+ *
616
+ * @generated from field: kusinta.iot.common.v1.PairingErrorDetail error = 3;
617
+ */
618
+ error?: PairingErrorDetail | undefined;
619
+ };
620
+
621
+ /**
622
+ * Describes the message kusinta.iot.connector.v1.PairingModeEnded.
623
+ * Use `create(PairingModeEndedSchema)` to create a new message.
624
+ */
625
+ export declare const PairingModeEndedSchema: GenMessage<PairingModeEnded>;
626
+
264
627
  /**
265
628
  * @generated from message kusinta.iot.connector.v1.SessionRequest
266
629
  */
@@ -320,6 +683,30 @@ export declare type SessionRequest = Message<"kusinta.iot.connector.v1.SessionRe
320
683
  */
321
684
  value: DeviceEventBatch;
322
685
  case: "deviceEvents";
686
+ } | {
687
+ /**
688
+ * @generated from field: kusinta.iot.connector.v1.PairingModeResult pairing_mode_result = 10;
689
+ */
690
+ value: PairingModeResult;
691
+ case: "pairingModeResult";
692
+ } | {
693
+ /**
694
+ * @generated from field: kusinta.iot.connector.v1.PairingModeEnded pairing_mode_ended = 11;
695
+ */
696
+ value: PairingModeEnded;
697
+ case: "pairingModeEnded";
698
+ } | {
699
+ /**
700
+ * @generated from field: kusinta.iot.connector.v1.LinkResult link_result = 12;
701
+ */
702
+ value: LinkResult;
703
+ case: "linkResult";
704
+ } | {
705
+ /**
706
+ * @generated from field: kusinta.iot.connector.v1.LinksReported links_reported = 13;
707
+ */
708
+ value: LinksReported;
709
+ case: "linksReported";
323
710
  } | { case: undefined; value?: undefined };
324
711
  };
325
712
 
@@ -385,6 +772,36 @@ export declare type SessionResponse = Message<"kusinta.iot.connector.v1.SessionR
385
772
  */
386
773
  value: AttributeWriteRequest;
387
774
  case: "executeAttributeWrite";
775
+ } | {
776
+ /**
777
+ * The connector-leg half of the pairing flow. See EnterPairingMode.
778
+ *
779
+ * @generated from field: kusinta.iot.connector.v1.EnterPairingMode enter_pairing_mode = 10;
780
+ */
781
+ value: EnterPairingMode;
782
+ case: "enterPairingMode";
783
+ } | {
784
+ /**
785
+ * The link operations. Separate cases rather than one with a verb, so a
786
+ * connector that models none of them fails to match rather than having to
787
+ * decode a request it cannot serve.
788
+ *
789
+ * @generated from field: kusinta.iot.connector.v1.CreateLink create_link = 11;
790
+ */
791
+ value: CreateLink;
792
+ case: "createLink";
793
+ } | {
794
+ /**
795
+ * @generated from field: kusinta.iot.connector.v1.RemoveLink remove_link = 12;
796
+ */
797
+ value: RemoveLink;
798
+ case: "removeLink";
799
+ } | {
800
+ /**
801
+ * @generated from field: kusinta.iot.connector.v1.ListLinks list_links = 13;
802
+ */
803
+ value: ListLinks;
804
+ case: "listLinks";
388
805
  } | { case: undefined; value?: undefined };
389
806
  };
390
807