@dorafactory/maci-sdk 0.1.3-pre.46.beta.12 → 0.1.3-pre.46.beta.13

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.js CHANGED
@@ -6716,14 +6716,17 @@ var MaciApiClient = class {
6716
6716
  /**
6717
6717
  * Claim MACI Key
6718
6718
  * Assign the next available pre-generated MACI key pair for an AMACI round (first-come-first-served).
6719
+ * Requires the X-Amaci-Claim-Key header for authentication.
6719
6720
  * Returns pubkey, secretKey, and the full deactivate Merkle proof.
6720
6721
  * WARNING: secretKey is returned only once and cannot be retrieved again.
6721
6722
  */
6722
6723
  async claimMaciKey(params) {
6723
- const { contractAddress, ...body } = params;
6724
+ const { contractAddress, amaciClaimKey } = params;
6724
6725
  return this.fetch(`/v1/rounds/${contractAddress}/claim-key`, {
6725
6726
  method: "POST",
6726
- body: JSON.stringify(body)
6727
+ headers: {
6728
+ "X-Amaci-Claim-Key": amaciClaimKey
6729
+ }
6727
6730
  });
6728
6731
  }
6729
6732
  /**
@@ -8760,8 +8763,9 @@ var VoterClient = class _VoterClient {
8760
8763
  /**
8761
8764
  * Claim the next available pre-generated MACI key pair for an AMACI round via SaaS API.
8762
8765
  * The key is assigned on a first-come-first-served basis.
8766
+ * Requires an AMACI claim key passed via the X-Amaci-Claim-Key header.
8763
8767
  * WARNING: secretKey is returned only once — save it immediately, it cannot be retrieved again.
8764
- * @param params - Parameters including contractAddress and ticket
8768
+ * @param params - Parameters including contractAddress and amaciClaimKey
8765
8769
  * @returns Claimed key pair with full deactivate Merkle proof
8766
8770
  */
8767
8771
  async saasClaimKey(params) {