@sparkvault/sdk-js 12.0.3 → 12.0.5
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/index.cjs +342 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +196 -91
- package/dist/index.mjs +342 -91
- package/dist/index.mjs.map +1 -1
- package/dist/ingots/index.d.ts +54 -7
- package/dist/ingots/types.d.ts +59 -4
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/upload/api.d.ts +9 -0
- package/dist/vaults/upload/renderer.d.ts +5 -0
- package/dist/vaults/upload/types.d.ts +16 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1952,6 +1952,13 @@ interface UploadOptions {
|
|
|
1952
1952
|
onCancel?: () => void;
|
|
1953
1953
|
/** Callback for upload progress */
|
|
1954
1954
|
onProgress?: (progress: UploadProgress) => void;
|
|
1955
|
+
/**
|
|
1956
|
+
* Called once the widget has read the vault's upload page and shows its
|
|
1957
|
+
* form (or, given a `file`, starts uploading it). A failure after it is the
|
|
1958
|
+
* widget's to show, with the way on its failure leaves (the same file
|
|
1959
|
+
* again, or another); one before it means the upload page could not load.
|
|
1960
|
+
*/
|
|
1961
|
+
onReady?: () => void;
|
|
1955
1962
|
}
|
|
1956
1963
|
/** Options for attach() - binds upload to element clicks */
|
|
1957
1964
|
interface UploadAttachOptions {
|
|
@@ -2286,8 +2293,10 @@ interface UpdateFolderOptions {
|
|
|
2286
2293
|
* - `upsert` (the server default): the upload replaces the holder's content.
|
|
2287
2294
|
* - `complete_pending`: a holder whose own upload never finalized is completed
|
|
2288
2295
|
* (`created: false`); a published holder is refused with a 409 CONFLICT whose
|
|
2289
|
-
* `details`
|
|
2290
|
-
*
|
|
2296
|
+
* `details.reason` is `'NAME_HELD'`, and is left untouched. The details
|
|
2297
|
+
* describe the holder (`ingot_id`, `status`, `size_bytes`) unless another
|
|
2298
|
+
* app manages it or another request claimed the name first, when they carry
|
|
2299
|
+
* the reason alone.
|
|
2291
2300
|
* - `refuse`: any holder, its upload finished or not, is refused with that
|
|
2292
2301
|
* same 409 and left untouched; the create only ever mints.
|
|
2293
2302
|
* - `new_name`: the holder is never touched; the ingot is minted under the
|
|
@@ -2357,7 +2366,22 @@ interface IngotUpload {
|
|
|
2357
2366
|
* ingot already holding the name (false, as `onNameConflict` allowed).
|
|
2358
2367
|
*/
|
|
2359
2368
|
created: boolean;
|
|
2369
|
+
/**
|
|
2370
|
+
* The upload the create staged onto the ingot (Core's `upload_id`): the id
|
|
2371
|
+
* Forge keys the upload's session by, and the `contentVersion` the ingot
|
|
2372
|
+
* reads once the upload publishes. Giving the upload up ends it with the
|
|
2373
|
+
* file the create made through this id (`endUpload`). Null when the server
|
|
2374
|
+
* named none.
|
|
2375
|
+
*/
|
|
2376
|
+
uploadId: string | null;
|
|
2360
2377
|
}
|
|
2378
|
+
/**
|
|
2379
|
+
* What became of a given-up upload's file (`endUpload`): `deleted`, the vault
|
|
2380
|
+
* holds it no longer (this end deleted it, or it was already gone); `kept`,
|
|
2381
|
+
* this end deleted nothing, and a read of it by id (`get`) shows the file as
|
|
2382
|
+
* it is now.
|
|
2383
|
+
*/
|
|
2384
|
+
type UploadEnd = 'deleted' | 'kept';
|
|
2361
2385
|
/** A finalized ingot, returned by the high-level upload/replace flows. */
|
|
2362
2386
|
interface CreatedIngot {
|
|
2363
2387
|
/** Ingot ID */
|
|
@@ -2562,6 +2586,16 @@ interface IngotSharingConfig {
|
|
|
2562
2586
|
shared: boolean;
|
|
2563
2587
|
/** Visibility mode */
|
|
2564
2588
|
visibility?: 'invite_only' | 'authenticated' | 'public';
|
|
2589
|
+
/** The share's permanent files.sv URL, the link its recipients open; null while the ingot is not shared */
|
|
2590
|
+
publicUrl: string | null;
|
|
2591
|
+
/** The share's link code (the URL's last segment); null while the ingot is not shared */
|
|
2592
|
+
linkCode: string | null;
|
|
2593
|
+
/** Whether the vault's public file sharing is on */
|
|
2594
|
+
sharingEnabled: boolean;
|
|
2595
|
+
/** Whether the vault makes every ingot public, which pins this one to public */
|
|
2596
|
+
vaultAllIngotsPublic: boolean;
|
|
2597
|
+
/** The vault's share recipient session length, in seconds */
|
|
2598
|
+
sessionLengthSeconds: number;
|
|
2565
2599
|
/** Active invites */
|
|
2566
2600
|
invites?: IngotInvite[];
|
|
2567
2601
|
}
|
|
@@ -2580,6 +2614,15 @@ interface IngotInvite {
|
|
|
2580
2614
|
identity: string;
|
|
2581
2615
|
/** Identity type */
|
|
2582
2616
|
identityType: 'email' | 'phone';
|
|
2617
|
+
/** When this identity was invited (Unix seconds) */
|
|
2618
|
+
invitedAt: number;
|
|
2619
|
+
}
|
|
2620
|
+
/** An invitation addInvite made or resent. */
|
|
2621
|
+
interface IngotInvitation extends IngotInvite {
|
|
2622
|
+
/** The URL this invitee was sent: the share's files.sv URL, with their own token when the share invites several */
|
|
2623
|
+
shareUrl: string;
|
|
2624
|
+
/** Whether the invitation was delivered by email or text */
|
|
2625
|
+
delivered: boolean;
|
|
2583
2626
|
}
|
|
2584
2627
|
/**
|
|
2585
2628
|
* An ingot access-log entry: a download that delivered the file, a SparkLink
|
|
@@ -2689,6 +2732,104 @@ interface FetchedDownload {
|
|
|
2689
2732
|
*/
|
|
2690
2733
|
declare function fetchDownload(url: string, options?: FetchDownloadOptions): Promise<FetchedDownload>;
|
|
2691
2734
|
|
|
2735
|
+
/**
|
|
2736
|
+
* SparkVault SDK Error Types
|
|
2737
|
+
*/
|
|
2738
|
+
declare class SparkVaultError extends Error {
|
|
2739
|
+
readonly code: string;
|
|
2740
|
+
readonly statusCode?: number;
|
|
2741
|
+
readonly details?: Record<string, unknown>;
|
|
2742
|
+
/**
|
|
2743
|
+
* The answer's `Retry-After`, in ms from the answer, read as the platform's
|
|
2744
|
+
* transfer policy reads it (RFC 9110 §10.2.3: delay-seconds or an
|
|
2745
|
+
* HTTP-date): the earliest a next attempt can expect another answer, which
|
|
2746
|
+
* every retry the SDK makes waits out as a floor. Null when the answer
|
|
2747
|
+
* carried none the policy could read, or no answer arrived.
|
|
2748
|
+
*/
|
|
2749
|
+
readonly retryAfterMs: number | null;
|
|
2750
|
+
constructor(message: string, code: string, statusCode?: number, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
2751
|
+
}
|
|
2752
|
+
declare class AuthenticationError extends SparkVaultError {
|
|
2753
|
+
constructor(message: string, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
2754
|
+
}
|
|
2755
|
+
declare class AuthorizationError extends SparkVaultError {
|
|
2756
|
+
constructor(message: string, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
2757
|
+
}
|
|
2758
|
+
declare class ValidationError extends SparkVaultError {
|
|
2759
|
+
constructor(message: string, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
2760
|
+
}
|
|
2761
|
+
/**
|
|
2762
|
+
* The pooled-capacity resource a quota gate refers to. Only the byte pools
|
|
2763
|
+
* hard-gate: licenses are assigned per member, never drawn from a pool
|
|
2764
|
+
* (inviting and licensing are never quota-gated), and Identity soft-gates
|
|
2765
|
+
* through its own path.
|
|
2766
|
+
*/
|
|
2767
|
+
type QuotaResource = 'storage' | 'bandwidth';
|
|
2768
|
+
/**
|
|
2769
|
+
* Plan required gate (402 PLAN_REQUIRED) — the account has no active
|
|
2770
|
+
* subscription and attempted a billable/create action. Surface a subscribe CTA
|
|
2771
|
+
* to admins, or "ask your account admin" to members.
|
|
2772
|
+
*/
|
|
2773
|
+
declare class PlanRequiredError extends SparkVaultError {
|
|
2774
|
+
constructor(message: string, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
2775
|
+
}
|
|
2776
|
+
/**
|
|
2777
|
+
* Quota exceeded gate (402 QUOTA_EXCEEDED) — a pooled-capacity limit is
|
|
2778
|
+
* exhausted. `resource` identifies which pool so callers can point the CTA at
|
|
2779
|
+
* the right capacity block.
|
|
2780
|
+
*/
|
|
2781
|
+
declare class QuotaExceededError extends SparkVaultError {
|
|
2782
|
+
readonly resource?: QuotaResource;
|
|
2783
|
+
constructor(message: string, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
2784
|
+
}
|
|
2785
|
+
/**
|
|
2786
|
+
* Notify subscription gate (403 NOTIFY_SUBSCRIPTION_REQUIRED) — the account has
|
|
2787
|
+
* no active Notify subscription and attempted a send. Distinct from a generic
|
|
2788
|
+
* authorization failure: the credential is fine and re-authenticating changes
|
|
2789
|
+
* nothing, so surface a subscribe CTA rather than a sign-in prompt.
|
|
2790
|
+
*/
|
|
2791
|
+
declare class NotifySubscriptionRequiredError extends SparkVaultError {
|
|
2792
|
+
constructor(message: string, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
2793
|
+
}
|
|
2794
|
+
declare class NetworkError extends SparkVaultError {
|
|
2795
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
2796
|
+
}
|
|
2797
|
+
declare class TimeoutError extends SparkVaultError {
|
|
2798
|
+
constructor(message?: string);
|
|
2799
|
+
}
|
|
2800
|
+
declare class UserCancelledError extends SparkVaultError {
|
|
2801
|
+
constructor(message?: string);
|
|
2802
|
+
}
|
|
2803
|
+
/**
|
|
2804
|
+
* The identity provider answered a FedCM sign-in with an error of its own
|
|
2805
|
+
* (the browser's `IdentityCredentialError`), after the browser showed the
|
|
2806
|
+
* person its error dialog: the request reached the provider, which refused or
|
|
2807
|
+
* failed it, so it is no cancel. `code` is the provider's answer
|
|
2808
|
+
* (`server_error`, `access_denied`, ...).
|
|
2809
|
+
*/
|
|
2810
|
+
declare class IdentityProviderError extends SparkVaultError {
|
|
2811
|
+
constructor(code: string);
|
|
2812
|
+
}
|
|
2813
|
+
declare class PopupBlockedError extends SparkVaultError {
|
|
2814
|
+
constructor();
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
/**
|
|
2818
|
+
* Upload API
|
|
2819
|
+
*
|
|
2820
|
+
* API client for vault upload operations.
|
|
2821
|
+
*/
|
|
2822
|
+
|
|
2823
|
+
/**
|
|
2824
|
+
* Whether a transfer failed once the server held every byte of its upload,
|
|
2825
|
+
* short of the upload's own end: `upload_received_publishing`, and any other
|
|
2826
|
+
* failure of the receipt that confirms publication (one refused, or one that
|
|
2827
|
+
* went unanswered), never a gone session, Core's refusal or a cancel. The
|
|
2828
|
+
* server publishes such an upload, or ends it, on its own, so its caller
|
|
2829
|
+
* neither sends it again nor gives it up (`ingots.endUpload`).
|
|
2830
|
+
*/
|
|
2831
|
+
declare function isReceivedUploadFailure(error: unknown): boolean;
|
|
2832
|
+
|
|
2692
2833
|
/**
|
|
2693
2834
|
* Ingots Module
|
|
2694
2835
|
*
|
|
@@ -2713,7 +2854,9 @@ declare class IngotsModule {
|
|
|
2713
2854
|
* transfer yourself; otherwise prefer {@link upload}. A create another
|
|
2714
2855
|
* upload of the same file superseded before its token was issued rejects
|
|
2715
2856
|
* with code `upload_refused` (`details.coreCode` UPLOAD_SUPERSEDED): the
|
|
2716
|
-
* later upload is the one kept, so a new upload is no remedy.
|
|
2857
|
+
* later upload is the one kept, so a new upload is no remedy. An upload
|
|
2858
|
+
* you give up (you cancel its transfer, or it fails for good) ends with the
|
|
2859
|
+
* file its create made through {@link endUpload}, given this result.
|
|
2717
2860
|
*
|
|
2718
2861
|
* @example
|
|
2719
2862
|
* const session = await sv.ingots.createUpload({
|
|
@@ -2723,6 +2866,37 @@ declare class IngotsModule {
|
|
|
2723
2866
|
* console.log(session.uploadUrl);
|
|
2724
2867
|
*/
|
|
2725
2868
|
createUpload(options: CreateUploadOptions): Promise<IngotUpload>;
|
|
2869
|
+
/**
|
|
2870
|
+
* End an upload you give up (you cancelled its transfer, or it failed for
|
|
2871
|
+
* good) with the file its create made ({@link createUpload}'s result): the
|
|
2872
|
+
* server deletes the ingot only while it is still that upload's unfinished
|
|
2873
|
+
* file, ending the upload first, so a publication racing the end is decided
|
|
2874
|
+
* before anything goes. Never give up one the server received whole
|
|
2875
|
+
* ({@link isReceivedUploadFailure}): the server publishes or ends it on its
|
|
2876
|
+
* own. Resolves `deleted` once the vault holds the file no longer, deleted
|
|
2877
|
+
* now or already gone. Resolves `kept` when this end deleted nothing, which
|
|
2878
|
+
* {@link get} shows as it is now: the upload published the file, or a later
|
|
2879
|
+
* upload took it over, before the end reached the server, or, with no
|
|
2880
|
+
* request sent, the create did not make it (`created: false`) or names no
|
|
2881
|
+
* upload (`uploadId: null`), since a delete without its upload would take
|
|
2882
|
+
* whatever file stands. Any other failure rejects, the file left as it was.
|
|
2883
|
+
* {@link upload} ends an upload it cannot finish this way by itself.
|
|
2884
|
+
*
|
|
2885
|
+
* @example
|
|
2886
|
+
* const upload = await sv.ingots.createUpload({ vault: unsealed, name: file.name,
|
|
2887
|
+
* contentType: file.type, sizeBytes: file.size });
|
|
2888
|
+
* try {
|
|
2889
|
+
* await sv.ingots.sendUpload(upload.uploadUrl, file, { signal: controller.signal });
|
|
2890
|
+
* } catch (error) {
|
|
2891
|
+
* if (!isReceivedUploadFailure(error) &&
|
|
2892
|
+
* await sv.ingots.endUpload(unsealed, upload) === 'kept') {
|
|
2893
|
+
* // The end deleted nothing (the upload published the file, say): show it as it is.
|
|
2894
|
+
* showIngot(await sv.ingots.get(unsealed, upload.id));
|
|
2895
|
+
* }
|
|
2896
|
+
* throw error;
|
|
2897
|
+
* }
|
|
2898
|
+
*/
|
|
2899
|
+
endUpload(vault: UnsealedVault, upload: Pick<IngotUpload, 'id' | 'created' | 'uploadId'>): Promise<UploadEnd>;
|
|
2726
2900
|
/**
|
|
2727
2901
|
* Send a file's bytes to an upload session — the `uploadUrl` a
|
|
2728
2902
|
* {@link createUpload} returned — over the resumable transfer every SDK
|
|
@@ -2809,7 +2983,11 @@ declare class IngotsModule {
|
|
|
2809
2983
|
* server refused — another upload of it superseded this one, at its create
|
|
2810
2984
|
* or while it streamed, the storage pool cannot take it, or its vault is
|
|
2811
2985
|
* scheduled for deletion (a 409 `VAULT_DELETION_SCHEDULED`) — rejects with
|
|
2812
|
-
* code `upload_refused`, as {@link sendUpload} does.
|
|
2986
|
+
* code `upload_refused`, as {@link sendUpload} does. An upload that rejects
|
|
2987
|
+
* any way but one the server received whole ({@link isReceivedUploadFailure}:
|
|
2988
|
+
* the server publishes or ends that one on its own) is given up: the end of
|
|
2989
|
+
* it with the file its create made ({@link endUpload}) starts as it
|
|
2990
|
+
* rejects, without holding up its own error.
|
|
2813
2991
|
*
|
|
2814
2992
|
* @example
|
|
2815
2993
|
* const ingot = await sv.ingots.upload(unsealed, {
|
|
@@ -2817,6 +2995,12 @@ declare class IngotsModule {
|
|
|
2817
2995
|
* });
|
|
2818
2996
|
*/
|
|
2819
2997
|
upload(vault: UnsealedVault, options: UploadIngotOptions): Promise<CreatedIngot>;
|
|
2998
|
+
/**
|
|
2999
|
+
* End an upload this flow gave up ({@link endUpload}) without holding up
|
|
3000
|
+
* the error its caller is answered with: an end that fails leaves the file
|
|
3001
|
+
* to the server's expiry of abandoned uploads, and is logged.
|
|
3002
|
+
*/
|
|
3003
|
+
private endGivenUp;
|
|
2820
3004
|
/**
|
|
2821
3005
|
* Replace an existing ingot's content (high-level flow). Rejects as
|
|
2822
3006
|
* {@link upload} does, a replacement another upload of the same ingot
|
|
@@ -2942,13 +3126,16 @@ declare class IngotsModule {
|
|
|
2942
3126
|
*/
|
|
2943
3127
|
updateSharingConfig(vault: UnsealedVault, ingotId: string, config: UpdateIngotSharingOptions): Promise<IngotSharingConfig>;
|
|
2944
3128
|
/**
|
|
2945
|
-
* Invite an identity to
|
|
2946
|
-
*
|
|
3129
|
+
* Invite an identity to an ingot's invite-only share, or share an ingot not
|
|
3130
|
+
* yet shared invite-only with it. A public or authenticated share refuses
|
|
3131
|
+
* it (a ValidationError) and changes nothing: set its visibility to
|
|
3132
|
+
* `invite_only` first. The identity type (email or phone) is inferred
|
|
3133
|
+
* server-side from the identity value.
|
|
2947
3134
|
*
|
|
2948
3135
|
* @example
|
|
2949
3136
|
* await sv.ingots.addInvite(unsealed, 'ing_abc', 'user@example.com');
|
|
2950
3137
|
*/
|
|
2951
|
-
addInvite(vault: UnsealedVault, ingotId: string, identity: string): Promise<
|
|
3138
|
+
addInvite(vault: UnsealedVault, ingotId: string, identity: string): Promise<IngotInvitation>;
|
|
2952
3139
|
/**
|
|
2953
3140
|
* Revoke an ingot sharing invite.
|
|
2954
3141
|
*
|
|
@@ -3547,88 +3734,6 @@ declare const logger: {
|
|
|
3547
3734
|
error: (message: string, ...args: unknown[]) => void;
|
|
3548
3735
|
};
|
|
3549
3736
|
|
|
3550
|
-
/**
|
|
3551
|
-
* SparkVault SDK Error Types
|
|
3552
|
-
*/
|
|
3553
|
-
declare class SparkVaultError extends Error {
|
|
3554
|
-
readonly code: string;
|
|
3555
|
-
readonly statusCode?: number;
|
|
3556
|
-
readonly details?: Record<string, unknown>;
|
|
3557
|
-
/**
|
|
3558
|
-
* The answer's `Retry-After`, in ms from the answer, read as the platform's
|
|
3559
|
-
* transfer policy reads it (RFC 9110 §10.2.3: delay-seconds or an
|
|
3560
|
-
* HTTP-date): the earliest a next attempt can expect another answer, which
|
|
3561
|
-
* every retry the SDK makes waits out as a floor. Null when the answer
|
|
3562
|
-
* carried none the policy could read, or no answer arrived.
|
|
3563
|
-
*/
|
|
3564
|
-
readonly retryAfterMs: number | null;
|
|
3565
|
-
constructor(message: string, code: string, statusCode?: number, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
3566
|
-
}
|
|
3567
|
-
declare class AuthenticationError extends SparkVaultError {
|
|
3568
|
-
constructor(message: string, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
3569
|
-
}
|
|
3570
|
-
declare class AuthorizationError extends SparkVaultError {
|
|
3571
|
-
constructor(message: string, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
3572
|
-
}
|
|
3573
|
-
declare class ValidationError extends SparkVaultError {
|
|
3574
|
-
constructor(message: string, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
3575
|
-
}
|
|
3576
|
-
/**
|
|
3577
|
-
* The pooled-capacity resource a quota gate refers to. Only the byte pools
|
|
3578
|
-
* hard-gate: licenses are assigned per member, never drawn from a pool
|
|
3579
|
-
* (inviting and licensing are never quota-gated), and Identity soft-gates
|
|
3580
|
-
* through its own path.
|
|
3581
|
-
*/
|
|
3582
|
-
type QuotaResource = 'storage' | 'bandwidth';
|
|
3583
|
-
/**
|
|
3584
|
-
* Plan required gate (402 PLAN_REQUIRED) — the account has no active
|
|
3585
|
-
* subscription and attempted a billable/create action. Surface a subscribe CTA
|
|
3586
|
-
* to admins, or "ask your account admin" to members.
|
|
3587
|
-
*/
|
|
3588
|
-
declare class PlanRequiredError extends SparkVaultError {
|
|
3589
|
-
constructor(message: string, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
3590
|
-
}
|
|
3591
|
-
/**
|
|
3592
|
-
* Quota exceeded gate (402 QUOTA_EXCEEDED) — a pooled-capacity limit is
|
|
3593
|
-
* exhausted. `resource` identifies which pool so callers can point the CTA at
|
|
3594
|
-
* the right capacity block.
|
|
3595
|
-
*/
|
|
3596
|
-
declare class QuotaExceededError extends SparkVaultError {
|
|
3597
|
-
readonly resource?: QuotaResource;
|
|
3598
|
-
constructor(message: string, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
3599
|
-
}
|
|
3600
|
-
/**
|
|
3601
|
-
* Notify subscription gate (403 NOTIFY_SUBSCRIPTION_REQUIRED) — the account has
|
|
3602
|
-
* no active Notify subscription and attempted a send. Distinct from a generic
|
|
3603
|
-
* authorization failure: the credential is fine and re-authenticating changes
|
|
3604
|
-
* nothing, so surface a subscribe CTA rather than a sign-in prompt.
|
|
3605
|
-
*/
|
|
3606
|
-
declare class NotifySubscriptionRequiredError extends SparkVaultError {
|
|
3607
|
-
constructor(message: string, details?: Record<string, unknown>, retryAfterMs?: number | null);
|
|
3608
|
-
}
|
|
3609
|
-
declare class NetworkError extends SparkVaultError {
|
|
3610
|
-
constructor(message: string, details?: Record<string, unknown>);
|
|
3611
|
-
}
|
|
3612
|
-
declare class TimeoutError extends SparkVaultError {
|
|
3613
|
-
constructor(message?: string);
|
|
3614
|
-
}
|
|
3615
|
-
declare class UserCancelledError extends SparkVaultError {
|
|
3616
|
-
constructor(message?: string);
|
|
3617
|
-
}
|
|
3618
|
-
/**
|
|
3619
|
-
* The identity provider answered a FedCM sign-in with an error of its own
|
|
3620
|
-
* (the browser's `IdentityCredentialError`), after the browser showed the
|
|
3621
|
-
* person its error dialog: the request reached the provider, which refused or
|
|
3622
|
-
* failed it, so it is no cancel. `code` is the provider's answer
|
|
3623
|
-
* (`server_error`, `access_denied`, ...).
|
|
3624
|
-
*/
|
|
3625
|
-
declare class IdentityProviderError extends SparkVaultError {
|
|
3626
|
-
constructor(code: string);
|
|
3627
|
-
}
|
|
3628
|
-
declare class PopupBlockedError extends SparkVaultError {
|
|
3629
|
-
constructor();
|
|
3630
|
-
}
|
|
3631
|
-
|
|
3632
3737
|
/**
|
|
3633
3738
|
* SparkVault JavaScript SDK
|
|
3634
3739
|
*
|
|
@@ -3710,5 +3815,5 @@ declare global {
|
|
|
3710
3815
|
}
|
|
3711
3816
|
}
|
|
3712
3817
|
|
|
3713
|
-
export { AuthenticationError, AuthorizationError, EntropyModule, FoldersModule, IdentityModule, IdentityProviderError, IngotsModule, NAME_CONFLICT_POLICIES, NOTIFY_PRESETS, NetworkError, NotifyModule, NotifyProductModule, NotifySubscriptionRequiredError, PlanRequiredError, PopupBlockedError, ProductsModule, QuotaExceededError, SparkVault, SparkVaultError, SparksModule, TimeoutError, UserCancelledError, ValidationError, VaultsModule, buildNotifyPresetSend, SparkVault as default, fetchDownload, logger, setDebugMode };
|
|
3714
|
-
export type { AccessLogRetention, AccessLogsOptions, CreateFolderOptions, CreateNotifySendOptions, CreateSparkOptions, CreateUploadOptions, CreateVaultOptions, CreatedIngot, CreatedSpark, EntropyFormat, EntropyResult, FetchDownloadOptions, FetchedDownload, Folder, FolderBreadcrumbItem, FolderContents, FolderPage, GenerateEntropyOptions, HealthCheckOptions, HealthCheckResult, AttachOptions as IdentityAttachOptions, Ingot, IngotAccessLog, IngotAccessLogPage, IngotDownloadLink, IngotInvite, IngotPage, IngotSharingConfig, IngotUpload, ListContentsOptions, ListFoldersOptions, ListIngotsOptions, ListNotificationsOptions, ListNotificationsResponse, ListNotifyInboxOptions, ListNotifyInboxResponse, ListNotifyReceiptsOptions, ListNotifyReceiptsResponse, ListNotifySendsOptions, ListNotifySendsResponse, ListSparksOptions, MarkAllNotificationsStateOptions, MarkAllNotificationsStateResponse, MarkAllReadResult, MarkNotificationStateOptions, MarkNotificationStateResponse, MarkNotifyInboxAllOptions, MarkNotifyInboxAllResponse, MarkNotifyInboxStateOptions, MarkNotifyInboxStateResponse, NameConflictPolicy, NotificationBulkMarkState, NotificationInboxState, NotificationMarkState, NotificationRow, NotifyCategory, NotifyChannel, NotifyConfig, NotifyConfigCategory, NotifyConfigDelivery, NotifyConfigEvents, NotifyConfigEventsRead, NotifyConfigHistory, NotifyConfigOverrides, NotifyConfigPatch, NotifyConfigRealtimeFallbackDelay, NotifyConfigReliability, NotifyConfigResponse, NotifyConfigSecurity, NotifyDeliveryMode, NotifyEscalation, NotifyInboxBulkMarkState, NotifyInboxMarkState, NotifyInboxRow, NotifyInboxView, NotifyIngotRef, NotifyInteraction, NotifyPreset, NotifyPresetCategory, NotifyPresetName, NotifyPresetSendOptions, NotifyRecallMode, NotifyReceipt, NotifyReceiptEventType, NotifyRecipient, NotifyRecipientRef, NotifySendContent, NotifySendPolicy, NotifySendReceipt, NotifySendReceiptsResponse, NotifySendResult, NotifySendState, NotifySendStatus, NotifySendStatusCounts, NotifySendStatusRecipient, NotifySendSummary, NotifyVerificationLevel, QuotaResource, RecallNotifySendOptions, RecallNotifySendResponse, RegisterWebPushResponse, ReplaceIngotOptions, ResumeUploadOptions, ScheduledVaultDeletion, SearchIngotsOptions, SendUploadOptions, ShareSparkOptions, Spark, SparkInviteResend, SparkPage, SparkShare, SparkSummary, SparkVaultConfig, SparkVisibility, SubscribeWebPushOptions, SubscribeWebPushResult, SubscribeWebPushStatus, TokenClaims, UnreadCountResponse, UnsealedVault, UnsubscribeWebPushResponse, UpdateFolderOptions, UpdateIngotSharingOptions, UpdateVaultUploadOptions, UpdatedVault, UploadAttachOptions, UploadBranding, UploadIngotOptions, UploadOptions, UploadProgress, UploadResult, UploadSession, Vault, VaultDetail, VaultLifecycle, VaultSharingConfig, VaultSharingOptions, VaultSummary, VaultUploadConfig, VaultUploadSettings, VerifyOptions, VerifyResult, WebPushKeyResponse, WebPushSubscriptionInput };
|
|
3818
|
+
export { AuthenticationError, AuthorizationError, EntropyModule, FoldersModule, IdentityModule, IdentityProviderError, IngotsModule, NAME_CONFLICT_POLICIES, NOTIFY_PRESETS, NetworkError, NotifyModule, NotifyProductModule, NotifySubscriptionRequiredError, PlanRequiredError, PopupBlockedError, ProductsModule, QuotaExceededError, SparkVault, SparkVaultError, SparksModule, TimeoutError, UserCancelledError, ValidationError, VaultsModule, buildNotifyPresetSend, SparkVault as default, fetchDownload, isReceivedUploadFailure, logger, setDebugMode };
|
|
3819
|
+
export type { AccessLogRetention, AccessLogsOptions, CreateFolderOptions, CreateNotifySendOptions, CreateSparkOptions, CreateUploadOptions, CreateVaultOptions, CreatedIngot, CreatedSpark, EntropyFormat, EntropyResult, FetchDownloadOptions, FetchedDownload, Folder, FolderBreadcrumbItem, FolderContents, FolderPage, GenerateEntropyOptions, HealthCheckOptions, HealthCheckResult, AttachOptions as IdentityAttachOptions, Ingot, IngotAccessLog, IngotAccessLogPage, IngotDownloadLink, IngotInvitation, IngotInvite, IngotPage, IngotSharingConfig, IngotUpload, ListContentsOptions, ListFoldersOptions, ListIngotsOptions, ListNotificationsOptions, ListNotificationsResponse, ListNotifyInboxOptions, ListNotifyInboxResponse, ListNotifyReceiptsOptions, ListNotifyReceiptsResponse, ListNotifySendsOptions, ListNotifySendsResponse, ListSparksOptions, MarkAllNotificationsStateOptions, MarkAllNotificationsStateResponse, MarkAllReadResult, MarkNotificationStateOptions, MarkNotificationStateResponse, MarkNotifyInboxAllOptions, MarkNotifyInboxAllResponse, MarkNotifyInboxStateOptions, MarkNotifyInboxStateResponse, NameConflictPolicy, NotificationBulkMarkState, NotificationInboxState, NotificationMarkState, NotificationRow, NotifyCategory, NotifyChannel, NotifyConfig, NotifyConfigCategory, NotifyConfigDelivery, NotifyConfigEvents, NotifyConfigEventsRead, NotifyConfigHistory, NotifyConfigOverrides, NotifyConfigPatch, NotifyConfigRealtimeFallbackDelay, NotifyConfigReliability, NotifyConfigResponse, NotifyConfigSecurity, NotifyDeliveryMode, NotifyEscalation, NotifyInboxBulkMarkState, NotifyInboxMarkState, NotifyInboxRow, NotifyInboxView, NotifyIngotRef, NotifyInteraction, NotifyPreset, NotifyPresetCategory, NotifyPresetName, NotifyPresetSendOptions, NotifyRecallMode, NotifyReceipt, NotifyReceiptEventType, NotifyRecipient, NotifyRecipientRef, NotifySendContent, NotifySendPolicy, NotifySendReceipt, NotifySendReceiptsResponse, NotifySendResult, NotifySendState, NotifySendStatus, NotifySendStatusCounts, NotifySendStatusRecipient, NotifySendSummary, NotifyVerificationLevel, QuotaResource, RecallNotifySendOptions, RecallNotifySendResponse, RegisterWebPushResponse, ReplaceIngotOptions, ResumeUploadOptions, ScheduledVaultDeletion, SearchIngotsOptions, SendUploadOptions, ShareSparkOptions, Spark, SparkInviteResend, SparkPage, SparkShare, SparkSummary, SparkVaultConfig, SparkVisibility, SubscribeWebPushOptions, SubscribeWebPushResult, SubscribeWebPushStatus, TokenClaims, UnreadCountResponse, UnsealedVault, UnsubscribeWebPushResponse, UpdateFolderOptions, UpdateIngotSharingOptions, UpdateVaultUploadOptions, UpdatedVault, UploadAttachOptions, UploadBranding, UploadEnd, UploadIngotOptions, UploadOptions, UploadProgress, UploadResult, UploadSession, Vault, VaultDetail, VaultLifecycle, VaultSharingConfig, VaultSharingOptions, VaultSummary, VaultUploadConfig, VaultUploadSettings, VerifyOptions, VerifyResult, WebPushKeyResponse, WebPushSubscriptionInput };
|