@thingd/native 0.74.3 → 0.76.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.
- package/README.md +6 -0
- package/index.d.ts +8 -1
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/thingd_native.node +0 -0
- package/prebuilds/darwin-x64/thingd_native.node +0 -0
- package/prebuilds/linux-arm64/thingd_native.node +0 -0
- package/prebuilds/linux-x64/thingd_native.node +0 -0
- package/prebuilds/win32-x64/thingd_native.node +0 -0
package/README.md
CHANGED
|
@@ -5,3 +5,9 @@
|
|
|
5
5
|
Native Node.js binding for [thingd](https://github.com/sayanmohsin/thingd) — wraps `crates/thingd` (published on crates.io as `thingd`).
|
|
6
6
|
|
|
7
7
|
This package is an internal dependency of `@thingd/sdk` and provides the native persistent store via napi-rs. You don't need to install it directly — `@thingd/sdk` pulls it in automatically when using `driver: "native"`.
|
|
8
|
+
|
|
9
|
+
The native open boundary accepts an optional 64-character hexadecimal key for
|
|
10
|
+
authenticated encrypted storage. The key is validated before opening the Rust
|
|
11
|
+
engine. Missing or wrong keys are reported as stable open errors without
|
|
12
|
+
including key material. MCP and REST callers do not pass this key in requests;
|
|
13
|
+
the host process supplies it during startup.
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export class NativeThingStore {
|
|
2
|
-
static open(path: string): NativeThingStore;
|
|
2
|
+
static open(path: string, encryptionKey?: string): NativeThingStore;
|
|
3
|
+
static reencrypt(
|
|
4
|
+
sourcePath: string,
|
|
5
|
+
destinationPath: string,
|
|
6
|
+
sourceKey?: string,
|
|
7
|
+
destinationKey?: string,
|
|
8
|
+
allowPlaintextOutput?: boolean
|
|
9
|
+
): void;
|
|
3
10
|
|
|
4
11
|
putObjectJson(collection: string, id: string, body: string): string;
|
|
5
12
|
getObjectJson(collection: string, id: string): string | null;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|