@byok-sdk/core 0.31.0 → 0.33.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/dist/board.d.ts +2 -0
- package/dist/errors.d.ts +1 -0
- package/dist/in-memory/archive-access.d.ts +25 -0
- package/dist/in-memory/board.d.ts +1 -0
- package/dist/in-memory/mailbox.d.ts +8 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/mailbox.d.ts +83 -12
- package/dist/presence.d.ts +22 -0
- package/dist/sealed-payload/index.js.map +1 -1
- package/dist/sealed-payload/scope-key.d.ts +0 -2
- package/dist/store-compatibility.d.ts +37 -0
- package/package.json +2 -2
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { WebCryptoKey } from '../webcrypto';
|
|
2
2
|
import { type Bytes, type P256PublicJwk } from './primitives';
|
|
3
3
|
export declare const SCOPE_KEY_BYTES = 32;
|
|
4
|
-
/** 16 bytes of the key-id HMAC, as unpadded base64url. */
|
|
5
|
-
export declare const SCOPE_KEY_ID_LENGTH = 22;
|
|
6
4
|
export declare const SCOPE_KEY_ID_PATTERN: RegExp;
|
|
7
5
|
/** Byte length of the per-content HKDF salt. */
|
|
8
6
|
export declare const SEALED_SALT_BYTES = 32;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The result type of the store compatibility precheck (#1102).
|
|
3
|
+
*
|
|
4
|
+
* Each local store is inspected by the package that owns it, with that
|
|
5
|
+
* package's own open path run on a private copy of the files, so the store's
|
|
6
|
+
* code stays the one authority on what it accepts:
|
|
7
|
+
*
|
|
8
|
+
* - `server-sqlite`: `inspectSqliteStore` in `@byok-sdk/server`
|
|
9
|
+
* - `keys-profile-store`: `inspectProviderProfileStore` in `@byok-sdk/keys`
|
|
10
|
+
* - `client-journal` and `pi-durable`: `inspectDaemonStores` in `@byok-sdk/client`
|
|
11
|
+
*
|
|
12
|
+
* The ids are the `store:<id>` items of the upgrade manifest
|
|
13
|
+
* (`docs/upgrade-manifest.md`). The hosted Postgres store is checked by
|
|
14
|
+
* `release-pack-migrate`, not here.
|
|
15
|
+
*/
|
|
16
|
+
export type LocalStoreId = 'server-sqlite' | 'client-journal' | 'keys-profile-store' | 'pi-durable';
|
|
17
|
+
/**
|
|
18
|
+
* What the build that ran the check does when it opens the store:
|
|
19
|
+
*
|
|
20
|
+
* - `accepted`: it opens the store and keeps its data.
|
|
21
|
+
* - `new-path-repair`: it refuses the store as an older format. Start on a new
|
|
22
|
+
* path and pair or provision again; the old files stay as they are.
|
|
23
|
+
* - `rejected`: it refuses the store for another reason (a newer format, a
|
|
24
|
+
* damaged file, or data this build will not adopt). The operator resolves
|
|
25
|
+
* it; `code` and `reason` say what the store reported.
|
|
26
|
+
* - `absent`: there is no store at the path yet, so nothing blocks the switch.
|
|
27
|
+
*/
|
|
28
|
+
export type StoreCompatibilityVerdict = 'accepted' | 'new-path-repair' | 'rejected' | 'absent';
|
|
29
|
+
export interface StoreCompatibility {
|
|
30
|
+
readonly store: LocalStoreId;
|
|
31
|
+
/** The store file that was inspected. */
|
|
32
|
+
readonly path: string;
|
|
33
|
+
readonly verdict: StoreCompatibilityVerdict;
|
|
34
|
+
/** The error code the store reported when it refused the file. */
|
|
35
|
+
readonly code?: string;
|
|
36
|
+
readonly reason: string;
|
|
37
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byok-sdk/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "BYOK SDK platform contracts: branded tenant identity, tenant-first store ports, device proof canonicalization, and the composition conformance reference",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"clean": "rm -rf dist"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"zod": "^4.
|
|
51
|
+
"zod": "^4.6.6"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@hpke/core": "1.9.0"
|