pendra 0.13.1 → 0.14.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/index.d.mts +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.js +541 -532
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +541 -532
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -555,22 +555,25 @@ declare class Rerank {
|
|
|
555
555
|
|
|
556
556
|
interface ResponseInner {
|
|
557
557
|
v?: number;
|
|
558
|
+
/** Legacy v1 encapsulated key. A v2 client refuses any frame carrying it. */
|
|
558
559
|
enc?: string;
|
|
560
|
+
kid?: string;
|
|
559
561
|
seq: number;
|
|
560
562
|
ciphertext: string;
|
|
561
563
|
}
|
|
562
564
|
/**
|
|
563
|
-
* Decrypts a worker's sealed response.
|
|
564
|
-
*
|
|
565
|
-
* monotonic `seq` across
|
|
565
|
+
* Decrypts a worker's sealed response. The first frame names the `kid` the
|
|
566
|
+
* worker opened; its response key (from {@link sealRequest}) decrypts every
|
|
567
|
+
* frame. Refuses any frame not in v2 form and enforces a monotonic `seq` across
|
|
568
|
+
* streaming chunks.
|
|
566
569
|
*/
|
|
567
570
|
declare class ResponseDecryptor {
|
|
568
|
-
private
|
|
571
|
+
private keys;
|
|
569
572
|
private dek;
|
|
570
573
|
private nextSeq;
|
|
571
|
-
constructor(
|
|
574
|
+
constructor(responseKeys: Map<string, Uint8Array>);
|
|
572
575
|
private ensureDek;
|
|
573
|
-
/** Decrypt a non-streaming result envelope `{v,
|
|
576
|
+
/** Decrypt a non-streaming result envelope `{v, kid, seq, ciphertext}`. */
|
|
574
577
|
openResult(inner: ResponseInner): Uint8Array;
|
|
575
578
|
/** Decrypt one streaming chunk envelope, enforcing monotonic `seq`. */
|
|
576
579
|
openChunk(inner: ResponseInner): Uint8Array;
|
package/dist/index.d.ts
CHANGED
|
@@ -555,22 +555,25 @@ declare class Rerank {
|
|
|
555
555
|
|
|
556
556
|
interface ResponseInner {
|
|
557
557
|
v?: number;
|
|
558
|
+
/** Legacy v1 encapsulated key. A v2 client refuses any frame carrying it. */
|
|
558
559
|
enc?: string;
|
|
560
|
+
kid?: string;
|
|
559
561
|
seq: number;
|
|
560
562
|
ciphertext: string;
|
|
561
563
|
}
|
|
562
564
|
/**
|
|
563
|
-
* Decrypts a worker's sealed response.
|
|
564
|
-
*
|
|
565
|
-
* monotonic `seq` across
|
|
565
|
+
* Decrypts a worker's sealed response. The first frame names the `kid` the
|
|
566
|
+
* worker opened; its response key (from {@link sealRequest}) decrypts every
|
|
567
|
+
* frame. Refuses any frame not in v2 form and enforces a monotonic `seq` across
|
|
568
|
+
* streaming chunks.
|
|
566
569
|
*/
|
|
567
570
|
declare class ResponseDecryptor {
|
|
568
|
-
private
|
|
571
|
+
private keys;
|
|
569
572
|
private dek;
|
|
570
573
|
private nextSeq;
|
|
571
|
-
constructor(
|
|
574
|
+
constructor(responseKeys: Map<string, Uint8Array>);
|
|
572
575
|
private ensureDek;
|
|
573
|
-
/** Decrypt a non-streaming result envelope `{v,
|
|
576
|
+
/** Decrypt a non-streaming result envelope `{v, kid, seq, ciphertext}`. */
|
|
574
577
|
openResult(inner: ResponseInner): Uint8Array;
|
|
575
578
|
/** Decrypt one streaming chunk envelope, enforcing monotonic `seq`. */
|
|
576
579
|
openChunk(inner: ResponseInner): Uint8Array;
|