Skip to content

docs: complete the API-summary table (verificationTimeMs, NtsClient, full enums)#157

Merged
nick-llewellyn merged 2 commits into
mainfrom
docs/NTS-37-readme-verificationtimems
Jun 10, 2026
Merged

docs: complete the API-summary table (verificationTimeMs, NtsClient, full enums)#157
nick-llewellyn merged 2 commits into
mainfrom
docs/NTS-37-readme-verificationtimems

Conversation

@nick-llewellyn

@nick-llewellyn nick-llewellyn commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

A documentation audit of the public API surface against lib/src/api/
found the README "API summary" table was missing or under-describing
several public symbols. This PR brings the table back in line with the
source.

Changes

  • verificationTimeMs added to the ntsQuery / ntsWarmCookies
    rows (the parameter exists on both but was absent from the table),
    plus the paragraph listing omittable optional parameters.
  • NtsClient added as its own row — it was documented only in prose
    and had no table entry. Covers the constructor, query /
    warmCookies, invalidate / clear, and the trustMode getter.
  • TrustMode row completed: bundledOnly and custom were missing
    (only platformWithFallback / platformOnly were listed).
  • TrustBackend row completed: custom was missing.
  • NtsTrustStatus row completed: the four defaultBackend*Count
    cumulative counters were missing (only 3 of 7 fields were listed).

Scope

Documentation only — no code changes, no signature changes. The dartdoc
already documents all of the above; this only fixes the README summary
table. (A separate PR fixes one source-dartdoc count bug in
ntsTrustStatus() that affects the generated DartDocs.)

Checklist

  • Documentation only, no code changes
  • Matches actual signatures/symbols in lib/src/api/nts.dart and
    lib/src/api/models.dart

Copilot AI review requested due to automatic review settings June 10, 2026 07:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the public-facing README API summary to document the optional verificationTimeMs parameter for ntsQuery and ntsWarmCookies, aligning the README with the actual Dart wrapper signatures in lib/src/api/nts.dart.

Changes:

  • Added verificationTimeMs to the README “API summary” table rows for ntsQuery and ntsWarmCookies with a brief description of its clock-skew-rescue behavior.
  • Updated the README paragraph that lists optional parameters to include verificationTimeMs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nick-llewellyn nick-llewellyn changed the title docs: add verificationTimeMs to API-summary table docs: complete the API-summary table (verificationTimeMs, NtsClient, full enums) Jun 10, 2026
@nick-llewellyn nick-llewellyn self-assigned this Jun 10, 2026
The optional verificationTimeMs parameter was present in both ntsQuery
and ntsWarmCookies since it was introduced but was missing from the
API-summary table in README.md (and the descriptive paragraph listing
which parameters can be omitted).

Add it to both rows with a one-line description of its clock-skew-rescue
semantics, and update the paragraph to name all three optional parameters.
…Backend/NtsTrustStatus)

Audit of the API-summary table against lib/src/api/ found four
under-described symbols:

- NtsClient was absent from the table entirely (documented only in
  prose); add a row covering the constructor, query/warmCookies,
  invalidate/clear, and the trustMode getter.
- TrustMode listed only platformWithFallback and platformOnly; add
  bundledOnly and custom.
- TrustBackend listed only platform/platformWithHybridFallback/
  webpkiRoots; add custom.
- NtsTrustStatus listed only 3 of its 7 fields; add the four
  defaultBackend*Count cumulative counters.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@nick-llewellyn nick-llewellyn merged commit 58a8207 into main Jun 10, 2026
12 checks passed
@nick-llewellyn nick-llewellyn deleted the docs/NTS-37-readme-verificationtimems branch June 10, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants