@sparkvault/sdk-js 11.0.2 → 11.1.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.
@@ -27,6 +27,12 @@ export declare class UploadApiError extends SparkVaultError {
27
27
  }
28
28
  /** The widget's upload configuration, read from a vault's upload info answer. */
29
29
  export declare function mapVaultUploadInfo(wire: VaultUploadInfoResponse): VaultUploadConfig;
30
+ /**
31
+ * The error a request that stages an upload throws, from the error Core's
32
+ * answer made: its final refusal of the upload as `upload_refused`
33
+ * ({@link stagingRefusal}), any other error as it is.
34
+ */
35
+ export declare function stagingRefusalOf(error: unknown): unknown;
30
36
  export declare class UploadApi extends SparkVaultApi {
31
37
  private readonly config;
32
38
  /**
@@ -45,7 +51,8 @@ export declare class UploadApi extends SparkVaultApi {
45
51
  * retries, a cancel aside; a refused API call it raises with its status is
46
52
  * Core's verdict, never a transfer's, so of the policy's reading it carries
47
53
  * only the floor Core named (`retryAfterMs`), for whoever acts on the
48
- * refusal.
54
+ * refusal — and Core's final refusal of the upload a call stages is that
55
+ * upload's `upload_refused` ({@link stagingRefusal}).
49
56
  */
50
57
  protected makeError(message: string, code: string, statusCode: number, details?: Record<string, unknown>, retryAfterMs?: number | null): UploadApiError;
51
58
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkvault/sdk-js",
3
- "version": "11.0.2",
3
+ "version": "11.1.0",
4
4
  "description": "SparkVault JavaScript SDK - Identity Verification and Encrypted Vaults",
5
5
  "type": "module",
6
6
  "exports": {