@sparkvault/sdk-js 8.11.2 → 8.11.4

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.
@@ -18,6 +18,17 @@ export declare function base64urlEncode(data: Uint8Array): string;
18
18
  * @returns Base64url encoded string
19
19
  */
20
20
  export declare function arrayBufferToBase64url(buffer: ArrayBuffer): string;
21
+ /**
22
+ * Encode a string as STANDARD base64 (with padding) of its UTF-8 bytes.
23
+ *
24
+ * Unlike base64urlEncode this keeps `+`/`/` and padding, so it round-trips
25
+ * through a server-side standard-base64 decoder. Used to carry arbitrary
26
+ * Unicode through an HTTP header value (which is limited to latin1 bytes).
27
+ *
28
+ * @param value - String to encode
29
+ * @returns Standard base64 string
30
+ */
31
+ export declare function base64EncodeUtf8(value: string): string;
21
32
  /**
22
33
  * Decode base64url string to Uint8Array
23
34
  *
@@ -98,9 +98,12 @@ export declare class VaultsModule {
98
98
  /**
99
99
  * Delete a vault and all its ingots. This action is irreversible!
100
100
  *
101
- * Requires the vault's exact name as confirmation. It is sent as the
102
- * `X-Confirm-Name` header and must match the vault name exactly
103
- * (case-sensitive).
101
+ * Requires the vault's exact name as confirmation, matched case-sensitively.
102
+ * The name is sent base64(UTF-8) as the `X-Confirm-Name-B64` header so a vault
103
+ * named with any Unicode (emoji, CJK, the U+202F in macOS-style names) is
104
+ * deletable — an HTTP header value cannot carry non-latin1 characters. The
105
+ * legacy raw `X-Confirm-Name` header is included only for latin1 names, so
106
+ * older API servers keep working.
104
107
  *
105
108
  * @example
106
109
  * await sv.vaults.delete('vlt_abc', 'My Vault');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkvault/sdk-js",
3
- "version": "8.11.2",
3
+ "version": "8.11.4",
4
4
  "description": "SparkVault JavaScript SDK - Identity Verification and Encrypted Vaults",
5
5
  "type": "module",
6
6
  "main": "dist/sparkvault.cjs.js",