@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.
- package/dist/errors.d.ts +10 -0
- package/dist/index.cjs +42 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +34 -15
- package/dist/index.mjs +42 -7
- package/dist/index.mjs.map +1 -1
- package/dist/ingots/types.d.ts +11 -9
- package/dist/products/identity/index.d.ts +6 -2
- package/dist/sparks/types.d.ts +6 -3
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
package/dist/ingots/types.d.ts
CHANGED
|
@@ -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
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* `
|
|
44
|
-
*
|
|
45
|
-
* browser
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* `application/
|
|
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
|
|
58
|
-
*
|
|
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())
|
package/dist/sparks/types.d.ts
CHANGED
|
@@ -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
|
|
60
|
-
*
|
|
61
|
-
*
|
|
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
|