@kusinta/iot-schema 0.2.0-beta.3 → 0.2.0-beta.31
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 +9 -1
- package/src/kusinta/iot/access/v1/acl_pb.d.ts +118 -2
- package/src/kusinta/iot/access/v1/acl_pb.js +20 -3
- package/src/kusinta/iot/access/v1/roles_pb.d.ts +119 -4
- package/src/kusinta/iot/access/v1/roles_pb.js +98 -5
- package/src/kusinta/iot/climate/v1/climate_pb.d.ts +726 -0
- package/src/kusinta/iot/climate/v1/climate_pb.js +142 -0
- package/src/kusinta/iot/common/v1/pairing_pb.d.ts +217 -0
- package/src/kusinta/iot/common/v1/pairing_pb.js +50 -0
- package/src/kusinta/iot/common/v1/types_pb.d.ts +175 -0
- package/src/kusinta/iot/common/v1/types_pb.js +70 -1
- package/src/kusinta/iot/connector/v1/connector_pb.d.ts +691 -2
- package/src/kusinta/iot/connector/v1/connector_pb.js +104 -13
- package/src/kusinta/iot/device/v1/cluster_state_pb.d.ts +44 -0
- package/src/kusinta/iot/device/v1/cluster_state_pb.js +1 -1
- package/src/kusinta/iot/device/v1/descriptor_pb.d.ts +22 -2
- package/src/kusinta/iot/device/v1/descriptor_pb.js +2 -1
- package/src/kusinta/iot/device/v1/device_event_pb.d.ts +87 -5
- package/src/kusinta/iot/device/v1/device_event_pb.js +1 -1
- package/src/kusinta/iot/device/v1/device_pb.d.ts +150 -6
- package/src/kusinta/iot/device/v1/device_pb.js +33 -2
- package/src/kusinta/iot/device/v1/matter_options_pb.d.ts +26 -0
- package/src/kusinta/iot/device/v1/matter_options_pb.js +31 -4
- package/src/kusinta/iot/device/v1/properties_pb.d.ts +14 -0
- package/src/kusinta/iot/device/v1/properties_pb.js +1 -1
- package/src/kusinta/iot/device/v1/property_update_pb.d.ts +3 -2
- package/src/kusinta/iot/link/v1/link_pb.d.ts +438 -0
- package/src/kusinta/iot/link/v1/link_pb.js +121 -0
- package/src/kusinta/iot/reporting/v1/reporting_pb.d.ts +1219 -0
- package/src/kusinta/iot/reporting/v1/reporting_pb.js +238 -0
- package/src/kusinta/iot/reporting/v1/reporting_service_pb.d.ts +63 -0
- package/src/kusinta/iot/reporting/v1/reporting_service_pb.js +24 -0
- package/src/kusinta/iot/signaling/v1/signaling_pb.d.ts +361 -7
- package/src/kusinta/iot/signaling/v1/signaling_pb.js +68 -4
- package/src/kusinta/iot/signaling/v1/signaling_service_pb.d.ts +24 -1
- package/src/kusinta/iot/signaling/v1/signaling_service_pb.js +1 -1
- package/src/kusinta/iot/space/v1/space_pb.d.ts +103 -2
- package/src/kusinta/iot/space/v1/space_pb.js +10 -1
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.d.ts +162 -13
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.js +8 -1
- package/src/kusinta/iot/vendor/lorawan/v1/lorawan_pb.d.ts +69 -0
- package/src/kusinta/iot/vendor/lorawan/v1/lorawan_pb.js +19 -0
- package/src/kusinta/iot/vendor/v1/vendor_options_pb.d.ts +25 -4
- package/src/kusinta/iot/vendor/v1/vendor_options_pb.js +28 -6
- package/src/kusinta/iot/webrtc/v1/app_token_pb.d.ts +45 -5
- package/src/kusinta/iot/webrtc/v1/app_token_pb.js +1 -1
- package/src/kusinta/iot/webrtc/v1/command_pb.d.ts +14 -0
- package/src/kusinta/iot/webrtc/v1/command_pb.js +1 -1
- package/src/kusinta/iot/webrtc/v1/device_state_pb.d.ts +179 -5
- package/src/kusinta/iot/webrtc/v1/device_state_pb.js +35 -6
- package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +520 -3
- package/src/kusinta/iot/webrtc/v1/envelope_pb.js +65 -3
- package/src/kusinta/iot/webrtc/v1/invite_pb.d.ts +498 -0
- package/src/kusinta/iot/webrtc/v1/invite_pb.js +108 -0
- package/src/kusinta/iot/webrtc/v1/management_pb.d.ts +982 -12
- package/src/kusinta/iot/webrtc/v1/management_pb.js +132 -5
- package/src/kusinta/iot/webrtc/v1/members_pb.d.ts +328 -0
- package/src/kusinta/iot/webrtc/v1/members_pb.js +78 -0
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.d.ts +66 -4
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.js +10 -2
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
6
6
|
import type { Message } from "@bufbuild/protobuf";
|
|
7
7
|
import type { EffectivePermissions } from "../../access/v1/acl_pb.js";
|
|
8
|
-
import type { DeviceId } from "../../identity/v1/identity_pb.js";
|
|
8
|
+
import type { DeviceId, SpaceId } from "../../identity/v1/identity_pb.js";
|
|
9
|
+
import type { Role } from "../../access/v1/roles_pb.js";
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Describes the file kusinta/iot/webrtc/v1/permission_push.proto.
|
|
@@ -13,8 +14,21 @@ import type { DeviceId } from "../../identity/v1/identity_pb.js";
|
|
|
13
14
|
export declare const file_kusinta_iot_webrtc_v1_permission_push: GenFile;
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
|
-
* Pushed to the app whenever the user's effective permissions change.
|
|
17
|
-
*
|
|
17
|
+
* Pushed to the app whenever the user's effective permissions change, as they change. A
|
|
18
|
+
* change that takes away what the user may see or do takes effect and is sent at once; what
|
|
19
|
+
* a user newly sees of a home as service — a device filed into it, a home newly reached —
|
|
20
|
+
* is sent as it happens too, with new_permissions.valid_at the moment it took effect. A
|
|
21
|
+
* resident who becomes service loses the resident view at once — the home's devices are
|
|
22
|
+
* listed in removed_devices, so the app drops what it holds of them — and gains the service
|
|
23
|
+
* view at once, in a push that follows, where they come back in added_devices as service
|
|
24
|
+
* and their stretch of seeing the home as service begins. A member who becomes a resident
|
|
25
|
+
* gains the resident view at once: the home's devices come again in added_devices, each
|
|
26
|
+
* with a DeviceAdded carrying its full Device, and the app drops the ServiceStatus it held
|
|
27
|
+
* of them until their next one. A push that brings a home newly seen as service lists it in
|
|
28
|
+
* reset_spaces, so the app reads its rooms and links then.
|
|
29
|
+
* change_reason values: "DEVICE_ASSIGNED", "DEVICE_UNASSIGNED", "RESIDENT_CHANGED",
|
|
30
|
+
* "CONSTRAINT_UPDATED"; empty whenever the change concerns a home the user sees, or saw, as
|
|
31
|
+
* service, so that no push says why a home changed.
|
|
18
32
|
*
|
|
19
33
|
* @generated from message kusinta.iot.webrtc.v1.LivePermissionUpdate
|
|
20
34
|
*/
|
|
@@ -34,7 +48,8 @@ export declare type LivePermissionUpdate = Message<"kusinta.iot.webrtc.v1.LivePe
|
|
|
34
48
|
|
|
35
49
|
/**
|
|
36
50
|
* Devices the user may no longer see. The gateway has already dropped these from
|
|
37
|
-
* the app's interest set — no property events follow, and no unsubscribe is needed.
|
|
51
|
+
* the app's interest set — no property events follow, and no unsubscribe is needed. The
|
|
52
|
+
* app drops what it holds of them, their ServiceStatus included.
|
|
38
53
|
*
|
|
39
54
|
* @generated from field: repeated kusinta.iot.identity.v1.DeviceId removed_devices = 3;
|
|
40
55
|
*/
|
|
@@ -44,6 +59,28 @@ export declare type LivePermissionUpdate = Message<"kusinta.iot.webrtc.v1.LivePe
|
|
|
44
59
|
* @generated from field: string change_reason = 4;
|
|
45
60
|
*/
|
|
46
61
|
changeReason: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Spaces whose climate, modes and links the user sees differently from now — whenever how
|
|
65
|
+
* they see a home changes: they moved in or out, became service or resident, lost the
|
|
66
|
+
* space, or newly see it as service. The app drops everything it holds of each and of the
|
|
67
|
+
* spaces beneath it, and reads them again (ListSpaces, ListRoomClimates, ListDeviceLinks)
|
|
68
|
+
* if it may.
|
|
69
|
+
* Each is sent as the change happens: a loss, a wider view as a resident and a home newly
|
|
70
|
+
* seen as service alike.
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: repeated kusinta.iot.identity.v1.SpaceId reset_spaces = 5;
|
|
73
|
+
*/
|
|
74
|
+
resetSpaces: SpaceId[];
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The roles the session holds once this change has taken effect, as in
|
|
78
|
+
* DeviceStateSnapshot.session_roles. Set on every update, a change of role alone included,
|
|
79
|
+
* so that a promotion or demotion reaches an open app at once.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: kusinta.iot.webrtc.v1.SessionRoles session_roles = 6;
|
|
82
|
+
*/
|
|
83
|
+
sessionRoles?: SessionRoles | undefined;
|
|
47
84
|
};
|
|
48
85
|
|
|
49
86
|
/**
|
|
@@ -52,3 +89,28 @@ export declare type LivePermissionUpdate = Message<"kusinta.iot.webrtc.v1.LivePe
|
|
|
52
89
|
*/
|
|
53
90
|
export declare const LivePermissionUpdateSchema: GenMessage<LivePermissionUpdate>;
|
|
54
91
|
|
|
92
|
+
/**
|
|
93
|
+
* The roles the gateway holds for a session's user: those it records for them, together
|
|
94
|
+
* with administration their token vouches for. The app MUST prefer these, while the session
|
|
95
|
+
* is up, over any other source of the user's roles on this gateway. They decide only what
|
|
96
|
+
* the app offers; the gateway still decides every request on its own.
|
|
97
|
+
*
|
|
98
|
+
* A gateway that sends them sets the field on every DeviceStateSnapshot and
|
|
99
|
+
* LivePermissionUpdate, so an unset field means a gateway that does not, and an empty list
|
|
100
|
+
* means the user holds no role.
|
|
101
|
+
*
|
|
102
|
+
* @generated from message kusinta.iot.webrtc.v1.SessionRoles
|
|
103
|
+
*/
|
|
104
|
+
export declare type SessionRoles = Message<"kusinta.iot.webrtc.v1.SessionRoles"> & {
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: repeated kusinta.iot.access.v1.Role roles = 1;
|
|
107
|
+
*/
|
|
108
|
+
roles: Role[];
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Describes the message kusinta.iot.webrtc.v1.SessionRoles.
|
|
113
|
+
* Use `create(SessionRolesSchema)` to create a new message.
|
|
114
|
+
*/
|
|
115
|
+
export declare const SessionRolesSchema: GenMessage<SessionRoles>;
|
|
116
|
+
|
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
-
import { file_kusinta_iot_identity_v1_identity } from "../../identity/v1/identity_pb.js";
|
|
7
6
|
import { file_kusinta_iot_access_v1_acl } from "../../access/v1/acl_pb.js";
|
|
7
|
+
import { file_kusinta_iot_access_v1_roles } from "../../access/v1/roles_pb.js";
|
|
8
|
+
import { file_kusinta_iot_identity_v1_identity } from "../../identity/v1/identity_pb.js";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Describes the file kusinta/iot/webrtc/v1/permission_push.proto.
|
|
11
12
|
*/
|
|
12
13
|
export const file_kusinta_iot_webrtc_v1_permission_push = /*@__PURE__*/
|
|
13
|
-
fileDesc("
|
|
14
|
+
fileDesc("CitrdXNpbnRhL2lvdC93ZWJydGMvdjEvcGVybWlzc2lvbl9wdXNoLnByb3RvEhVrdXNpbnRhLmlvdC53ZWJydGMudjEi3QIKFExpdmVQZXJtaXNzaW9uVXBkYXRlEkQKD25ld19wZXJtaXNzaW9ucxgBIAEoCzIrLmt1c2ludGEuaW90LmFjY2Vzcy52MS5FZmZlY3RpdmVQZXJtaXNzaW9ucxI4Cg1hZGRlZF9kZXZpY2VzGAIgAygLMiEua3VzaW50YS5pb3QuaWRlbnRpdHkudjEuRGV2aWNlSWQSOgoPcmVtb3ZlZF9kZXZpY2VzGAMgAygLMiEua3VzaW50YS5pb3QuaWRlbnRpdHkudjEuRGV2aWNlSWQSFQoNY2hhbmdlX3JlYXNvbhgEIAEoCRI2CgxyZXNldF9zcGFjZXMYBSADKAsyIC5rdXNpbnRhLmlvdC5pZGVudGl0eS52MS5TcGFjZUlkEjoKDXNlc3Npb25fcm9sZXMYBiABKAsyIy5rdXNpbnRhLmlvdC53ZWJydGMudjEuU2Vzc2lvblJvbGVzIjoKDFNlc3Npb25Sb2xlcxIqCgVyb2xlcxgBIAMoDjIbLmt1c2ludGEuaW90LmFjY2Vzcy52MS5Sb2xlQgJIAWIGcHJvdG8z", [file_kusinta_iot_access_v1_acl, file_kusinta_iot_access_v1_roles, file_kusinta_iot_identity_v1_identity]);
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* Describes the message kusinta.iot.webrtc.v1.LivePermissionUpdate.
|
|
@@ -19,3 +20,10 @@ export const file_kusinta_iot_webrtc_v1_permission_push = /*@__PURE__*/
|
|
|
19
20
|
export const LivePermissionUpdateSchema = /*@__PURE__*/
|
|
20
21
|
messageDesc(file_kusinta_iot_webrtc_v1_permission_push, 0);
|
|
21
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message kusinta.iot.webrtc.v1.SessionRoles.
|
|
25
|
+
* Use `create(SessionRolesSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
export const SessionRolesSchema = /*@__PURE__*/
|
|
28
|
+
messageDesc(file_kusinta_iot_webrtc_v1_permission_push, 1);
|
|
29
|
+
|