@cardanowall/sdk-ts 0.4.0 → 0.6.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.
@@ -3445,16 +3445,22 @@ var RecordsNamespace = class {
3445
3445
  * between.
3446
3446
  *
3447
3447
  * Auth required (Bearer with `poe:read` scope, or NextAuth session
3448
- * cookie). Optional `verify_uris` toggles URI hash-equivalence checks;
3449
- * `decryption[]` drives trial-decrypt of sealed envelopes per item.
3448
+ * cookie). This is the hosted PUBLIC verifier: it accepts no decryption
3449
+ * credentials, and sealed items report as unverifiable without decryption.
3450
+ * To verify as a recipient (decrypt + plaintext-hash recheck), run the
3451
+ * `verifier` module locally with its `decryption` input — keys never leave
3452
+ * the process. Optional `fetch_content: false` skips content re-fetching;
3453
+ * affected claims report `not_checked`.
3450
3454
  */
3451
3455
  async verify(txHash, input) {
3456
+ const body = {};
3457
+ if (input?.fetch_content !== void 0) body.fetch_content = input.fetch_content;
3452
3458
  const response = await this.config.fetch(
3453
3459
  `${this.config.baseUrl}/api/v1/records/${encodeURIComponent(txHash)}/verify`,
3454
3460
  {
3455
3461
  method: "POST",
3456
3462
  headers: buildHeaders2(this.config.apiKey),
3457
- body: JSON.stringify(input ?? {})
3463
+ body: JSON.stringify(body)
3458
3464
  }
3459
3465
  );
3460
3466
  await throwIfNotOk(response);