@kusinta/iot-schema 0.2.0-beta.28 → 0.2.0-beta.29
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 +1 -1
- package/src/kusinta/iot/space/v1/space_pb.d.ts +14 -0
- package/src/kusinta/iot/space/v1/space_pb.js +1 -1
- package/src/kusinta/iot/webrtc/v1/device_state_pb.d.ts +9 -0
- package/src/kusinta/iot/webrtc/v1/device_state_pb.js +2 -1
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.d.ts +35 -0
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.js +9 -1
package/package.json
CHANGED
|
@@ -145,6 +145,20 @@ export declare type SpaceMember = Message<"kusinta.iot.space.v1.SpaceMember"> &
|
|
|
145
145
|
* @generated from field: kusinta.iot.access.v1.MembershipRelation relation = 2;
|
|
146
146
|
*/
|
|
147
147
|
relation: MembershipRelation;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The name the member gave, self-chosen and not verified, so the app shows it as the name
|
|
151
|
+
* they gave rather than as an identity. Given only to a caller who is a resident of the
|
|
152
|
+
* apartment the member is filed on, or on one of its rooms: the people they live with,
|
|
153
|
+
* and anyone filed on their home as service, whom webrtc.v1.PrivacyDisclosure already
|
|
154
|
+
* names to them. Empty for every other caller — a property owner, an administrator,
|
|
155
|
+
* service, and residents of any other home — and for a member whose name the gateway has
|
|
156
|
+
* not learnt. A caller who is a resident of the home reads an empty name as not known;
|
|
157
|
+
* anyone else is given none. Residents are never named anywhere else.
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: string name = 3;
|
|
160
|
+
*/
|
|
161
|
+
name: string;
|
|
148
162
|
};
|
|
149
163
|
|
|
150
164
|
/**
|
|
@@ -11,7 +11,7 @@ import { file_kusinta_iot_identity_v1_identity } from "../../identity/v1/identit
|
|
|
11
11
|
* Describes the file kusinta/iot/space/v1/space.proto.
|
|
12
12
|
*/
|
|
13
13
|
export const file_kusinta_iot_space_v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NoaXBSZWxhdGlvbhIMCgRuYW1lGAMgASgJQgJIAWIGcHJvdG8z", [file_kusinta_iot_access_v1_roles, file_kusinta_iot_common_v1_types, file_kusinta_iot_identity_v1_identity]);
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Describes the message kusinta.iot.space.v1.Space.
|
|
@@ -7,6 +7,7 @@ import type { Message } from "@bufbuild/protobuf";
|
|
|
7
7
|
import type { Device } from "../../device/v1/device_pb.js";
|
|
8
8
|
import type { EffectivePermissions } from "../../access/v1/acl_pb.js";
|
|
9
9
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
10
|
+
import type { SessionRoles } from "./permission_push_pb.js";
|
|
10
11
|
import type { DeviceId } from "../../identity/v1/identity_pb.js";
|
|
11
12
|
import type { PropertyUpdate } from "../../device/v1/property_update_pb.js";
|
|
12
13
|
|
|
@@ -46,6 +47,14 @@ export declare type DeviceStateSnapshot = Message<"kusinta.iot.webrtc.v1.DeviceS
|
|
|
46
47
|
* @generated from field: repeated kusinta.iot.webrtc.v1.ServiceStatus service_statuses = 4;
|
|
47
48
|
*/
|
|
48
49
|
serviceStatuses: ServiceStatus[];
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The roles the gateway holds for the session as it opens (see SessionRoles). Every
|
|
53
|
+
* LivePermissionUpdate after it carries them again.
|
|
54
|
+
*
|
|
55
|
+
* @generated from field: kusinta.iot.webrtc.v1.SessionRoles session_roles = 5;
|
|
56
|
+
*/
|
|
57
|
+
sessionRoles?: SessionRoles | undefined;
|
|
49
58
|
};
|
|
50
59
|
|
|
51
60
|
/**
|
|
@@ -8,12 +8,13 @@ import { file_kusinta_iot_access_v1_acl } from "../../access/v1/acl_pb.js";
|
|
|
8
8
|
import { file_kusinta_iot_device_v1_device } from "../../device/v1/device_pb.js";
|
|
9
9
|
import { file_kusinta_iot_device_v1_property_update } from "../../device/v1/property_update_pb.js";
|
|
10
10
|
import { file_kusinta_iot_identity_v1_identity } from "../../identity/v1/identity_pb.js";
|
|
11
|
+
import { file_kusinta_iot_webrtc_v1_permission_push } from "./permission_push_pb.js";
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Describes the file kusinta/iot/webrtc/v1/device_state.proto.
|
|
14
15
|
*/
|
|
15
16
|
export const file_kusinta_iot_webrtc_v1_device_state = /*@__PURE__*/
|
|
16
|
-
fileDesc("
|
|
17
|
+
fileDesc("CihrdXNpbnRhL2lvdC93ZWJydGMvdjEvZGV2aWNlX3N0YXRlLnByb3RvEhVrdXNpbnRhLmlvdC53ZWJydGMudjEitwIKE0RldmljZVN0YXRlU25hcHNob3QSLgoHZGV2aWNlcxgBIAMoCzIdLmt1c2ludGEuaW90LmRldmljZS52MS5EZXZpY2USQAoLcGVybWlzc2lvbnMYAiABKAsyKy5rdXNpbnRhLmlvdC5hY2Nlc3MudjEuRWZmZWN0aXZlUGVybWlzc2lvbnMSMgoOc25hcHNob3R0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEj4KEHNlcnZpY2Vfc3RhdHVzZXMYBCADKAsyJC5rdXNpbnRhLmlvdC53ZWJydGMudjEuU2VydmljZVN0YXR1cxI6Cg1zZXNzaW9uX3JvbGVzGAUgASgLMiMua3VzaW50YS5pb3Qud2VicnRjLnYxLlNlc3Npb25Sb2xlcyKIAwoNU2VydmljZVN0YXR1cxI0CglkZXZpY2VfaWQYASABKAsyIS5rdXNpbnRhLmlvdC5pZGVudGl0eS52MS5EZXZpY2VJZBIpCgVhc19vZhgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEQoJcmVhY2hhYmxlGAMgASgIEjUKEXVucmVhY2hhYmxlX3NpbmNlGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIcCg9iYXR0ZXJ5X3BlcmNlbnQYBSABKA1IAIgBARITCgtiYXR0ZXJ5X2xvdxgGIAEoCBIiChpiYXR0ZXJ5X3JlcGxhY2VtZW50X25lZWRlZBgHIAEoCBIaCg1yYWRpb19xdWFsaXR5GAggASgNSAGIAQESMwoGZmF1bHRzGAkgAygOMiMua3VzaW50YS5pb3Qud2VicnRjLnYxLlNlcnZpY2VGYXVsdEISChBfYmF0dGVyeV9wZXJjZW50QhAKDl9yYWRpb19xdWFsaXR5Ik4KFFNlcnZpY2VTdGF0dXNDaGFuZ2VkEjYKCHN0YXR1c2VzGAEgAygLMiQua3VzaW50YS5pb3Qud2VicnRjLnYxLlNlcnZpY2VTdGF0dXMigQEKDlByb3BlcnR5UmVwb3J0EjUKBnVwZGF0ZRgBIAEoCzIlLmt1c2ludGEuaW90LmRldmljZS52MS5Qcm9wZXJ0eVVwZGF0ZRI4ChRnYXRld2F5X3Byb2Nlc3NlZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiPAoLRGV2aWNlQWRkZWQSLQoGZGV2aWNlGAEgASgLMh0ua3VzaW50YS5pb3QuZGV2aWNlLnYxLkRldmljZSJVCg1EZXZpY2VSZW1vdmVkEjQKCWRldmljZV9pZBgBIAEoCzIhLmt1c2ludGEuaW90LmlkZW50aXR5LnYxLkRldmljZUlkEg4KBnJlYXNvbhgCIAEoCSpgCgxTZXJ2aWNlRmF1bHQSHQoZU0VSVklDRV9GQVVMVF9VTlNQRUNJRklFRBAAEhcKE1NFUlZJQ0VfRkFVTFRfRVJST1IQARIYChRTRVJWSUNFX0ZBVUxUX1RBTVBFUhACQgJIAWIGcHJvdG8z", [file_google_protobuf_timestamp, file_kusinta_iot_access_v1_acl, file_kusinta_iot_device_v1_device, file_kusinta_iot_device_v1_property_update, file_kusinta_iot_identity_v1_identity, file_kusinta_iot_webrtc_v1_permission_push]);
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
* Describes the message kusinta.iot.webrtc.v1.DeviceStateSnapshot.
|
|
@@ -6,6 +6,7 @@ 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
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.
|
|
@@ -71,6 +72,15 @@ export declare type LivePermissionUpdate = Message<"kusinta.iot.webrtc.v1.LivePe
|
|
|
71
72
|
* @generated from field: repeated kusinta.iot.identity.v1.SpaceId reset_spaces = 5;
|
|
72
73
|
*/
|
|
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;
|
|
74
84
|
};
|
|
75
85
|
|
|
76
86
|
/**
|
|
@@ -79,3 +89,28 @@ export declare type LivePermissionUpdate = Message<"kusinta.iot.webrtc.v1.LivePe
|
|
|
79
89
|
*/
|
|
80
90
|
export declare const LivePermissionUpdateSchema: GenMessage<LivePermissionUpdate>;
|
|
81
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
|
+
|
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
6
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";
|
|
7
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
|
+
|