sealnet 2.0.3 → 3.0.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 +11 -8
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/dist/index.cjs +1924 -1043
- package/dist/index.d.cts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/index.js +1924 -1043
- package/dist/seal.global.js +3 -2
- package/dist/seal.global.js.sha384 +1 -1
- package/dist/seal_crypto.wasm +0 -0
- package/dist/seal_crypto.wasm.sha384 +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* What an intake request asks for (SPEC-AGENTS §4.4): `pair` and `device`
|
|
3
3
|
* are the inbox's own (SPEC-ADDRESS F3), answered on box.seal.net.
|
|
4
4
|
*/
|
|
5
|
-
type IntakeKind = 'secret' | 'file' | 'any' | 'pair' | 'device';
|
|
5
|
+
type IntakeKind = 'secret' | 'file' | 'any' | 'pair' | 'device' | 'guard';
|
|
6
6
|
/** A file's plaintext, and what it turned out to be once the stream ended. */
|
|
7
7
|
interface OpenedStream {
|
|
8
8
|
readonly stream: ReadableStream<Uint8Array>;
|
|
@@ -137,7 +137,9 @@ type SealErrorCode = 'AUTH_INVALID_KEY' | 'AUTH_EXPIRED_TOKEN' | 'AUTH_INSUFFICI
|
|
|
137
137
|
*
|
|
138
138
|
* When a failure happens AFTER the seal became live on the server, these
|
|
139
139
|
* carry everything needed to manage it — so an interrupted call never
|
|
140
|
-
* leaves a seal nobody can revoke.
|
|
140
|
+
* leaves a seal nobody can revoke. The owner token and the link key are read
|
|
141
|
+
* by the caller and never written out: `JSON.stringify`, `toJSON` and
|
|
142
|
+
* `console.log` of the error or its details leave them out (AUDIT M20).
|
|
141
143
|
*/
|
|
142
144
|
interface SealErrorDetails {
|
|
143
145
|
/** Present when the seal exists remotely despite the failure. */
|
|
@@ -161,8 +163,9 @@ declare class SealError extends Error {
|
|
|
161
163
|
|
|
162
164
|
/**
|
|
163
165
|
* An identity: give `address` to senders (and `bundle` to a request), keep
|
|
164
|
-
* `secretKey` — the
|
|
165
|
-
* of the CLI and the MCP server. `words` name the address to a
|
|
166
|
+
* `secretKey` — the 64-byte seed, 86 base64url characters, the same value as
|
|
167
|
+
* `SEAL_SEED` of the CLI and the MCP server. `words` name the address to a
|
|
168
|
+
* person.
|
|
166
169
|
*/
|
|
167
170
|
interface KeyPair {
|
|
168
171
|
readonly secretKey: string;
|
|
@@ -172,7 +175,7 @@ interface KeyPair {
|
|
|
172
175
|
readonly words: string;
|
|
173
176
|
}
|
|
174
177
|
interface OpenOptions {
|
|
175
|
-
/** Opens a link addressed to this seed
|
|
178
|
+
/** Opens a link addressed to this seed. */
|
|
176
179
|
readonly keyPair?: Pick<KeyPair, 'secretKey'>;
|
|
177
180
|
/** The seal's password, when it has one. */
|
|
178
181
|
readonly password?: string;
|
|
@@ -231,7 +234,7 @@ interface RequestResult {
|
|
|
231
234
|
readonly intakeId: string;
|
|
232
235
|
/** Give this to the person — or to an MCP client as a URL-mode elicitation. */
|
|
233
236
|
readonly url: string;
|
|
234
|
-
/**
|
|
237
|
+
/** Eight words of your address, one space apart; the page shows the same ones. */
|
|
235
238
|
readonly words: string;
|
|
236
239
|
readonly expiresAt: string;
|
|
237
240
|
}
|
|
@@ -245,7 +248,7 @@ interface PairOptions {
|
|
|
245
248
|
interface PairResult {
|
|
246
249
|
/** Give this to the person: they open it on the device with their SEAL inbox. */
|
|
247
250
|
readonly url: string;
|
|
248
|
-
/**
|
|
251
|
+
/** Eight words of your address, one space apart; the page shows the same ones. */
|
|
249
252
|
readonly words: string;
|
|
250
253
|
readonly expiresAt: string;
|
|
251
254
|
/** Wait until they connect: their inbox's address (use it as `owner`) and name. */
|
|
@@ -257,7 +260,7 @@ interface PairResult {
|
|
|
257
260
|
/** Something sent to your address: open it with `open(item, {keyPair})`. */
|
|
258
261
|
interface InboxItem {
|
|
259
262
|
readonly id: string;
|
|
260
|
-
/**
|
|
263
|
+
/** Eight words of the sender's address when it proved one. */
|
|
261
264
|
readonly fromWords: string | null;
|
|
262
265
|
/** What the sender called itself, in the clear: never content. */
|
|
263
266
|
readonly label: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* What an intake request asks for (SPEC-AGENTS §4.4): `pair` and `device`
|
|
3
3
|
* are the inbox's own (SPEC-ADDRESS F3), answered on box.seal.net.
|
|
4
4
|
*/
|
|
5
|
-
type IntakeKind = 'secret' | 'file' | 'any' | 'pair' | 'device';
|
|
5
|
+
type IntakeKind = 'secret' | 'file' | 'any' | 'pair' | 'device' | 'guard';
|
|
6
6
|
/** A file's plaintext, and what it turned out to be once the stream ended. */
|
|
7
7
|
interface OpenedStream {
|
|
8
8
|
readonly stream: ReadableStream<Uint8Array>;
|
|
@@ -137,7 +137,9 @@ type SealErrorCode = 'AUTH_INVALID_KEY' | 'AUTH_EXPIRED_TOKEN' | 'AUTH_INSUFFICI
|
|
|
137
137
|
*
|
|
138
138
|
* When a failure happens AFTER the seal became live on the server, these
|
|
139
139
|
* carry everything needed to manage it — so an interrupted call never
|
|
140
|
-
* leaves a seal nobody can revoke.
|
|
140
|
+
* leaves a seal nobody can revoke. The owner token and the link key are read
|
|
141
|
+
* by the caller and never written out: `JSON.stringify`, `toJSON` and
|
|
142
|
+
* `console.log` of the error or its details leave them out (AUDIT M20).
|
|
141
143
|
*/
|
|
142
144
|
interface SealErrorDetails {
|
|
143
145
|
/** Present when the seal exists remotely despite the failure. */
|
|
@@ -161,8 +163,9 @@ declare class SealError extends Error {
|
|
|
161
163
|
|
|
162
164
|
/**
|
|
163
165
|
* An identity: give `address` to senders (and `bundle` to a request), keep
|
|
164
|
-
* `secretKey` — the
|
|
165
|
-
* of the CLI and the MCP server. `words` name the address to a
|
|
166
|
+
* `secretKey` — the 64-byte seed, 86 base64url characters, the same value as
|
|
167
|
+
* `SEAL_SEED` of the CLI and the MCP server. `words` name the address to a
|
|
168
|
+
* person.
|
|
166
169
|
*/
|
|
167
170
|
interface KeyPair {
|
|
168
171
|
readonly secretKey: string;
|
|
@@ -172,7 +175,7 @@ interface KeyPair {
|
|
|
172
175
|
readonly words: string;
|
|
173
176
|
}
|
|
174
177
|
interface OpenOptions {
|
|
175
|
-
/** Opens a link addressed to this seed
|
|
178
|
+
/** Opens a link addressed to this seed. */
|
|
176
179
|
readonly keyPair?: Pick<KeyPair, 'secretKey'>;
|
|
177
180
|
/** The seal's password, when it has one. */
|
|
178
181
|
readonly password?: string;
|
|
@@ -231,7 +234,7 @@ interface RequestResult {
|
|
|
231
234
|
readonly intakeId: string;
|
|
232
235
|
/** Give this to the person — or to an MCP client as a URL-mode elicitation. */
|
|
233
236
|
readonly url: string;
|
|
234
|
-
/**
|
|
237
|
+
/** Eight words of your address, one space apart; the page shows the same ones. */
|
|
235
238
|
readonly words: string;
|
|
236
239
|
readonly expiresAt: string;
|
|
237
240
|
}
|
|
@@ -245,7 +248,7 @@ interface PairOptions {
|
|
|
245
248
|
interface PairResult {
|
|
246
249
|
/** Give this to the person: they open it on the device with their SEAL inbox. */
|
|
247
250
|
readonly url: string;
|
|
248
|
-
/**
|
|
251
|
+
/** Eight words of your address, one space apart; the page shows the same ones. */
|
|
249
252
|
readonly words: string;
|
|
250
253
|
readonly expiresAt: string;
|
|
251
254
|
/** Wait until they connect: their inbox's address (use it as `owner`) and name. */
|
|
@@ -257,7 +260,7 @@ interface PairResult {
|
|
|
257
260
|
/** Something sent to your address: open it with `open(item, {keyPair})`. */
|
|
258
261
|
interface InboxItem {
|
|
259
262
|
readonly id: string;
|
|
260
|
-
/**
|
|
263
|
+
/** Eight words of the sender's address when it proved one. */
|
|
261
264
|
readonly fromWords: string | null;
|
|
262
265
|
/** What the sender called itself, in the clear: never content. */
|
|
263
266
|
readonly label: string | null;
|