@kusinta/iot-schema 0.1.0-beta.2
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 +31 -0
- package/src/__tests__/access.test.js +134 -0
- package/src/__tests__/common.test.js +29 -0
- package/src/__tests__/connector.test.js +144 -0
- package/src/__tests__/device.test.js +194 -0
- package/src/__tests__/identity.test.js +43 -0
- package/src/__tests__/space.test.js +54 -0
- package/src/__tests__/vendor.test.js +60 -0
- package/src/__tests__/webrtc.test.js +268 -0
- package/src/kusinta/iot/access/v1/acl_pb.d.ts +144 -0
- package/src/kusinta/iot/access/v1/acl_pb.js +36 -0
- package/src/kusinta/iot/access/v1/roles_pb.d.ts +81 -0
- package/src/kusinta/iot/access/v1/roles_pb.js +36 -0
- package/src/kusinta/iot/common/v1/types_pb.d.ts +163 -0
- package/src/kusinta/iot/common/v1/types_pb.js +67 -0
- package/src/kusinta/iot/connector/v1/connector_pb.d.ts +359 -0
- package/src/kusinta/iot/connector/v1/connector_pb.js +101 -0
- package/src/kusinta/iot/connector/v1/connector_service_pb.d.ts +29 -0
- package/src/kusinta/iot/connector/v1/connector_service_pb.js +22 -0
- package/src/kusinta/iot/device/v1/descriptor_pb.d.ts +115 -0
- package/src/kusinta/iot/device/v1/descriptor_pb.js +22 -0
- package/src/kusinta/iot/device/v1/device_pb.d.ts +131 -0
- package/src/kusinta/iot/device/v1/device_pb.js +23 -0
- package/src/kusinta/iot/device/v1/properties_pb.d.ts +580 -0
- package/src/kusinta/iot/device/v1/properties_pb.js +96 -0
- package/src/kusinta/iot/device/v1/property_update_pb.d.ts +112 -0
- package/src/kusinta/iot/device/v1/property_update_pb.js +28 -0
- package/src/kusinta/iot/identity/v1/identity_pb.d.ts +108 -0
- package/src/kusinta/iot/identity/v1/identity_pb.js +54 -0
- package/src/kusinta/iot/space/v1/space_pb.d.ts +86 -0
- package/src/kusinta/iot/space/v1/space_pb.js +21 -0
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.d.ts +94 -0
- package/src/kusinta/iot/vendor/homematic/v1/homematic_pb.js +26 -0
- package/src/kusinta/iot/webrtc/v1/command_pb.d.ts +271 -0
- package/src/kusinta/iot/webrtc/v1/command_pb.js +70 -0
- package/src/kusinta/iot/webrtc/v1/device_state_pb.d.ts +67 -0
- package/src/kusinta/iot/webrtc/v1/device_state_pb.js +30 -0
- package/src/kusinta/iot/webrtc/v1/envelope_pb.d.ts +210 -0
- package/src/kusinta/iot/webrtc/v1/envelope_pb.js +59 -0
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.d.ts +48 -0
- package/src/kusinta/iot/webrtc/v1/permission_push_pb.js +21 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file kusinta/iot/webrtc/v1/envelope.proto (package kusinta.iot.webrtc.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
7
|
+
import { file_kusinta_iot_identity_v1_identity } from "../../identity/v1/identity_pb";
|
|
8
|
+
import { file_kusinta_iot_webrtc_v1_command } from "./command_pb";
|
|
9
|
+
import { file_kusinta_iot_webrtc_v1_device_state } from "./device_state_pb";
|
|
10
|
+
import { file_kusinta_iot_webrtc_v1_permission_push } from "./permission_push_pb";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Describes the file kusinta/iot/webrtc/v1/envelope.proto.
|
|
14
|
+
*/
|
|
15
|
+
export const file_kusinta_iot_webrtc_v1_envelope = /*@__PURE__*/
|
|
16
|
+
fileDesc("CiRrdXNpbnRhL2lvdC93ZWJydGMvdjEvZW52ZWxvcGUucHJvdG8SFWt1c2ludGEuaW90LndlYnJ0Yy52MSIGCgRQaW5nIgYKBFBvbmciXAoMQXBwSGF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aW90LndlYnJ0Yy52MS5EZXZpY2VDb21tYW5kSAASQgoMcmVhZF9yZXF1ZXN0GAUgASgLMioua3VzaW50YS5pb3Qud2VicnRjLnYxLlByb3BlcnR5UmVhZFJlcXVlc3RIABIrCgRwaW5nGAYgASgLMhsua3VzaW50YS5pb3Qud2VicnRjLnYxLlBpbmdIAEIJCgdwYXlsb2FkQgJIAWIGcHJvdG8z", [file_google_protobuf_timestamp, file_kusinta_iot_identity_v1_identity, file_kusinta_iot_webrtc_v1_command, file_kusinta_iot_webrtc_v1_device_state, file_kusinta_iot_webrtc_v1_permission_push]);
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Describes the message kusinta.iot.webrtc.v1.Ping.
|
|
20
|
+
* Use `create(PingSchema)` to create a new message.
|
|
21
|
+
*/
|
|
22
|
+
export const PingSchema = /*@__PURE__*/
|
|
23
|
+
messageDesc(file_kusinta_iot_webrtc_v1_envelope, 0);
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message kusinta.iot.webrtc.v1.Pong.
|
|
27
|
+
* Use `create(PongSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const PongSchema = /*@__PURE__*/
|
|
30
|
+
messageDesc(file_kusinta_iot_webrtc_v1_envelope, 1);
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message kusinta.iot.webrtc.v1.AppHandshake.
|
|
34
|
+
* Use `create(AppHandshakeSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const AppHandshakeSchema = /*@__PURE__*/
|
|
37
|
+
messageDesc(file_kusinta_iot_webrtc_v1_envelope, 2);
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Describes the message kusinta.iot.webrtc.v1.PropertyReadRequest.
|
|
41
|
+
* Use `create(PropertyReadRequestSchema)` to create a new message.
|
|
42
|
+
*/
|
|
43
|
+
export const PropertyReadRequestSchema = /*@__PURE__*/
|
|
44
|
+
messageDesc(file_kusinta_iot_webrtc_v1_envelope, 3);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Describes the message kusinta.iot.webrtc.v1.GatewayMessage.
|
|
48
|
+
* Use `create(GatewayMessageSchema)` to create a new message.
|
|
49
|
+
*/
|
|
50
|
+
export const GatewayMessageSchema = /*@__PURE__*/
|
|
51
|
+
messageDesc(file_kusinta_iot_webrtc_v1_envelope, 4);
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Describes the message kusinta.iot.webrtc.v1.AppMessage.
|
|
55
|
+
* Use `create(AppMessageSchema)` to create a new message.
|
|
56
|
+
*/
|
|
57
|
+
export const AppMessageSchema = /*@__PURE__*/
|
|
58
|
+
messageDesc(file_kusinta_iot_webrtc_v1_envelope, 5);
|
|
59
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file kusinta/iot/webrtc/v1/permission_push.proto (package kusinta.iot.webrtc.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
+
import type { EffectivePermissions } from "../../access/v1/acl_pb";
|
|
8
|
+
import type { DeviceId } from "../../identity/v1/identity_pb";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Describes the file kusinta/iot/webrtc/v1/permission_push.proto.
|
|
12
|
+
*/
|
|
13
|
+
export declare const file_kusinta_iot_webrtc_v1_permission_push: GenFile;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Pushed to the Flutter app whenever the user's effective permissions change.
|
|
17
|
+
* change_reason values: "DEVICE_ASSIGNED", "DEVICE_UNASSIGNED", "RESIDENT_CHANGED", "CONSTRAINT_UPDATED"
|
|
18
|
+
*
|
|
19
|
+
* @generated from message kusinta.iot.webrtc.v1.LivePermissionUpdate
|
|
20
|
+
*/
|
|
21
|
+
export declare type LivePermissionUpdate = Message<"kusinta.iot.webrtc.v1.LivePermissionUpdate"> & {
|
|
22
|
+
/**
|
|
23
|
+
* @generated from field: kusinta.iot.access.v1.EffectivePermissions new_permissions = 1;
|
|
24
|
+
*/
|
|
25
|
+
newPermissions?: EffectivePermissions | undefined;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: repeated kusinta.iot.identity.v1.DeviceId added_devices = 2;
|
|
29
|
+
*/
|
|
30
|
+
addedDevices: DeviceId[];
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @generated from field: repeated kusinta.iot.identity.v1.DeviceId removed_devices = 3;
|
|
34
|
+
*/
|
|
35
|
+
removedDevices: DeviceId[];
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: string change_reason = 4;
|
|
39
|
+
*/
|
|
40
|
+
changeReason: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Describes the message kusinta.iot.webrtc.v1.LivePermissionUpdate.
|
|
45
|
+
* Use `create(LivePermissionUpdateSchema)` to create a new message.
|
|
46
|
+
*/
|
|
47
|
+
export declare const LivePermissionUpdateSchema: GenMessage<LivePermissionUpdate>;
|
|
48
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file kusinta/iot/webrtc/v1/permission_push.proto (package kusinta.iot.webrtc.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { file_kusinta_iot_identity_v1_identity } from "../../identity/v1/identity_pb";
|
|
7
|
+
import { file_kusinta_iot_access_v1_acl } from "../../access/v1/acl_pb";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file kusinta/iot/webrtc/v1/permission_push.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_kusinta_iot_webrtc_v1_permission_push = /*@__PURE__*/
|
|
13
|
+
fileDesc("CitrdXNpbnRhL2lvdC93ZWJydGMvdjEvcGVybWlzc2lvbl9wdXNoLnByb3RvEhVrdXNpbnRhLmlvdC53ZWJydGMudjEi6QEKFExpdmVQZXJtaXNzaW9uVXBkYXRlEkQKD25ld19wZXJtaXNzaW9ucxgBIAEoCzIrLmt1c2ludGEuaW90LmFjY2Vzcy52MS5FZmZlY3RpdmVQZXJtaXNzaW9ucxI4Cg1hZGRlZF9kZXZpY2VzGAIgAygLMiEua3VzaW50YS5pb3QuaWRlbnRpdHkudjEuRGV2aWNlSWQSOgoPcmVtb3ZlZF9kZXZpY2VzGAMgAygLMiEua3VzaW50YS5pb3QuaWRlbnRpdHkudjEuRGV2aWNlSWQSFQoNY2hhbmdlX3JlYXNvbhgEIAEoCUICSAFiBnByb3RvMw", [file_kusinta_iot_identity_v1_identity, file_kusinta_iot_access_v1_acl]);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message kusinta.iot.webrtc.v1.LivePermissionUpdate.
|
|
17
|
+
* Use `create(LivePermissionUpdateSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const LivePermissionUpdateSchema = /*@__PURE__*/
|
|
20
|
+
messageDesc(file_kusinta_iot_webrtc_v1_permission_push, 0);
|
|
21
|
+
|