Contribution

Description

A contribution made toward a hypercert's impact.

Lexicon

Lexicon ID: org.hypercerts.claim.contribution

Key: any

PropertyTypeRequiredDescriptionComments
contributorsarrayList of the contributors (names, pseudonyms, or DIDs). If multiple contributors are stored in the same hypercertContribution, then they would have the exact same role.
createdAtstringClient-declared timestamp when this record was originally created
rolestringRole or title of the contributor(s).
descriptionstringWhat the contribution concretely achieved
startDatestringWhen this contribution started. This should be a subset of the hypercert timeframe.
endDatestringWhen this contribution finished. This should be a subset of the hypercert timeframe.

Code Example

The SDK is in active development. Package names and API methods may change.

Create a contribution record:

TypeScript
import { BskyAgent } from '@atproto/api'


const agent = new BskyAgent({ service: 'https://pds.example.com' })
await agent.login({ identifier: 'your-handle', password: 'your-app-password' })


const response = await agent.api.com.atproto.repo.createRecord({
  repo: agent.session.did,
  collection: 'org.hypercerts.claim.contribution',
  record: {
    // List of contributors (DIDs, names, or pseudonyms)
    contributors: ['did:plc:abc123'],
    // Role or title of the contributor(s)
    role: 'lead-developer',
    // What the contribution concretely achieved
    description: 'Led the development of core features',
    // Timestamp when this record was created
    createdAt: new Date().toISOString(),
  },
})


console.log('Created:', response.data.uri)