@ghostlytools/sdk 1.9.0 → 1.10.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.
Files changed (31) hide show
  1. package/dist/core.js +2 -2
  2. package/dist/{fakes-Bx53XiDM.js → fakes-BTB2ugB3.js} +2 -2
  3. package/dist/{fakes-Bx53XiDM.js.map → fakes-BTB2ugB3.js.map} +1 -1
  4. package/dist/fakes.js +1 -1
  5. package/dist/index.js +2 -2
  6. package/dist/{keet-identity-key-D8ioYMkd.js → keet-identity-key-a4pR0QSm.js} +2 -2
  7. package/dist/{keet-identity-key-D8ioYMkd.js.map → keet-identity-key-a4pR0QSm.js.map} +1 -1
  8. package/dist/{src-Ch4NWeBg.js → src-BZy4lDju.js} +1064 -198
  9. package/dist/src-BZy4lDju.js.map +1 -0
  10. package/dist/testing.js +3 -3
  11. package/dist/types/core/src/appStatements.d.ts +7 -0
  12. package/dist/types/core/src/communityRendezvous.d.ts +5 -1
  13. package/dist/types/core/src/contactRecords.d.ts +31 -0
  14. package/dist/types/core/src/ghostlink.d.ts +38 -2
  15. package/dist/types/core/src/groupCommunity.d.ts +84 -9
  16. package/dist/types/core/src/groupFiles.d.ts +15 -0
  17. package/dist/types/core/src/groupMeta.d.ts +3 -2
  18. package/dist/types/core/src/groupSession.d.ts +96 -11
  19. package/dist/types/core/src/http.d.ts +13 -0
  20. package/dist/types/core/src/identityProofs.d.ts +7 -3
  21. package/dist/types/core/src/pairedAppRanges.d.ts +17 -9
  22. package/dist/types/core/src/pairedEdits.d.ts +4 -1
  23. package/dist/types/core/src/storeForward.d.ts +2 -1
  24. package/dist/types/core/src/text.d.ts +9 -0
  25. package/dist/types/core/src/turnRecord.d.ts +2 -2
  26. package/dist/types/core/src/videoMetadata.d.ts +17 -0
  27. package/dist/{verify-Bi_Y5oat.js → verify-Bcd7K4q-.js} +3 -3
  28. package/dist/verify-Bcd7K4q-.js.map +1 -0
  29. package/package.json +1 -1
  30. package/dist/src-Ch4NWeBg.js.map +0 -1
  31. package/dist/verify-Bi_Y5oat.js.map +0 -1
@@ -152,12 +152,14 @@ export interface ReceivedIdentity {
152
152
  /** A name/picture looked up on the person's request (Nostr kind-0), with its source. */
153
153
  display?: IdentityDisplay;
154
154
  }
155
- /** `id`: the proof the request named, kept here only (never sent) so the timeline can settle its entry. */
155
+ /** `id`: the proof the request named, kept here only (never sent) so the timeline can settle its entry.
156
+ * `withdrawn`: its owner withdrew that proof while this side was checking its presentation. */
156
157
  export interface IdentityChallenge {
157
158
  nonce: string;
158
159
  issuedAt: number;
159
160
  provider: string;
160
161
  id?: string;
162
+ withdrawn?: true;
161
163
  }
162
164
  export interface IdentityLedger {
163
165
  challenges: IdentityChallenge[];
@@ -240,10 +242,12 @@ export declare class IdentityExchange {
240
242
  withdraw(id: string, connected: boolean): Promise<void>;
241
243
  /**
242
244
  * Run the checks again on a received proof: its revocation record, then (unless `revocationOnly`) the
243
- * provider's check (a domain record may be gone).
245
+ * provider's check (a domain record may be gone). `keepUnavailable`: a check that could not run (IdentityCheckUnavailable)
246
+ * is thrown, and the proof is left as it was, for a check this side started on its own.
244
247
  */
245
- recheck(id: string, { revocationOnly }?: {
248
+ recheck(id: string, { revocationOnly, keepUnavailable }?: {
246
249
  revocationOnly?: boolean | undefined;
250
+ keepUnavailable?: boolean | undefined;
247
251
  }): Promise<ReceivedIdentity>;
248
252
  private settleRecheck;
249
253
  receive(frame: Record<string, unknown>): Promise<void>;
@@ -124,8 +124,8 @@ export interface AppRangeTask {
124
124
  readonly offset: number;
125
125
  readonly length: number;
126
126
  /**
127
- * False once the asker cancelled, the app closed or the session ended: send nothing more for it. A task the asker
128
- * cancelled still holds its place among the app's `inFlight` until it is settled (`finish`, `fail` or `release`).
127
+ * False once the asker cancelled, the app closed or the session ended: send nothing more for it. It still holds its
128
+ * place among the app's `inFlight` until it is settled (`finish`, `fail` or `release`), unless this side's app closed.
129
129
  */
130
130
  readonly live: boolean;
131
131
  }
@@ -136,7 +136,7 @@ export interface AppRangeTask {
136
136
  * are read and sent by the session, which calls `finish` or `fail` for each task. As the side that asks it sends at
137
137
  * most `inFlight` requests per app, keeps
138
138
  * the rest waiting, and puts each answer back together, in order, from the offset asked. Serves and requests last one
139
- * session: `reset` ends them all, `closeApp` those of one app.
139
+ * session: `reset` ends them all, `closeApp` those of one app; a task still being read counts until it is settled.
140
140
  */
141
141
  export declare class AppRanges {
142
142
  private readonly send;
@@ -144,7 +144,10 @@ export declare class AppRanges {
144
144
  private readonly now;
145
145
  private readonly serves;
146
146
  private readonly serving;
147
- /** Tasks cancelled or unserved that the session is still reading or sending: each counts in its app's `inFlight` until settled. */
147
+ /**
148
+ * Tasks cancelled, unserved, or stopped by the contact's close or a session's end, that this side is still reading or
149
+ * sending: each counts in its app's `inFlight` until settled, across sessions.
150
+ */
148
151
  private readonly draining;
149
152
  private readonly asking;
150
153
  private readonly waiting;
@@ -183,8 +186,8 @@ export declare class AppRanges {
183
186
  /** The session stopped working on `task` without an answer (it is no longer live, or the channel went): its place frees, nothing is sent. */
184
187
  release(task: AppRangeTask): void;
185
188
  /**
186
- * Whether `task` is still this session's: serving, or cancelled and draining until it is settled. False once it was
187
- * settled, or its app closed or the session ended, which free its place: an answer to it sends and frees nothing.
189
+ * Whether `task` still holds a place: serving, or no longer live and draining until it is settled. False once it was
190
+ * settled, or this side's app closed, which frees its place: an answer to it sends and frees nothing.
188
191
  */
189
192
  holds(task: AppRangeTask): boolean;
190
193
  /** Reads `length` bytes at `offset` of what the contact's `app` serves as `serve`: the bytes (fewer at the end) and the file's size. */
@@ -198,9 +201,14 @@ export declare class AppRanges {
198
201
  receiveAnswer(frame: Extract<AppRangeFrame, {
199
202
  t: "ar-end" | "ar-err";
200
203
  }>): void;
201
- /** `app` closed on either side: its serves end, what it was sending stops and what it asked fails with `error`. */
202
- closeApp(app: string, error?: AppRangeReadError): void;
203
- /** The session ended: no serve id lasts into the next, and every request fails with `offline`. */
204
+ /**
205
+ * `app` closed on either side: its serves end, what it was sending stops and what it asked fails with `error`. A task
206
+ * this side is still reading keeps its place until it is settled, as a cancelled one does, so a contact that closes
207
+ * and opens its app again meets `busy`; only `stopped` (this side's app closed: nothing reads for it any more) frees
208
+ * them now.
209
+ */
210
+ closeApp(app: string, error?: AppRangeReadError, stopped?: boolean): void;
211
+ /** The session ended: no serve id lasts into the next, and every request fails with `offline`. Tasks still being read keep their places into the next. */
204
212
  reset(): void;
205
213
  /** Stops `task` and frees its request number; `draining` keeps it counted until it is settled. */
206
214
  private drop;
@@ -81,7 +81,10 @@ export declare function parseEditedFrame(frame: Record<string, unknown>): {
81
81
  * the edit's number beside it. The same for every send of the same edit, so its retries and its receipt match.
82
82
  */
83
83
  export declare function dhtEditId(id: string, e: number): string;
84
- /** A sliding window of `limit` events per `windowMs`: the sender's pace and the receiver's limit. */
84
+ /**
85
+ * A sliding window of `limit` events per `windowMs`: the sender's pace and the receiver's limit. A time later than now
86
+ * (the device clock went back) is long gone, or the window would stay full for as long as the clock went back.
87
+ */
85
88
  export declare class RateWindow {
86
89
  private readonly limit;
87
90
  private readonly windowMs;
@@ -159,7 +159,8 @@ export declare class HoldKeys {
159
159
  * A URL a bundle or manifest may be fetched from. The contact chose it and this device fetches it on its own, so it
160
160
  * is HTTPS, without a user or password, at a public name or a public IPv4 address: never this machine or its network.
161
161
  * A name with no dot or under a local suffix is a local one. A public name may still resolve to a local address:
162
- * where the host can resolve, its `fetch` refuses that too (the CLI's, packages/cli/src/runtime/holdFetch.ts).
162
+ * where the host can resolve, its `fetch` refuses that too (the CLI's, packages/cli/src/runtime/holdFetch.ts, and
163
+ * Desktop's, apps/desktop/src/hold_fetch.rs).
163
164
  * `loopback` adds plain HTTP to this machine, for a test against a local server; no shipped app passes it.
164
165
  */
165
166
  export declare function isHoldUrl(value: unknown, loopback?: boolean): value is string;
@@ -7,6 +7,15 @@
7
7
  export declare const MAX_NICK_LENGTH = 64;
8
8
  /** `text` without its invisible and direction-changing characters, at any length: for display text with a cut of its own. */
9
9
  export declare function stripHidden(text: string): string;
10
+ /**
11
+ * `text` without the joiners and variation selectors that join or select nothing, which draw nothing and could only
12
+ * make a name look like another one, or one nobody can type. A zero-width joiner stays between two emoji (a skin tone
13
+ * or VS16 before it) and either joiner between two letters of a script that joins its letters or makes conjuncts
14
+ * (Persian, the Indic scripts; the marks after the first letter, a virama, don't count); VS15 and VS16 stay after an
15
+ * emoji (an ASCII one only in a keycap), and the other selectors after a symbol or a letter that is not Latin, Greek or
16
+ * Cyrillic.
17
+ */
18
+ export declare function dropLoneJoiners(text: string): string;
10
19
  /** Whether `text` holds a character that shows by itself: a name of joiners, fillers or marks alone has none. */
11
20
  export declare function hasVisible(text: string): boolean;
12
21
  /** Undefined when nothing visible is left, so callers can fall back. */
@@ -98,8 +98,8 @@ export declare class TurnRecordError extends Error {
98
98
  * A device's name as its slot holds it: UTF-8, cut at a character boundary to 16 bytes, and with no NUL (the padding).
99
99
  * A character is what a person sees as one (a grapheme), so a cut never leaves half an emoji or a lone joiner.
100
100
  * A name is display text a device chooses for itself and every device of the set shows: it is cleaned as a nickname is
101
- * (`sanitizeDisplayText`: no control, invisible or direction-changing character, and empty when nothing of it shows)
102
- * and trimmed, made and read alike.
101
+ * (`sanitizeDisplayText`: no control, invisible or direction-changing character, and empty when nothing of it shows),
102
+ * without a joiner or variation selector that joins nothing (`dropLoneJoiners`), and trimmed, made and read alike.
103
103
  */
104
104
  export declare function turnName(name: string): string;
105
105
  /** What a release signs: `"ghostly-turn-release" || turnAddress(32) || turn(4) || toKey(32) || H(32)`. */
@@ -8,9 +8,26 @@ export declare const VIDEO_METADATA_LIMITS: {
8
8
  };
9
9
  /** Why a video is refused: its metadata could not be removed, so it does not go at all. */
10
10
  export declare const NO_VIDEO_METADATA = "This video cannot be sent: Ghostly could not remove the details saved in it, like where it was recorded";
11
+ /** A video as it is read: its size, and `length` of its bytes from `offset` (fewer only at its end). */
12
+ export interface VideoSource {
13
+ size: number;
14
+ read(offset: number, length: number): Promise<Uint8Array>;
15
+ }
16
+ /** A part of a video replaced as it is sent, `start` to `end` of the file: by `bytes`, or by zeros. */
17
+ export interface VideoPatch {
18
+ start: number;
19
+ end: number;
20
+ bytes?: Uint8Array;
21
+ }
11
22
  /**
12
23
  * `source` as it is sent: an MP4 or QuickTime video without its metadata, made of `source`'s own bytes but for the
13
24
  * boxes and samples zeroed; undefined when it goes as it is (not one of these videos, a file without a video track).
14
25
  * Throws `NO_VIDEO_METADATA` for a video whose metadata cannot be removed; an error reading `source` as it is.
15
26
  */
16
27
  export declare function withoutVideoMetadata(source: Blob, mime: string): Promise<Blob | undefined>;
28
+ /**
29
+ * What `withoutVideoMetadata` changes in a video read from `source` (one not held in a Blob: a file kept in storage):
30
+ * the parts replaced, in order and apart, the rest of its bytes going as they are; undefined when it goes as it is.
31
+ * Throws `NO_VIDEO_METADATA` as it does.
32
+ */
33
+ export declare function videoMetadataPatches(source: VideoSource, mime: string): Promise<VideoPatch[] | undefined>;
@@ -1,4 +1,4 @@
1
- import { od as boundVerifiedIdentity } from "./src-Ch4NWeBg.js";
1
+ import { ad as IdentityCheckUnavailable, sd as boundVerifiedIdentity } from "./src-BZy4lDju.js";
2
2
  //#region ../browser/src/proofs/verify.ts
3
3
  var DAY = 86400;
4
4
  /**
@@ -59,7 +59,7 @@ function availableSigners(p, platform) {
59
59
  */
60
60
  function boundedIdentityFetch(options = { online: () => true }) {
61
61
  return async (url, { headers, maxBytes = 65536, signal, redirect = "error" } = {}) => {
62
- if (!options.online()) throw new Error("Offline: this identity cannot be checked now");
62
+ if (!options.online()) throw new IdentityCheckUnavailable("Offline: this identity cannot be checked now");
63
63
  const target = new URL(url);
64
64
  if (target.protocol !== "https:" || target.username || target.password) throw new Error("Identity checks use HTTPS only");
65
65
  const timeout = AbortSignal.timeout(options.timeoutMs ?? 1e4);
@@ -103,4 +103,4 @@ function boundedIdentityFetch(options = { online: () => true }) {
103
103
  //#endregion
104
104
  export { verifyIdentity as i, boundedIdentityFetch as n, descriptorProblems as r, availableSigners as t };
105
105
 
106
- //# sourceMappingURL=verify-Bi_Y5oat.js.map
106
+ //# sourceMappingURL=verify-Bcd7K4q-.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify-Bcd7K4q-.js","names":[],"sources":["../../browser/src/proofs/verify.ts"],"sourcesContent":["import { boundVerifiedIdentity, IdentityCheckUnavailable, IDENTITY_MAX_EVIDENCE, IDENTITY_MAX_VALIDITY, type IdentityStatement, type VerifiedIdentity } from \"@ghostly/core\";\nimport type { IdentityFetch, IdentityProofProvider, IdentitySigner, VerifyContext } from \"./contract\";\n\nconst DAY = 86_400;\n\n/**\n * The checks every proof goes through, whatever its provider: known provider, validity within the\n * provider's limit, bounded evidence, strict parsing, the provider's own check, and the category rule\n * (a self-custodied proof proves exactly the subject it names; an attested one says who attests it).\n * The engine verifies a contact's proof, and the person's own proof before saving it, only through this.\n */\nexport async function verifyIdentity(providers: readonly IdentityProofProvider[], statement: IdentityStatement, evidence: unknown, ctx: VerifyContext): Promise<VerifiedIdentity> {\n const { binding } = statement;\n const provider = providers.find(p => p.id === binding.provider);\n if (!provider) throw new Error(\"This app cannot verify this kind of identity\");\n if (binding.expiresAt - binding.issuedAt > Math.min(provider.validity.maxDays * DAY, IDENTITY_MAX_VALIDITY)) throw new Error(\"The proof lasts longer than this kind of identity allows\");\n if (JSON.stringify(evidence ?? null).length > IDENTITY_MAX_EVIDENCE) throw new Error(\"Evidence too large\");\n const parsed = provider.parseEvidence(evidence);\n const verified = boundVerifiedIdentity(await provider.verify(statement, parsed, ctx));\n if (provider.category === \"self-custodied\" && verified.subject !== binding.subject) throw new Error(\"The evidence is for another identity\");\n if (provider.category === \"provider-attested\" && !verified.attester) throw new Error(\"The evidence does not say who attests it\");\n return verified;\n}\n\n/** Problems with a provider's descriptor, empty when it is well-formed. The registry and the contract suite use it. */\nexport function descriptorProblems(p: IdentityProofProvider): string[] {\n const problems: string[] = [];\n if (!/^[a-z][a-z0-9-]{0,31}$/.test(p.id)) problems.push(\"id must match ^[a-z][a-z0-9-]{0,31}$\");\n if (!p.label?.trim()) problems.push(\"label is empty\");\n if (!p.description?.trim()) problems.push(\"description is empty\");\n if (!p.privacy?.trim()) problems.push(\"privacy is empty: say what verify contacts\");\n if (p.category !== \"self-custodied\" && p.category !== \"provider-attested\") problems.push(\"category is unknown\");\n if (!p.platforms.length) problems.push(\"no platforms\");\n const { defaultDays, maxDays } = p.validity;\n if (!(Number.isInteger(defaultDays) && Number.isInteger(maxDays) && defaultDays >= 1 && defaultDays <= maxDays && maxDays * DAY <= IDENTITY_MAX_VALIDITY)) problems.push(\"validity must be whole days, 1 ≤ default ≤ max ≤ 400\");\n if (p.recheck && !(Number.isInteger(p.recheck.afterSeconds) && p.recheck.afterSeconds >= 60)) problems.push(\"recheck.afterSeconds must be at least 60\");\n if (!p.signers.length) problems.push(\"no signers\");\n const ids = p.signers.map(s => s.id);\n if (new Set(ids).size !== ids.length) problems.push(\"signer ids are not unique\");\n for (const s of p.signers as readonly IdentitySigner<unknown>[]) {\n if (![\"in-app\", \"external-tool\", \"redirect\", \"publish\"].includes(s.kind)) problems.push(`signer ${s.id} has an unknown kind`);\n if (s.kind === \"in-app\" && typeof s.run !== \"function\") problems.push(`signer ${s.id} has no run()`);\n if (s.kind === \"external-tool\" && (typeof s.instructions !== \"function\" || typeof s.parse !== \"function\")) problems.push(`signer ${s.id} needs instructions() and parse()`);\n if (s.kind === \"redirect\" && typeof s.start !== \"function\") problems.push(`signer ${s.id} has no start()`);\n if (s.kind === \"publish\" && (typeof s.instructions !== \"function\" || typeof s.evidence !== \"function\")) problems.push(`signer ${s.id} needs instructions() and evidence()`);\n }\n return problems;\n}\n\n/** Signers of a provider that run on this platform and are available in this window. */\nexport function availableSigners<E>(p: IdentityProofProvider<E>, platform: IdentityProofProvider[\"platforms\"][number]): IdentitySigner<E>[] {\n return p.signers.filter(s => (s.platforms ?? p.platforms).includes(platform) && (s.available?.() ?? true));\n}\n\n/**\n * The engine's `ctx.fetch`: HTTPS GET only, no credentials or referrer, a time-out, a size cap,\n * redirects refused unless asked for.\n * `online` false refuses everything (the person turned the network off).\n */\nexport function boundedIdentityFetch(options: { online: () => boolean; timeoutMs?: number; fetcher?: typeof fetch } = { online: () => true }): IdentityFetch {\n return async (url, { headers, maxBytes = 64 * 1024, signal, redirect = \"error\" } = {}) => {\n if (!options.online()) throw new IdentityCheckUnavailable(\"Offline: this identity cannot be checked now\");\n const target = new URL(url);\n if (target.protocol !== \"https:\" || target.username || target.password) throw new Error(\"Identity checks use HTTPS only\");\n const timeout = AbortSignal.timeout(options.timeoutMs ?? 10_000);\n const response = await (options.fetcher ?? fetch)(target.href, {\n headers, signal: signal ? AbortSignal.any([signal, timeout]) : timeout,\n credentials: \"omit\", referrerPolicy: \"no-referrer\", cache: \"no-store\", redirect,\n });\n if (Number(response.headers.get(\"content-length\")) > maxBytes) throw new Error(\"Identity check response too large\");\n const reader = response.body?.getReader();\n const parts: Uint8Array[] = [];\n let length = 0;\n if (reader) {\n try {\n for (;;) {\n const { done, value } = await reader.read();\n if (done) break;\n length += value.length;\n if (length > maxBytes) throw new Error(\"Identity check response too large\");\n parts.push(value);\n }\n } finally { await reader.cancel().catch(() => {}); }\n }\n const bytes = new Uint8Array(length);\n let offset = 0;\n for (const part of parts) { bytes.set(part, offset); offset += part.length; }\n return { status: response.status, contentType: response.headers.get(\"content-type\") ?? \"\", text: new TextDecoder().decode(bytes), bytes };\n };\n}\n"],"mappings":";;AAGA,IAAM,MAAM;;;;;;;AAQZ,eAAsB,eAAe,WAA6C,WAA8B,UAAmB,KAA+C;CAChL,MAAM,EAAE,YAAY;CACpB,MAAM,WAAW,UAAU,MAAK,MAAK,EAAE,OAAO,QAAQ,QAAQ;CAC9D,IAAI,CAAC,UAAU,MAAM,IAAI,MAAM,8CAA8C;CAC7E,IAAI,QAAQ,YAAY,QAAQ,WAAW,KAAK,IAAI,SAAS,SAAS,UAAU,KAAA,MAA0B,GAAG,MAAM,IAAI,MAAM,0DAA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AAW,OAAO,QAAQ,WAAW,MAAA,CAAO,OAAO,MAAM;GAC7D;GAAS,QAAQ,SAAS,YAAY,IAAI,CAAC,QAAQ,OAAO,CAAC,IAAI;GAC/D,aAAa;GAAQ,gBAAgB;GAAe,OAAO;GAAY;EACzE,CAAC;EACD,IAAI,OAAO,SAAS,QAAQ,IAAI,gBAAgB,CAAC,IAAI,UAAU,MAAM,IAAI,MAAM,mCAAmC;EAClH,MAAM,SAAS,SAAS,MAAM,UAAU;EACxC,MAAM,QAAsB,CAAC;EAC7B,IAAI,SAAS;EACb,IAAI,QACF,IAAI;GACF,SAAS;IACP,MAAM,EAAE,MAAM,UAAU,MAAM,OAAO,KAAK;IAC1C,IAAI,MAAM;IACV,UAAU,MAAM;IAChB,IAAI,SAAS,UAAU,MAAM,IAAI,MAAM,mCAAmC;IAC1E,MAAM,KAAK,KAAK;GAClB;EACF,UAAU;GAAE,MAAM,OAAO,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC;EAAG;EAErD,MAAM,QAAQ,IAAI,WAAW,MAAM;EACnC,IAAI,SAAS;EACb,KAAK,MAAM,QAAQ,OAAO;GAAE,MAAM,IAAI,MAAM,MAAM;GAAG,UAAU,KAAK;EAAQ;EAC5E,OAAO;GAAE,QAAQ,SAAS;GAAQ,aAAa,SAAS,QAAQ,IAAI,cAAc,KAAK;GAAI,MAAM,IAAI,YAAY,CAAC,CAAC,OAAO,KAAK;GAAG;EAAM;CAC1I;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghostlytools/sdk",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "type": "module",
5
5
  "description": "Build a wallet source, an identity proof, a mini-app or a client for Ghostly without reading its internals: the adapter contracts, their fakes and contract test suites, the plugin registry, and the mini-app API types (Apps run in Ghostly 1.2 and later).",
6
6
  "license": "MIT",