@sparkvault/sdk-js 2.0.0 → 2.0.2

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.
@@ -12,12 +12,12 @@ import type { VaultUploadConfig } from './types';
12
12
  * SparkVaultError — no duplicate `httpStatus` field.
13
13
  */
14
14
  export declare class UploadApiError extends SparkVaultError {
15
- constructor(message: string, code: string, statusCode: number);
15
+ constructor(message: string, code: string, statusCode: number, details?: Record<string, unknown>);
16
16
  }
17
17
  export declare class UploadApi extends SparkVaultApi {
18
18
  private readonly config;
19
19
  constructor(config: ResolvedConfig);
20
- protected makeError(message: string, code: string, statusCode: number): UploadApiError;
20
+ protected makeError(message: string, code: string, statusCode: number, details?: Record<string, unknown>): UploadApiError;
21
21
  /**
22
22
  * Issue a request and unwrap the standard `{ data, meta }` envelope.
23
23
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkvault/sdk-js",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "SparkVault JavaScript SDK - Identity Verification and Encrypted Vaults",
5
5
  "type": "module",
6
6
  "main": "dist/sparkvault.cjs.js",