Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(capability): add space to location assertion #84

Merged
merged 5 commits into from
Jan 30, 2025

Conversation

hannahhoward
Copy link
Member

@hannahhoward hannahhoward commented Jan 16, 2025

Goals

Enable parsing and usage of assertions defined here with responses from the indexer service.

Implementation

Add Space DID as an optional field for the AssertLocation

For Discussion

Why ship a change here?

This library contains the best JS definitions of our various assertions. Apart from the missing Space DID, it's the SAME as the assertions defined in go-capabilities.

Currently, JS fetching logic for the indexer does NOT understand assertions, and moreover, the locator for the indexing service in the blob-fetcher uses a non-standard approach of using a parsing validator called 'zod' to parse only location claims.

We should maintain full definitions for our various assertions across languages and those definitions should maintain parity.

Ultimately, they shouldn't live here. Maybe @storacha/capabilities -- i.e. move them to w3up. But that's a problem for another day.

Copy link

seed-deploy bot commented Jan 16, 2025

View stack outputs

also provides direct access to the delegation
@seed-deploy seed-deploy bot temporarily deployed to pr84 January 28, 2025 04:19 Inactive
@hannahhoward hannahhoward merged commit 5212b1a into main Jan 30, 2025
3 checks passed
@hannahhoward hannahhoward deleted the feat/add-space-to-assertion branch January 30, 2025 02:15
hannahhoward pushed a commit that referenced this pull request Jan 30, 2025
🤖 I have created a release *beep* *boop*
---


##
[5.2.0](content-claims-v5.1.3...content-claims-v5.2.0)
(2025-01-30)


### Features

* **capability:** add space to location assertion
([#84](#84))
([5212b1a](5212b1a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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