@kusinta/iot-schema 0.1.0-beta.10
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/LICENSE +21 -0
- package/README.md +49 -0
- package/package.json +36 -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 +366 -0
- package/src/kusinta/iot/connector/v1/connector_pb.js +102 -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/registration/v1/registration_pb.d.ts +170 -0
- package/src/kusinta/iot/registration/v1/registration_pb.js +61 -0
- package/src/kusinta/iot/registration/v1/registration_service_pb.d.ts +34 -0
- package/src/kusinta/iot/registration/v1/registration_service_pb.js +19 -0
- package/src/kusinta/iot/signaling/v1/signaling_pb.d.ts +245 -0
- package/src/kusinta/iot/signaling/v1/signaling_pb.js +76 -0
- package/src/kusinta/iot/signaling/v1/signaling_service_pb.d.ts +34 -0
- package/src/kusinta/iot/signaling/v1/signaling_service_pb.js +19 -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 +232 -0
- package/src/kusinta/iot/webrtc/v1/envelope_pb.js +66 -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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kusinta AB
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# @kusinta/iot-schema
|
|
2
|
+
|
|
3
|
+
Generated protobuf types for the Kusinta building automation platform, built with [protobuf-es](https://github.com/bufbuild/protobuf-es).
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @kusinta/iot-schema
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Requires `@bufbuild/protobuf` as a peer dependency (installed automatically).
|
|
12
|
+
|
|
13
|
+
## Requirements
|
|
14
|
+
|
|
15
|
+
- Node.js 18+ (ESM — `"type": "module"`)
|
|
16
|
+
- `@bufbuild/protobuf` ^2.x (installed automatically as a peer dependency)
|
|
17
|
+
|
|
18
|
+
Works in raw Node.js ESM projects without a bundler.
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```javascript
|
|
23
|
+
import { create, toBinary, fromBinary } from '@bufbuild/protobuf'
|
|
24
|
+
import { DeviceSchema } from '@kusinta/iot-schema/device'
|
|
25
|
+
import { SpaceSchema } from '@kusinta/iot-schema/space'
|
|
26
|
+
|
|
27
|
+
const device = create(DeviceSchema, { ... })
|
|
28
|
+
const bytes = toBinary(DeviceSchema, device)
|
|
29
|
+
const decoded = fromBinary(DeviceSchema, bytes)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Available imports
|
|
33
|
+
|
|
34
|
+
| Import | Contents |
|
|
35
|
+
|---|---|
|
|
36
|
+
| `@kusinta/iot-schema/common` | Shared enums and types |
|
|
37
|
+
| `@kusinta/iot-schema/identity` | Strongly-typed ID wrappers |
|
|
38
|
+
| `@kusinta/iot-schema/device` | Device, DeviceDescriptor |
|
|
39
|
+
| `@kusinta/iot-schema/device/descriptor` | DeviceDescriptor |
|
|
40
|
+
| `@kusinta/iot-schema/device/properties` | Per-device-type property messages |
|
|
41
|
+
| `@kusinta/iot-schema/device/property-update` | PropertyUpdate |
|
|
42
|
+
| `@kusinta/iot-schema/space` | Space (building hierarchy) |
|
|
43
|
+
| `@kusinta/iot-schema/access` | DeviceAcl, EffectivePermissions |
|
|
44
|
+
| `@kusinta/iot-schema/access/roles` | Roles, PermissionAction |
|
|
45
|
+
| `@kusinta/iot-schema/connector` | Connector ↔ gateway messages |
|
|
46
|
+
| `@kusinta/iot-schema/connector/service` | gRPC service definition |
|
|
47
|
+
| `@kusinta/iot-schema/webrtc` | WebRTC envelope messages |
|
|
48
|
+
|
|
49
|
+
Source: [github.com/Martwall/kusinta-iot-schema](https://github.com/Martwall/kusinta-iot-schema)
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kusinta/iot-schema",
|
|
3
|
+
"version": "0.1.0-beta.10",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"files": ["src"],
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "vitest run",
|
|
9
|
+
"test:watch": "vitest"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
"./common": "./src/kusinta/iot/common/v1/types_pb.js",
|
|
13
|
+
"./identity": "./src/kusinta/iot/identity/v1/identity_pb.js",
|
|
14
|
+
"./device": "./src/kusinta/iot/device/v1/device_pb.js",
|
|
15
|
+
"./device/descriptor": "./src/kusinta/iot/device/v1/descriptor_pb.js",
|
|
16
|
+
"./device/properties": "./src/kusinta/iot/device/v1/properties_pb.js",
|
|
17
|
+
"./device/property-update": "./src/kusinta/iot/device/v1/property_update_pb.js",
|
|
18
|
+
"./space": "./src/kusinta/iot/space/v1/space_pb.js",
|
|
19
|
+
"./access": "./src/kusinta/iot/access/v1/acl_pb.js",
|
|
20
|
+
"./access/roles": "./src/kusinta/iot/access/v1/roles_pb.js",
|
|
21
|
+
"./connector": "./src/kusinta/iot/connector/v1/connector_pb.js",
|
|
22
|
+
"./connector/service": "./src/kusinta/iot/connector/v1/connector_service_pb.js",
|
|
23
|
+
"./webrtc": "./src/kusinta/iot/webrtc/v1/envelope_pb.js",
|
|
24
|
+
"./registration": "./src/kusinta/iot/registration/v1/registration_pb.js",
|
|
25
|
+
"./registration/service": "./src/kusinta/iot/registration/v1/registration_service_pb.js",
|
|
26
|
+
"./signaling": "./src/kusinta/iot/signaling/v1/signaling_pb.js",
|
|
27
|
+
"./signaling/service": "./src/kusinta/iot/signaling/v1/signaling_service_pb.js"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@bufbuild/protobuf": "^2.12.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/node": "^22.0.0",
|
|
34
|
+
"vitest": "^3.0.0"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts,import_extension=js"
|
|
2
|
+
// @generated from file kusinta/iot/access/v1/acl.proto (package kusinta.iot.access.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 { DeviceId, GatewayId, UserId } from "../../identity/v1/identity_pb.js";
|
|
8
|
+
import type { PermissionAction, Role } from "./roles_pb.js";
|
|
9
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Describes the file kusinta/iot/access/v1/acl.proto.
|
|
13
|
+
*/
|
|
14
|
+
export declare const file_kusinta_iot_access_v1_acl: GenFile;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* PropertyConstraint bounds a single Matter cluster attribute.
|
|
18
|
+
* attribute_name uses PascalCase Matter attribute naming (e.g. "MaxHeatSetpointLimit").
|
|
19
|
+
* MaxHeatSetpointLimit and MinHeatSetpointLimit are actual Matter Thermostat cluster
|
|
20
|
+
* attributes (0x0016, 0x0015) — the gateway writes them directly via the connector.
|
|
21
|
+
*
|
|
22
|
+
* @generated from message kusinta.iot.access.v1.PropertyConstraint
|
|
23
|
+
*/
|
|
24
|
+
export declare type PropertyConstraint = Message<"kusinta.iot.access.v1.PropertyConstraint"> & {
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: string attribute_name = 1;
|
|
27
|
+
*/
|
|
28
|
+
attributeName: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @generated from oneof kusinta.iot.access.v1.PropertyConstraint.constraint
|
|
32
|
+
*/
|
|
33
|
+
constraint: {
|
|
34
|
+
/**
|
|
35
|
+
* @generated from field: sint32 int_max = 2;
|
|
36
|
+
*/
|
|
37
|
+
value: number;
|
|
38
|
+
case: "intMax";
|
|
39
|
+
} | {
|
|
40
|
+
/**
|
|
41
|
+
* @generated from field: sint32 int_min = 3;
|
|
42
|
+
*/
|
|
43
|
+
value: number;
|
|
44
|
+
case: "intMin";
|
|
45
|
+
} | {
|
|
46
|
+
/**
|
|
47
|
+
* @generated from field: uint32 uint_max = 4;
|
|
48
|
+
*/
|
|
49
|
+
value: number;
|
|
50
|
+
case: "uintMax";
|
|
51
|
+
} | {
|
|
52
|
+
/**
|
|
53
|
+
* @generated from field: uint32 uint_min = 5;
|
|
54
|
+
*/
|
|
55
|
+
value: number;
|
|
56
|
+
case: "uintMin";
|
|
57
|
+
} | { case: undefined; value?: undefined };
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @generated from field: string cluster_id_hex = 6;
|
|
61
|
+
*/
|
|
62
|
+
clusterIdHex: string;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Describes the message kusinta.iot.access.v1.PropertyConstraint.
|
|
67
|
+
* Use `create(PropertyConstraintSchema)` to create a new message.
|
|
68
|
+
*/
|
|
69
|
+
export declare const PropertyConstraintSchema: GenMessage<PropertyConstraint>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @generated from message kusinta.iot.access.v1.DeviceAcl
|
|
73
|
+
*/
|
|
74
|
+
export declare type DeviceAcl = Message<"kusinta.iot.access.v1.DeviceAcl"> & {
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: kusinta.iot.identity.v1.DeviceId device_id = 1;
|
|
77
|
+
*/
|
|
78
|
+
deviceId?: DeviceId | undefined;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @generated from field: kusinta.iot.identity.v1.UserId user_id = 2;
|
|
82
|
+
*/
|
|
83
|
+
userId?: UserId | undefined;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: kusinta.iot.access.v1.Role role = 3;
|
|
87
|
+
*/
|
|
88
|
+
role: Role;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @generated from field: repeated kusinta.iot.access.v1.PermissionAction allowed_actions = 4;
|
|
92
|
+
*/
|
|
93
|
+
allowedActions: PermissionAction[];
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* empty = all attributes allowed
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: repeated string allowed_attributes = 5;
|
|
99
|
+
*/
|
|
100
|
+
allowedAttributes: string[];
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @generated from field: repeated kusinta.iot.access.v1.PropertyConstraint property_constraints = 6;
|
|
104
|
+
*/
|
|
105
|
+
propertyConstraints: PropertyConstraint[];
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Describes the message kusinta.iot.access.v1.DeviceAcl.
|
|
110
|
+
* Use `create(DeviceAclSchema)` to create a new message.
|
|
111
|
+
*/
|
|
112
|
+
export declare const DeviceAclSchema: GenMessage<DeviceAcl>;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @generated from message kusinta.iot.access.v1.EffectivePermissions
|
|
116
|
+
*/
|
|
117
|
+
export declare type EffectivePermissions = Message<"kusinta.iot.access.v1.EffectivePermissions"> & {
|
|
118
|
+
/**
|
|
119
|
+
* @generated from field: kusinta.iot.identity.v1.UserId user_id = 1;
|
|
120
|
+
*/
|
|
121
|
+
userId?: UserId | undefined;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @generated from field: kusinta.iot.identity.v1.GatewayId gateway_id = 2;
|
|
125
|
+
*/
|
|
126
|
+
gatewayId?: GatewayId | undefined;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @generated from field: repeated kusinta.iot.access.v1.DeviceAcl device_acls = 3;
|
|
130
|
+
*/
|
|
131
|
+
deviceAcls: DeviceAcl[];
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @generated from field: google.protobuf.Timestamp valid_at = 4;
|
|
135
|
+
*/
|
|
136
|
+
validAt?: Timestamp | undefined;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Describes the message kusinta.iot.access.v1.EffectivePermissions.
|
|
141
|
+
* Use `create(EffectivePermissionsSchema)` to create a new message.
|
|
142
|
+
*/
|
|
143
|
+
export declare const EffectivePermissionsSchema: GenMessage<EffectivePermissions>;
|
|
144
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts,import_extension=js"
|
|
2
|
+
// @generated from file kusinta/iot/access/v1/acl.proto (package kusinta.iot.access.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.js";
|
|
8
|
+
import { file_kusinta_iot_access_v1_roles } from "./roles_pb.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Describes the file kusinta/iot/access/v1/acl.proto.
|
|
12
|
+
*/
|
|
13
|
+
export const file_kusinta_iot_access_v1_acl = /*@__PURE__*/
|
|
14
|
+
fileDesc("Ch9rdXNpbnRhL2lvdC9hY2Nlc3MvdjEvYWNsLnByb3RvEhVrdXNpbnRhLmlvdC5hY2Nlc3MudjEioAEKElByb3BlcnR5Q29uc3RyYWludBIWCg5hdHRyaWJ1dGVfbmFtZRgBIAEoCRIRCgdpbnRfbWF4GAIgASgRSAASEQoHaW50X21pbhgDIAEoEUgAEhIKCHVpbnRfbWF4GAQgASgNSAASEgoIdWludF9taW4YBSABKA1IABIWCg5jbHVzdGVyX2lkX2hleBgGIAEoCUIMCgpjb25zdHJhaW50IsUCCglEZXZpY2VBY2wSNAoJZGV2aWNlX2lkGAEgASgLMiEua3VzaW50YS5pb3QuaWRlbnRpdHkudjEuRGV2aWNlSWQSMAoHdXNlcl9pZBgCIAEoCzIfLmt1c2ludGEuaW90LmlkZW50aXR5LnYxLlVzZXJJZBIpCgRyb2xlGAMgASgOMhsua3VzaW50YS5pb3QuYWNjZXNzLnYxLlJvbGUSQAoPYWxsb3dlZF9hY3Rpb25zGAQgAygOMicua3VzaW50YS5pb3QuYWNjZXNzLnYxLlBlcm1pc3Npb25BY3Rpb24SGgoSYWxsb3dlZF9hdHRyaWJ1dGVzGAUgAygJEkcKFHByb3BlcnR5X2NvbnN0cmFpbnRzGAYgAygLMikua3VzaW50YS5pb3QuYWNjZXNzLnYxLlByb3BlcnR5Q29uc3RyYWludCLlAQoURWZmZWN0aXZlUGVybWlzc2lvbnMSMAoHdXNlcl9pZBgBIAEoCzIfLmt1c2ludGEuaW90LmlkZW50aXR5LnYxLlVzZXJJZBI2CgpnYXRld2F5X2lkGAIgASgLMiIua3VzaW50YS5pb3QuaWRlbnRpdHkudjEuR2F0ZXdheUlkEjUKC2RldmljZV9hY2xzGAMgAygLMiAua3VzaW50YS5pb3QuYWNjZXNzLnYxLkRldmljZUFjbBIsCgh2YWxpZF9hdBgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCAkgBYgZwcm90bzM", [file_google_protobuf_timestamp, file_kusinta_iot_identity_v1_identity, file_kusinta_iot_access_v1_roles]);
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message kusinta.iot.access.v1.PropertyConstraint.
|
|
18
|
+
* Use `create(PropertyConstraintSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export const PropertyConstraintSchema = /*@__PURE__*/
|
|
21
|
+
messageDesc(file_kusinta_iot_access_v1_acl, 0);
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message kusinta.iot.access.v1.DeviceAcl.
|
|
25
|
+
* Use `create(DeviceAclSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
export const DeviceAclSchema = /*@__PURE__*/
|
|
28
|
+
messageDesc(file_kusinta_iot_access_v1_acl, 1);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message kusinta.iot.access.v1.EffectivePermissions.
|
|
32
|
+
* Use `create(EffectivePermissionsSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export const EffectivePermissionsSchema = /*@__PURE__*/
|
|
35
|
+
messageDesc(file_kusinta_iot_access_v1_acl, 2);
|
|
36
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts,import_extension=js"
|
|
2
|
+
// @generated from file kusinta/iot/access/v1/roles.proto (package kusinta.iot.access.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file kusinta/iot/access/v1/roles.proto.
|
|
9
|
+
*/
|
|
10
|
+
export declare const file_kusinta_iot_access_v1_roles: GenFile;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum kusinta.iot.access.v1.Role
|
|
14
|
+
*/
|
|
15
|
+
export enum Role {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: ROLE_UNSPECIFIED = 0;
|
|
18
|
+
*/
|
|
19
|
+
UNSPECIFIED = 0,
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum value: ROLE_RESIDENT = 1;
|
|
23
|
+
*/
|
|
24
|
+
RESIDENT = 1,
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum value: ROLE_PROPERTY_OWNER = 2;
|
|
28
|
+
*/
|
|
29
|
+
PROPERTY_OWNER = 2,
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: ROLE_TECHNICIAN = 3;
|
|
33
|
+
*/
|
|
34
|
+
TECHNICIAN = 3,
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: ROLE_GATEWAY_ADMIN = 4;
|
|
38
|
+
*/
|
|
39
|
+
GATEWAY_ADMIN = 4,
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Describes the enum kusinta.iot.access.v1.Role.
|
|
44
|
+
*/
|
|
45
|
+
export declare const RoleSchema: GenEnum<Role>;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @generated from enum kusinta.iot.access.v1.PermissionAction
|
|
49
|
+
*/
|
|
50
|
+
export enum PermissionAction {
|
|
51
|
+
/**
|
|
52
|
+
* @generated from enum value: PERMISSION_ACTION_UNSPECIFIED = 0;
|
|
53
|
+
*/
|
|
54
|
+
UNSPECIFIED = 0,
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @generated from enum value: PERMISSION_ACTION_READ = 1;
|
|
58
|
+
*/
|
|
59
|
+
READ = 1,
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @generated from enum value: PERMISSION_ACTION_WRITE = 2;
|
|
63
|
+
*/
|
|
64
|
+
WRITE = 2,
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @generated from enum value: PERMISSION_ACTION_OBSERVE = 3;
|
|
68
|
+
*/
|
|
69
|
+
OBSERVE = 3,
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @generated from enum value: PERMISSION_ACTION_INVOKE = 4;
|
|
73
|
+
*/
|
|
74
|
+
INVOKE = 4,
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Describes the enum kusinta.iot.access.v1.PermissionAction.
|
|
79
|
+
*/
|
|
80
|
+
export declare const PermissionActionSchema: GenEnum<PermissionAction>;
|
|
81
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts,import_extension=js"
|
|
2
|
+
// @generated from file kusinta/iot/access/v1/roles.proto (package kusinta.iot.access.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { enumDesc, fileDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file kusinta/iot/access/v1/roles.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_kusinta_iot_access_v1_roles = /*@__PURE__*/
|
|
11
|
+
fileDesc("CiFrdXNpbnRhL2lvdC9hY2Nlc3MvdjEvcm9sZXMucHJvdG8SFWt1c2ludGEuaW90LmFjY2Vzcy52MSp1CgRSb2xlEhQKEFJPTEVfVU5TUEVDSUZJRUQQABIRCg1ST0xFX1JFU0lERU5UEAESFwoTUk9MRV9QUk9QRVJUWV9PV05FUhACEhMKD1JPTEVfVEVDSE5JQ0lBThADEhYKElJPTEVfR0FURVdBWV9BRE1JThAEKqsBChBQZXJtaXNzaW9uQWN0aW9uEiEKHVBFUk1JU1NJT05fQUNUSU9OX1VOU1BFQ0lGSUVEEAASGgoWUEVSTUlTU0lPTl9BQ1RJT05fUkVBRBABEhsKF1BFUk1JU1NJT05fQUNUSU9OX1dSSVRFEAISHQoZUEVSTUlTU0lPTl9BQ1RJT05fT0JTRVJWRRADEhwKGFBFUk1JU1NJT05fQUNUSU9OX0lOVk9LRRAEQgJIAWIGcHJvdG8z");
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Describes the enum kusinta.iot.access.v1.Role.
|
|
15
|
+
*/
|
|
16
|
+
export const RoleSchema = /*@__PURE__*/
|
|
17
|
+
enumDesc(file_kusinta_iot_access_v1_roles, 0);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum kusinta.iot.access.v1.Role
|
|
21
|
+
*/
|
|
22
|
+
export const Role = /*@__PURE__*/
|
|
23
|
+
tsEnum(RoleSchema);
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Describes the enum kusinta.iot.access.v1.PermissionAction.
|
|
27
|
+
*/
|
|
28
|
+
export const PermissionActionSchema = /*@__PURE__*/
|
|
29
|
+
enumDesc(file_kusinta_iot_access_v1_roles, 1);
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum kusinta.iot.access.v1.PermissionAction
|
|
33
|
+
*/
|
|
34
|
+
export const PermissionAction = /*@__PURE__*/
|
|
35
|
+
tsEnum(PermissionActionSchema);
|
|
36
|
+
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts,import_extension=js"
|
|
2
|
+
// @generated from file kusinta/iot/common/v1/types.proto (package kusinta.iot.common.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file kusinta/iot/common/v1/types.proto.
|
|
10
|
+
*/
|
|
11
|
+
export declare const file_kusinta_iot_common_v1_types: GenFile;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @generated from message kusinta.iot.common.v1.ErrorDetail
|
|
15
|
+
*/
|
|
16
|
+
export declare type ErrorDetail = Message<"kusinta.iot.common.v1.ErrorDetail"> & {
|
|
17
|
+
/**
|
|
18
|
+
* @generated from field: string code = 1;
|
|
19
|
+
*/
|
|
20
|
+
code: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @generated from field: string message = 2;
|
|
24
|
+
*/
|
|
25
|
+
message: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: map<string, string> metadata = 3;
|
|
29
|
+
*/
|
|
30
|
+
metadata: { [key: string]: string };
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Describes the message kusinta.iot.common.v1.ErrorDetail.
|
|
35
|
+
* Use `create(ErrorDetailSchema)` to create a new message.
|
|
36
|
+
*/
|
|
37
|
+
export declare const ErrorDetailSchema: GenMessage<ErrorDetail>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @generated from enum kusinta.iot.common.v1.SpaceType
|
|
41
|
+
*/
|
|
42
|
+
export enum SpaceType {
|
|
43
|
+
/**
|
|
44
|
+
* @generated from enum value: SPACE_TYPE_UNSPECIFIED = 0;
|
|
45
|
+
*/
|
|
46
|
+
UNSPECIFIED = 0,
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from enum value: SPACE_TYPE_BUILDING = 1;
|
|
50
|
+
*/
|
|
51
|
+
BUILDING = 1,
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: SPACE_TYPE_FLOOR = 2;
|
|
55
|
+
*/
|
|
56
|
+
FLOOR = 2,
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @generated from enum value: SPACE_TYPE_APARTMENT = 3;
|
|
60
|
+
*/
|
|
61
|
+
APARTMENT = 3,
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @generated from enum value: SPACE_TYPE_ROOM = 4;
|
|
65
|
+
*/
|
|
66
|
+
ROOM = 4,
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @generated from enum value: SPACE_TYPE_COMMON_AREA = 5;
|
|
70
|
+
*/
|
|
71
|
+
COMMON_AREA = 5,
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Describes the enum kusinta.iot.common.v1.SpaceType.
|
|
76
|
+
*/
|
|
77
|
+
export declare const SpaceTypeSchema: GenEnum<SpaceType>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @generated from enum kusinta.iot.common.v1.DeviceOwnershipType
|
|
81
|
+
*/
|
|
82
|
+
export enum DeviceOwnershipType {
|
|
83
|
+
/**
|
|
84
|
+
* @generated from enum value: DEVICE_OWNERSHIP_TYPE_UNSPECIFIED = 0;
|
|
85
|
+
*/
|
|
86
|
+
UNSPECIFIED = 0,
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @generated from enum value: DEVICE_OWNERSHIP_TYPE_COMPANY = 1;
|
|
90
|
+
*/
|
|
91
|
+
COMPANY = 1,
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @generated from enum value: DEVICE_OWNERSHIP_TYPE_RESIDENT = 2;
|
|
95
|
+
*/
|
|
96
|
+
RESIDENT = 2,
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Describes the enum kusinta.iot.common.v1.DeviceOwnershipType.
|
|
101
|
+
*/
|
|
102
|
+
export declare const DeviceOwnershipTypeSchema: GenEnum<DeviceOwnershipType>;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @generated from enum kusinta.iot.common.v1.DeviceLifecycleState
|
|
106
|
+
*/
|
|
107
|
+
export enum DeviceLifecycleState {
|
|
108
|
+
/**
|
|
109
|
+
* @generated from enum value: DEVICE_LIFECYCLE_STATE_UNSPECIFIED = 0;
|
|
110
|
+
*/
|
|
111
|
+
UNSPECIFIED = 0,
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @generated from enum value: DEVICE_LIFECYCLE_STATE_PENDING_CLAIM = 1;
|
|
115
|
+
*/
|
|
116
|
+
PENDING_CLAIM = 1,
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @generated from enum value: DEVICE_LIFECYCLE_STATE_OWNED = 2;
|
|
120
|
+
*/
|
|
121
|
+
OWNED = 2,
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @generated from enum value: DEVICE_LIFECYCLE_STATE_PENDING_TRANSFER = 3;
|
|
125
|
+
*/
|
|
126
|
+
PENDING_TRANSFER = 3,
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @generated from enum value: DEVICE_LIFECYCLE_STATE_BUILDING_POOL = 4;
|
|
130
|
+
*/
|
|
131
|
+
BUILDING_POOL = 4,
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Describes the enum kusinta.iot.common.v1.DeviceLifecycleState.
|
|
136
|
+
*/
|
|
137
|
+
export declare const DeviceLifecycleStateSchema: GenEnum<DeviceLifecycleState>;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @generated from enum kusinta.iot.common.v1.ConnectorTransport
|
|
141
|
+
*/
|
|
142
|
+
export enum ConnectorTransport {
|
|
143
|
+
/**
|
|
144
|
+
* @generated from enum value: CONNECTOR_TRANSPORT_UNSPECIFIED = 0;
|
|
145
|
+
*/
|
|
146
|
+
UNSPECIFIED = 0,
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @generated from enum value: CONNECTOR_TRANSPORT_UNIX_SOCKET = 1;
|
|
150
|
+
*/
|
|
151
|
+
UNIX_SOCKET = 1,
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @generated from enum value: CONNECTOR_TRANSPORT_MTLS_TCP = 2;
|
|
155
|
+
*/
|
|
156
|
+
MTLS_TCP = 2,
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Describes the enum kusinta.iot.common.v1.ConnectorTransport.
|
|
161
|
+
*/
|
|
162
|
+
export declare const ConnectorTransportSchema: GenEnum<ConnectorTransport>;
|
|
163
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts,import_extension=js"
|
|
2
|
+
// @generated from file kusinta/iot/common/v1/types.proto (package kusinta.iot.common.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file kusinta/iot/common/v1/types.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_kusinta_iot_common_v1_types = /*@__PURE__*/
|
|
11
|
+
fileDesc("CiFrdXNpbnRhL2lvdC9jb21tb24vdjEvdHlwZXMucHJvdG8SFWt1c2ludGEuaW90LmNvbW1vbi52MSKhAQoLRXJyb3JEZXRhaWwSDAoEY29kZRgBIAEoCRIPCgdtZXNzYWdlGAIgASgJEkIKCG1ldGFkYXRhGAMgAygLMjAua3VzaW50YS5pb3QuY29tbW9uLnYxLkVycm9yRGV0YWlsLk1ldGFkYXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBKqEBCglTcGFjZVR5cGUSGgoWU1BBQ0VfVFlQRV9VTlNQRUNJRklFRBAAEhcKE1NQQUNFX1RZUEVfQlVJTERJTkcQARIUChBTUEFDRV9UWVBFX0ZMT09SEAISGAoUU1BBQ0VfVFlQRV9BUEFSVE1FTlQQAxITCg9TUEFDRV9UWVBFX1JPT00QBBIaChZTUEFDRV9UWVBFX0NPTU1PTl9BUkVBEAUqgwEKE0RldmljZU93bmVyc2hpcFR5cGUSJQohREVWSUNFX09XTkVSU0hJUF9UWVBFX1VOU1BFQ0lGSUVEEAASIQodREVWSUNFX09XTkVSU0hJUF9UWVBFX0NPTVBBTlkQARIiCh5ERVZJQ0VfT1dORVJTSElQX1RZUEVfUkVTSURFTlQQAirhAQoURGV2aWNlTGlmZWN5Y2xlU3RhdGUSJgoiREVWSUNFX0xJRkVDWUNMRV9TVEFURV9VTlNQRUNJRklFRBAAEigKJERFVklDRV9MSUZFQ1lDTEVfU1RBVEVfUEVORElOR19DTEFJTRABEiAKHERFVklDRV9MSUZFQ1lDTEVfU1RBVEVfT1dORUQQAhIrCidERVZJQ0VfTElGRUNZQ0xFX1NUQVRFX1BFTkRJTkdfVFJBTlNGRVIQAxIoCiRERVZJQ0VfTElGRUNZQ0xFX1NUQVRFX0JVSUxESU5HX1BPT0wQBCqAAQoSQ29ubmVjdG9yVHJhbnNwb3J0EiMKH0NPTk5FQ1RPUl9UUkFOU1BPUlRfVU5TUEVDSUZJRUQQABIjCh9DT05ORUNUT1JfVFJBTlNQT1JUX1VOSVhfU09DS0VUEAESIAocQ09OTkVDVE9SX1RSQU5TUE9SVF9NVExTX1RDUBACQgJIAWIGcHJvdG8z");
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message kusinta.iot.common.v1.ErrorDetail.
|
|
15
|
+
* Use `create(ErrorDetailSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
export const ErrorDetailSchema = /*@__PURE__*/
|
|
18
|
+
messageDesc(file_kusinta_iot_common_v1_types, 0);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Describes the enum kusinta.iot.common.v1.SpaceType.
|
|
22
|
+
*/
|
|
23
|
+
export const SpaceTypeSchema = /*@__PURE__*/
|
|
24
|
+
enumDesc(file_kusinta_iot_common_v1_types, 0);
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum kusinta.iot.common.v1.SpaceType
|
|
28
|
+
*/
|
|
29
|
+
export const SpaceType = /*@__PURE__*/
|
|
30
|
+
tsEnum(SpaceTypeSchema);
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Describes the enum kusinta.iot.common.v1.DeviceOwnershipType.
|
|
34
|
+
*/
|
|
35
|
+
export const DeviceOwnershipTypeSchema = /*@__PURE__*/
|
|
36
|
+
enumDesc(file_kusinta_iot_common_v1_types, 1);
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated from enum kusinta.iot.common.v1.DeviceOwnershipType
|
|
40
|
+
*/
|
|
41
|
+
export const DeviceOwnershipType = /*@__PURE__*/
|
|
42
|
+
tsEnum(DeviceOwnershipTypeSchema);
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Describes the enum kusinta.iot.common.v1.DeviceLifecycleState.
|
|
46
|
+
*/
|
|
47
|
+
export const DeviceLifecycleStateSchema = /*@__PURE__*/
|
|
48
|
+
enumDesc(file_kusinta_iot_common_v1_types, 2);
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @generated from enum kusinta.iot.common.v1.DeviceLifecycleState
|
|
52
|
+
*/
|
|
53
|
+
export const DeviceLifecycleState = /*@__PURE__*/
|
|
54
|
+
tsEnum(DeviceLifecycleStateSchema);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Describes the enum kusinta.iot.common.v1.ConnectorTransport.
|
|
58
|
+
*/
|
|
59
|
+
export const ConnectorTransportSchema = /*@__PURE__*/
|
|
60
|
+
enumDesc(file_kusinta_iot_common_v1_types, 3);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @generated from enum kusinta.iot.common.v1.ConnectorTransport
|
|
64
|
+
*/
|
|
65
|
+
export const ConnectorTransport = /*@__PURE__*/
|
|
66
|
+
tsEnum(ConnectorTransportSchema);
|
|
67
|
+
|