sealnet 1.3.0 → 1.4.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 -6
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/dist/index.cjs +300 -7
- package/dist/index.d.cts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +300 -7
- package/dist/seal.global.js +2 -2
- package/dist/seal.global.js.sha384 +1 -1
- package/package.json +1 -1
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.
|
|
24
|
-
integrity="sha384-
|
|
23
|
+
src="https://seal.net/sdk/v1.4.0/seal.js"
|
|
24
|
+
integrity="sha384-tLe4sOcc/DDwe9iof3rJafPeSusTQaHeiGfS4nrsrfVTCk/rudbOq/uEmvudg9re"
|
|
25
25
|
crossorigin="anonymous"
|
|
26
26
|
></script>
|
|
27
27
|
<script>
|
|
@@ -162,7 +162,7 @@ const ask = await seal.request({
|
|
|
162
162
|
kind: 'secret', // 'secret' | 'file' | 'any'
|
|
163
163
|
whereUrl: 'https://api.search.brave.com/app/keys', // where the key is created
|
|
164
164
|
})
|
|
165
|
-
show(ask.url, ask.
|
|
165
|
+
show(ask.url, ask.words) // the page shows the same three words
|
|
166
166
|
|
|
167
167
|
const answer = await seal.waitFor(ask.intakeId, { keyPair: keys, to: './secrets' })
|
|
168
168
|
answer.files[0].path // the value stays in the file
|
|
@@ -170,6 +170,11 @@ answer.files[0].path // the value stays in the file
|
|
|
170
170
|
|
|
171
171
|
A link addressed to your key opens with `open(link, { keyPair: keys })`.
|
|
172
172
|
|
|
173
|
+
The three words name your key to the person (`fingerprint_words.json`): the
|
|
174
|
+
same key gives the same words in every SEAL client. Before 1.4 the SDK gave
|
|
175
|
+
three emoji; `emoji` and an inbox item's `from` still carry them, deprecated,
|
|
176
|
+
until 2.0.
|
|
177
|
+
|
|
173
178
|
## Sending to a key, and your inbox
|
|
174
179
|
|
|
175
180
|
Your key's public half is your address. `secretKey` is the same value as
|
|
@@ -184,7 +189,7 @@ sent.delivered // true: it is in their inbox
|
|
|
184
189
|
|
|
185
190
|
const inbox = await seal.inbox({ keyPair: keys, wait: 60 }) // waits up to 60 s for something
|
|
186
191
|
for (const item of inbox.items) {
|
|
187
|
-
// item: { id,
|
|
192
|
+
// item: { id, fromWords (three words of the sender, or null), label, receivedAt, expiresAt }
|
|
188
193
|
const saved = await seal.open(item, { keyPair: keys, to: './downloads' })
|
|
189
194
|
await seal.dismiss(item, { keyPair: keys })
|
|
190
195
|
}
|
|
@@ -196,14 +201,14 @@ to wait for the next change instead of the next item.
|
|
|
196
201
|
## A person's SEAL inbox
|
|
197
202
|
|
|
198
203
|
A person keeps their own inbox at box.seal.net. Connect your key to it once:
|
|
199
|
-
they open the page, compare the three
|
|
204
|
+
they open the page, compare the three words and connect. From then on pass
|
|
200
205
|
their address as `owner` and every seal you send also lands in their inbox,
|
|
201
206
|
where they manage and revoke it; pass it as `to` to `request` and the request
|
|
202
207
|
waits there as a card.
|
|
203
208
|
|
|
204
209
|
```typescript
|
|
205
210
|
const pairing = await seal.pair({ keyPair: keys, name: 'Report bot' })
|
|
206
|
-
show(pairing.url, pairing.
|
|
211
|
+
show(pairing.url, pairing.words) // the page shows the same three words
|
|
207
212
|
const inbox = await pairing.wait() // { address, name }
|
|
208
213
|
|
|
209
214
|
const sent = await seal.send({ file, filename: 'report.pdf', ttl: '1d', owner: inbox.address, keyPair: keys })
|
package/THIRD-PARTY-NOTICES.txt
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2139,7 +2139,7 @@ var seal_address_v1_default = {
|
|
|
2139
2139
|
address: {
|
|
2140
2140
|
key: "X25519 public key, 32 bytes",
|
|
2141
2141
|
text: "base64url without padding, 43 characters",
|
|
2142
|
-
|
|
2142
|
+
words: "fingerprint_words.json over sha256(key)[0..3]: three words, the same as intake shows",
|
|
2143
2143
|
inbox_hash: "sha256(key), 32 bytes: the server finds an inbox by it"
|
|
2144
2144
|
},
|
|
2145
2145
|
box_origin: "https://box.seal.net",
|
|
@@ -2788,6 +2788,22 @@ var SealApi = class _SealApi {
|
|
|
2788
2788
|
signal: opts.signal
|
|
2789
2789
|
});
|
|
2790
2790
|
}
|
|
2791
|
+
/** `GET /intake/push-key` — the VAPID key a browser subscribes an inbox's push with (F3 §8). */
|
|
2792
|
+
async pushKey(opts = {}) {
|
|
2793
|
+
const resp = await this.request("/intake/push-key", { what: "GET /intake/push-key", signal: opts.signal });
|
|
2794
|
+
return (await resp.json()).vapid_public;
|
|
2795
|
+
}
|
|
2796
|
+
/** `POST|DELETE /intake/subscriptions` — push `endpoint` when the proven inbox gets something, or stop. */
|
|
2797
|
+
async setInboxPush(endpoint, on, proof, opts = {}) {
|
|
2798
|
+
const method = on ? "POST" : "DELETE";
|
|
2799
|
+
await this.request("/intake/subscriptions", {
|
|
2800
|
+
what: `${method} /intake/subscriptions`,
|
|
2801
|
+
method,
|
|
2802
|
+
headers: { "Content-Type": "application/json", ...proofHeaders(proof) },
|
|
2803
|
+
body: JSON.stringify({ to: proof.address, endpoint }),
|
|
2804
|
+
signal: opts.signal
|
|
2805
|
+
});
|
|
2806
|
+
}
|
|
2791
2807
|
};
|
|
2792
2808
|
var NOT_READY_DEFAULT_RETRY_AFTER_S = 3;
|
|
2793
2809
|
function proofHeaders(proof) {
|
|
@@ -5486,7 +5502,7 @@ async function proveAddress(secret, challenge, ts) {
|
|
|
5486
5502
|
var fingerprint_emoji_default = {
|
|
5487
5503
|
version: 1,
|
|
5488
5504
|
name: "FINGERPRINT_EMOJI",
|
|
5489
|
-
description: "Three emoji that name an X25519 public key to a person (SPEC-AGENTS \xA74.2): emoji i (i = 0, 1, 2) is emoji[byte i of SHA-256(public key)], 24 bits in all. The agent shows them in the chat and seal.net/i/{id} shows them under the form, so a person sees at a glance whether the page is sealing to the agent they talk to. One list for every language and client; each entry is a single code point with default emoji presentation (no variation selector, no ZWJ). Built from the code-point ranges below, in that order.",
|
|
5505
|
+
description: "LEGACY: the fingerprint of clients released before SPEC-ADDRESS F7 (sealnet-mcp 0.6, CLI 1.5, sealnet 1.3); the current one is fingerprint_words.json. Kept for the web's note on older agents and for the deprecated `emoji` fields of the published SDK, Python and CLI JSON. Three emoji that name an X25519 public key to a person (SPEC-AGENTS \xA74.2): emoji i (i = 0, 1, 2) is emoji[byte i of SHA-256(public key)], 24 bits in all. The agent shows them in the chat and seal.net/i/{id} shows them under the form, so a person sees at a glance whether the page is sealing to the agent they talk to. One list for every language and client; each entry is a single code point with default emoji presentation (no variation selector, no ZWJ). Built from the code-point ranges below, in that order.",
|
|
5490
5506
|
construction: {
|
|
5491
5507
|
ranges: [
|
|
5492
5508
|
[
|
|
@@ -5791,11 +5807,285 @@ var fingerprint_emoji_default = {
|
|
|
5791
5807
|
"\u{1F31F}"
|
|
5792
5808
|
]
|
|
5793
5809
|
};
|
|
5794
|
-
var
|
|
5795
|
-
|
|
5810
|
+
var fingerprint_words_default = {
|
|
5811
|
+
version: 1,
|
|
5812
|
+
name: "FINGERPRINT_WORDS",
|
|
5813
|
+
description: "Three words that name an X25519 public key to a person (SPEC-ADDRESS F7, which replaced the emoji of SPEC-AGENTS \xA74.2): word i (i = 0, 1, 2) is words[byte i of SHA-256(public key)], 24 bits in all, written in lower case with one space between them. The agent shows them in its chat, box.seal.net and seal.net/i/{id} show them on the page, so a person sees at a glance whether both sides hold the same key. One list for every language and client: 256 English nouns of 3 to 7 letters, no two sharing their first three letters, in alphabetical order.",
|
|
5814
|
+
digest: "sha256",
|
|
5815
|
+
count: 3,
|
|
5816
|
+
separator: " ",
|
|
5817
|
+
words: [
|
|
5818
|
+
"acorn",
|
|
5819
|
+
"album",
|
|
5820
|
+
"amber",
|
|
5821
|
+
"anchor",
|
|
5822
|
+
"apple",
|
|
5823
|
+
"arrow",
|
|
5824
|
+
"atlas",
|
|
5825
|
+
"bamboo",
|
|
5826
|
+
"banjo",
|
|
5827
|
+
"basket",
|
|
5828
|
+
"beach",
|
|
5829
|
+
"bell",
|
|
5830
|
+
"bench",
|
|
5831
|
+
"berry",
|
|
5832
|
+
"birch",
|
|
5833
|
+
"bison",
|
|
5834
|
+
"bloom",
|
|
5835
|
+
"boat",
|
|
5836
|
+
"bolt",
|
|
5837
|
+
"bottle",
|
|
5838
|
+
"brick",
|
|
5839
|
+
"broom",
|
|
5840
|
+
"butter",
|
|
5841
|
+
"cabin",
|
|
5842
|
+
"cactus",
|
|
5843
|
+
"camel",
|
|
5844
|
+
"candle",
|
|
5845
|
+
"cargo",
|
|
5846
|
+
"castle",
|
|
5847
|
+
"cedar",
|
|
5848
|
+
"cherry",
|
|
5849
|
+
"clock",
|
|
5850
|
+
"coast",
|
|
5851
|
+
"comet",
|
|
5852
|
+
"copper",
|
|
5853
|
+
"coral",
|
|
5854
|
+
"cotton",
|
|
5855
|
+
"crab",
|
|
5856
|
+
"crown",
|
|
5857
|
+
"daisy",
|
|
5858
|
+
"dawn",
|
|
5859
|
+
"deer",
|
|
5860
|
+
"delta",
|
|
5861
|
+
"desert",
|
|
5862
|
+
"diamond",
|
|
5863
|
+
"dolphin",
|
|
5864
|
+
"dove",
|
|
5865
|
+
"dragon",
|
|
5866
|
+
"drum",
|
|
5867
|
+
"duck",
|
|
5868
|
+
"dune",
|
|
5869
|
+
"eagle",
|
|
5870
|
+
"earth",
|
|
5871
|
+
"echo",
|
|
5872
|
+
"egg",
|
|
5873
|
+
"elk",
|
|
5874
|
+
"ember",
|
|
5875
|
+
"emerald",
|
|
5876
|
+
"engine",
|
|
5877
|
+
"falcon",
|
|
5878
|
+
"farm",
|
|
5879
|
+
"feather",
|
|
5880
|
+
"fence",
|
|
5881
|
+
"fern",
|
|
5882
|
+
"fig",
|
|
5883
|
+
"finch",
|
|
5884
|
+
"fish",
|
|
5885
|
+
"flag",
|
|
5886
|
+
"flute",
|
|
5887
|
+
"fog",
|
|
5888
|
+
"forest",
|
|
5889
|
+
"fossil",
|
|
5890
|
+
"fox",
|
|
5891
|
+
"frog",
|
|
5892
|
+
"garden",
|
|
5893
|
+
"gate",
|
|
5894
|
+
"gazelle",
|
|
5895
|
+
"gecko",
|
|
5896
|
+
"geyser",
|
|
5897
|
+
"ginger",
|
|
5898
|
+
"giraffe",
|
|
5899
|
+
"glacier",
|
|
5900
|
+
"globe",
|
|
5901
|
+
"goat",
|
|
5902
|
+
"gold",
|
|
5903
|
+
"goose",
|
|
5904
|
+
"grape",
|
|
5905
|
+
"guitar",
|
|
5906
|
+
"hammer",
|
|
5907
|
+
"harbor",
|
|
5908
|
+
"hawk",
|
|
5909
|
+
"hazel",
|
|
5910
|
+
"hedge",
|
|
5911
|
+
"heron",
|
|
5912
|
+
"hill",
|
|
5913
|
+
"hippo",
|
|
5914
|
+
"hive",
|
|
5915
|
+
"honey",
|
|
5916
|
+
"horse",
|
|
5917
|
+
"igloo",
|
|
5918
|
+
"iguana",
|
|
5919
|
+
"iris",
|
|
5920
|
+
"iron",
|
|
5921
|
+
"island",
|
|
5922
|
+
"ivory",
|
|
5923
|
+
"jacket",
|
|
5924
|
+
"jaguar",
|
|
5925
|
+
"jasmine",
|
|
5926
|
+
"jelly",
|
|
5927
|
+
"jewel",
|
|
5928
|
+
"juice",
|
|
5929
|
+
"jungle",
|
|
5930
|
+
"kayak",
|
|
5931
|
+
"kelp",
|
|
5932
|
+
"kettle",
|
|
5933
|
+
"kite",
|
|
5934
|
+
"kiwi",
|
|
5935
|
+
"koala",
|
|
5936
|
+
"ladder",
|
|
5937
|
+
"lagoon",
|
|
5938
|
+
"lamp",
|
|
5939
|
+
"lantern",
|
|
5940
|
+
"lava",
|
|
5941
|
+
"leaf",
|
|
5942
|
+
"lemon",
|
|
5943
|
+
"leopard",
|
|
5944
|
+
"lily",
|
|
5945
|
+
"lime",
|
|
5946
|
+
"lion",
|
|
5947
|
+
"lizard",
|
|
5948
|
+
"llama",
|
|
5949
|
+
"lobster",
|
|
5950
|
+
"lotus",
|
|
5951
|
+
"lynx",
|
|
5952
|
+
"magnet",
|
|
5953
|
+
"mango",
|
|
5954
|
+
"maple",
|
|
5955
|
+
"marble",
|
|
5956
|
+
"meadow",
|
|
5957
|
+
"melon",
|
|
5958
|
+
"meteor",
|
|
5959
|
+
"mint",
|
|
5960
|
+
"mirror",
|
|
5961
|
+
"monkey",
|
|
5962
|
+
"moon",
|
|
5963
|
+
"mosaic",
|
|
5964
|
+
"muffin",
|
|
5965
|
+
"nail",
|
|
5966
|
+
"nectar",
|
|
5967
|
+
"needle",
|
|
5968
|
+
"nest",
|
|
5969
|
+
"oasis",
|
|
5970
|
+
"ocean",
|
|
5971
|
+
"olive",
|
|
5972
|
+
"opal",
|
|
5973
|
+
"orange",
|
|
5974
|
+
"orbit",
|
|
5975
|
+
"orchid",
|
|
5976
|
+
"otter",
|
|
5977
|
+
"owl",
|
|
5978
|
+
"palm",
|
|
5979
|
+
"panda",
|
|
5980
|
+
"paper",
|
|
5981
|
+
"parrot",
|
|
5982
|
+
"peach",
|
|
5983
|
+
"pebble",
|
|
5984
|
+
"pelican",
|
|
5985
|
+
"pencil",
|
|
5986
|
+
"pepper",
|
|
5987
|
+
"piano",
|
|
5988
|
+
"pine",
|
|
5989
|
+
"pizza",
|
|
5990
|
+
"planet",
|
|
5991
|
+
"plum",
|
|
5992
|
+
"pony",
|
|
5993
|
+
"poppy",
|
|
5994
|
+
"prism",
|
|
5995
|
+
"pumpkin",
|
|
5996
|
+
"quartz",
|
|
5997
|
+
"queen",
|
|
5998
|
+
"quill",
|
|
5999
|
+
"rabbit",
|
|
6000
|
+
"radio",
|
|
6001
|
+
"raft",
|
|
6002
|
+
"raven",
|
|
6003
|
+
"reed",
|
|
6004
|
+
"rhino",
|
|
6005
|
+
"ribbon",
|
|
6006
|
+
"ridge",
|
|
6007
|
+
"river",
|
|
6008
|
+
"robin",
|
|
6009
|
+
"rocket",
|
|
6010
|
+
"rose",
|
|
6011
|
+
"ruby",
|
|
6012
|
+
"sail",
|
|
6013
|
+
"salmon",
|
|
6014
|
+
"sand",
|
|
6015
|
+
"saturn",
|
|
6016
|
+
"scroll",
|
|
6017
|
+
"shark",
|
|
6018
|
+
"shell",
|
|
6019
|
+
"ship",
|
|
6020
|
+
"silk",
|
|
6021
|
+
"sled",
|
|
6022
|
+
"sloth",
|
|
6023
|
+
"snail",
|
|
6024
|
+
"snow",
|
|
6025
|
+
"spider",
|
|
6026
|
+
"spruce",
|
|
6027
|
+
"star",
|
|
6028
|
+
"stone",
|
|
6029
|
+
"sugar",
|
|
6030
|
+
"summit",
|
|
6031
|
+
"swan",
|
|
6032
|
+
"table",
|
|
6033
|
+
"teapot",
|
|
6034
|
+
"thunder",
|
|
6035
|
+
"tiger",
|
|
6036
|
+
"tile",
|
|
6037
|
+
"timber",
|
|
6038
|
+
"toast",
|
|
6039
|
+
"tomato",
|
|
6040
|
+
"topaz",
|
|
6041
|
+
"torch",
|
|
6042
|
+
"tower",
|
|
6043
|
+
"trout",
|
|
6044
|
+
"truck",
|
|
6045
|
+
"tulip",
|
|
6046
|
+
"turtle",
|
|
6047
|
+
"unicorn",
|
|
6048
|
+
"valley",
|
|
6049
|
+
"vanilla",
|
|
6050
|
+
"vase",
|
|
6051
|
+
"velvet",
|
|
6052
|
+
"violin",
|
|
6053
|
+
"volcano",
|
|
6054
|
+
"wagon",
|
|
6055
|
+
"walnut",
|
|
6056
|
+
"wave",
|
|
6057
|
+
"whale",
|
|
6058
|
+
"wheat",
|
|
6059
|
+
"whistle",
|
|
6060
|
+
"willow",
|
|
6061
|
+
"window",
|
|
6062
|
+
"wizard",
|
|
6063
|
+
"wolf",
|
|
6064
|
+
"wombat",
|
|
6065
|
+
"wren",
|
|
6066
|
+
"yacht",
|
|
6067
|
+
"yarn",
|
|
6068
|
+
"yeti",
|
|
6069
|
+
"yucca",
|
|
6070
|
+
"zebra",
|
|
6071
|
+
"zenith",
|
|
6072
|
+
"zinc",
|
|
6073
|
+
"zipper"
|
|
6074
|
+
],
|
|
6075
|
+
vector: {
|
|
6076
|
+
public_key_b64url: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
6077
|
+
sha256_prefix_hex: "66687a",
|
|
6078
|
+
words: "iron ivory lava"
|
|
6079
|
+
}
|
|
6080
|
+
};
|
|
6081
|
+
var WORDS = fingerprint_words_default.words;
|
|
6082
|
+
function keyWords(publicKey) {
|
|
6083
|
+
const digest = (0, import_sha22.sha256)(publicKey);
|
|
6084
|
+
return Array.from(digest.subarray(0, fingerprint_words_default.count), (byte) => WORDS[byte]).join(fingerprint_words_default.separator);
|
|
6085
|
+
}
|
|
5796
6086
|
function keyEmoji(publicKey) {
|
|
5797
6087
|
const digest = (0, import_sha22.sha256)(publicKey);
|
|
5798
|
-
return Array.from(digest.subarray(0,
|
|
6088
|
+
return Array.from(digest.subarray(0, fingerprint_emoji_default.count), (byte) => fingerprint_emoji_default.emoji[byte]).join("");
|
|
5799
6089
|
}
|
|
5800
6090
|
var PAIRING_MIME = seal_address_v1_default.payloads.pair.mime;
|
|
5801
6091
|
var DEVICE_MIME = seal_address_v1_default.payloads.device.mime;
|
|
@@ -6609,6 +6899,7 @@ async function requestIntake(api, siteOrigin, opts) {
|
|
|
6609
6899
|
return {
|
|
6610
6900
|
intakeId: intake.id,
|
|
6611
6901
|
url: `${siteOrigin}/i/${intake.id}`,
|
|
6902
|
+
words: keyWords(base64urlToBytes(opts.recipientKey)),
|
|
6612
6903
|
emoji: keyEmoji(base64urlToBytes(opts.recipientKey)),
|
|
6613
6904
|
expiresAt: intake.expires_at
|
|
6614
6905
|
};
|
|
@@ -6647,6 +6938,7 @@ async function pairWith(api, siteOrigin, opts) {
|
|
|
6647
6938
|
};
|
|
6648
6939
|
return {
|
|
6649
6940
|
url: `${siteOrigin}/i/${intake.id}`,
|
|
6941
|
+
words: keyWords(base64urlToBytes(opts.keyPair.publicKey)),
|
|
6650
6942
|
emoji: keyEmoji(base64urlToBytes(opts.keyPair.publicKey)),
|
|
6651
6943
|
expiresAt: intake.expires_at,
|
|
6652
6944
|
wait
|
|
@@ -6673,6 +6965,7 @@ async function inboxOf(api, opts) {
|
|
|
6673
6965
|
version: wire.version,
|
|
6674
6966
|
items: wire.items.map((i) => ({
|
|
6675
6967
|
id: i.id,
|
|
6968
|
+
fromWords: i.sender === null ? null : keyWords(base64urlToBytes(i.sender)),
|
|
6676
6969
|
from: i.sender === null ? null : keyEmoji(base64urlToBytes(i.sender)),
|
|
6677
6970
|
label: i.label,
|
|
6678
6971
|
receivedAt: i.at,
|
|
@@ -6767,7 +7060,7 @@ var SealClient = class {
|
|
|
6767
7060
|
}
|
|
6768
7061
|
/**
|
|
6769
7062
|
* Connect your key to a person's SEAL inbox, once: show them `url` and
|
|
6770
|
-
* `
|
|
7063
|
+
* `words`, then `wait()` gives their inbox's address. Pass it as `owner` to
|
|
6771
7064
|
* {@link SealClient.send} (every seal lands in their inbox) or as `to` to
|
|
6772
7065
|
* {@link SealClient.request} (the request waits there).
|
|
6773
7066
|
*/
|
|
@@ -6786,7 +7079,7 @@ var SealClient = class {
|
|
|
6786
7079
|
return this.seals.revoke(sealId, ownerToken, options);
|
|
6787
7080
|
}
|
|
6788
7081
|
};
|
|
6789
|
-
var VERSION2 = "1.
|
|
7082
|
+
var VERSION2 = "1.4.0";
|
|
6790
7083
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6791
7084
|
0 && (module.exports = {
|
|
6792
7085
|
SealClient,
|
package/dist/index.d.cts
CHANGED
|
@@ -222,7 +222,9 @@ interface RequestResult {
|
|
|
222
222
|
readonly intakeId: string;
|
|
223
223
|
/** Give this to the person — or to an MCP client as a URL-mode elicitation. */
|
|
224
224
|
readonly url: string;
|
|
225
|
-
/** Three
|
|
225
|
+
/** Three words of your key, one space apart; the page shows the same ones. */
|
|
226
|
+
readonly words: string;
|
|
227
|
+
/** @deprecated Your key as the three emoji clients before 1.4 showed: use `words`. Removed in 2.0. */
|
|
226
228
|
readonly emoji: string;
|
|
227
229
|
readonly expiresAt: string;
|
|
228
230
|
}
|
|
@@ -236,7 +238,9 @@ interface PairOptions {
|
|
|
236
238
|
interface PairResult {
|
|
237
239
|
/** Give this to the person: they open it on the device with their SEAL inbox. */
|
|
238
240
|
readonly url: string;
|
|
239
|
-
/** Three
|
|
241
|
+
/** Three words of your key, one space apart; the page shows the same ones. */
|
|
242
|
+
readonly words: string;
|
|
243
|
+
/** @deprecated Your key as the three emoji clients before 1.4 showed: use `words`. Removed in 2.0. */
|
|
240
244
|
readonly emoji: string;
|
|
241
245
|
readonly expiresAt: string;
|
|
242
246
|
/** Wait until they connect: their inbox's address (use it as `owner`) and name. */
|
|
@@ -245,7 +249,9 @@ interface PairResult {
|
|
|
245
249
|
/** Something sent to your key: open it with `open(item, {keyPair})`. */
|
|
246
250
|
interface InboxItem {
|
|
247
251
|
readonly id: string;
|
|
248
|
-
/** Three
|
|
252
|
+
/** Three words of the sender's address when it proved one. */
|
|
253
|
+
readonly fromWords: string | null;
|
|
254
|
+
/** @deprecated The sender's address as the three emoji clients before 1.4 showed: use `fromWords`. Removed in 2.0. */
|
|
249
255
|
readonly from: string | null;
|
|
250
256
|
/** What the sender called itself, in the clear: never content. */
|
|
251
257
|
readonly label: string | null;
|
|
@@ -355,7 +361,7 @@ declare class SealClient {
|
|
|
355
361
|
}): Promise<OpenedSeal<OpenedSealFile>>;
|
|
356
362
|
/**
|
|
357
363
|
* Connect your key to a person's SEAL inbox, once: show them `url` and
|
|
358
|
-
* `
|
|
364
|
+
* `words`, then `wait()` gives their inbox's address. Pass it as `owner` to
|
|
359
365
|
* {@link SealClient.send} (every seal lands in their inbox) or as `to` to
|
|
360
366
|
* {@link SealClient.request} (the request waits there).
|
|
361
367
|
*/
|
|
@@ -373,6 +379,6 @@ declare class SealClient {
|
|
|
373
379
|
revokedAt: string | null;
|
|
374
380
|
}>;
|
|
375
381
|
}
|
|
376
|
-
declare const VERSION = "1.
|
|
382
|
+
declare const VERSION = "1.4.0";
|
|
377
383
|
|
|
378
384
|
export { type Inbox, type InboxItem, type InboxOptions, type KeyPair, type OpenOptions, type OpenedSeal, type OpenedSealFile, type PairOptions, type PairResult, 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
|
@@ -222,7 +222,9 @@ interface RequestResult {
|
|
|
222
222
|
readonly intakeId: string;
|
|
223
223
|
/** Give this to the person — or to an MCP client as a URL-mode elicitation. */
|
|
224
224
|
readonly url: string;
|
|
225
|
-
/** Three
|
|
225
|
+
/** Three words of your key, one space apart; the page shows the same ones. */
|
|
226
|
+
readonly words: string;
|
|
227
|
+
/** @deprecated Your key as the three emoji clients before 1.4 showed: use `words`. Removed in 2.0. */
|
|
226
228
|
readonly emoji: string;
|
|
227
229
|
readonly expiresAt: string;
|
|
228
230
|
}
|
|
@@ -236,7 +238,9 @@ interface PairOptions {
|
|
|
236
238
|
interface PairResult {
|
|
237
239
|
/** Give this to the person: they open it on the device with their SEAL inbox. */
|
|
238
240
|
readonly url: string;
|
|
239
|
-
/** Three
|
|
241
|
+
/** Three words of your key, one space apart; the page shows the same ones. */
|
|
242
|
+
readonly words: string;
|
|
243
|
+
/** @deprecated Your key as the three emoji clients before 1.4 showed: use `words`. Removed in 2.0. */
|
|
240
244
|
readonly emoji: string;
|
|
241
245
|
readonly expiresAt: string;
|
|
242
246
|
/** Wait until they connect: their inbox's address (use it as `owner`) and name. */
|
|
@@ -245,7 +249,9 @@ interface PairResult {
|
|
|
245
249
|
/** Something sent to your key: open it with `open(item, {keyPair})`. */
|
|
246
250
|
interface InboxItem {
|
|
247
251
|
readonly id: string;
|
|
248
|
-
/** Three
|
|
252
|
+
/** Three words of the sender's address when it proved one. */
|
|
253
|
+
readonly fromWords: string | null;
|
|
254
|
+
/** @deprecated The sender's address as the three emoji clients before 1.4 showed: use `fromWords`. Removed in 2.0. */
|
|
249
255
|
readonly from: string | null;
|
|
250
256
|
/** What the sender called itself, in the clear: never content. */
|
|
251
257
|
readonly label: string | null;
|
|
@@ -355,7 +361,7 @@ declare class SealClient {
|
|
|
355
361
|
}): Promise<OpenedSeal<OpenedSealFile>>;
|
|
356
362
|
/**
|
|
357
363
|
* Connect your key to a person's SEAL inbox, once: show them `url` and
|
|
358
|
-
* `
|
|
364
|
+
* `words`, then `wait()` gives their inbox's address. Pass it as `owner` to
|
|
359
365
|
* {@link SealClient.send} (every seal lands in their inbox) or as `to` to
|
|
360
366
|
* {@link SealClient.request} (the request waits there).
|
|
361
367
|
*/
|
|
@@ -373,6 +379,6 @@ declare class SealClient {
|
|
|
373
379
|
revokedAt: string | null;
|
|
374
380
|
}>;
|
|
375
381
|
}
|
|
376
|
-
declare const VERSION = "1.
|
|
382
|
+
declare const VERSION = "1.4.0";
|
|
377
383
|
|
|
378
384
|
export { type Inbox, type InboxItem, type InboxOptions, type KeyPair, type OpenOptions, type OpenedSeal, type OpenedSealFile, type PairOptions, type PairResult, type RequestOptions, type RequestResult, type SavedSealFile, SealClient, type SealClientOptions, SealError, type SealErrorCode, type SealErrorDetails, type SendOptions, type SendResult, type TTL, VERSION };
|