Skip to content
View raw

@hypercerts-org/happyview-modules

GitHub repository

0.7.2#

Patch Changes#

  • #86 7c0da77 Thanks @Kzoeps! - Query definitions now state what the API already does: limit defaults to 25 and sortDirection to desc, getLocation documents its InvalidRequest error, and indexedAt on location and evaluation results can be null.

    Client type changes (no wire change):

    • indexedAt on locationView and evaluationView is now string | null; handle null if you read it.
    • On list endpoints with new defaults, $Params now describes parsed params, so limit and sortDirection are required there. client.call(..., {}) still compiles. If you annotate request objects with $Params and omit those keys, use l.InferInput<typeof $params> instead.
  • #91 99f4e8f Thanks @Kzoeps! - A list request whose cursor or before timestamp is in year 0000 now returns an InvalidRequest error. Several endpoints used to answer it with an HTTP 500. listVocabTags now reports this as "cursor is malformed".

0.7.1#

Patch Changes#

  • #82 410d2cf Thanks @Kzoeps! - getReactionCounts, getCommentCounts and getFollowerCounts (for entity subjects) now look counts up in HappyView's record-reference table instead of scanning every like, repost, comment or follow, so they stay fast as those collections grow. Responses and errors are unchanged. Counts are only as complete as that table: a record whose references were never written is not counted, so check the table is complete before deploying.

0.7.0#

Minor Changes#

  • #76 619c9ee Thanks @Kzoeps! - app.certified.actor.searchOrganizations now also searches an organization's legal name. Organizations without a profile can now be found by legal name; before, they never appeared in search results.

0.6.0#

Minor Changes#

  • #73 3090a34 Thanks @Kzoeps! - Evaluation evaluators now have one simple shape: a did, plus profile and organization when they were found. The hydrationStatus field is gone and missing values are left out instead of null. Only the first 100 evaluators in a response are looked up; later ones carry just the did. This also fixes listEvaluations and getEvaluation failing response validation when evaluators were present.

0.5.1#

Patch Changes#

  • #69 b4eedff Thanks @Kzoeps! - Batch queries now accept 100 typical record links in one request.

    The limit on the encoded request URL path and query for getFollows, getEntityFollows, getFollowerCounts and getCommentCounts rises from 7,000 to 16,384 bytes. getReactionCounts and getActorReactions now enforce the same limit. Requests over the limit are still rejected with an InvalidRequest message, returned as HTTP 500 by the current HappyView release.

  • #70 2e8f9fc Thanks @Kzoeps! - Follower counts and follow lists no longer include old project follows saved as account follows.

    Some apps followed a project by saving an account follow whose via points to the followed organization's own collection. Those records are now ignored by getFollow, getFollows, listActorFollowers, listActorFollowing, getFollowerCounts and listRecentFollows, so organization follower counts may drop. Follows with any other via (a starter pack, a list, or another account's collection) are unchanged, and nothing is deleted.

0.5.0#

Minor Changes#

  • #63 102293a Thanks @Kzoeps! - Organization queries (getOrganization, getOrganizations, listOrganizations, searchOrganizations) now return each organization's location record in location (the resolved view of the strong reference at organization.record.location, which is unchanged), so you no longer need a second getLocation call. It is the location record exactly as stored, or null when the organization has no location or the record is not indexed.

0.4.0#

Minor Changes#

  • #57 3848180 Thanks @Kzoeps! - - app.certified.badge.listBadgeAwards accepts includeTotal. When it is true, the output includes totalCount: the number of award records matching all filters, before cursor and limit, not deduplicated. It is also returned on empty pages.

  • #54 97c2d98 Thanks @Kzoeps! - Add org.hypercerts.context.getCommentCounts, which returns comment counts for up to 100 subject records in one call.

    getEntityFollows and getActorReactions now reject subject URIs whose DID has a malformed % escape, as getReactionCounts already did, instead of returning null for them.

  • #58 45137f2 Thanks @Kzoeps! - Add app.certified.graph.getFollowerCounts, which returns follower counts for up to 100 account DIDs and entity AT-URIs in one call.

Patch Changes#

  • #51 53cfff5 Thanks @holkexyz! - License: the bundle is now licensed under either MIT or Apache-2.0, at your option. It was MIT only; earlier releases stay MIT.

0.3.0#

Minor Changes#

  • #43 9328ee5 Thanks @Kzoeps! - Add app.certified.feed.getActorReactions to return an actor's indexed likes and reposts for up to 100 subject records in one request, preserving request order and duplicates.

  • #42 3ad86a8 Thanks @Kzoeps! - Clients can check multiple actor or entity follow relationships in one request. The new batch queries return one explicitly keyed result for each supplied target, preserving request order and duplicates; null means no indexed relationship, while lookup failures remain errors.

  • #40 51b2ed2 Thanks @Kzoeps! - Add a public query that returns like and repost counts for up to 100 subject records at a time.

  • #41 98825dd Thanks @Kzoeps! - Entity follower results now include totalCount, the number of distinct actor–entity relationships before pagination. The count is also returned when a page has no followers.

  • #46 b6ae142 Thanks @kristoferlund! - Validate records against @hypercerts-org/lexicon 1.6.0 (was 1.5.0). Records may now carry the optional langs field and app.certified.signature.defs#createdVia signatures, and funding receipts may omit amount and currency. Records using these are accepted and served unchanged; no record that validated before is rejected. Operators must reinstall the bundle for the running indexer to use the new Lexicons.

Patch Changes#

  • #45 8e080e4 Thanks @kristoferlund! - Rename the package from @hypercerts-org/hypercerts-api to @hypercerts-org/happyview-modules, and its directory from api/ to happyview-modules/, so the name says what it is and @hypercerts-org/api is free for the TypeScript package. Release tags from this release on are @hypercerts-org/happyview-modules@X.Y.Z; earlier releases keep their @hypercerts-org/hypercerts-api@X.Y.Z tags. The installer is run from happyview-modules/ instead of api/; the modules themselves are unchanged.

0.2.0#

Minor Changes#

  • #37 a80279d Thanks @Kzoeps! - Add public queries for actors who liked or reposted a record and for an actor's own likes and reposts. Subject queries include distinct-actor totals; all four queries support bounded pagination.

Patch Changes#

  • #33 9184a3c Thanks @Kzoeps! - Activity responses now tolerate legacy contributor URI strings without failing hydration. The original activity record is preserved, while those strings are omitted from the hydrated contributors projection.

  • #34 57728aa Thanks @Kzoeps! - Badge award filters and response status lookups now recognize DID-object recipients while retaining record-subject and legacy DID matching.

  • #36 c28d77a Thanks @Kzoeps! - Query endpoints now accept DID values consistently, including percent characters that are not followed by two hexadecimal digits. EVM-link queries also accept otherwise-valid DIDs with empty colon-separated segments.

  • #28 e5847ae Thanks @Kzoeps! - The installer now verifies assets after write errors and avoids false failures when a successful response body is interrupted.

  • #28 93d3502 Thanks @Kzoeps! - pnpm install:api now shows compact progress for asset checks and required installs while keeping its final JSON summary on stdout.

  • #38 4284d24 Thanks @Kzoeps! - Evaluation lookups and lists now retain records with malformed evaluator entries. The original record is preserved, while invalid entries are omitted from the hydrated evaluator projection. Records with more than 1,000 raw evaluator entries remain outside the supported limit.

0.1.0#

The first release provides public, read-only HappyView queries for:

  • Actors: profiles, organizations, and actor/entity follows.
  • Hypercerts: activities, collections and items, contributions, and contributor information.
  • Context: evaluations, attachments, acknowledgements, and measurements.
  • Funding and badges: receipts, badge definitions, awards, and responses.
  • Discovery: work-scope and vocabulary tags, locations, features, and EVM links.

The bundle includes shared Lexicons, installer/build tooling, and offline checks. It is distributed as tagged source for HappyView operators—not as an npm package or automatic deployment. See api/README.md for endpoint details.