@attraccess/plugins-backend-sdk 1.11.0-beta.0 → 1.11.0-beta.1
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 +8 -8
- package/src/index.d.ts +3 -0
- package/src/index.js +3 -0
- package/src/index.js.map +1 -1
- package/src/internal.d.ts +6 -0
- package/src/internal.js +11 -0
- package/src/internal.js.map +1 -0
- package/src/lib/auth.types.d.ts +3 -1
- package/src/lib/dual-auth.guard.js +4 -0
- package/src/lib/dual-auth.guard.js.map +1 -1
- package/src/lib/plugin-audit.d.ts +2 -1
- package/src/lib/plugin-audit.js +3 -3
- package/src/lib/plugin-audit.js.map +1 -1
- package/src/lib/plugin-backend-module.d.ts +6 -1
- package/src/lib/plugin-ble-fake-clock.d.ts +15 -0
- package/src/lib/plugin-ble-fake-clock.js +52 -0
- package/src/lib/plugin-ble-fake-clock.js.map +1 -0
- package/src/lib/plugin-ble-fake.d.ts +94 -0
- package/src/lib/plugin-ble-fake.js +406 -0
- package/src/lib/plugin-ble-fake.js.map +1 -0
- package/src/lib/plugin-ble-notification-stream.d.ts +28 -0
- package/src/lib/plugin-ble-notification-stream.js +119 -0
- package/src/lib/plugin-ble-notification-stream.js.map +1 -0
- package/src/lib/plugin-ble-session-engine.d.ts +119 -0
- package/src/lib/plugin-ble-session-engine.js +410 -0
- package/src/lib/plugin-ble-session-engine.js.map +1 -0
- package/src/lib/plugin-ble-validation.d.ts +71 -0
- package/src/lib/plugin-ble-validation.js +453 -0
- package/src/lib/plugin-ble-validation.js.map +1 -0
- package/src/lib/plugin-ble.d.ts +249 -0
- package/src/lib/plugin-ble.js +85 -0
- package/src/lib/plugin-ble.js.map +1 -0
- package/src/lib/plugin-context.d.ts +6 -0
- package/src/lib/plugin-context.js.map +1 -1
- package/src/lib/plugin.interface.d.ts +20 -2
- package/src/lib/plugin.interface.js +8 -0
- package/src/lib/plugin.interface.js.map +1 -1
- package/src/lib/reader-ui.d.ts +42 -0
- package/src/lib/reader-ui.js.map +1 -1
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin BLE transport contract (permission `BLE_TRANSPORT`).
|
|
3
|
+
*
|
|
4
|
+
* The contract is deliberately NOT a raw GATT API. A plugin registers an immutable profile (the services,
|
|
5
|
+
* characteristics, operations and payload bounds it may touch), binds an endpoint to a physical device through
|
|
6
|
+
* an administrator-approved Attractap reader, and then talks to the device through a session that only accepts
|
|
7
|
+
* profile keys. Core owns reader access, identity, bounds, ownership, deadlines and cleanup; the plugin owns the
|
|
8
|
+
* vendor semantics (advertisement parsing, credentials, command protocol).
|
|
9
|
+
*/
|
|
10
|
+
/** Stable, machine-readable error codes. Never rename or remove a code. */
|
|
11
|
+
export declare const PluginBleErrorCode: {
|
|
12
|
+
readonly NOT_READY: "NOT_READY";
|
|
13
|
+
readonly TRANSPORT_UNAVAILABLE: "TRANSPORT_UNAVAILABLE";
|
|
14
|
+
readonly READER_NOT_FOUND: "READER_NOT_FOUND";
|
|
15
|
+
readonly READER_ACCESS_DENIED: "READER_ACCESS_DENIED";
|
|
16
|
+
readonly READER_OFFLINE: "READER_OFFLINE";
|
|
17
|
+
readonly READER_UNSUPPORTED: "READER_UNSUPPORTED";
|
|
18
|
+
readonly READER_BUSY: "READER_BUSY";
|
|
19
|
+
readonly PROFILE_NOT_REGISTERED: "PROFILE_NOT_REGISTERED";
|
|
20
|
+
readonly PROFILE_CONFLICT: "PROFILE_CONFLICT";
|
|
21
|
+
readonly INVALID_PROFILE: "INVALID_PROFILE";
|
|
22
|
+
readonly INVALID_ARGUMENT: "INVALID_ARGUMENT";
|
|
23
|
+
readonly ENDPOINT_NOT_FOUND: "ENDPOINT_NOT_FOUND";
|
|
24
|
+
readonly ENDPOINT_CONFLICT: "ENDPOINT_CONFLICT";
|
|
25
|
+
readonly ENDPOINT_BUSY: "ENDPOINT_BUSY";
|
|
26
|
+
readonly UNKNOWN_CHARACTERISTIC: "UNKNOWN_CHARACTERISTIC";
|
|
27
|
+
readonly OPERATION_NOT_ALLOWED: "OPERATION_NOT_ALLOWED";
|
|
28
|
+
readonly PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
|
|
29
|
+
readonly TIMEOUT: "TIMEOUT";
|
|
30
|
+
readonly CANCELLED: "CANCELLED";
|
|
31
|
+
readonly SESSION_CLOSED: "SESSION_CLOSED";
|
|
32
|
+
readonly DEVICE_NOT_FOUND: "DEVICE_NOT_FOUND";
|
|
33
|
+
readonly CONNECTION_FAILED: "CONNECTION_FAILED";
|
|
34
|
+
readonly DISCONNECTED: "DISCONNECTED";
|
|
35
|
+
readonly GATT_ERROR: "GATT_ERROR";
|
|
36
|
+
readonly NOTIFICATION_OVERFLOW: "NOTIFICATION_OVERFLOW";
|
|
37
|
+
readonly INTERNAL: "INTERNAL";
|
|
38
|
+
};
|
|
39
|
+
export type PluginBleErrorCode = (typeof PluginBleErrorCode)[keyof typeof PluginBleErrorCode];
|
|
40
|
+
/** Codes for which retrying the same call later can succeed without changing anything. */
|
|
41
|
+
export declare const PLUGIN_BLE_RETRYABLE_CODES: readonly PluginBleErrorCode[];
|
|
42
|
+
/**
|
|
43
|
+
* Error thrown (or rejected) by every BLE call. `detail` is a safe diagnostic and never contains payload bytes
|
|
44
|
+
* or credentials. Permission failures stay `PluginPermissionError`.
|
|
45
|
+
*/
|
|
46
|
+
export declare class PluginBleError extends Error {
|
|
47
|
+
readonly code: PluginBleErrorCode;
|
|
48
|
+
readonly retryable: boolean;
|
|
49
|
+
readonly operation?: string;
|
|
50
|
+
readonly detail?: string;
|
|
51
|
+
constructor(code: PluginBleErrorCode, message: string, options?: {
|
|
52
|
+
operation?: string;
|
|
53
|
+
detail?: string;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/** Host caps. Values are milliseconds unless the name says otherwise. */
|
|
57
|
+
export declare const PLUGIN_BLE_LIMITS: {
|
|
58
|
+
readonly opTimeoutDefaultMs: 10000;
|
|
59
|
+
readonly opTimeoutMaxMs: 60000;
|
|
60
|
+
readonly connectTimeoutDefaultMs: 15000;
|
|
61
|
+
readonly connectTimeoutMaxMs: 60000;
|
|
62
|
+
readonly leaseDefaultMs: 30000;
|
|
63
|
+
readonly leaseMaxMs: number;
|
|
64
|
+
readonly scanDefaultMs: 5000;
|
|
65
|
+
readonly scanMaxMs: 15000;
|
|
66
|
+
readonly notificationQueueDefault: 32;
|
|
67
|
+
readonly notificationQueueMax: 256;
|
|
68
|
+
readonly payloadMaxBytes: 512;
|
|
69
|
+
readonly labelMaxLength: 100;
|
|
70
|
+
};
|
|
71
|
+
export declare const PLUGIN_BLE_OPERATIONS: readonly ["read", "write", "writeWithoutResponse", "notify", "indicate"];
|
|
72
|
+
export type PluginBleOperation = (typeof PLUGIN_BLE_OPERATIONS)[number];
|
|
73
|
+
export type PluginBleAddressType = 'public' | 'random';
|
|
74
|
+
export type PluginBleCloseReason = 'closed' | 'lease-expired' | 'cancelled' | 'disconnected' | 'reader-access-revoked' | 'endpoint-deleted' | 'shutdown' | 'error';
|
|
75
|
+
export interface PluginBleCharacteristicDefinition {
|
|
76
|
+
/** Profile-local name used by every operation. Pattern `/^[a-zA-Z][a-zA-Z0-9_-]{0,31}$/`, unique per profile. */
|
|
77
|
+
key: string;
|
|
78
|
+
/** 16-bit, 32-bit or 128-bit UUID. Normalized to lowercase 128-bit. */
|
|
79
|
+
uuid: string;
|
|
80
|
+
/** Allowed operations: non-empty, no duplicates. */
|
|
81
|
+
operations: PluginBleOperation[];
|
|
82
|
+
/** 1..512, required when `read` is allowed. */
|
|
83
|
+
maxReadBytes?: number;
|
|
84
|
+
/** 1..512, required when `write` or `writeWithoutResponse` is allowed. */
|
|
85
|
+
maxWriteBytes?: number;
|
|
86
|
+
/** 1..512, required when `notify` or `indicate` is allowed. */
|
|
87
|
+
maxNotificationBytes?: number;
|
|
88
|
+
}
|
|
89
|
+
export interface PluginBleServiceDefinition {
|
|
90
|
+
uuid: string;
|
|
91
|
+
characteristics: PluginBleCharacteristicDefinition[];
|
|
92
|
+
}
|
|
93
|
+
export interface PluginBleAdvertisementFilter {
|
|
94
|
+
serviceUuids?: string[];
|
|
95
|
+
/** Bluetooth company identifiers, 0..0xffff. */
|
|
96
|
+
manufacturerIds?: number[];
|
|
97
|
+
namePrefix?: string;
|
|
98
|
+
}
|
|
99
|
+
export interface PluginBleProfileDefinition {
|
|
100
|
+
/** Pattern `/^[a-z0-9][a-z0-9-]{0,63}$/`, unique per plugin. */
|
|
101
|
+
id: string;
|
|
102
|
+
/** Without a filter the profile cannot scan. */
|
|
103
|
+
advertisement?: PluginBleAdvertisementFilter;
|
|
104
|
+
/** At least one service with at least one characteristic. */
|
|
105
|
+
services: PluginBleServiceDefinition[];
|
|
106
|
+
limits?: {
|
|
107
|
+
/** Session lease cap, 1..900000 ms (default 30000). */
|
|
108
|
+
maxSessionMs?: number;
|
|
109
|
+
/** Notification queue size per subscription, 1..256 (default 32). */
|
|
110
|
+
maxNotificationQueue?: number;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export interface PluginBleCharacteristic {
|
|
114
|
+
readonly key: string;
|
|
115
|
+
readonly uuid: string;
|
|
116
|
+
readonly operations: readonly PluginBleOperation[];
|
|
117
|
+
readonly maxReadBytes?: number;
|
|
118
|
+
readonly maxWriteBytes?: number;
|
|
119
|
+
readonly maxNotificationBytes?: number;
|
|
120
|
+
}
|
|
121
|
+
/** Normalized, deep-frozen profile returned by `registerProfile`. */
|
|
122
|
+
export interface PluginBleProfile {
|
|
123
|
+
readonly id: string;
|
|
124
|
+
readonly advertisement?: {
|
|
125
|
+
readonly serviceUuids: readonly string[];
|
|
126
|
+
readonly manufacturerIds: readonly number[];
|
|
127
|
+
readonly namePrefix?: string;
|
|
128
|
+
};
|
|
129
|
+
readonly services: ReadonlyArray<{
|
|
130
|
+
readonly uuid: string;
|
|
131
|
+
readonly characteristics: readonly PluginBleCharacteristic[];
|
|
132
|
+
}>;
|
|
133
|
+
readonly limits: {
|
|
134
|
+
readonly maxSessionMs: number;
|
|
135
|
+
readonly maxNotificationQueue: number;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
export interface PluginBleReader {
|
|
139
|
+
readerId: number;
|
|
140
|
+
name: string;
|
|
141
|
+
/** False when no transport driver is present or the reader cannot do BLE right now. */
|
|
142
|
+
available: boolean;
|
|
143
|
+
}
|
|
144
|
+
export interface PluginBleAdvertisement {
|
|
145
|
+
/** `XX:XX:XX:XX:XX:XX`, uppercase. */
|
|
146
|
+
address: string;
|
|
147
|
+
addressType: PluginBleAddressType;
|
|
148
|
+
rssi?: number;
|
|
149
|
+
name?: string;
|
|
150
|
+
/** Normalized 128-bit UUIDs. */
|
|
151
|
+
serviceUuids: string[];
|
|
152
|
+
manufacturerData: Array<{
|
|
153
|
+
companyId: number;
|
|
154
|
+
data: Uint8Array;
|
|
155
|
+
}>;
|
|
156
|
+
}
|
|
157
|
+
export interface PluginBleScanOptions {
|
|
158
|
+
/** Default 5000, max 15000. */
|
|
159
|
+
durationMs?: number;
|
|
160
|
+
signal?: AbortSignal;
|
|
161
|
+
}
|
|
162
|
+
export interface PluginBleEndpointInput {
|
|
163
|
+
readerId: number;
|
|
164
|
+
/** `XX:XX:XX:XX:XX:XX`, normalized to uppercase. */
|
|
165
|
+
address: string;
|
|
166
|
+
addressType: PluginBleAddressType;
|
|
167
|
+
profileId: string;
|
|
168
|
+
/** Max 100 characters. */
|
|
169
|
+
label?: string;
|
|
170
|
+
}
|
|
171
|
+
export interface PluginBleEndpointUpdate {
|
|
172
|
+
readerId?: number;
|
|
173
|
+
address?: string;
|
|
174
|
+
addressType?: PluginBleAddressType;
|
|
175
|
+
/** `null` clears the label. */
|
|
176
|
+
label?: string | null;
|
|
177
|
+
}
|
|
178
|
+
export interface PluginBleEndpoint {
|
|
179
|
+
/** Opaque stable id (UUID). */
|
|
180
|
+
id: string;
|
|
181
|
+
readerId: number;
|
|
182
|
+
address: string;
|
|
183
|
+
addressType: PluginBleAddressType;
|
|
184
|
+
profileId: string;
|
|
185
|
+
label: string | null;
|
|
186
|
+
createdAt: Date;
|
|
187
|
+
updatedAt: Date;
|
|
188
|
+
}
|
|
189
|
+
export interface PluginBleSessionOptions {
|
|
190
|
+
/** Aborting closes the session (or cancels the connect). */
|
|
191
|
+
signal?: AbortSignal;
|
|
192
|
+
/** Session lease, default 30000, capped by the profile's `maxSessionMs` (max 900000). */
|
|
193
|
+
leaseMs?: number;
|
|
194
|
+
/** Default 15000, max 60000. */
|
|
195
|
+
connectTimeoutMs?: number;
|
|
196
|
+
}
|
|
197
|
+
export interface PluginBleCallOptions {
|
|
198
|
+
signal?: AbortSignal;
|
|
199
|
+
/** Default 10000, max 60000. */
|
|
200
|
+
timeoutMs?: number;
|
|
201
|
+
}
|
|
202
|
+
export interface PluginBleWriteOptions extends PluginBleCallOptions {
|
|
203
|
+
/** Requires the `writeWithoutResponse` operation; otherwise `write` is required. */
|
|
204
|
+
withoutResponse?: boolean;
|
|
205
|
+
}
|
|
206
|
+
export interface PluginBleNotification {
|
|
207
|
+
key: string;
|
|
208
|
+
value: Uint8Array;
|
|
209
|
+
receivedAt: Date;
|
|
210
|
+
}
|
|
211
|
+
export interface PluginBleNotificationStream extends AsyncIterable<PluginBleNotification> {
|
|
212
|
+
/** Resolves with the next notification, in arrival order. Rejects with `TIMEOUT` or `CANCELLED` without closing the stream. */
|
|
213
|
+
next(options?: {
|
|
214
|
+
timeoutMs?: number;
|
|
215
|
+
signal?: AbortSignal;
|
|
216
|
+
}): Promise<PluginBleNotification>;
|
|
217
|
+
unsubscribe(): Promise<void>;
|
|
218
|
+
}
|
|
219
|
+
export interface PluginBleSession {
|
|
220
|
+
readonly id: string;
|
|
221
|
+
readonly endpointId: string;
|
|
222
|
+
read(key: string, options?: PluginBleCallOptions): Promise<Uint8Array>;
|
|
223
|
+
write(key: string, value: Uint8Array, options?: PluginBleWriteOptions): Promise<void>;
|
|
224
|
+
subscribe(key: string, options?: {
|
|
225
|
+
signal?: AbortSignal;
|
|
226
|
+
}): Promise<PluginBleNotificationStream>;
|
|
227
|
+
unsubscribe(key: string): Promise<void>;
|
|
228
|
+
/** Idempotent. */
|
|
229
|
+
close(): Promise<void>;
|
|
230
|
+
/** Resolves (never rejects) once the session ended, with the reason. */
|
|
231
|
+
readonly closed: Promise<{
|
|
232
|
+
reason: PluginBleCloseReason;
|
|
233
|
+
}>;
|
|
234
|
+
}
|
|
235
|
+
/** `context.ble`. Requires the `BLE_TRANSPORT` permission. */
|
|
236
|
+
export interface PluginBleContext {
|
|
237
|
+
/** Synchronous and valid at any time, including plugin constructors and module scope. */
|
|
238
|
+
registerProfile(definition: PluginBleProfileDefinition): PluginBleProfile;
|
|
239
|
+
listReaders(): Promise<PluginBleReader[]>;
|
|
240
|
+
scan(readerId: number, profileId: string, options?: PluginBleScanOptions): Promise<PluginBleAdvertisement[]>;
|
|
241
|
+
createEndpoint(input: PluginBleEndpointInput): Promise<PluginBleEndpoint>;
|
|
242
|
+
getEndpoint(id: string): Promise<PluginBleEndpoint>;
|
|
243
|
+
listEndpoints(): Promise<PluginBleEndpoint[]>;
|
|
244
|
+
updateEndpoint(id: string, update: PluginBleEndpointUpdate): Promise<PluginBleEndpoint>;
|
|
245
|
+
deleteEndpoint(id: string): Promise<void>;
|
|
246
|
+
openSession(endpointId: string, options?: PluginBleSessionOptions): Promise<PluginBleSession>;
|
|
247
|
+
/** Opens a session, runs `fn` and always closes the session, also when `fn` throws. */
|
|
248
|
+
withSession<T>(endpointId: string, fn: (session: PluginBleSession) => Promise<T>, options?: PluginBleSessionOptions): Promise<T>;
|
|
249
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Plugin BLE transport contract (permission `BLE_TRANSPORT`).
|
|
4
|
+
*
|
|
5
|
+
* The contract is deliberately NOT a raw GATT API. A plugin registers an immutable profile (the services,
|
|
6
|
+
* characteristics, operations and payload bounds it may touch), binds an endpoint to a physical device through
|
|
7
|
+
* an administrator-approved Attractap reader, and then talks to the device through a session that only accepts
|
|
8
|
+
* profile keys. Core owns reader access, identity, bounds, ownership, deadlines and cleanup; the plugin owns the
|
|
9
|
+
* vendor semantics (advertisement parsing, credentials, command protocol).
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PLUGIN_BLE_OPERATIONS = exports.PLUGIN_BLE_LIMITS = exports.PluginBleError = exports.PLUGIN_BLE_RETRYABLE_CODES = exports.PluginBleErrorCode = void 0;
|
|
13
|
+
/** Stable, machine-readable error codes. Never rename or remove a code. */
|
|
14
|
+
exports.PluginBleErrorCode = {
|
|
15
|
+
NOT_READY: 'NOT_READY',
|
|
16
|
+
TRANSPORT_UNAVAILABLE: 'TRANSPORT_UNAVAILABLE',
|
|
17
|
+
READER_NOT_FOUND: 'READER_NOT_FOUND',
|
|
18
|
+
READER_ACCESS_DENIED: 'READER_ACCESS_DENIED',
|
|
19
|
+
READER_OFFLINE: 'READER_OFFLINE',
|
|
20
|
+
READER_UNSUPPORTED: 'READER_UNSUPPORTED',
|
|
21
|
+
READER_BUSY: 'READER_BUSY',
|
|
22
|
+
PROFILE_NOT_REGISTERED: 'PROFILE_NOT_REGISTERED',
|
|
23
|
+
PROFILE_CONFLICT: 'PROFILE_CONFLICT',
|
|
24
|
+
INVALID_PROFILE: 'INVALID_PROFILE',
|
|
25
|
+
INVALID_ARGUMENT: 'INVALID_ARGUMENT',
|
|
26
|
+
ENDPOINT_NOT_FOUND: 'ENDPOINT_NOT_FOUND',
|
|
27
|
+
ENDPOINT_CONFLICT: 'ENDPOINT_CONFLICT',
|
|
28
|
+
ENDPOINT_BUSY: 'ENDPOINT_BUSY',
|
|
29
|
+
UNKNOWN_CHARACTERISTIC: 'UNKNOWN_CHARACTERISTIC',
|
|
30
|
+
OPERATION_NOT_ALLOWED: 'OPERATION_NOT_ALLOWED',
|
|
31
|
+
PAYLOAD_TOO_LARGE: 'PAYLOAD_TOO_LARGE',
|
|
32
|
+
TIMEOUT: 'TIMEOUT',
|
|
33
|
+
CANCELLED: 'CANCELLED',
|
|
34
|
+
SESSION_CLOSED: 'SESSION_CLOSED',
|
|
35
|
+
DEVICE_NOT_FOUND: 'DEVICE_NOT_FOUND',
|
|
36
|
+
CONNECTION_FAILED: 'CONNECTION_FAILED',
|
|
37
|
+
DISCONNECTED: 'DISCONNECTED',
|
|
38
|
+
GATT_ERROR: 'GATT_ERROR',
|
|
39
|
+
NOTIFICATION_OVERFLOW: 'NOTIFICATION_OVERFLOW',
|
|
40
|
+
INTERNAL: 'INTERNAL',
|
|
41
|
+
};
|
|
42
|
+
/** Codes for which retrying the same call later can succeed without changing anything. */
|
|
43
|
+
exports.PLUGIN_BLE_RETRYABLE_CODES = [
|
|
44
|
+
exports.PluginBleErrorCode.NOT_READY,
|
|
45
|
+
exports.PluginBleErrorCode.TRANSPORT_UNAVAILABLE,
|
|
46
|
+
exports.PluginBleErrorCode.READER_OFFLINE,
|
|
47
|
+
exports.PluginBleErrorCode.READER_BUSY,
|
|
48
|
+
exports.PluginBleErrorCode.ENDPOINT_BUSY,
|
|
49
|
+
exports.PluginBleErrorCode.TIMEOUT,
|
|
50
|
+
exports.PluginBleErrorCode.DEVICE_NOT_FOUND,
|
|
51
|
+
exports.PluginBleErrorCode.CONNECTION_FAILED,
|
|
52
|
+
exports.PluginBleErrorCode.DISCONNECTED,
|
|
53
|
+
];
|
|
54
|
+
/**
|
|
55
|
+
* Error thrown (or rejected) by every BLE call. `detail` is a safe diagnostic and never contains payload bytes
|
|
56
|
+
* or credentials. Permission failures stay `PluginPermissionError`.
|
|
57
|
+
*/
|
|
58
|
+
class PluginBleError extends Error {
|
|
59
|
+
constructor(code, message, options = {}) {
|
|
60
|
+
super(message);
|
|
61
|
+
this.name = 'PluginBleError';
|
|
62
|
+
this.code = code;
|
|
63
|
+
this.retryable = exports.PLUGIN_BLE_RETRYABLE_CODES.includes(code);
|
|
64
|
+
this.operation = options.operation;
|
|
65
|
+
this.detail = options.detail;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.PluginBleError = PluginBleError;
|
|
69
|
+
/** Host caps. Values are milliseconds unless the name says otherwise. */
|
|
70
|
+
exports.PLUGIN_BLE_LIMITS = {
|
|
71
|
+
opTimeoutDefaultMs: 10000,
|
|
72
|
+
opTimeoutMaxMs: 60000,
|
|
73
|
+
connectTimeoutDefaultMs: 15000,
|
|
74
|
+
connectTimeoutMaxMs: 60000,
|
|
75
|
+
leaseDefaultMs: 30000,
|
|
76
|
+
leaseMaxMs: 15 * 60000,
|
|
77
|
+
scanDefaultMs: 5000,
|
|
78
|
+
scanMaxMs: 15000,
|
|
79
|
+
notificationQueueDefault: 32,
|
|
80
|
+
notificationQueueMax: 256,
|
|
81
|
+
payloadMaxBytes: 512,
|
|
82
|
+
labelMaxLength: 100,
|
|
83
|
+
};
|
|
84
|
+
exports.PLUGIN_BLE_OPERATIONS = ['read', 'write', 'writeWithoutResponse', 'notify', 'indicate'];
|
|
85
|
+
//# sourceMappingURL=plugin-ble.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-ble.js","sourceRoot":"","sources":["../../../../../libs/plugins-backend-sdk/src/lib/plugin-ble.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH,2EAA2E;AAC9D,QAAA,kBAAkB,GAAG;IAChC,SAAS,EAAE,WAAW;IACtB,qBAAqB,EAAE,uBAAuB;IAC9C,gBAAgB,EAAE,kBAAkB;IACpC,oBAAoB,EAAE,sBAAsB;IAC5C,cAAc,EAAE,gBAAgB;IAChC,kBAAkB,EAAE,oBAAoB;IACxC,WAAW,EAAE,aAAa;IAC1B,sBAAsB,EAAE,wBAAwB;IAChD,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;IAClC,gBAAgB,EAAE,kBAAkB;IACpC,kBAAkB,EAAE,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB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mBAAmB,EAAE,KAAM;IAC3B,cAAc,EAAE,KAAM;IACtB,UAAU,EAAE,EAAE,GAAG,KAAM;IACvB,aAAa,EAAE,IAAK;IACpB,SAAS,EAAE,KAAM;IACjB,wBAAwB,EAAE,EAAE;IAC5B,oBAAoB,EAAE,GAAG;IACzB,eAAe,EAAE,GAAG;IACpB,cAAc,EAAE,GAAG;CACX,CAAC;AAEE,QAAA,qBAAqB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAC"}
|
|
@@ -7,6 +7,7 @@ import type { PluginReaderUiApi, PluginStartBlockedApi } from './reader-ui';
|
|
|
7
7
|
import type { PluginNotificationsContext } from './plugin-notifications';
|
|
8
8
|
import type { PluginResourceAccessContext } from './plugin-resource-access';
|
|
9
9
|
import type { PluginLiveUpdatesContext } from './plugin-live-updates';
|
|
10
|
+
import type { PluginBleContext } from './plugin-ble';
|
|
10
11
|
import { SystemEvent, SystemEventHandler, SystemEventPayload, SystemEventSubscription } from './plugin.interface';
|
|
11
12
|
/**
|
|
12
13
|
* DI token under which the host registers its MqttServerHostProvider
|
|
@@ -120,6 +121,11 @@ export interface PluginContext {
|
|
|
120
121
|
readonly audit?: PluginAuditContext;
|
|
121
122
|
/** Reader UI helpers. Guarded getter: throws PluginPermissionError without READER_UI. */
|
|
122
123
|
readonly readerUi?: PluginReaderUiApi;
|
|
124
|
+
/**
|
|
125
|
+
* BLE transport through administrator-approved Attractap readers. Guarded getter: throws PluginPermissionError
|
|
126
|
+
* without BLE_TRANSPORT. Optional so plugins still type-check against hosts predating it.
|
|
127
|
+
*/
|
|
128
|
+
readonly ble?: PluginBleContext;
|
|
123
129
|
/** This plugin's own manifest (name, version, directory, id). */
|
|
124
130
|
readonly manifest: PluginManifestInfo;
|
|
125
131
|
/** Shared application event bus — the same EventEmitter2 instance the host uses. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-context.js","sourceRoot":"","sources":["../../../../../libs/plugins-backend-sdk/src/lib/plugin-context.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"plugin-context.js","sourceRoot":"","sources":["../../../../../libs/plugins-backend-sdk/src/lib/plugin-context.ts"],"names":[],"mappings":";;;AAWA;;;;GAIG;AACU,QAAA,yBAAyB,GAAG,MAAM,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;AA4EhG;;;GAGG;AACU,QAAA,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC"}
|
|
@@ -11,7 +11,22 @@ export declare enum SystemEvent {
|
|
|
11
11
|
/** A user took over a running session. Fires for the NEW user. */
|
|
12
12
|
RESOURCE_USAGE_SESSION_TAKEN_OVER = "RESOURCE_USAGE_SESSION_TAKEN_OVER",
|
|
13
13
|
/** A session ended, either explicitly or because it was taken over. */
|
|
14
|
-
RESOURCE_USAGE_SESSION_ENDED = "RESOURCE_USAGE_SESSION_ENDED"
|
|
14
|
+
RESOURCE_USAGE_SESSION_ENDED = "RESOURCE_USAGE_SESSION_ENDED",
|
|
15
|
+
/**
|
|
16
|
+
* The effective session limit of a resource changed (`maxParallelSessions`, or a type change that changes the
|
|
17
|
+
* limit). Fires after commit. See {@link ResourceSessionLimitChangedPayload}.
|
|
18
|
+
*/
|
|
19
|
+
RESOURCE_SESSION_LIMIT_CHANGED = "RESOURCE_SESSION_LIMIT_CHANGED"
|
|
20
|
+
}
|
|
21
|
+
/** Emitted after the effective session limit of a resource changed (committed to the database). */
|
|
22
|
+
export interface ResourceSessionLimitChangedPayload {
|
|
23
|
+
resourceId: number;
|
|
24
|
+
/** Effective limit before the change (1 for doors and other non-machine types). */
|
|
25
|
+
previousLimit: number;
|
|
26
|
+
/** Effective limit after the change. */
|
|
27
|
+
newLimit: number;
|
|
28
|
+
/** The user who made the change, or null when the change was not made by a user. */
|
|
29
|
+
actorUserId: number | null;
|
|
15
30
|
}
|
|
16
31
|
/** Emitted after a maintenance window was created, updated or finished (committed to the database). */
|
|
17
32
|
export interface MaintenanceChangedPayload {
|
|
@@ -76,6 +91,7 @@ export type SystemEventPayload = {
|
|
|
76
91
|
[SystemEvent.RESOURCE_USAGE_SESSION_STARTED]: ResourceUsageSessionStartedPayload;
|
|
77
92
|
[SystemEvent.RESOURCE_USAGE_SESSION_TAKEN_OVER]: ResourceUsageSessionTakenOverPayload;
|
|
78
93
|
[SystemEvent.RESOURCE_USAGE_SESSION_ENDED]: ResourceUsageSessionEndedPayload;
|
|
94
|
+
[SystemEvent.RESOURCE_SESSION_LIMIT_CHANGED]: ResourceSessionLimitChangedPayload;
|
|
79
95
|
};
|
|
80
96
|
export type SystemEventResponse = {
|
|
81
97
|
[E in SystemEvent]: null;
|
|
@@ -124,7 +140,9 @@ export declare enum PluginPermission {
|
|
|
124
140
|
/** Register pre-start and session-end hooks that can confirm or block session starts. */
|
|
125
141
|
ACCESS_HOOKS = "ACCESS_HOOKS",
|
|
126
142
|
/** Send in-app, push and email notifications to users via notifications.dispatch(). */
|
|
127
|
-
SEND_NOTIFICATIONS = "SEND_NOTIFICATIONS"
|
|
143
|
+
SEND_NOTIFICATIONS = "SEND_NOTIFICATIONS",
|
|
144
|
+
/** Use the Bluetooth radio of administrator-approved Attractap readers through context.ble, limited to the plugin's own BLE profiles. */
|
|
145
|
+
BLE_TRANSPORT = "BLE_TRANSPORT"
|
|
128
146
|
}
|
|
129
147
|
/**
|
|
130
148
|
* Human-readable description of each permission, surfaced to admins and plugin
|
|
@@ -16,6 +16,11 @@ var SystemEvent;
|
|
|
16
16
|
SystemEvent["RESOURCE_USAGE_SESSION_TAKEN_OVER"] = "RESOURCE_USAGE_SESSION_TAKEN_OVER";
|
|
17
17
|
/** A session ended, either explicitly or because it was taken over. */
|
|
18
18
|
SystemEvent["RESOURCE_USAGE_SESSION_ENDED"] = "RESOURCE_USAGE_SESSION_ENDED";
|
|
19
|
+
/**
|
|
20
|
+
* The effective session limit of a resource changed (`maxParallelSessions`, or a type change that changes the
|
|
21
|
+
* limit). Fires after commit. See {@link ResourceSessionLimitChangedPayload}.
|
|
22
|
+
*/
|
|
23
|
+
SystemEvent["RESOURCE_SESSION_LIMIT_CHANGED"] = "RESOURCE_SESSION_LIMIT_CHANGED";
|
|
19
24
|
})(SystemEvent || (exports.SystemEvent = SystemEvent = {}));
|
|
20
25
|
/**
|
|
21
26
|
* Discrete host capabilities a plugin may request in its manifest. A plugin can
|
|
@@ -50,6 +55,8 @@ var PluginPermission;
|
|
|
50
55
|
PluginPermission["ACCESS_HOOKS"] = "ACCESS_HOOKS";
|
|
51
56
|
/** Send in-app, push and email notifications to users via notifications.dispatch(). */
|
|
52
57
|
PluginPermission["SEND_NOTIFICATIONS"] = "SEND_NOTIFICATIONS";
|
|
58
|
+
/** Use the Bluetooth radio of administrator-approved Attractap readers through context.ble, limited to the plugin's own BLE profiles. */
|
|
59
|
+
PluginPermission["BLE_TRANSPORT"] = "BLE_TRANSPORT";
|
|
53
60
|
})(PluginPermission || (exports.PluginPermission = PluginPermission = {}));
|
|
54
61
|
/**
|
|
55
62
|
* Human-readable description of each permission, surfaced to admins and plugin
|
|
@@ -69,6 +76,7 @@ exports.PLUGIN_PERMISSION_DESCRIPTIONS = {
|
|
|
69
76
|
[PluginPermission.READER_UI]: 'Show widgets on Attractap reader screens.',
|
|
70
77
|
[PluginPermission.ACCESS_HOOKS]: 'Ask users for confirmation or block resource session starts through pre-start hooks.',
|
|
71
78
|
[PluginPermission.SEND_NOTIFICATIONS]: 'Send notifications to users (in-app, push and email) under plugin-declared notification categories.',
|
|
79
|
+
[PluginPermission.BLE_TRANSPORT]: 'Use the Bluetooth radio of Attractap readers that an administrator opened for plugins, limited to the BLE profiles this plugin registers.',
|
|
72
80
|
};
|
|
73
81
|
/**
|
|
74
82
|
* Returns true when the given string is a known PluginPermission value.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.interface.js","sourceRoot":"","sources":["../../../../../libs/plugins-backend-sdk/src/lib/plugin.interface.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"plugin.interface.js","sourceRoot":"","sources":["../../../../../libs/plugins-backend-sdk/src/lib/plugin.interface.ts"],"names":[],"mappings":";;;AAuLA,gDAEC;AAvLD,IAAY,WAkBX;AAlBD,WAAY,WAAW;IACrB,gEAAiD,CAAA;IACjD,4DAA6C,CAAA;IAC7C,oGAAoG;IACpG,0DAA2C,CAAA;IAC3C,wFAAwF;IACxF,kEAAmD,CAAA;IACnD,qEAAqE;IACrE,gFAAiE,CAAA;IACjE,kEAAkE;IAClE,sFAAuE,CAAA;IACvE,uEAAuE;IACvE,4EAA6D,CAAA;IAC7D;;;OAGG;IACH,gFAAiE,CAAA;AACnE,CAAC,EAlBW,WAAW,2BAAX,WAAW,QAkBtB;AAmGD;;;;GAIG;AACH,IAAY,gBA6BX;AA7BD,WAAY,gBAAgB;IAC1B,wDAAwD;IACxD,6CAAyB,CAAA;IACzB,sEAAsE;IACtE,yDAAqC,CAAA;IACrC,8DAA8D;IAC9D,mDAA+B,CAAA;IAC/B,0DAA0D;IAC1D,uDAAmC,CAAA;IACnC,wEAAwE;IACxE,+CAA2B,CAAA;IAC3B,4EAA4E;IAC5E,mDAA+B,CAAA;IAC/B,mEAAmE;IACnE,qEAAiD,CAAA;IACjD,gGAAgG;IAChG,+DAA2C,CAAA;IAC3C,0EAA0E;IAC1E,mDAA+B,CAAA;IAC/B,qFAAqF;IACrF,qDAAiC,CAAA;IACjC,iEAAiE;IACjE,2CAAuB,CAAA;IACvB,yFAAyF;IACzF,iDAA6B,CAAA;IAC7B,uFAAuF;IACvF,6DAAyC,CAAA;IACzC,yIAAyI;IACzI,mDAA+B,CAAA;AACjC,CAAC,EA7BW,gBAAgB,gCAAhB,gBAAgB,QA6B3B;AAED;;;GAGG;AACU,QAAA,8BAA8B,GAAqC;IAC9E,CAAC,gBAAgB,CAAC,UAAU,CAAC,EAAE,uCAAuC;IACtE,CAAC,gBAAgB,CAAC,gBAAgB,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
package/src/lib/reader-ui.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* The firmware mirrors the constants in `display/ui/ui_schema.hpp`; a Jest
|
|
7
7
|
* parity test keeps both in sync.
|
|
8
8
|
*/
|
|
9
|
+
import type { EntityManager } from 'typeorm';
|
|
9
10
|
import type { PluginAccessPrincipal } from './plugin-resource-access';
|
|
10
11
|
export type ReaderUiTone = 'primary' | 'success' | 'warning' | 'danger';
|
|
11
12
|
export type ReaderUiIconName = 'ok' | 'warning' | 'bell' | 'lock' | 'clock';
|
|
@@ -276,6 +277,47 @@ export interface PluginStartBlockedApi {
|
|
|
276
277
|
resourceId: number;
|
|
277
278
|
}): void;
|
|
278
279
|
}
|
|
280
|
+
export interface StartCapacityContext {
|
|
281
|
+
resourceId: number;
|
|
282
|
+
/** The starter. */
|
|
283
|
+
userId: number;
|
|
284
|
+
/** The starter as a `resourceAccess` principal (see {@link PreStartContext.principal}). */
|
|
285
|
+
principal: PluginAccessPrincipal;
|
|
286
|
+
/**
|
|
287
|
+
* The host's serialized start transaction. Read through it and never start `runSerialized` inside the hook: the
|
|
288
|
+
* transaction would wait for itself.
|
|
289
|
+
*/
|
|
290
|
+
manager: EntityManager;
|
|
291
|
+
/** Always `start` for now: the hook only runs when a start adds a session (shared machines have no takeover). */
|
|
292
|
+
action: 'start' | 'takeover';
|
|
293
|
+
origin: PreStartOrigin;
|
|
294
|
+
/** Effective session limit of the machine (always above 1 here). */
|
|
295
|
+
sessionLimit: number;
|
|
296
|
+
/** Slots taken by sessions and by starts that are in progress, read in the same transaction. */
|
|
297
|
+
occupiedSlots: number;
|
|
298
|
+
/** The users behind `occupiedSlots` (sessions and starts in progress), read in the same transaction. */
|
|
299
|
+
usersInSession: number[];
|
|
300
|
+
/** Only this plugin's step keys confirmed in the same start attempt. */
|
|
301
|
+
confirmedStepKeys: string[];
|
|
302
|
+
/** Language for texts: the card user's on a reader, the user's preferred language elsewhere. */
|
|
303
|
+
language: 'en' | 'de';
|
|
304
|
+
now: Date;
|
|
305
|
+
}
|
|
306
|
+
export interface StartCapacityResult {
|
|
307
|
+
/** Slots the plugin holds back from this starter (a non-negative integer). */
|
|
308
|
+
heldSlots: number;
|
|
309
|
+
/** Shown when the host refuses the start because `occupiedSlots + heldSlots` reaches the limit. */
|
|
310
|
+
reason?: PluginBlockReason;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Atomic capacity counterpart of `preStartHook`: on machines with more than one parallel session the host calls it
|
|
314
|
+
* INSIDE the serialized start transaction, after its own capacity check. The host refuses the start with the plugin's
|
|
315
|
+
* block reason when `occupiedSlots + heldSlots >= sessionLimit`, so simultaneous starts can never take a held slot.
|
|
316
|
+
* Keep it to one indexed query on `ctx.manager`. Failure, timeout and an open breaker follow the per-resource failure
|
|
317
|
+
* policy of the plugin, like `preStartHook`. Requires ACCESS_HOOKS and DATABASE_ACCESS (it is handed the host's
|
|
318
|
+
* transaction).
|
|
319
|
+
*/
|
|
320
|
+
export type StartCapacityHook = (ctx: StartCapacityContext) => StartCapacityResult | Promise<StartCapacityResult>;
|
|
279
321
|
export interface SessionEndContext {
|
|
280
322
|
resourceId: number;
|
|
281
323
|
userId: number;
|
package/src/lib/reader-ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reader-ui.js","sourceRoot":"","sources":["../../../../../libs/plugins-backend-sdk/src/lib/reader-ui.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;
|
|
1
|
+
{"version":3,"file":"reader-ui.js","sourceRoot":"","sources":["../../../../../libs/plugins-backend-sdk/src/lib/reader-ui.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AA2BU,QAAA,wBAAwB,GAAG,CAAC,CAAC;AAE7B,QAAA,oBAAoB,GAAG;IAClC,KAAK;IACL,KAAK;IACL,MAAM;IACN,OAAO;IACP,MAAM;IACN,QAAQ;IACR,UAAU;IACV,WAAW;IACX,QAAQ;CACA,CAAC;AAGE,QA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