@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.
- package/dist/client/index.cjs +9 -3
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +8 -4
- package/dist/client/index.d.ts +8 -4
- package/dist/client/index.js +9 -3
- package/dist/client/index.js.map +1 -1
- package/dist/conformance/cli.cjs +6 -6
- package/dist/conformance/cli.cjs.map +1 -1
- package/dist/conformance/cli.js +6 -6
- package/dist/conformance/cli.js.map +1 -1
- package/dist/identity/index.cjs.map +1 -1
- package/dist/identity/index.d.cts +1 -1
- package/dist/identity/index.d.ts +1 -1
- package/dist/identity/index.js.map +1 -1
- package/dist/index.cjs +15 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -9
- package/dist/index.js.map +1 -1
- package/dist/{types-Dp4wUSFI.d.cts → types-DNu_IrWZ.d.cts} +16 -6
- package/dist/{types-Dp4wUSFI.d.ts → types-DNu_IrWZ.d.ts} +16 -6
- package/dist/verifier/index.cjs +6 -6
- package/dist/verifier/index.cjs.map +1 -1
- package/dist/verifier/index.js +6 -6
- package/dist/verifier/index.js.map +1 -1
- package/package.json +3 -3
package/dist/client/index.cjs
CHANGED
|
@@ -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).
|
|
3449
|
-
*
|
|
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(
|
|
3463
|
+
body: JSON.stringify(body)
|
|
3458
3464
|
}
|
|
3459
3465
|
);
|
|
3460
3466
|
await throwIfNotOk(response);
|