@m1kad0/hannah-proto 4.7.1 → 4.8.0
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/dist/descriptor.binpb +0 -0
- package/dist/v1/agent.d.ts +2 -0
- package/dist/v1/agent.js +12 -1
- package/package.json +1 -1
package/dist/descriptor.binpb
CHANGED
|
Binary file
|
package/dist/v1/agent.d.ts
CHANGED
|
@@ -105,6 +105,8 @@ export interface AgentStateUpdate {
|
|
|
105
105
|
ack: boolean;
|
|
106
106
|
/** Unix timestamp in milliseconds */
|
|
107
107
|
ts: bigint;
|
|
108
|
+
/** semantic role of this state, resolved by the adapter from common.role (e.g. "on", "level", "color", "current", "expected"); empty = adapter hasn't been updated yet or role is unresolvable */
|
|
109
|
+
canonicalKey?: string | undefined;
|
|
108
110
|
}
|
|
109
111
|
/** The text-command state in ioBroker changed — treat as a SubmitText call. */
|
|
110
112
|
export interface AgentTextCommand {
|
package/dist/v1/agent.js
CHANGED
|
@@ -448,7 +448,7 @@ exports.CaptureControl = {
|
|
|
448
448
|
},
|
|
449
449
|
};
|
|
450
450
|
function createBaseAgentStateUpdate() {
|
|
451
|
-
return { stateId: "", value: "", ack: false, ts: 0n };
|
|
451
|
+
return { stateId: "", value: "", ack: false, ts: 0n, canonicalKey: undefined };
|
|
452
452
|
}
|
|
453
453
|
exports.AgentStateUpdate = {
|
|
454
454
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -467,6 +467,9 @@ exports.AgentStateUpdate = {
|
|
|
467
467
|
}
|
|
468
468
|
writer.uint32(32).int64(message.ts);
|
|
469
469
|
}
|
|
470
|
+
if (message.canonicalKey !== undefined) {
|
|
471
|
+
writer.uint32(42).string(message.canonicalKey);
|
|
472
|
+
}
|
|
470
473
|
return writer;
|
|
471
474
|
},
|
|
472
475
|
decode(input, length) {
|
|
@@ -510,6 +513,13 @@ exports.AgentStateUpdate = {
|
|
|
510
513
|
message.ts = reader.int64();
|
|
511
514
|
continue;
|
|
512
515
|
}
|
|
516
|
+
case 5: {
|
|
517
|
+
if (tag !== 42) {
|
|
518
|
+
break;
|
|
519
|
+
}
|
|
520
|
+
message.canonicalKey = reader.string();
|
|
521
|
+
continue;
|
|
522
|
+
}
|
|
513
523
|
}
|
|
514
524
|
if ((tag & 7) === 4 || tag === 0) {
|
|
515
525
|
break;
|
|
@@ -531,6 +541,7 @@ exports.AgentStateUpdate = {
|
|
|
531
541
|
message.value = object.value ?? "";
|
|
532
542
|
message.ack = object.ack ?? false;
|
|
533
543
|
message.ts = (object.ts !== undefined && object.ts !== null) ? BigInt(object.ts) : 0n;
|
|
544
|
+
message.canonicalKey = object.canonicalKey ?? undefined;
|
|
534
545
|
return message;
|
|
535
546
|
},
|
|
536
547
|
};
|
package/package.json
CHANGED