@blueid/access-proto 0.19.0 → 0.22.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,58 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var BlueLock_pb_exports = {};
19
+ __export(BlueLock_pb_exports, {
20
+ BlueLockConfig: () => BlueLockConfig,
21
+ BlueLockState: () => BlueLockState,
22
+ BlueLockStatus: () => BlueLockStatus
23
+ });
24
+ module.exports = __toCommonJS(BlueLock_pb_exports);
25
+ var import_protobuf = require("@bufbuild/protobuf");
26
+ var import_BlueCore_pb = require("./BlueCore_pb.js");
27
+ const BlueLockState = import_protobuf.proto2.makeEnum(
28
+ "BlueLockState",
29
+ [
30
+ { no: 1, name: "UnknownLockState" },
31
+ { no: 2, name: "Locked" },
32
+ { no: 3, name: "Unlocked" },
33
+ { no: 4, name: "Jammed" }
34
+ ]
35
+ );
36
+ const BlueLockConfig = import_protobuf.proto2.makeMessageType(
37
+ "BlueLockConfig",
38
+ () => [
39
+ { no: 1, name: "openSchedules", kind: "message", T: import_BlueCore_pb.BlueLocalTimeSchedule, repeated: true },
40
+ { no: 2, name: "openScheduleByUser", kind: "scalar", T: 8, default: false },
41
+ { no: 20, name: "closedDays", kind: "scalar", T: 13, repeated: true },
42
+ { no: 21, name: "defaultOpenTimeSec", kind: "scalar", T: 13, default: 5 },
43
+ { no: 22, name: "extendedOpenTimeSec", kind: "scalar", T: 13, default: 3600 }
44
+ ]
45
+ );
46
+ const BlueLockStatus = import_protobuf.proto2.makeMessageType(
47
+ "BlueLockStatus",
48
+ () => [
49
+ { no: 1, name: "state", kind: "enum", T: import_protobuf.proto2.getEnumType(BlueLockState) },
50
+ {
51
+ no: 2,
52
+ name: "openings",
53
+ kind: "scalar",
54
+ T: 13
55
+ /* ScalarType.UINT32 */
56
+ }
57
+ ]
58
+ );
@@ -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,109 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var BlueSDK_pb_exports = {};
19
+ __export(BlueSDK_pb_exports, {
20
+ BlueDeviceDetailsBluetooth: () => BlueDeviceDetailsBluetooth,
21
+ BlueDeviceDetailsUWB: () => BlueDeviceDetailsUWB,
22
+ BlueDeviceInfo: () => BlueDeviceInfo,
23
+ BlueDeviceType: () => BlueDeviceType,
24
+ BlueI18n: () => BlueI18n
25
+ });
26
+ module.exports = __toCommonJS(BlueSDK_pb_exports);
27
+ var import_protobuf = require("@bufbuild/protobuf");
28
+ var import_BlueCore_pb = require("./BlueCore_pb.js");
29
+ const BlueDeviceType = import_protobuf.proto2.makeEnum(
30
+ "BlueDeviceType",
31
+ [
32
+ { no: 1, name: "BluetoothDevice" },
33
+ { no: 2, name: "UWBDevice" }
34
+ ]
35
+ );
36
+ const BlueI18n = import_protobuf.proto2.makeMessageType(
37
+ "BlueI18n",
38
+ () => [
39
+ { no: 1, name: "nfcWaitMessage", kind: "scalar", T: 9, default: "Waiting for transponder" },
40
+ { no: 2, name: "nfcOssSuccessReadConfigurationMessage", kind: "scalar", T: 9, default: "Configuration read successfully" },
41
+ { no: 3, name: "nfcOssSuccessUpdateConfigurationMessage", kind: "scalar", T: 9, default: "Configuration successfully updated" },
42
+ { no: 4, name: "nfcOssSuccessClearEventsMessage", kind: "scalar", T: 9, default: "Events successfully cleared" },
43
+ { no: 5, name: "nfcOssSuccessIsProvisionedMessage", kind: "scalar", T: 9, default: "Is already provisioned" },
44
+ { no: 6, name: "nfcOssSuccessProvisionMessage", kind: "scalar", T: 9, default: "Successfully provisioned" },
45
+ { no: 7, name: "nfcOssSuccessUnprovisionMessage", kind: "scalar", T: 9, default: "Successfully unprovisioned" },
46
+ { no: 8, name: "nfcOssSuccessFormatMessage", kind: "scalar", T: 9, default: "Transponder was successfully formatted" }
47
+ ]
48
+ );
49
+ const BlueDeviceDetailsBluetooth = import_protobuf.proto2.makeMessageType(
50
+ "BlueDeviceDetailsBluetooth",
51
+ () => [
52
+ {
53
+ no: 1,
54
+ name: "rssi",
55
+ kind: "scalar",
56
+ T: 5
57
+ /* ScalarType.INT32 */
58
+ },
59
+ {
60
+ no: 2,
61
+ name: "txPower",
62
+ kind: "scalar",
63
+ T: 5
64
+ /* ScalarType.INT32 */
65
+ },
66
+ {
67
+ no: 3,
68
+ name: "isIBeacon",
69
+ kind: "scalar",
70
+ T: 8
71
+ /* ScalarType.BOOL */
72
+ }
73
+ ]
74
+ );
75
+ const BlueDeviceDetailsUWB = import_protobuf.proto2.makeMessageType(
76
+ "BlueDeviceDetailsUWB",
77
+ () => [
78
+ {
79
+ no: 1,
80
+ name: "notUsed",
81
+ kind: "scalar",
82
+ T: 8
83
+ /* ScalarType.BOOL */
84
+ }
85
+ ]
86
+ );
87
+ const BlueDeviceInfo = import_protobuf.proto2.makeMessageType(
88
+ "BlueDeviceInfo",
89
+ () => [
90
+ { no: 1, name: "deviceType", kind: "enum", T: import_protobuf.proto2.getEnumType(BlueDeviceType) },
91
+ {
92
+ no: 2,
93
+ name: "deviceId",
94
+ kind: "scalar",
95
+ T: 9
96
+ /* ScalarType.STRING */
97
+ },
98
+ {
99
+ no: 3,
100
+ name: "distanceMeters",
101
+ kind: "scalar",
102
+ T: 2
103
+ /* ScalarType.FLOAT */
104
+ },
105
+ { no: 4, name: "manufacturerInfo", kind: "message", T: import_BlueCore_pb.BlueBleManufacturerInfo, opt: true },
106
+ { no: 5, name: "bluetooth", kind: "message", T: BlueDeviceDetailsBluetooth, oneof: "details" },
107
+ { no: 6, name: "uwb", kind: "message", T: BlueDeviceDetailsUWB, oneof: "details" }
108
+ ]
109
+ );