sealnet 1.1.1 → 1.1.2

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 CHANGED
@@ -20,8 +20,8 @@ and the SDK arrives as one global.
20
20
 
21
21
  ```html
22
22
  <script
23
- src="https://seal.net/sdk/v1.1.1/seal.js"
24
- integrity="sha384-+eGb48NFxN0gIBDP/9xrDLJJ7O2Z+vPTgWoLUz15Niv/OET24or53A40hAZ7TcWZ"
23
+ src="https://seal.net/sdk/v1.1.2/seal.js"
24
+ integrity="sha384-UIrqgmFzwnFcAQT0JSG+L3exdN7uMFtWpHVJpks1Cx1gcFKtLxvSuOMrEKHVEh0O"
25
25
  crossorigin="anonymous"
26
26
  ></script>
27
27
  <script>
@@ -1,4 +1,4 @@
1
- sealnet 1.1.1 — third-party notices
1
+ sealnet 1.1.2 — third-party notices
2
2
 
3
3
  The standalone browser build (dist/seal.global.js, also published at
4
4
  https://seal.net/sdk/v<version>/seal.js) bundles the software below.
package/dist/index.cjs CHANGED
@@ -6332,7 +6332,7 @@ var SealClient = class {
6332
6332
  return this.seals.revoke(sealId, ownerToken, options);
6333
6333
  }
6334
6334
  };
6335
- var VERSION = "1.1.1";
6335
+ var VERSION = "1.1.2";
6336
6336
  // Annotate the CommonJS export names for ESM import in node:
6337
6337
  0 && (module.exports = {
6338
6338
  SealClient,
package/dist/index.d.cts CHANGED
@@ -1,4 +1,14 @@
1
- import { A, Y } from './open-DUqF6AyG.js';
1
+ /** What an intake request asks for (SPEC-AGENTS §4.4). */
2
+ type IntakeKind = 'secret' | 'file' | 'any';
3
+ /** A file's plaintext, and what it turned out to be once the stream ended. */
4
+ interface OpenedStream {
5
+ readonly stream: ReadableStream<Uint8Array>;
6
+ /** Settles after the stream ends: plaintext size and SHA-256. Rejects like the stream. */
7
+ readonly done: Promise<{
8
+ readonly sizeBytes: number;
9
+ readonly sha256: string;
10
+ }>;
11
+ }
2
12
 
3
13
  type TTL = '5m' | '30m' | '1h' | '1d' | '7d';
4
14
  interface CreateAnonymousSealOptions {
@@ -143,7 +153,7 @@ interface OpenedSealFile {
143
153
  * FAILS at its end if the ciphertext is not the one the sender registered:
144
154
  * keep nothing written from a stream that errored.
145
155
  */
146
- read(): Promise<A>;
156
+ read(): Promise<OpenedStream>;
147
157
  }
148
158
  /** One file written to disk by `open(url, {to})`. */
149
159
  interface SavedSealFile {
@@ -166,7 +176,7 @@ interface RequestOptions {
166
176
  /** Your public key (`keygen().publicKey`): the answer is sealed to it. */
167
177
  readonly recipientKey: string;
168
178
  /** `secret` (a password field), `file`, or `any`. */
169
- readonly kind?: Y;
179
+ readonly kind?: IntakeKind;
170
180
  /** The https page where that key is created; the person sees its domain. */
171
181
  readonly whereUrl?: string;
172
182
  /** Seconds the request lives (default 15 minutes, at most a day). */
@@ -276,6 +286,6 @@ declare class SealClient {
276
286
  revokedAt: string | null;
277
287
  }>;
278
288
  }
279
- declare const VERSION = "1.1.1";
289
+ declare const VERSION = "1.1.2";
280
290
 
281
291
  export { type KeyPair, type OpenOptions, type OpenedSeal, type OpenedSealFile, type RequestOptions, type RequestResult, type SavedSealFile, SealClient, type SealClientOptions, SealError, type SealErrorCode, type SealErrorDetails, type SendOptions, type SendResult, type TTL, VERSION };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,14 @@
1
- import { A, Y } from './open-DUqF6AyG.js';
1
+ /** What an intake request asks for (SPEC-AGENTS §4.4). */
2
+ type IntakeKind = 'secret' | 'file' | 'any';
3
+ /** A file's plaintext, and what it turned out to be once the stream ended. */
4
+ interface OpenedStream {
5
+ readonly stream: ReadableStream<Uint8Array>;
6
+ /** Settles after the stream ends: plaintext size and SHA-256. Rejects like the stream. */
7
+ readonly done: Promise<{
8
+ readonly sizeBytes: number;
9
+ readonly sha256: string;
10
+ }>;
11
+ }
2
12
 
3
13
  type TTL = '5m' | '30m' | '1h' | '1d' | '7d';
4
14
  interface CreateAnonymousSealOptions {
@@ -143,7 +153,7 @@ interface OpenedSealFile {
143
153
  * FAILS at its end if the ciphertext is not the one the sender registered:
144
154
  * keep nothing written from a stream that errored.
145
155
  */
146
- read(): Promise<A>;
156
+ read(): Promise<OpenedStream>;
147
157
  }
148
158
  /** One file written to disk by `open(url, {to})`. */
149
159
  interface SavedSealFile {
@@ -166,7 +176,7 @@ interface RequestOptions {
166
176
  /** Your public key (`keygen().publicKey`): the answer is sealed to it. */
167
177
  readonly recipientKey: string;
168
178
  /** `secret` (a password field), `file`, or `any`. */
169
- readonly kind?: Y;
179
+ readonly kind?: IntakeKind;
170
180
  /** The https page where that key is created; the person sees its domain. */
171
181
  readonly whereUrl?: string;
172
182
  /** Seconds the request lives (default 15 minutes, at most a day). */
@@ -276,6 +286,6 @@ declare class SealClient {
276
286
  revokedAt: string | null;
277
287
  }>;
278
288
  }
279
- declare const VERSION = "1.1.1";
289
+ declare const VERSION = "1.1.2";
280
290
 
281
291
  export { type KeyPair, type OpenOptions, type OpenedSeal, type OpenedSealFile, type RequestOptions, type RequestResult, type SavedSealFile, SealClient, type SealClientOptions, SealError, type SealErrorCode, type SealErrorDetails, type SendOptions, type SendResult, type TTL, VERSION };
package/dist/index.js CHANGED
@@ -6294,7 +6294,7 @@ var SealClient = class {
6294
6294
  return this.seals.revoke(sealId, ownerToken, options);
6295
6295
  }
6296
6296
  };
6297
- var VERSION = "1.1.1";
6297
+ var VERSION = "1.1.2";
6298
6298
  export {
6299
6299
  SealClient,
6300
6300
  SealError,