Skip to content

feat: add #text variant to funding receipt from/to unions - #199

Merged
s-adamantine merged 1 commit into
mainfrom
fix/funding-receipt-field-types-clean
Apr 7, 2026
Merged

feat: add #text variant to funding receipt from/to unions#199
s-adamantine merged 1 commit into
mainfrom
fix/funding-receipt-field-types-clean

Conversation

@s-adamantine

Copy link
Copy Markdown
Contributor

Summary

  • Adds a #text def (free-text string, maxLength 2048) to the from/to union refs in funding.receipt
  • The unions now accept three variants: #text (free-text string e.g. name, wallet address), app.certified.defs#did, and com.atproto.repo.strongRef

Why

The from/to fields currently only accept DIDs and strongRefs. This doesn't cover cases where the sender/recipient is identified by a plain string — a display name, a wallet address, an organization name, etc. Adding #text restores that flexibility as a typed union variant.

Relates to #186.

Test plan

  • npm run check passes (gen-api, lint, typecheck, build, test)
  • New tests for to and from as #text pass
  • All 27 tests pass

🤖 Generated with Claude Code

The from/to unions now also accept a #text object wrapping a free-text
string (maxLength 2048) for names, wallet addresses, or any other
identifier that isn't a DID or record reference.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Apr 6, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 03a75e1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hypercerts-org/lexicon Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@s-adamantine
s-adamantine merged commit 54dba2f into main Apr 7, 2026
5 checks passed
@s-adamantine
s-adamantine deleted the fix/funding-receipt-field-types-clean branch April 7, 2026 12:43
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