@haven_ai/sdk 0.0.0-dev.202609101633.51a5ff1 → 0.0.0-dev.202609111355.ac865fd

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 CHANGED
@@ -3184,7 +3184,8 @@ var HavenClient = class {
3184
3184
  * Sign a payment's `sign_data` with the correct scheme for its rail.
3185
3185
  *
3186
3186
  * Dispatching on the server-provided scheme means a caller never has to
3187
- * know which rail an account is on; an unknown scheme is a hard error,
3187
+ * know which rail an account is on; an unknown scheme — or an absent one,
3188
+ * since the legacy AllowanceModule rail retired (#2850) — is a hard error,
3188
3189
  * never a guessed signature. The session rail's 'eip191_userop' is retired
3189
3190
  * (#834) — the backend refuses those intents with HTTP 410 before any
3190
3191
  * sign_data reaches a client, so encountering it here is a hard error too.
@@ -3218,7 +3219,9 @@ var HavenClient = class {
3218
3219
  return signSettlementDelegationTypedData(this.delegateKey, signData.typed_data);
3219
3220
  }
3220
3221
  if (scheme === void 0) {
3221
- return signHash(this.delegateKey, signData.hash);
3222
+ throw new HavenSigningError(
3223
+ "sign_data.signature_scheme is required \u2014 the legacy AllowanceModule rail that signed the bare hash is retired (#2850). Refusing to guess a signing scheme."
3224
+ );
3222
3225
  }
3223
3226
  throw new HavenSigningError(
3224
3227
  `Unknown sign_data.signature_scheme '${scheme}' \u2014 refusing to guess a signing scheme. Update @haven_ai/sdk.`