@blueid/access-proto 0.13.0

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.
@@ -0,0 +1,118 @@
1
+ // @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
2
+ // @generated from file BlueLock.proto (syntax proto2)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto2 } from "@bufbuild/protobuf";
8
+ import type { BlueLocalTimeSchedule } from "./BlueCore_pb.js";
9
+
10
+ /**
11
+ * @generated from enum BlueLockState
12
+ */
13
+ export declare enum BlueLockState {
14
+ /**
15
+ * @generated from enum value: UnknownLockState = 1;
16
+ */
17
+ UnknownLockState = 1,
18
+
19
+ /**
20
+ * @generated from enum value: Locked = 2;
21
+ */
22
+ Locked = 2,
23
+
24
+ /**
25
+ * @generated from enum value: Unlocked = 3;
26
+ */
27
+ Unlocked = 3,
28
+
29
+ /**
30
+ * @generated from enum value: Jammed = 4;
31
+ */
32
+ Jammed = 4,
33
+ }
34
+
35
+ /**
36
+ * @generated from message BlueLockConfig
37
+ */
38
+ export declare class BlueLockConfig extends Message<BlueLockConfig> {
39
+ /**
40
+ * Schedules for when the lock opens automatically
41
+ *
42
+ * @generated from field: repeated BlueLocalTimeSchedule openSchedules = 1;
43
+ */
44
+ openSchedules: BlueLocalTimeSchedule[];
45
+
46
+ /**
47
+ * If set to true then the lock opens by schedule only after it was first
48
+ * opened by an authenticated user and is within any of the open schedules
49
+ *
50
+ * @generated from field: required bool openScheduleByUser = 2 [default = false];
51
+ */
52
+ openScheduleByUser: boolean;
53
+
54
+ /**
55
+ * Days of year (1-366) the open schedule is ignored (ie vacation days)
56
+ *
57
+ * @generated from field: repeated uint32 closedDays = 20;
58
+ */
59
+ closedDays: number[];
60
+
61
+ /**
62
+ * Default time in seconds to keep the lock open
63
+ *
64
+ * @generated from field: required uint32 defaultOpenTimeSec = 21 [default = 5];
65
+ */
66
+ defaultOpenTimeSec: number;
67
+
68
+ /**
69
+ * Extended time in seconds to keep the lock open
70
+ *
71
+ * @generated from field: required uint32 extendedOpenTimeSec = 22 [default = 3600];
72
+ */
73
+ extendedOpenTimeSec: number;
74
+
75
+ constructor(data?: PartialMessage<BlueLockConfig>);
76
+
77
+ static readonly runtime: typeof proto2;
78
+ static readonly typeName = "BlueLockConfig";
79
+ static readonly fields: FieldList;
80
+
81
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueLockConfig;
82
+
83
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueLockConfig;
84
+
85
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueLockConfig;
86
+
87
+ static equals(a: BlueLockConfig | PlainMessage<BlueLockConfig> | undefined, b: BlueLockConfig | PlainMessage<BlueLockConfig> | undefined): boolean;
88
+ }
89
+
90
+ /**
91
+ * @generated from message BlueLockStatus
92
+ */
93
+ export declare class BlueLockStatus extends Message<BlueLockStatus> {
94
+ /**
95
+ * @generated from field: required BlueLockState state = 1;
96
+ */
97
+ state: BlueLockState;
98
+
99
+ /**
100
+ * @generated from field: required uint32 openings = 2;
101
+ */
102
+ openings: number;
103
+
104
+ constructor(data?: PartialMessage<BlueLockStatus>);
105
+
106
+ static readonly runtime: typeof proto2;
107
+ static readonly typeName = "BlueLockStatus";
108
+ static readonly fields: FieldList;
109
+
110
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueLockStatus;
111
+
112
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueLockStatus;
113
+
114
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueLockStatus;
115
+
116
+ static equals(a: BlueLockStatus | PlainMessage<BlueLockStatus> | undefined, b: BlueLockStatus | PlainMessage<BlueLockStatus> | undefined): boolean;
117
+ }
118
+
@@ -0,0 +1,46 @@
1
+ // @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
2
+ // @generated from file BlueLock.proto (syntax proto2)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { proto2 } from "@bufbuild/protobuf";
7
+ import { BlueLocalTimeSchedule } from "./BlueCore_pb.js";
8
+
9
+ /**
10
+ * @generated from enum BlueLockState
11
+ */
12
+ export const BlueLockState = proto2.makeEnum(
13
+ "BlueLockState",
14
+ [
15
+ {no: 1, name: "UnknownLockState"},
16
+ {no: 2, name: "Locked"},
17
+ {no: 3, name: "Unlocked"},
18
+ {no: 4, name: "Jammed"},
19
+ ],
20
+ );
21
+
22
+ /**
23
+ * @generated from message BlueLockConfig
24
+ */
25
+ export const BlueLockConfig = proto2.makeMessageType(
26
+ "BlueLockConfig",
27
+ () => [
28
+ { no: 1, name: "openSchedules", kind: "message", T: BlueLocalTimeSchedule, repeated: true },
29
+ { no: 2, name: "openScheduleByUser", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
30
+ { no: 20, name: "closedDays", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
31
+ { no: 21, name: "defaultOpenTimeSec", kind: "scalar", T: 13 /* ScalarType.UINT32 */, default: 5 },
32
+ { no: 22, name: "extendedOpenTimeSec", kind: "scalar", T: 13 /* ScalarType.UINT32 */, default: 3600 },
33
+ ],
34
+ );
35
+
36
+ /**
37
+ * @generated from message BlueLockStatus
38
+ */
39
+ export const BlueLockStatus = proto2.makeMessageType(
40
+ "BlueLockStatus",
41
+ () => [
42
+ { no: 1, name: "state", kind: "enum", T: proto2.getEnumType(BlueLockState) },
43
+ { no: 2, name: "openings", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
44
+ ],
45
+ );
46
+
@@ -0,0 +1,197 @@
1
+ // @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
2
+ // @generated from file BlueSDK.proto (syntax proto2)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto2 } from "@bufbuild/protobuf";
8
+ import type { BlueBleManufacturerInfo } from "./BlueCore_pb.js";
9
+
10
+ /**
11
+ * @generated from enum BlueDeviceType
12
+ */
13
+ export declare enum BlueDeviceType {
14
+ /**
15
+ * @generated from enum value: BluetoothDevice = 1;
16
+ */
17
+ BluetoothDevice = 1,
18
+
19
+ /**
20
+ * @generated from enum value: UWBDevice = 2;
21
+ */
22
+ UWBDevice = 2,
23
+ }
24
+
25
+ /**
26
+ * @generated from message BlueI18n
27
+ */
28
+ export declare class BlueI18n extends Message<BlueI18n> {
29
+ /**
30
+ * @generated from field: required string nfcWaitMessage = 1 [default = "Waiting for transponder"];
31
+ */
32
+ nfcWaitMessage: string;
33
+
34
+ /**
35
+ * @generated from field: required string nfcOssSuccessReadConfigurationMessage = 2 [default = "Configuration read successfully"];
36
+ */
37
+ nfcOssSuccessReadConfigurationMessage: string;
38
+
39
+ /**
40
+ * @generated from field: required string nfcOssSuccessUpdateConfigurationMessage = 3 [default = "Configuration successfully updated"];
41
+ */
42
+ nfcOssSuccessUpdateConfigurationMessage: string;
43
+
44
+ /**
45
+ * @generated from field: required string nfcOssSuccessClearEventsMessage = 4 [default = "Events successfully cleared"];
46
+ */
47
+ nfcOssSuccessClearEventsMessage: string;
48
+
49
+ /**
50
+ * @generated from field: required string nfcOssSuccessIsProvisionedMessage = 5 [default = "Is already provisioned"];
51
+ */
52
+ nfcOssSuccessIsProvisionedMessage: string;
53
+
54
+ /**
55
+ * @generated from field: required string nfcOssSuccessProvisionMessage = 6 [default = "Successfully provisioned"];
56
+ */
57
+ nfcOssSuccessProvisionMessage: string;
58
+
59
+ /**
60
+ * @generated from field: required string nfcOssSuccessUnprovisionMessage = 7 [default = "Successfully unprovisioned"];
61
+ */
62
+ nfcOssSuccessUnprovisionMessage: string;
63
+
64
+ /**
65
+ * @generated from field: required string nfcOssSuccessFormatMessage = 8 [default = "Transponder was successfully formatted"];
66
+ */
67
+ nfcOssSuccessFormatMessage: string;
68
+
69
+ constructor(data?: PartialMessage<BlueI18n>);
70
+
71
+ static readonly runtime: typeof proto2;
72
+ static readonly typeName = "BlueI18n";
73
+ static readonly fields: FieldList;
74
+
75
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueI18n;
76
+
77
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueI18n;
78
+
79
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueI18n;
80
+
81
+ static equals(a: BlueI18n | PlainMessage<BlueI18n> | undefined, b: BlueI18n | PlainMessage<BlueI18n> | undefined): boolean;
82
+ }
83
+
84
+ /**
85
+ * @generated from message BlueDeviceDetailsBluetooth
86
+ */
87
+ export declare class BlueDeviceDetailsBluetooth extends Message<BlueDeviceDetailsBluetooth> {
88
+ /**
89
+ * @generated from field: required int32 rssi = 1;
90
+ */
91
+ rssi: number;
92
+
93
+ /**
94
+ * @generated from field: required int32 txPower = 2;
95
+ */
96
+ txPower: number;
97
+
98
+ /**
99
+ * @generated from field: required bool isIBeacon = 3;
100
+ */
101
+ isIBeacon: boolean;
102
+
103
+ constructor(data?: PartialMessage<BlueDeviceDetailsBluetooth>);
104
+
105
+ static readonly runtime: typeof proto2;
106
+ static readonly typeName = "BlueDeviceDetailsBluetooth";
107
+ static readonly fields: FieldList;
108
+
109
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueDeviceDetailsBluetooth;
110
+
111
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueDeviceDetailsBluetooth;
112
+
113
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueDeviceDetailsBluetooth;
114
+
115
+ static equals(a: BlueDeviceDetailsBluetooth | PlainMessage<BlueDeviceDetailsBluetooth> | undefined, b: BlueDeviceDetailsBluetooth | PlainMessage<BlueDeviceDetailsBluetooth> | undefined): boolean;
116
+ }
117
+
118
+ /**
119
+ * @generated from message BlueDeviceDetailsUWB
120
+ */
121
+ export declare class BlueDeviceDetailsUWB extends Message<BlueDeviceDetailsUWB> {
122
+ /**
123
+ * @generated from field: required bool notUsed = 1;
124
+ */
125
+ notUsed: boolean;
126
+
127
+ constructor(data?: PartialMessage<BlueDeviceDetailsUWB>);
128
+
129
+ static readonly runtime: typeof proto2;
130
+ static readonly typeName = "BlueDeviceDetailsUWB";
131
+ static readonly fields: FieldList;
132
+
133
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueDeviceDetailsUWB;
134
+
135
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueDeviceDetailsUWB;
136
+
137
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueDeviceDetailsUWB;
138
+
139
+ static equals(a: BlueDeviceDetailsUWB | PlainMessage<BlueDeviceDetailsUWB> | undefined, b: BlueDeviceDetailsUWB | PlainMessage<BlueDeviceDetailsUWB> | undefined): boolean;
140
+ }
141
+
142
+ /**
143
+ * @generated from message BlueDeviceInfo
144
+ */
145
+ export declare class BlueDeviceInfo extends Message<BlueDeviceInfo> {
146
+ /**
147
+ * @generated from field: required BlueDeviceType deviceType = 1;
148
+ */
149
+ deviceType: BlueDeviceType;
150
+
151
+ /**
152
+ * @generated from field: required string deviceId = 2;
153
+ */
154
+ deviceId: string;
155
+
156
+ /**
157
+ * @generated from field: required float distanceMeters = 3;
158
+ */
159
+ distanceMeters: number;
160
+
161
+ /**
162
+ * @generated from field: optional BlueBleManufacturerInfo manufacturerInfo = 4;
163
+ */
164
+ manufacturerInfo?: BlueBleManufacturerInfo;
165
+
166
+ /**
167
+ * @generated from oneof BlueDeviceInfo.details
168
+ */
169
+ details: {
170
+ /**
171
+ * @generated from field: BlueDeviceDetailsBluetooth bluetooth = 5;
172
+ */
173
+ value: BlueDeviceDetailsBluetooth;
174
+ case: "bluetooth";
175
+ } | {
176
+ /**
177
+ * @generated from field: BlueDeviceDetailsUWB uwb = 6;
178
+ */
179
+ value: BlueDeviceDetailsUWB;
180
+ case: "uwb";
181
+ } | { case: undefined; value?: undefined };
182
+
183
+ constructor(data?: PartialMessage<BlueDeviceInfo>);
184
+
185
+ static readonly runtime: typeof proto2;
186
+ static readonly typeName = "BlueDeviceInfo";
187
+ static readonly fields: FieldList;
188
+
189
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueDeviceInfo;
190
+
191
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueDeviceInfo;
192
+
193
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueDeviceInfo;
194
+
195
+ static equals(a: BlueDeviceInfo | PlainMessage<BlueDeviceInfo> | undefined, b: BlueDeviceInfo | PlainMessage<BlueDeviceInfo> | undefined): boolean;
196
+ }
197
+
@@ -0,0 +1,73 @@
1
+ // @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
2
+ // @generated from file BlueSDK.proto (syntax proto2)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { proto2 } from "@bufbuild/protobuf";
7
+ import { BlueBleManufacturerInfo } from "./BlueCore_pb.js";
8
+
9
+ /**
10
+ * @generated from enum BlueDeviceType
11
+ */
12
+ export const BlueDeviceType = proto2.makeEnum(
13
+ "BlueDeviceType",
14
+ [
15
+ {no: 1, name: "BluetoothDevice"},
16
+ {no: 2, name: "UWBDevice"},
17
+ ],
18
+ );
19
+
20
+ /**
21
+ * @generated from message BlueI18n
22
+ */
23
+ export const BlueI18n = proto2.makeMessageType(
24
+ "BlueI18n",
25
+ () => [
26
+ { no: 1, name: "nfcWaitMessage", kind: "scalar", T: 9 /* ScalarType.STRING */, default: "Waiting for transponder" },
27
+ { no: 2, name: "nfcOssSuccessReadConfigurationMessage", kind: "scalar", T: 9 /* ScalarType.STRING */, default: "Configuration read successfully" },
28
+ { no: 3, name: "nfcOssSuccessUpdateConfigurationMessage", kind: "scalar", T: 9 /* ScalarType.STRING */, default: "Configuration successfully updated" },
29
+ { no: 4, name: "nfcOssSuccessClearEventsMessage", kind: "scalar", T: 9 /* ScalarType.STRING */, default: "Events successfully cleared" },
30
+ { no: 5, name: "nfcOssSuccessIsProvisionedMessage", kind: "scalar", T: 9 /* ScalarType.STRING */, default: "Is already provisioned" },
31
+ { no: 6, name: "nfcOssSuccessProvisionMessage", kind: "scalar", T: 9 /* ScalarType.STRING */, default: "Successfully provisioned" },
32
+ { no: 7, name: "nfcOssSuccessUnprovisionMessage", kind: "scalar", T: 9 /* ScalarType.STRING */, default: "Successfully unprovisioned" },
33
+ { no: 8, name: "nfcOssSuccessFormatMessage", kind: "scalar", T: 9 /* ScalarType.STRING */, default: "Transponder was successfully formatted" },
34
+ ],
35
+ );
36
+
37
+ /**
38
+ * @generated from message BlueDeviceDetailsBluetooth
39
+ */
40
+ export const BlueDeviceDetailsBluetooth = proto2.makeMessageType(
41
+ "BlueDeviceDetailsBluetooth",
42
+ () => [
43
+ { no: 1, name: "rssi", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
44
+ { no: 2, name: "txPower", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
45
+ { no: 3, name: "isIBeacon", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
46
+ ],
47
+ );
48
+
49
+ /**
50
+ * @generated from message BlueDeviceDetailsUWB
51
+ */
52
+ export const BlueDeviceDetailsUWB = proto2.makeMessageType(
53
+ "BlueDeviceDetailsUWB",
54
+ () => [
55
+ { no: 1, name: "notUsed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
56
+ ],
57
+ );
58
+
59
+ /**
60
+ * @generated from message BlueDeviceInfo
61
+ */
62
+ export const BlueDeviceInfo = proto2.makeMessageType(
63
+ "BlueDeviceInfo",
64
+ () => [
65
+ { no: 1, name: "deviceType", kind: "enum", T: proto2.getEnumType(BlueDeviceType) },
66
+ { no: 2, name: "deviceId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
67
+ { no: 3, name: "distanceMeters", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
68
+ { no: 4, name: "manufacturerInfo", kind: "message", T: BlueBleManufacturerInfo, opt: true },
69
+ { no: 5, name: "bluetooth", kind: "message", T: BlueDeviceDetailsBluetooth, oneof: "details" },
70
+ { no: 6, name: "uwb", kind: "message", T: BlueDeviceDetailsUWB, oneof: "details" },
71
+ ],
72
+ );
73
+