@kusinta/iot-schema 0.2.0-beta.6 → 0.2.0-beta.9
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 +2 -1
- package/src/kusinta/iot/common/v1/pairing_pb.d.ts +5 -3
- package/src/kusinta/iot/connector/v1/connector_pb.d.ts +208 -0
- package/src/kusinta/iot/connector/v1/connector_pb.js +50 -14
- package/src/kusinta/iot/device/v1/descriptor_pb.d.ts +13 -0
- package/src/kusinta/iot/device/v1/descriptor_pb.js +2 -1
- package/src/kusinta/iot/device/v1/device_pb.d.ts +5 -2
- package/src/kusinta/iot/link/v1/link_pb.d.ts +326 -0
- package/src/kusinta/iot/link/v1/link_pb.js +107 -0
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.d.ts +15 -0
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.js +1 -1
- package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +60 -0
- package/src/kusinta/iot/webrtc/v1/envelope_pb.js +11 -3
- package/src/kusinta/iot/webrtc/v1/management_pb.d.ts +103 -0
- package/src/kusinta/iot/webrtc/v1/management_pb.js +24 -2
|
@@ -7,6 +7,7 @@ import type { Message } from "@bufbuild/protobuf";
|
|
|
7
7
|
import type { DeviceOwnershipType, SpaceType } from "../../common/v1/types_pb.js";
|
|
8
8
|
import type { DeviceId, SpaceId, UserId } from "../../identity/v1/identity_pb.js";
|
|
9
9
|
import type { Space } from "../../space/v1/space_pb.js";
|
|
10
|
+
import type { LinkFunction, LinkMode } from "../../link/v1/link_pb.js";
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Describes the file kusinta/iot/webrtc/v1/management.proto.
|
|
@@ -383,7 +384,91 @@ export declare const ManagementAckSchema: GenMessage<ManagementAck>;
|
|
|
383
384
|
* message kind, so these can never be gated by a table keyed on the envelope case
|
|
384
385
|
* the way device messages are. Keeping them behind one case means one place that
|
|
385
386
|
* must authorize, and one refusal path that must not leak whether a target exists.
|
|
387
|
+
* Links one device to another, so the sender leads the receiver. The gateway
|
|
388
|
+
* resolves which underlying connections that needs and asks the connector for
|
|
389
|
+
* them; a caller names two devices and what the link is for.
|
|
386
390
|
*
|
|
391
|
+
* Authorized against both ends, and not symmetrically. Leading a device is a
|
|
392
|
+
* standing grant of control over it, so the receiver requires ownership or a
|
|
393
|
+
* servicing role. The sender's requirement depends on the mode: a gateway-kept
|
|
394
|
+
* link only reads what the caller can already see, while a device-to-device one
|
|
395
|
+
* writes configuration to the sender and spends its battery, which is a change
|
|
396
|
+
* to someone else's hardware.
|
|
397
|
+
*
|
|
398
|
+
* @generated from message kusinta.iot.webrtc.v1.CreateDeviceLink
|
|
399
|
+
*/
|
|
400
|
+
export declare type CreateDeviceLink = Message<"kusinta.iot.webrtc.v1.CreateDeviceLink"> & {
|
|
401
|
+
/**
|
|
402
|
+
* @generated from field: kusinta.iot.identity.v1.DeviceId sender = 1;
|
|
403
|
+
*/
|
|
404
|
+
sender?: DeviceId | undefined;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* @generated from field: kusinta.iot.identity.v1.DeviceId receiver = 2;
|
|
408
|
+
*/
|
|
409
|
+
receiver?: DeviceId | undefined;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* @generated from field: kusinta.iot.link.v1.LinkFunction function = 3;
|
|
413
|
+
*/
|
|
414
|
+
function: LinkFunction;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Unset lets the gateway choose, which prefers a device-to-device link where
|
|
418
|
+
* one can be brokered: it survives a gateway outage and runs at the devices'
|
|
419
|
+
* own rate. Name one to override that.
|
|
420
|
+
*
|
|
421
|
+
* @generated from field: kusinta.iot.link.v1.LinkMode mode = 4;
|
|
422
|
+
*/
|
|
423
|
+
mode: LinkMode;
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Describes the message kusinta.iot.webrtc.v1.CreateDeviceLink.
|
|
428
|
+
* Use `create(CreateDeviceLinkSchema)` to create a new message.
|
|
429
|
+
*/
|
|
430
|
+
export declare const CreateDeviceLinkSchema: GenMessage<CreateDeviceLink>;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Removes a link. Note that on at least one vendor, removing a link disturbs the
|
|
434
|
+
* receiver's own settings and the connector must repair them, so this is not the
|
|
435
|
+
* no-op it appears to be.
|
|
436
|
+
*
|
|
437
|
+
* @generated from message kusinta.iot.webrtc.v1.RemoveDeviceLink
|
|
438
|
+
*/
|
|
439
|
+
export declare type RemoveDeviceLink = Message<"kusinta.iot.webrtc.v1.RemoveDeviceLink"> & {
|
|
440
|
+
/**
|
|
441
|
+
* @generated from field: string link_id = 1;
|
|
442
|
+
*/
|
|
443
|
+
linkId: string;
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Describes the message kusinta.iot.webrtc.v1.RemoveDeviceLink.
|
|
448
|
+
* Use `create(RemoveDeviceLinkSchema)` to create a new message.
|
|
449
|
+
*/
|
|
450
|
+
export declare const RemoveDeviceLinkSchema: GenMessage<RemoveDeviceLink>;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Lists links. Unset device_id lists every link among devices the caller can
|
|
454
|
+
* reach; naming one narrows it to that device's own, in either direction.
|
|
455
|
+
*
|
|
456
|
+
* @generated from message kusinta.iot.webrtc.v1.ListDeviceLinks
|
|
457
|
+
*/
|
|
458
|
+
export declare type ListDeviceLinks = Message<"kusinta.iot.webrtc.v1.ListDeviceLinks"> & {
|
|
459
|
+
/**
|
|
460
|
+
* @generated from field: kusinta.iot.identity.v1.DeviceId device_id = 1;
|
|
461
|
+
*/
|
|
462
|
+
deviceId?: DeviceId | undefined;
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Describes the message kusinta.iot.webrtc.v1.ListDeviceLinks.
|
|
467
|
+
* Use `create(ListDeviceLinksSchema)` to create a new message.
|
|
468
|
+
*/
|
|
469
|
+
export declare const ListDeviceLinksSchema: GenMessage<ListDeviceLinks>;
|
|
470
|
+
|
|
471
|
+
/**
|
|
387
472
|
* @generated from message kusinta.iot.webrtc.v1.ManagementRequest
|
|
388
473
|
*/
|
|
389
474
|
export declare type ManagementRequest = Message<"kusinta.iot.webrtc.v1.ManagementRequest"> & {
|
|
@@ -450,6 +535,24 @@ export declare type ManagementRequest = Message<"kusinta.iot.webrtc.v1.Managemen
|
|
|
450
535
|
*/
|
|
451
536
|
value: ListSpaces;
|
|
452
537
|
case: "listSpaces";
|
|
538
|
+
} | {
|
|
539
|
+
/**
|
|
540
|
+
* @generated from field: kusinta.iot.webrtc.v1.CreateDeviceLink create_device_link = 11;
|
|
541
|
+
*/
|
|
542
|
+
value: CreateDeviceLink;
|
|
543
|
+
case: "createDeviceLink";
|
|
544
|
+
} | {
|
|
545
|
+
/**
|
|
546
|
+
* @generated from field: kusinta.iot.webrtc.v1.RemoveDeviceLink remove_device_link = 12;
|
|
547
|
+
*/
|
|
548
|
+
value: RemoveDeviceLink;
|
|
549
|
+
case: "removeDeviceLink";
|
|
550
|
+
} | {
|
|
551
|
+
/**
|
|
552
|
+
* @generated from field: kusinta.iot.webrtc.v1.ListDeviceLinks list_device_links = 13;
|
|
553
|
+
*/
|
|
554
|
+
value: ListDeviceLinks;
|
|
555
|
+
case: "listDeviceLinks";
|
|
453
556
|
} | { case: undefined; value?: undefined };
|
|
454
557
|
};
|
|
455
558
|
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
6
6
|
import { file_kusinta_iot_common_v1_types } from "../../common/v1/types_pb.js";
|
|
7
7
|
import { file_kusinta_iot_identity_v1_identity } from "../../identity/v1/identity_pb.js";
|
|
8
|
+
import { file_kusinta_iot_link_v1_link } from "../../link/v1/link_pb.js";
|
|
8
9
|
import { file_kusinta_iot_space_v1_space } from "../../space/v1/space_pb.js";
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Describes the file kusinta/iot/webrtc/v1/management.proto.
|
|
12
13
|
*/
|
|
13
14
|
export const file_kusinta_iot_webrtc_v1_management = /*@__PURE__*/
|
|
14
|
-
fileDesc("CiZrdXNpbnRhL2lvdC93ZWJydGMvdjEvbWFuYWdlbWVudC5wcm90bxIVa3VzaW50YS5pb3Qud2VicnRjLnYxIrABCgtDcmVhdGVTcGFjZRI0CgpzcGFjZV90eXBlGAEgASgOMiAua3VzaW50YS5pb3QuY29tbW9uLnYxLlNwYWNlVHlwZRIMCgRuYW1lGAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJEg0KBWZsb29yGAQgASgFEjkKD3BhcmVudF9zcGFjZV9pZBgFIAEoCzIgLmt1c2ludGEuaW90LmlkZW50aXR5LnYxLlNwYWNlSWQizwIKC1VwZGF0ZVNwYWNlEjIKCHNwYWNlX2lkGAEgASgLMiAua3VzaW50YS5pb3QuaWRlbnRpdHkudjEuU3BhY2VJZBI5CgpzcGFjZV90eXBlGAIgASgOMiAua3VzaW50YS5pb3QuY29tbW9uLnYxLlNwYWNlVHlwZUgBiAEBEhEKBG5hbWUYAyABKAlIAogBARIYCgtkZXNjcmlwdGlvbhgEIAEoCUgDiAEBEhIKBWZsb29yGAUgASgFSASIAQESOwoPcGFyZW50X3NwYWNlX2lkGAYgASgLMiAua3VzaW50YS5pb3QuaWRlbnRpdHkudjEuU3BhY2VJZEgAEhAKBmRldGFjaBgHIAEoCEgAQg8KDXBhcmVudF9jaGFuZ2VCDQoLX3NwYWNlX3R5cGVCBwoFX25hbWVCDgoMX2Rlc2NyaXB0aW9uQggKBl9mbG9vciJSCgtEZWxldGVTcGFjZRIyCghzcGFjZV9pZBgBIAEoCzIgLmt1c2ludGEuaW90LmlkZW50aXR5LnYxLlNwYWNlSWQSDwoHY2FzY2FkZRgCIAEoCCJ/
|
|
15
|
+
fileDesc("CiZrdXNpbnRhL2lvdC93ZWJydGMvdjEvbWFuYWdlbWVudC5wcm90bxIVa3VzaW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50YS5pb3Qud2VicnRjLnYxLkNsYWltRGV2aWNlSAASPgoOcmVsZWFzZV9kZXZpY2UYCSABKAsyJC5rdXNpbnRhLmlvdC53ZWJydGMudjEuUmVsZWFzZURldmljZUgAEjgKC2xpc3Rfc3BhY2VzGAogASgLMiEua3VzaW50YS5pb3Qud2VicnRjLnYxLkxpc3RTcGFjZXNIABJFChJjcmVhdGVfZGV2aWNlX2xpbmsYCyABKAsyJy5rdXNpbnRhLmlvdC53ZWJydGMudjEuQ3JlYXRlRGV2aWNlTGlua0gAEkUKEnJlbW92ZV9kZXZpY2VfbGluaxgMIAEoCzInLmt1c2ludGEuaW90LndlYnJ0Yy52MS5SZW1vdmVEZXZpY2VMaW5rSAASQwoRbGlzdF9kZXZpY2VfbGlua3MYDSABKAsyJi5rdXNpbnRhLmlvdC53ZWJydGMudjEuTGlzdERldmljZUxpbmtzSABCCQoHcmVxdWVzdEoECA4QD0ICSAFiBnByb3RvMw", [file_kusinta_iot_common_v1_types, file_kusinta_iot_identity_v1_identity, file_kusinta_iot_link_v1_link, file_kusinta_iot_space_v1_space]);
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* Describes the message kusinta.iot.webrtc.v1.CreateSpace.
|
|
@@ -97,10 +98,31 @@ export const SpaceTreeSchema = /*@__PURE__*/
|
|
|
97
98
|
export const ManagementAckSchema = /*@__PURE__*/
|
|
98
99
|
messageDesc(file_kusinta_iot_webrtc_v1_management, 11);
|
|
99
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Describes the message kusinta.iot.webrtc.v1.CreateDeviceLink.
|
|
103
|
+
* Use `create(CreateDeviceLinkSchema)` to create a new message.
|
|
104
|
+
*/
|
|
105
|
+
export const CreateDeviceLinkSchema = /*@__PURE__*/
|
|
106
|
+
messageDesc(file_kusinta_iot_webrtc_v1_management, 12);
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Describes the message kusinta.iot.webrtc.v1.RemoveDeviceLink.
|
|
110
|
+
* Use `create(RemoveDeviceLinkSchema)` to create a new message.
|
|
111
|
+
*/
|
|
112
|
+
export const RemoveDeviceLinkSchema = /*@__PURE__*/
|
|
113
|
+
messageDesc(file_kusinta_iot_webrtc_v1_management, 13);
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Describes the message kusinta.iot.webrtc.v1.ListDeviceLinks.
|
|
117
|
+
* Use `create(ListDeviceLinksSchema)` to create a new message.
|
|
118
|
+
*/
|
|
119
|
+
export const ListDeviceLinksSchema = /*@__PURE__*/
|
|
120
|
+
messageDesc(file_kusinta_iot_webrtc_v1_management, 14);
|
|
121
|
+
|
|
100
122
|
/**
|
|
101
123
|
* Describes the message kusinta.iot.webrtc.v1.ManagementRequest.
|
|
102
124
|
* Use `create(ManagementRequestSchema)` to create a new message.
|
|
103
125
|
*/
|
|
104
126
|
export const ManagementRequestSchema = /*@__PURE__*/
|
|
105
|
-
messageDesc(file_kusinta_iot_webrtc_v1_management,
|
|
127
|
+
messageDesc(file_kusinta_iot_webrtc_v1_management, 15);
|
|
106
128
|
|