@sparkvault/sdk-js 12.0.1 → 12.0.3

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.
@@ -37,15 +37,17 @@ export interface Ingot {
37
37
  * kept as it is when the first word of the extension it shows (up to an
38
38
  * ASCII space, in any case) is one the MIME registry knows or holds a
39
39
  * character none of the registry's extensions is spelled with, which may
40
- * draw as one, and otherwise completed with the first extension the
41
- * registry lists for `contentType`, never one a saved copy must never open
42
- * as. Save a copy under it, handed to a browser as
43
- * `application/octet-stream` unless `contentType` is a raster image, audio,
44
- * video or PDF format (never SVG, a playlist or a stream redirector): a
45
- * browser renames a saved copy by the type it is handed (Chrome saves
46
- * `Invoice` typed `application/x-msdownload` as `Invoice.exe`), and
47
- * completes or replaces no extension of a copy handed as
48
- * `application/octet-stream`.
40
+ * draw as one, and otherwise completed with the extension `contentType`'s
41
+ * files are named with (the first the registry lists for it, or, for the
42
+ * few types whose first is not the one desktops name their files with, the
43
+ * one they do: `.mp3` for `audio/mpeg`, `.mov` for `video/quicktime`), never
44
+ * one a saved copy must never open as. Save a copy under it, handed to a
45
+ * browser as `application/octet-stream` unless `contentType` is a raster
46
+ * image, audio, video or PDF format (never SVG, a playlist or a stream
47
+ * redirector): a browser renames a saved copy by the type it is handed
48
+ * (Chrome saves `Invoice` typed `application/x-msdownload` as
49
+ * `Invoice.exe`), and completes or replaces no extension of a copy handed
50
+ * as `application/octet-stream`.
49
51
  */
50
52
  downloadFilename: string;
51
53
  /** Content type (MIME) */
@@ -54,8 +54,12 @@ export declare class IdentityModule {
54
54
  * `IdentityModule.isFedcmAvailable()` and fall back to `signIn()` otherwise.
55
55
  *
56
56
  * @returns the verified result, or `null` when the browser has no FedCM
57
- * support (so the caller can fall back). Throws `UserCancelledError` when the
58
- * person dismisses the chooser.
57
+ * support (so the caller can fall back). Throws `UserCancelledError` when
58
+ * the browser ends the request without a credential: the person dismissed
59
+ * the chooser, or the browser had no SparkVault account to offer (the
60
+ * browser reports both alike). Throws `IdentityProviderError`, carrying
61
+ * SparkVault's own error code, when SparkVault answered the sign-in with an
62
+ * error.
59
63
  *
60
64
  * @example
61
65
  * const result = (await sv.products.identity.isFedcmAvailable())
@@ -56,9 +56,12 @@ export interface Spark {
56
56
  * with none, kept as it is when the first word of the extension it shows
57
57
  * (up to an ASCII space, in any case) is one the MIME registry knows or
58
58
  * holds a character none of the registry's extensions is spelled with,
59
- * which may draw as one, and otherwise completed with the first extension
60
- * the registry lists for `contentType`, never one a saved copy must never
61
- * open as. Save a copy under it, handed to a browser as
59
+ * which may draw as one, and otherwise completed with the extension
60
+ * `contentType`'s files are named with (the first the registry lists for
61
+ * it, or, for the few types whose first is not the one desktops name their
62
+ * files with, the one they do: `.mp3` for `audio/mpeg`, `.mov` for
63
+ * `video/quicktime`), never one a saved copy must never open as. Save a
64
+ * copy under it, handed to a browser as
62
65
  * `application/octet-stream` unless `contentType` is a raster image, audio,
63
66
  * video or PDF format (never SVG, a playlist or a stream redirector): a
64
67
  * browser renames a saved copy by the type it is handed (Chrome saves