@hypercerts-org/lexicon 0.10.0-beta.5 → 0.10.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/SCHEMAS.md +21 -13
  3. package/dist/exports.d.ts +79 -22
  4. package/dist/exports.d.ts.map +1 -1
  5. package/dist/generated/exports.d.ts +79 -22
  6. package/dist/generated/exports.d.ts.map +1 -1
  7. package/dist/generated/lexicons.d.ts +150 -46
  8. package/dist/generated/lexicons.d.ts.map +1 -1
  9. package/dist/generated/types/org/hypercerts/claim/activity.d.ts +19 -2
  10. package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  11. package/dist/generated/types/org/hypercerts/claim/contributionDetails.d.ts +22 -0
  12. package/dist/generated/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
  13. package/dist/generated/types/org/hypercerts/claim/{contributor.d.ts → contributorInformation.d.ts} +3 -11
  14. package/dist/generated/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
  15. package/dist/index.cjs +341 -180
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.mjs +329 -172
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/lexicons.cjs +86 -27
  20. package/dist/lexicons.cjs.map +1 -1
  21. package/dist/lexicons.d.ts +150 -46
  22. package/dist/lexicons.d.ts.map +1 -1
  23. package/dist/lexicons.mjs +86 -27
  24. package/dist/lexicons.mjs.map +1 -1
  25. package/dist/types/org/hypercerts/claim/activity.d.ts +19 -2
  26. package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  27. package/dist/types/org/hypercerts/claim/contributionDetails.d.ts +22 -0
  28. package/dist/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
  29. package/dist/types/org/hypercerts/claim/{contributor.d.ts → contributorInformation.d.ts} +3 -11
  30. package/dist/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
  31. package/lexicons/org/hypercerts/claim/activity.json +33 -3
  32. package/lexicons/org/hypercerts/claim/{contributor.json → contributionDetails.json} +5 -22
  33. package/lexicons/org/hypercerts/claim/contributorInformation.json +39 -0
  34. package/package.json +2 -2
  35. package/dist/generated/types/org/hypercerts/claim/contributor.d.ts.map +0 -1
  36. package/dist/types/org/hypercerts/claim/contributor.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"lexicons.mjs","sources":["../../generated/util.ts","../../generated/lexicons.ts"],"sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\n\nimport { type ValidationResult } from '@atproto/lexicon'\n\nexport type OmitKey<T, K extends keyof T> = {\n [K2 in keyof T as K2 extends K ? never : K2]: T[K2]\n}\n\nexport type $Typed<V, T extends string = string> = V & { $type: T }\nexport type Un$Typed<V extends { $type?: string }> = OmitKey<V, '$type'>\n\nexport type $Type<Id extends string, Hash extends string> = Hash extends 'main'\n ? Id\n : `${Id}#${Hash}`\n\nfunction isObject<V>(v: V): v is V & object {\n return v != null && typeof v === 'object'\n}\n\nfunction is$type<Id extends string, Hash extends string>(\n $type: unknown,\n id: Id,\n hash: Hash,\n): $type is $Type<Id, Hash> {\n return hash === 'main'\n ? $type === id\n : // $type === `${id}#${hash}`\n typeof $type === 'string' &&\n $type.length === id.length + 1 + hash.length &&\n $type.charCodeAt(id.length) === 35 /* '#' */ &&\n $type.startsWith(id) &&\n $type.endsWith(hash)\n}\n\nexport type $TypedObject<\n V,\n Id extends string,\n Hash extends string,\n> = V extends {\n $type: $Type<Id, Hash>\n}\n ? V\n : V extends { $type?: string }\n ? V extends { $type?: infer T extends $Type<Id, Hash> }\n ? V & { $type: T }\n : never\n : V & { $type: $Type<Id, Hash> }\n\nexport function is$typed<V, Id extends string, Hash extends string>(\n v: V,\n id: Id,\n hash: Hash,\n): v is $TypedObject<V, Id, Hash> {\n return isObject(v) && '$type' in v && is$type(v.$type, id, hash)\n}\n\nexport function maybe$typed<V, Id extends string, Hash extends string>(\n v: V,\n id: Id,\n hash: Hash,\n): v is V & object & { $type?: $Type<Id, Hash> } {\n return (\n isObject(v) &&\n ('$type' in v ? v.$type === undefined || is$type(v.$type, id, hash) : true)\n )\n}\n\nexport type Validator<R = unknown> = (v: unknown) => ValidationResult<R>\nexport type ValidatorParam<V extends Validator> =\n V extends Validator<infer R> ? R : never\n\n/**\n * Utility function that allows to convert a \"validate*\" utility function into a\n * type predicate.\n */\nexport function asPredicate<V extends Validator>(validate: V) {\n return function <T>(v: T): v is T & ValidatorParam<V> {\n return validate(v).success\n }\n}\n","/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport {\n type LexiconDoc,\n Lexicons,\n ValidationError,\n type ValidationResult,\n} from '@atproto/lexicon'\nimport { type $Typed, is$typed, maybe$typed } from './util.js'\n\nexport const schemaDict = {\n AppCertifiedBadgeAward: {\n lexicon: 1,\n id: 'app.certified.badge.award',\n defs: {\n main: {\n type: 'record',\n description:\n 'Records a badge award to a user, project, or activity claim.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['badge', 'subject', 'createdAt'],\n properties: {\n badge: {\n type: 'ref',\n ref: 'lex:app.certified.badge.definition',\n description: 'Reference to the badge definition for this award.',\n },\n subject: {\n type: 'union',\n description:\n 'Entity the badge award is for (either an account DID or any specific AT Protocol record), e.g. a user, a project, or a specific activity claim.',\n refs: [\n 'lex:app.certified.defs#did',\n 'lex:com.atproto.repo.strongRef',\n ],\n },\n note: {\n type: 'string',\n description:\n 'Optional statement explaining the reason for this badge award.',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n AppCertifiedBadgeDefinition: {\n lexicon: 1,\n id: 'app.certified.badge.definition',\n defs: {\n main: {\n type: 'record',\n description:\n 'Defines a badge that can be awarded via badge award records to users, projects, or activity claims.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['title', 'badgeType', 'icon', 'createdAt'],\n properties: {\n badgeType: {\n type: 'string',\n description:\n 'Category of the badge (e.g. endorsement, participation, affiliation).',\n },\n title: {\n type: 'string',\n description: 'Human-readable title of the badge.',\n },\n icon: {\n type: 'blob',\n description:\n 'Icon representing the badge, stored as a blob for compact visual display.',\n accept: [\n 'image/png',\n 'image/jpeg',\n 'image/webp',\n 'image/svg+xml',\n ],\n maxSize: 1048576,\n },\n description: {\n type: 'string',\n description:\n 'Optional short statement describing what the badge represents.',\n },\n allowedIssuers: {\n type: 'array',\n description:\n 'Optional allowlist of DIDs allowed to issue this badge. If omitted, anyone may issue it.',\n items: {\n type: 'ref',\n ref: 'lex:app.certified.defs#did',\n },\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n AppCertifiedBadgeResponse: {\n lexicon: 1,\n id: 'app.certified.badge.response',\n defs: {\n main: {\n type: 'record',\n description: 'Recipient response to a badge award.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['badgeAward', 'response', 'createdAt'],\n properties: {\n badgeAward: {\n type: 'ref',\n ref: 'lex:app.certified.badge.award',\n description: 'Reference to the badge award.',\n },\n response: {\n type: 'string',\n enum: ['accepted', 'rejected'],\n description:\n 'The recipient’s response for the badge (accepted or rejected).',\n },\n weight: {\n type: 'string',\n description:\n 'Optional relative weight for accepted badges, assigned by the recipient.',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n AppCertifiedDefs: {\n lexicon: 1,\n id: 'app.certified.defs',\n description: 'Common type definitions used across certified protocols.',\n defs: {\n did: {\n type: 'string',\n format: 'did',\n description: 'A Decentralized Identifier (DID) string.',\n },\n },\n },\n AppCertifiedLocation: {\n lexicon: 1,\n id: 'app.certified.location',\n defs: {\n main: {\n type: 'record',\n description: 'A location reference',\n key: 'tid',\n record: {\n type: 'object',\n required: [\n 'lpVersion',\n 'srs',\n 'locationType',\n 'location',\n 'createdAt',\n ],\n properties: {\n lpVersion: {\n type: 'string',\n description: 'The version of the Location Protocol',\n maxLength: 10,\n },\n srs: {\n type: 'string',\n format: 'uri',\n description:\n 'The Spatial Reference System URI (e.g., http://www.opengis.net/def/crs/OGC/1.3/CRS84) that defines the coordinate system.',\n maxLength: 100,\n },\n locationType: {\n type: 'string',\n description:\n 'An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point)',\n knownValues: ['coordinate-decimal', 'geojson-point'],\n maxLength: 20,\n },\n location: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.defs#uri',\n 'lex:org.hypercerts.defs#smallBlob',\n ],\n description:\n 'The location of where the work was performed as a URI or blob.',\n },\n name: {\n type: 'string',\n description: 'Optional name for this location',\n maxLength: 1000,\n maxGraphemes: 100,\n },\n description: {\n type: 'string',\n description: 'Optional description for this location',\n maxLength: 2000,\n maxGraphemes: 500,\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n ComAtprotoRepoStrongRef: {\n lexicon: 1,\n id: 'com.atproto.repo.strongRef',\n description: 'A URI with a content-hash fingerprint.',\n defs: {\n main: {\n type: 'object',\n required: ['uri', 'cid'],\n properties: {\n uri: {\n type: 'string',\n format: 'at-uri',\n },\n cid: {\n type: 'string',\n format: 'cid',\n },\n },\n },\n },\n },\n OrgHypercertsClaimActivity: {\n lexicon: 1,\n id: 'org.hypercerts.claim.activity',\n defs: {\n main: {\n type: 'record',\n description: 'A hypercert record tracking impact work.',\n key: 'any',\n record: {\n type: 'object',\n required: ['title', 'shortDescription', 'createdAt'],\n properties: {\n title: {\n type: 'string',\n description: 'Title of the hypercert.',\n maxLength: 256,\n },\n shortDescription: {\n type: 'string',\n description: 'Short blurb of the impact work done.',\n maxLength: 3000,\n maxGraphemes: 300,\n },\n description: {\n type: 'string',\n description:\n 'Optional longer description of the impact work done.',\n maxLength: 30000,\n maxGraphemes: 3000,\n },\n image: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.defs#uri',\n 'lex:org.hypercerts.defs#smallImage',\n ],\n description:\n 'The hypercert visual representation as a URI or image blob.',\n },\n workScope: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to a record defining the scope of work. The record referenced should describe the logical scope using label-based conditions.',\n },\n startDate: {\n type: 'string',\n format: 'datetime',\n description: 'When the work began',\n },\n endDate: {\n type: 'string',\n format: 'datetime',\n description: 'When the work ended',\n },\n contributions: {\n type: 'array',\n description:\n 'A strong reference to the contributions done to create the impact in the hypercerts. The record referenced must conform with the lexicon org.hypercerts.claim.contributor.',\n items: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n },\n rights: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to the rights that this hypercert has. The record referenced must conform with the lexicon org.hypercerts.claim.rights.',\n },\n locations: {\n type: 'array',\n description:\n 'An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location.',\n items: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n activityWeight: {\n type: 'object',\n required: ['activity', 'weight'],\n properties: {\n activity: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to a hypercert activity record. This activity must conform to the lexicon org.hypercerts.claim.activity',\n },\n weight: {\n type: 'string',\n description:\n 'The relative weight/importance of this hypercert activity (stored as a string to avoid float precision issues). Weights can be any positive numeric values and do not need to sum to a specific total; normalization can be performed by the consuming application as needed.',\n },\n },\n },\n },\n },\n OrgHypercertsClaimCollection: {\n lexicon: 1,\n id: 'org.hypercerts.claim.collection',\n defs: {\n main: {\n type: 'record',\n description:\n 'A collection/group of items (activities and/or other collections). Collections support recursive nesting. Use app.certified.location as a sidecar (same TID) for location metadata.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['title', 'items', 'createdAt'],\n properties: {\n type: {\n type: 'string',\n description:\n \"The type of this collection. Possible fields can be 'favorites', 'project', or any other type of collection.\",\n },\n title: {\n type: 'string',\n description: 'The title of this collection',\n maxLength: 800,\n maxGraphemes: 80,\n },\n shortDescription: {\n type: 'string',\n maxLength: 3000,\n maxGraphemes: 300,\n description:\n 'Short summary of this collection, suitable for previews and list views',\n },\n description: {\n type: 'ref',\n ref: 'lex:pub.leaflet.pages.linearDocument#main',\n description:\n 'Rich-text description, represented as a Leaflet linear document.',\n },\n items: {\n type: 'array',\n description:\n 'Array of strong references to items in this collection. Items can be activities (org.hypercerts.claim.activity) and/or other collections (org.hypercerts.claim.collection).',\n items: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n OrgHypercertsClaimContributor: {\n lexicon: 1,\n id: 'org.hypercerts.claim.contributor',\n defs: {\n main: {\n type: 'record',\n description: \"A contribution made toward a hypercert's impact.\",\n key: 'tid',\n record: {\n type: 'object',\n required: ['createdAt'],\n properties: {\n identifier: {\n type: 'string',\n description:\n 'DID or a URI to a social profile of the contributor.',\n },\n displayName: {\n type: 'string',\n description: 'Display name of the contributor.',\n maxLength: 100,\n },\n image: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.defs#uri',\n 'lex:org.hypercerts.defs#smallImage',\n ],\n description:\n 'The contributor visual representation as a URI or image blob.',\n },\n role: {\n type: 'string',\n description: 'Role or title of the contributor.',\n maxLength: 100,\n },\n contributionDescription: {\n type: 'string',\n description: 'What the contribution concretely achieved.',\n maxLength: 2000,\n maxGraphemes: 500,\n },\n startDate: {\n type: 'string',\n format: 'datetime',\n description:\n 'When this contribution started. This should be a subset of the hypercert timeframe.',\n },\n endDate: {\n type: 'string',\n format: 'datetime',\n description:\n 'When this contribution finished. This should be a subset of the hypercert timeframe.',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created.',\n },\n },\n },\n },\n },\n },\n OrgHypercertsClaimEvaluation: {\n lexicon: 1,\n id: 'org.hypercerts.claim.evaluation',\n defs: {\n score: {\n type: 'object',\n description: 'Overall score for an evaluation on a numeric scale.',\n required: ['min', 'max', 'value'],\n properties: {\n min: {\n type: 'integer',\n description: 'Minimum value of the scale, e.g. 0 or 1.',\n },\n max: {\n type: 'integer',\n description: 'Maximum value of the scale, e.g. 5 or 10.',\n },\n value: {\n type: 'integer',\n description: 'Score within the inclusive range [min, max].',\n },\n },\n },\n main: {\n type: 'record',\n description:\n 'An evaluation of a hypercert record (e.g. an activity and its impact).',\n key: 'tid',\n record: {\n type: 'object',\n required: ['evaluators', 'summary', 'createdAt'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to what is being evaluated. (e.g activity, measurement, contribution, etc.)',\n },\n evaluators: {\n type: 'array',\n description: 'DIDs of the evaluators',\n items: {\n type: 'ref',\n ref: 'lex:app.certified.defs#did',\n },\n maxLength: 1000,\n },\n content: {\n type: 'array',\n description:\n 'Evaluation data (URIs or blobs) containing detailed reports or methodology',\n items: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.defs#uri',\n 'lex:org.hypercerts.defs#smallBlob',\n ],\n },\n maxLength: 100,\n },\n measurements: {\n type: 'array',\n description:\n 'Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement',\n items: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n maxLength: 100,\n },\n summary: {\n type: 'string',\n description: 'Brief evaluation summary',\n maxLength: 5000,\n maxGraphemes: 1000,\n },\n score: {\n type: 'ref',\n ref: 'lex:org.hypercerts.claim.evaluation#score',\n description:\n 'Optional overall score for this evaluation on a numeric scale.',\n },\n location: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'An optional reference for georeferenced evaluations. The record referenced must conform with the lexicon app.certified.location.',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n OrgHypercertsClaimEvidence: {\n lexicon: 1,\n id: 'org.hypercerts.claim.evidence',\n defs: {\n main: {\n type: 'record',\n description:\n 'A piece of evidence related to a hypercert record (e.g. an activity, project, claim, or evaluation). Evidence may support, clarify, or challenge the referenced subject.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['content', 'title', 'createdAt'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to the record this evidence relates to (e.g. an activity, project, claim, or evaluation).',\n },\n content: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.defs#uri',\n 'lex:org.hypercerts.defs#smallBlob',\n ],\n description:\n 'A piece of evidence (URI or blob) related to the subject record; it may support, clarify, or challenge a hypercert claim.',\n },\n title: {\n type: 'string',\n maxLength: 256,\n description: 'Title to describe the nature of the evidence.',\n },\n shortDescription: {\n type: 'string',\n maxLength: 3000,\n maxGraphemes: 300,\n description:\n 'Short description explaining what this evidence shows.',\n },\n description: {\n type: 'string',\n description:\n 'Longer description describing the evidence in more detail.',\n maxLength: 30000,\n maxGraphemes: 3000,\n },\n relationType: {\n type: 'string',\n description: 'How this evidence relates to the subject.',\n knownValues: ['supports', 'challenges', 'clarifies'],\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n OrgHypercertsClaimMeasurement: {\n lexicon: 1,\n id: 'org.hypercerts.claim.measurement',\n defs: {\n main: {\n type: 'record',\n description:\n 'Measurement data related to a hypercert record (e.g. an activity and its impact).',\n key: 'tid',\n record: {\n type: 'object',\n required: ['measurers', 'metric', 'value', 'createdAt'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to the record this measurement refers to (e.g. an activity, project, or claim).',\n },\n measurers: {\n type: 'array',\n description:\n 'DIDs of the entity (or entities) that measured this data',\n items: {\n type: 'ref',\n ref: 'lex:app.certified.defs#did',\n },\n maxLength: 100,\n },\n metric: {\n type: 'string',\n description: 'The metric being measured',\n maxLength: 500,\n },\n value: {\n type: 'string',\n description: 'The measured value',\n maxLength: 500,\n },\n methodType: {\n type: 'string',\n description: 'Short identifier for the measurement methodology',\n maxLength: 30,\n },\n methodURI: {\n type: 'string',\n format: 'uri',\n description:\n 'URI to methodology documentation, standard protocol, or measurement procedure',\n },\n evidenceURI: {\n type: 'array',\n description:\n 'URIs to related evidence or underlying data (e.g. org.hypercerts.claim.evidence records or raw datasets)',\n items: {\n type: 'string',\n format: 'uri',\n },\n maxLength: 50,\n },\n location: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to the location where the measurement was taken. The record referenced must conform with the lexicon app.certified.location',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n OrgHypercertsClaimRights: {\n lexicon: 1,\n id: 'org.hypercerts.claim.rights',\n defs: {\n main: {\n type: 'record',\n description:\n 'Describes the rights that a contributor and/or an owner has, such as whether the hypercert can be sold, transferred, and under what conditions.',\n key: 'tid',\n record: {\n type: 'object',\n required: [\n 'rightsName',\n 'rightsType',\n 'rightsDescription',\n 'createdAt',\n ],\n properties: {\n rightsName: {\n type: 'string',\n description: 'Full name of the rights',\n maxLength: 100,\n },\n rightsType: {\n type: 'string',\n description: 'Short rights identifier for easier search',\n maxLength: 10,\n },\n rightsDescription: {\n type: 'string',\n description: 'Description of the rights of this hypercert',\n },\n attachment: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.defs#uri',\n 'lex:org.hypercerts.defs#smallBlob',\n ],\n description:\n 'An attachment to define the rights further, e.g. a legal document.',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n OrgHypercertsDefs: {\n lexicon: 1,\n id: 'org.hypercerts.defs',\n defs: {\n uri: {\n type: 'object',\n required: ['uri'],\n description: 'Object containing a URI to external data',\n properties: {\n uri: {\n type: 'string',\n format: 'uri',\n maxGraphemes: 1024,\n description: 'URI to external data',\n },\n },\n },\n smallBlob: {\n type: 'object',\n required: ['blob'],\n description: 'Object containing a blob to external data',\n properties: {\n blob: {\n type: 'blob',\n accept: ['*/*'],\n maxSize: 10485760,\n description: 'Blob to external data (up to 10MB)',\n },\n },\n },\n largeBlob: {\n type: 'object',\n required: ['blob'],\n description: 'Object containing a blob to external data',\n properties: {\n blob: {\n type: 'blob',\n accept: ['*/*'],\n maxSize: 104857600,\n description: 'Blob to external data (up to 100MB)',\n },\n },\n },\n smallImage: {\n type: 'object',\n required: ['image'],\n description: 'Object containing a small image',\n properties: {\n image: {\n type: 'blob',\n accept: ['image/jpeg', 'image/jpg', 'image/png', 'image/webp'],\n maxSize: 5242880,\n description: 'Image (up to 5MB)',\n },\n },\n },\n largeImage: {\n type: 'object',\n required: ['image'],\n description: 'Object containing a large image',\n properties: {\n image: {\n type: 'blob',\n accept: ['image/jpeg', 'image/jpg', 'image/png', 'image/webp'],\n maxSize: 10485760,\n description: 'Image (up to 10MB)',\n },\n },\n },\n },\n },\n OrgHypercertsFundingReceipt: {\n lexicon: 1,\n id: 'org.hypercerts.funding.receipt',\n defs: {\n main: {\n type: 'record',\n description:\n 'Records a funding receipt for a payment from one user to another user. It may be recorded by the recipient, by the sender, or by a third party. The sender may remain anonymous.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['from', 'to', 'amount', 'currency', 'createdAt'],\n properties: {\n from: {\n type: 'ref',\n ref: 'lex:app.certified.defs#did',\n description:\n 'DID of the sender who transferred the funds. Leave empty if sender wants to stay anonymous.',\n },\n to: {\n type: 'string',\n description:\n 'The recipient of the funds. Can be identified by DID or a clear-text name.',\n },\n amount: {\n type: 'string',\n description: 'Amount of funding received.',\n },\n currency: {\n type: 'string',\n description: 'Currency of the payment (e.g. EUR, USD, ETH).',\n },\n paymentRail: {\n type: 'string',\n description:\n 'How the funds were transferred (e.g. bank_transfer, credit_card, onchain, cash, check, payment_processor).',\n },\n paymentNetwork: {\n type: 'string',\n description:\n 'Optional network within the payment rail (e.g. arbitrum, ethereum, sepa, visa, paypal).',\n },\n transactionId: {\n type: 'string',\n description:\n 'Identifier of the underlying payment transaction (e.g. bank reference, onchain transaction hash, or processor-specific ID). Use paymentNetwork to specify the network where applicable.',\n },\n for: {\n type: 'string',\n format: 'at-uri',\n description:\n 'Optional reference to the activity, project, or organization this funding relates to.',\n },\n notes: {\n type: 'string',\n description:\n 'Optional notes or additional context for this funding receipt.',\n maxLength: 500,\n },\n occurredAt: {\n type: 'string',\n format: 'datetime',\n description: 'Timestamp when the payment occurred.',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this receipt record was created.',\n },\n },\n },\n },\n },\n },\n} as const satisfies Record<string, LexiconDoc>\nexport const schemas = Object.values(schemaDict) satisfies LexiconDoc[]\nexport const lexicons: Lexicons = new Lexicons(schemas)\n\nexport function validate<T extends { $type: string }>(\n v: unknown,\n id: string,\n hash: string,\n requiredType: true,\n): ValidationResult<T>\nexport function validate<T extends { $type?: string }>(\n v: unknown,\n id: string,\n hash: string,\n requiredType?: false,\n): ValidationResult<T>\nexport function validate(\n v: unknown,\n id: string,\n hash: string,\n requiredType?: boolean,\n): ValidationResult {\n return (requiredType ? is$typed : maybe$typed)(v, id, hash)\n ? lexicons.validate(`${id}#${hash}`, v)\n : {\n success: false,\n error: new ValidationError(\n `Must be an object with \"${hash === 'main' ? id : `${id}#${hash}`}\" $type property`,\n ),\n }\n}\n\nexport const ids = {\n AppCertifiedBadgeAward: 'app.certified.badge.award',\n AppCertifiedBadgeDefinition: 'app.certified.badge.definition',\n AppCertifiedBadgeResponse: 'app.certified.badge.response',\n AppCertifiedDefs: 'app.certified.defs',\n AppCertifiedLocation: 'app.certified.location',\n ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',\n OrgHypercertsClaimActivity: 'org.hypercerts.claim.activity',\n OrgHypercertsClaimCollection: 'org.hypercerts.claim.collection',\n OrgHypercertsClaimContributor: 'org.hypercerts.claim.contributor',\n OrgHypercertsClaimEvaluation: 'org.hypercerts.claim.evaluation',\n OrgHypercertsClaimEvidence: 'org.hypercerts.claim.evidence',\n OrgHypercertsClaimMeasurement: 'org.hypercerts.claim.measurement',\n OrgHypercertsClaimRights: 'org.hypercerts.claim.rights',\n OrgHypercertsDefs: 'org.hypercerts.defs',\n OrgHypercertsFundingReceipt: 'org.hypercerts.funding.receipt',\n} as const\n"],"names":[],"mappings":";;AAAA;;AAEG;AAeH,SAAS,QAAQ,CAAI,CAAI,EAAA;IACvB,OAAO,CAAC,IAAI,IAAI,IAAI,OAAO,CAAC,KAAK,QAAQ;AAC3C;AAEA,SAAS,OAAO,CACd,KAAc,EACd,EAAM,EACN,IAAU,EAAA;IAEV,OAAO,IAAI,KAAK;UACZ,KAAK,KAAK;AACZ;YACE,OAAO,KAAK,KAAK,QAAQ;gBACvB,KAAK,CAAC,MAAM,KAAK,EAAE,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM;gBAC5C,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE;AAClC,gBAAA,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC;AACpB,gBAAA,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC5B;SAgBgB,QAAQ,CACtB,CAAI,EACJ,EAAM,EACN,IAAU,EAAA;AAEV,IAAA,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,OAAO,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC;AAClE;SAEgB,WAAW,CACzB,CAAI,EACJ,EAAM,EACN,IAAU,EAAA;AAEV,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AAE,CAAA,CAAA,EAAI,IAAI,CAAA,CAAE,CAAA,gBAAA,CAAkB,CACpF;SACF;AACP;AAEO,MAAM,GAAG,GAAG;AACjB,IAAA,sBAAsB,EAAE,2BAA2B;AACnD,IAAA,2BAA2B,EAAE,gCAAgC;AAC7D,IAAA,yBAAyB,EAAE,8BAA8B;AACzD,IAAA,gBAAgB,EAAE,oBAAoB;AACtC,IAAA,oBAAoB,EAAE,wBAAwB;AAC9C,IAAA,uBAAuB,EAAE,4BAA4B;AACrD,IAAA,0BAA0B,EAAE,+BAA+B;AAC3D,IAAA,4BAA4B,EAAE,iCAAiC;AAC/D,IAAA,6BAA6B,EAAE,kCAAkC;AACjE,IAAA,4BAA4B,EAAE,iCAAiC;AAC/D,IAAA,0BAA0B,EAAE,+BAA+B;AAC3D,IAAA,6BAA6B,EAAE,kCAAkC;AACjE,IAAA,wBAAwB,EAAE,6BAA6B;AACvD,IAAA,iBAAiB,EAAE,qBAAqB;AACxC,IAAA,2BAA2B,EAAE,gCAAgC;;;;;"}
1
+ {"version":3,"file":"lexicons.mjs","sources":["../../generated/util.ts","../../generated/lexicons.ts"],"sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\n\nimport { type ValidationResult } from '@atproto/lexicon'\n\nexport type OmitKey<T, K extends keyof T> = {\n [K2 in keyof T as K2 extends K ? never : K2]: T[K2]\n}\n\nexport type $Typed<V, T extends string = string> = V & { $type: T }\nexport type Un$Typed<V extends { $type?: string }> = OmitKey<V, '$type'>\n\nexport type $Type<Id extends string, Hash extends string> = Hash extends 'main'\n ? Id\n : `${Id}#${Hash}`\n\nfunction isObject<V>(v: V): v is V & object {\n return v != null && typeof v === 'object'\n}\n\nfunction is$type<Id extends string, Hash extends string>(\n $type: unknown,\n id: Id,\n hash: Hash,\n): $type is $Type<Id, Hash> {\n return hash === 'main'\n ? $type === id\n : // $type === `${id}#${hash}`\n typeof $type === 'string' &&\n $type.length === id.length + 1 + hash.length &&\n $type.charCodeAt(id.length) === 35 /* '#' */ &&\n $type.startsWith(id) &&\n $type.endsWith(hash)\n}\n\nexport type $TypedObject<\n V,\n Id extends string,\n Hash extends string,\n> = V extends {\n $type: $Type<Id, Hash>\n}\n ? V\n : V extends { $type?: string }\n ? V extends { $type?: infer T extends $Type<Id, Hash> }\n ? V & { $type: T }\n : never\n : V & { $type: $Type<Id, Hash> }\n\nexport function is$typed<V, Id extends string, Hash extends string>(\n v: V,\n id: Id,\n hash: Hash,\n): v is $TypedObject<V, Id, Hash> {\n return isObject(v) && '$type' in v && is$type(v.$type, id, hash)\n}\n\nexport function maybe$typed<V, Id extends string, Hash extends string>(\n v: V,\n id: Id,\n hash: Hash,\n): v is V & object & { $type?: $Type<Id, Hash> } {\n return (\n isObject(v) &&\n ('$type' in v ? v.$type === undefined || is$type(v.$type, id, hash) : true)\n )\n}\n\nexport type Validator<R = unknown> = (v: unknown) => ValidationResult<R>\nexport type ValidatorParam<V extends Validator> =\n V extends Validator<infer R> ? R : never\n\n/**\n * Utility function that allows to convert a \"validate*\" utility function into a\n * type predicate.\n */\nexport function asPredicate<V extends Validator>(validate: V) {\n return function <T>(v: T): v is T & ValidatorParam<V> {\n return validate(v).success\n }\n}\n","/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport {\n type LexiconDoc,\n Lexicons,\n ValidationError,\n type ValidationResult,\n} from '@atproto/lexicon'\nimport { type $Typed, is$typed, maybe$typed } from './util.js'\n\nexport const schemaDict = {\n AppCertifiedBadgeAward: {\n lexicon: 1,\n id: 'app.certified.badge.award',\n defs: {\n main: {\n type: 'record',\n description:\n 'Records a badge award to a user, project, or activity claim.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['badge', 'subject', 'createdAt'],\n properties: {\n badge: {\n type: 'ref',\n ref: 'lex:app.certified.badge.definition',\n description: 'Reference to the badge definition for this award.',\n },\n subject: {\n type: 'union',\n description:\n 'Entity the badge award is for (either an account DID or any specific AT Protocol record), e.g. a user, a project, or a specific activity claim.',\n refs: [\n 'lex:app.certified.defs#did',\n 'lex:com.atproto.repo.strongRef',\n ],\n },\n note: {\n type: 'string',\n description:\n 'Optional statement explaining the reason for this badge award.',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n AppCertifiedBadgeDefinition: {\n lexicon: 1,\n id: 'app.certified.badge.definition',\n defs: {\n main: {\n type: 'record',\n description:\n 'Defines a badge that can be awarded via badge award records to users, projects, or activity claims.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['title', 'badgeType', 'icon', 'createdAt'],\n properties: {\n badgeType: {\n type: 'string',\n description:\n 'Category of the badge (e.g. endorsement, participation, affiliation).',\n },\n title: {\n type: 'string',\n description: 'Human-readable title of the badge.',\n },\n icon: {\n type: 'blob',\n description:\n 'Icon representing the badge, stored as a blob for compact visual display.',\n accept: [\n 'image/png',\n 'image/jpeg',\n 'image/webp',\n 'image/svg+xml',\n ],\n maxSize: 1048576,\n },\n description: {\n type: 'string',\n description:\n 'Optional short statement describing what the badge represents.',\n },\n allowedIssuers: {\n type: 'array',\n description:\n 'Optional allowlist of DIDs allowed to issue this badge. If omitted, anyone may issue it.',\n items: {\n type: 'ref',\n ref: 'lex:app.certified.defs#did',\n },\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n AppCertifiedBadgeResponse: {\n lexicon: 1,\n id: 'app.certified.badge.response',\n defs: {\n main: {\n type: 'record',\n description: 'Recipient response to a badge award.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['badgeAward', 'response', 'createdAt'],\n properties: {\n badgeAward: {\n type: 'ref',\n ref: 'lex:app.certified.badge.award',\n description: 'Reference to the badge award.',\n },\n response: {\n type: 'string',\n enum: ['accepted', 'rejected'],\n description:\n 'The recipient’s response for the badge (accepted or rejected).',\n },\n weight: {\n type: 'string',\n description:\n 'Optional relative weight for accepted badges, assigned by the recipient.',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n AppCertifiedDefs: {\n lexicon: 1,\n id: 'app.certified.defs',\n description: 'Common type definitions used across certified protocols.',\n defs: {\n did: {\n type: 'string',\n format: 'did',\n description: 'A Decentralized Identifier (DID) string.',\n },\n },\n },\n AppCertifiedLocation: {\n lexicon: 1,\n id: 'app.certified.location',\n defs: {\n main: {\n type: 'record',\n description: 'A location reference',\n key: 'tid',\n record: {\n type: 'object',\n required: [\n 'lpVersion',\n 'srs',\n 'locationType',\n 'location',\n 'createdAt',\n ],\n properties: {\n lpVersion: {\n type: 'string',\n description: 'The version of the Location Protocol',\n maxLength: 10,\n },\n srs: {\n type: 'string',\n format: 'uri',\n description:\n 'The Spatial Reference System URI (e.g., http://www.opengis.net/def/crs/OGC/1.3/CRS84) that defines the coordinate system.',\n maxLength: 100,\n },\n locationType: {\n type: 'string',\n description:\n 'An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point)',\n knownValues: ['coordinate-decimal', 'geojson-point'],\n maxLength: 20,\n },\n location: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.defs#uri',\n 'lex:org.hypercerts.defs#smallBlob',\n ],\n description:\n 'The location of where the work was performed as a URI or blob.',\n },\n name: {\n type: 'string',\n description: 'Optional name for this location',\n maxLength: 1000,\n maxGraphemes: 100,\n },\n description: {\n type: 'string',\n description: 'Optional description for this location',\n maxLength: 2000,\n maxGraphemes: 500,\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n ComAtprotoRepoStrongRef: {\n lexicon: 1,\n id: 'com.atproto.repo.strongRef',\n description: 'A URI with a content-hash fingerprint.',\n defs: {\n main: {\n type: 'object',\n required: ['uri', 'cid'],\n properties: {\n uri: {\n type: 'string',\n format: 'at-uri',\n },\n cid: {\n type: 'string',\n format: 'cid',\n },\n },\n },\n },\n },\n OrgHypercertsClaimActivity: {\n lexicon: 1,\n id: 'org.hypercerts.claim.activity',\n defs: {\n main: {\n type: 'record',\n description: 'A hypercert record tracking impact work.',\n key: 'any',\n record: {\n type: 'object',\n required: ['title', 'shortDescription', 'createdAt'],\n properties: {\n title: {\n type: 'string',\n description: 'Title of the hypercert.',\n maxLength: 256,\n },\n shortDescription: {\n type: 'string',\n description: 'Short blurb of the impact work done.',\n maxLength: 3000,\n maxGraphemes: 300,\n },\n description: {\n type: 'string',\n description:\n 'Optional longer description of the impact work done.',\n maxLength: 30000,\n maxGraphemes: 3000,\n },\n image: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.defs#uri',\n 'lex:org.hypercerts.defs#smallImage',\n ],\n description:\n 'The hypercert visual representation as a URI or image blob.',\n },\n workScope: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to a record defining the scope of work. The record referenced should describe the logical scope using label-based conditions.',\n },\n startDate: {\n type: 'string',\n format: 'datetime',\n description: 'When the work began',\n },\n endDate: {\n type: 'string',\n format: 'datetime',\n description: 'When the work ended',\n },\n contributors: {\n type: 'array',\n description:\n 'An array of contributor objects, each containing contributor information, weight, and contribution details.',\n items: {\n type: 'ref',\n ref: 'lex:org.hypercerts.claim.activity#contributor',\n },\n },\n rights: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to the rights that this hypercert has. The record referenced must conform with the lexicon org.hypercerts.claim.rights.',\n },\n locations: {\n type: 'array',\n description:\n 'An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location.',\n items: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n contributor: {\n type: 'object',\n required: ['contributorInformation'],\n properties: {\n contributorInformation: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.claim.activity#contributorIdentity',\n 'lex:com.atproto.repo.strongRef',\n ],\n description:\n 'Contributor information as a string (DID or identifier) or strong reference to for instance org.hypercerts.claim.contributorInformation#main.',\n },\n weight: {\n type: 'string',\n description:\n 'The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed.',\n },\n contributionDetails: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.claim.activity#contributorRole',\n 'lex:com.atproto.repo.strongRef',\n ],\n description:\n 'Contribution details as a string or strong reference to org.hypercerts.claim.contributionDetails#main.',\n },\n },\n },\n contributorIdentity: {\n type: 'string',\n description: 'Contributor information as a string (DID or identifier).',\n },\n contributorRole: {\n type: 'string',\n description: 'Contribution details as a string.',\n maxLength: 10000,\n maxGraphemes: 1000,\n },\n activityWeight: {\n type: 'object',\n required: ['activity', 'weight'],\n properties: {\n activity: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to a hypercert activity record. This activity must conform to the lexicon org.hypercerts.claim.activity',\n },\n weight: {\n type: 'string',\n description:\n 'The relative weight/importance of this hypercert activity (stored as a string to avoid float precision issues). Weights can be any positive numeric values and do not need to sum to a specific total; normalization can be performed by the consuming application as needed.',\n },\n },\n },\n },\n },\n OrgHypercertsClaimCollection: {\n lexicon: 1,\n id: 'org.hypercerts.claim.collection',\n defs: {\n main: {\n type: 'record',\n description:\n 'A collection/group of items (activities and/or other collections). Collections support recursive nesting. Use app.certified.location as a sidecar (same TID) for location metadata.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['title', 'items', 'createdAt'],\n properties: {\n type: {\n type: 'string',\n description:\n \"The type of this collection. Possible fields can be 'favorites', 'project', or any other type of collection.\",\n },\n title: {\n type: 'string',\n description: 'The title of this collection',\n maxLength: 800,\n maxGraphemes: 80,\n },\n shortDescription: {\n type: 'string',\n maxLength: 3000,\n maxGraphemes: 300,\n description:\n 'Short summary of this collection, suitable for previews and list views',\n },\n description: {\n type: 'ref',\n ref: 'lex:pub.leaflet.pages.linearDocument#main',\n description:\n 'Rich-text description, represented as a Leaflet linear document.',\n },\n items: {\n type: 'array',\n description:\n 'Array of strong references to items in this collection. Items can be activities (org.hypercerts.claim.activity) and/or other collections (org.hypercerts.claim.collection).',\n items: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n OrgHypercertsClaimContributionDetails: {\n lexicon: 1,\n id: 'org.hypercerts.claim.contributionDetails',\n defs: {\n main: {\n type: 'record',\n description:\n 'Details about a specific contribution including role, description, and timeframe.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['createdAt'],\n properties: {\n role: {\n type: 'string',\n description: 'Role or title of the contributor.',\n maxLength: 100,\n },\n contributionDescription: {\n type: 'string',\n description: 'What the contribution concretely was.',\n maxLength: 10000,\n maxGraphemes: 1000,\n },\n startDate: {\n type: 'string',\n format: 'datetime',\n description:\n 'When this contribution started. This should be a subset of the hypercert timeframe.',\n },\n endDate: {\n type: 'string',\n format: 'datetime',\n description:\n 'When this contribution finished. This should be a subset of the hypercert timeframe.',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created.',\n },\n },\n },\n },\n },\n },\n OrgHypercertsClaimContributorInformation: {\n lexicon: 1,\n id: 'org.hypercerts.claim.contributorInformation',\n defs: {\n main: {\n type: 'record',\n description:\n 'Contributor information including identifier, display name, and image.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['createdAt'],\n properties: {\n identifier: {\n type: 'string',\n description:\n 'DID or a URI to a social profile of the contributor.',\n },\n displayName: {\n type: 'string',\n description: 'Display name of the contributor.',\n maxLength: 100,\n },\n image: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.defs#uri',\n 'lex:org.hypercerts.defs#smallImage',\n ],\n description:\n 'The contributor visual representation as a URI or image blob.',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created.',\n },\n },\n },\n },\n },\n },\n OrgHypercertsClaimEvaluation: {\n lexicon: 1,\n id: 'org.hypercerts.claim.evaluation',\n defs: {\n score: {\n type: 'object',\n description: 'Overall score for an evaluation on a numeric scale.',\n required: ['min', 'max', 'value'],\n properties: {\n min: {\n type: 'integer',\n description: 'Minimum value of the scale, e.g. 0 or 1.',\n },\n max: {\n type: 'integer',\n description: 'Maximum value of the scale, e.g. 5 or 10.',\n },\n value: {\n type: 'integer',\n description: 'Score within the inclusive range [min, max].',\n },\n },\n },\n main: {\n type: 'record',\n description:\n 'An evaluation of a hypercert record (e.g. an activity and its impact).',\n key: 'tid',\n record: {\n type: 'object',\n required: ['evaluators', 'summary', 'createdAt'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to what is being evaluated. (e.g activity, measurement, contribution, etc.)',\n },\n evaluators: {\n type: 'array',\n description: 'DIDs of the evaluators',\n items: {\n type: 'ref',\n ref: 'lex:app.certified.defs#did',\n },\n maxLength: 1000,\n },\n content: {\n type: 'array',\n description:\n 'Evaluation data (URIs or blobs) containing detailed reports or methodology',\n items: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.defs#uri',\n 'lex:org.hypercerts.defs#smallBlob',\n ],\n },\n maxLength: 100,\n },\n measurements: {\n type: 'array',\n description:\n 'Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement',\n items: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n maxLength: 100,\n },\n summary: {\n type: 'string',\n description: 'Brief evaluation summary',\n maxLength: 5000,\n maxGraphemes: 1000,\n },\n score: {\n type: 'ref',\n ref: 'lex:org.hypercerts.claim.evaluation#score',\n description:\n 'Optional overall score for this evaluation on a numeric scale.',\n },\n location: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'An optional reference for georeferenced evaluations. The record referenced must conform with the lexicon app.certified.location.',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n OrgHypercertsClaimEvidence: {\n lexicon: 1,\n id: 'org.hypercerts.claim.evidence',\n defs: {\n main: {\n type: 'record',\n description:\n 'A piece of evidence related to a hypercert record (e.g. an activity, project, claim, or evaluation). Evidence may support, clarify, or challenge the referenced subject.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['content', 'title', 'createdAt'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to the record this evidence relates to (e.g. an activity, project, claim, or evaluation).',\n },\n content: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.defs#uri',\n 'lex:org.hypercerts.defs#smallBlob',\n ],\n description:\n 'A piece of evidence (URI or blob) related to the subject record; it may support, clarify, or challenge a hypercert claim.',\n },\n title: {\n type: 'string',\n maxLength: 256,\n description: 'Title to describe the nature of the evidence.',\n },\n shortDescription: {\n type: 'string',\n maxLength: 3000,\n maxGraphemes: 300,\n description:\n 'Short description explaining what this evidence shows.',\n },\n description: {\n type: 'string',\n description:\n 'Longer description describing the evidence in more detail.',\n maxLength: 30000,\n maxGraphemes: 3000,\n },\n relationType: {\n type: 'string',\n description: 'How this evidence relates to the subject.',\n knownValues: ['supports', 'challenges', 'clarifies'],\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n OrgHypercertsClaimMeasurement: {\n lexicon: 1,\n id: 'org.hypercerts.claim.measurement',\n defs: {\n main: {\n type: 'record',\n description:\n 'Measurement data related to a hypercert record (e.g. an activity and its impact).',\n key: 'tid',\n record: {\n type: 'object',\n required: ['measurers', 'metric', 'value', 'createdAt'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to the record this measurement refers to (e.g. an activity, project, or claim).',\n },\n measurers: {\n type: 'array',\n description:\n 'DIDs of the entity (or entities) that measured this data',\n items: {\n type: 'ref',\n ref: 'lex:app.certified.defs#did',\n },\n maxLength: 100,\n },\n metric: {\n type: 'string',\n description: 'The metric being measured',\n maxLength: 500,\n },\n value: {\n type: 'string',\n description: 'The measured value',\n maxLength: 500,\n },\n methodType: {\n type: 'string',\n description: 'Short identifier for the measurement methodology',\n maxLength: 30,\n },\n methodURI: {\n type: 'string',\n format: 'uri',\n description:\n 'URI to methodology documentation, standard protocol, or measurement procedure',\n },\n evidenceURI: {\n type: 'array',\n description:\n 'URIs to related evidence or underlying data (e.g. org.hypercerts.claim.evidence records or raw datasets)',\n items: {\n type: 'string',\n format: 'uri',\n },\n maxLength: 50,\n },\n location: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n description:\n 'A strong reference to the location where the measurement was taken. The record referenced must conform with the lexicon app.certified.location',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n OrgHypercertsClaimRights: {\n lexicon: 1,\n id: 'org.hypercerts.claim.rights',\n defs: {\n main: {\n type: 'record',\n description:\n 'Describes the rights that a contributor and/or an owner has, such as whether the hypercert can be sold, transferred, and under what conditions.',\n key: 'tid',\n record: {\n type: 'object',\n required: [\n 'rightsName',\n 'rightsType',\n 'rightsDescription',\n 'createdAt',\n ],\n properties: {\n rightsName: {\n type: 'string',\n description: 'Full name of the rights',\n maxLength: 100,\n },\n rightsType: {\n type: 'string',\n description: 'Short rights identifier for easier search',\n maxLength: 10,\n },\n rightsDescription: {\n type: 'string',\n description: 'Description of the rights of this hypercert',\n },\n attachment: {\n type: 'union',\n refs: [\n 'lex:org.hypercerts.defs#uri',\n 'lex:org.hypercerts.defs#smallBlob',\n ],\n description:\n 'An attachment to define the rights further, e.g. a legal document.',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this record was originally created',\n },\n },\n },\n },\n },\n },\n OrgHypercertsDefs: {\n lexicon: 1,\n id: 'org.hypercerts.defs',\n defs: {\n uri: {\n type: 'object',\n required: ['uri'],\n description: 'Object containing a URI to external data',\n properties: {\n uri: {\n type: 'string',\n format: 'uri',\n maxGraphemes: 1024,\n description: 'URI to external data',\n },\n },\n },\n smallBlob: {\n type: 'object',\n required: ['blob'],\n description: 'Object containing a blob to external data',\n properties: {\n blob: {\n type: 'blob',\n accept: ['*/*'],\n maxSize: 10485760,\n description: 'Blob to external data (up to 10MB)',\n },\n },\n },\n largeBlob: {\n type: 'object',\n required: ['blob'],\n description: 'Object containing a blob to external data',\n properties: {\n blob: {\n type: 'blob',\n accept: ['*/*'],\n maxSize: 104857600,\n description: 'Blob to external data (up to 100MB)',\n },\n },\n },\n smallImage: {\n type: 'object',\n required: ['image'],\n description: 'Object containing a small image',\n properties: {\n image: {\n type: 'blob',\n accept: ['image/jpeg', 'image/jpg', 'image/png', 'image/webp'],\n maxSize: 5242880,\n description: 'Image (up to 5MB)',\n },\n },\n },\n largeImage: {\n type: 'object',\n required: ['image'],\n description: 'Object containing a large image',\n properties: {\n image: {\n type: 'blob',\n accept: ['image/jpeg', 'image/jpg', 'image/png', 'image/webp'],\n maxSize: 10485760,\n description: 'Image (up to 10MB)',\n },\n },\n },\n },\n },\n OrgHypercertsFundingReceipt: {\n lexicon: 1,\n id: 'org.hypercerts.funding.receipt',\n defs: {\n main: {\n type: 'record',\n description:\n 'Records a funding receipt for a payment from one user to another user. It may be recorded by the recipient, by the sender, or by a third party. The sender may remain anonymous.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['from', 'to', 'amount', 'currency', 'createdAt'],\n properties: {\n from: {\n type: 'ref',\n ref: 'lex:app.certified.defs#did',\n description:\n 'DID of the sender who transferred the funds. Leave empty if sender wants to stay anonymous.',\n },\n to: {\n type: 'string',\n description:\n 'The recipient of the funds. Can be identified by DID or a clear-text name.',\n },\n amount: {\n type: 'string',\n description: 'Amount of funding received.',\n },\n currency: {\n type: 'string',\n description: 'Currency of the payment (e.g. EUR, USD, ETH).',\n },\n paymentRail: {\n type: 'string',\n description:\n 'How the funds were transferred (e.g. bank_transfer, credit_card, onchain, cash, check, payment_processor).',\n },\n paymentNetwork: {\n type: 'string',\n description:\n 'Optional network within the payment rail (e.g. arbitrum, ethereum, sepa, visa, paypal).',\n },\n transactionId: {\n type: 'string',\n description:\n 'Identifier of the underlying payment transaction (e.g. bank reference, onchain transaction hash, or processor-specific ID). Use paymentNetwork to specify the network where applicable.',\n },\n for: {\n type: 'string',\n format: 'at-uri',\n description:\n 'Optional reference to the activity, project, or organization this funding relates to.',\n },\n notes: {\n type: 'string',\n description:\n 'Optional notes or additional context for this funding receipt.',\n maxLength: 500,\n },\n occurredAt: {\n type: 'string',\n format: 'datetime',\n description: 'Timestamp when the payment occurred.',\n },\n createdAt: {\n type: 'string',\n format: 'datetime',\n description:\n 'Client-declared timestamp when this receipt record was created.',\n },\n },\n },\n },\n },\n },\n} as const satisfies Record<string, LexiconDoc>\nexport const schemas = Object.values(schemaDict) satisfies LexiconDoc[]\nexport const lexicons: Lexicons = new Lexicons(schemas)\n\nexport function validate<T extends { $type: string }>(\n v: unknown,\n id: string,\n hash: string,\n requiredType: true,\n): ValidationResult<T>\nexport function validate<T extends { $type?: string }>(\n v: unknown,\n id: string,\n hash: string,\n requiredType?: false,\n): ValidationResult<T>\nexport function validate(\n v: unknown,\n id: string,\n hash: string,\n requiredType?: boolean,\n): ValidationResult {\n return (requiredType ? is$typed : maybe$typed)(v, id, hash)\n ? lexicons.validate(`${id}#${hash}`, v)\n : {\n success: false,\n error: new ValidationError(\n `Must be an object with \"${hash === 'main' ? id : `${id}#${hash}`}\" $type property`,\n ),\n }\n}\n\nexport const ids = {\n AppCertifiedBadgeAward: 'app.certified.badge.award',\n AppCertifiedBadgeDefinition: 'app.certified.badge.definition',\n AppCertifiedBadgeResponse: 'app.certified.badge.response',\n AppCertifiedDefs: 'app.certified.defs',\n AppCertifiedLocation: 'app.certified.location',\n ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',\n OrgHypercertsClaimActivity: 'org.hypercerts.claim.activity',\n OrgHypercertsClaimCollection: 'org.hypercerts.claim.collection',\n OrgHypercertsClaimContributionDetails:\n 'org.hypercerts.claim.contributionDetails',\n OrgHypercertsClaimContributorInformation:\n 'org.hypercerts.claim.contributorInformation',\n OrgHypercertsClaimEvaluation: 'org.hypercerts.claim.evaluation',\n OrgHypercertsClaimEvidence: 'org.hypercerts.claim.evidence',\n OrgHypercertsClaimMeasurement: 'org.hypercerts.claim.measurement',\n OrgHypercertsClaimRights: 'org.hypercerts.claim.rights',\n OrgHypercertsDefs: 'org.hypercerts.defs',\n OrgHypercertsFundingReceipt: 'org.hypercerts.funding.receipt',\n} as const\n"],"names":[],"mappings":";;AAAA;;AAEG;AAeH,SAAS,QAAQ,CAAI,CAAI,EAAA;IACvB,OAAO,CAAC,IAAI,IAAI,IAAI,OAAO,CAAC,KAAK,QAAQ;AAC3C;AAEA,SAAS,OAAO,CACd,KAAc,EACd,EAAM,EACN,IAAU,EAAA;IAEV,OAAO,IAAI,KAAK;UACZ,KAAK,KAAK;AACZ;YACE,OAAO,KAAK,KAAK,QAAQ;gBACvB,KAAK,CAAC,MAAM,KAAK,EAAE,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM;gBAC5C,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE;AAClC,gBAAA,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC;AACpB,gBAAA,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC5B;SAgBgB,QAAQ,CACtB,CAAI,EACJ,EAAM,EACN,IAAU,EAAA;AAEV,IAAA,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,OAAO,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC;AAClE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AAC,QAAQ,CAAC,CAAA,EAAG,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,CAAE,EAAE,CAAC;AACtC,UAAE;AACE,YAAA,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,IAAI,eAAe,CACxB,2BAA2B,IAAI,KAAK,MAAM,GAAG,EAAE,GAAG,CAAA,EAAG,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,CAAE,CAAA,gBAAA,CAAkB,CACpF;SACF;AACP;AAEO,MAAM,GAAG,GAAG;AACjB,IAAA,sBAAsB,EAAE,2BAA2B;AACnD,IAAA,2BAA2B,EAAE,gCAAgC;AAC7D,IAAA,yBAAyB,EAAE,8BAA8B;AACzD,IAAA,gBAAgB,EAAE,oBAAoB;AACtC,IAAA,oBAAoB,EAAE,wBAAwB;AAC9C,IAAA,uBAAuB,EAAE,4BAA4B;AACrD,IAAA,0BAA0B,EAAE,+BAA+B;AAC3D,IAAA,4BAA4B,EAAE,iCAAiC;AAC/D,IAAA,qCAAqC,EACnC,0CAA0C;AAC5C,IAAA,wCAAwC,EACtC,6CAA6C;AAC/C,IAAA,4BAA4B,EAAE,iCAAiC;AAC/D,IAAA,0BAA0B,EAAE,+BAA+B;AAC3D,IAAA,6BAA6B,EAAE,kCAAkC;AACjE,IAAA,wBAAwB,EAAE,6BAA6B;AACvD,IAAA,iBAAiB,EAAE,qBAAqB;AACxC,IAAA,2BAA2B,EAAE,gCAAgC;;;;;"}
@@ -21,8 +21,8 @@ export interface Main {
21
21
  startDate?: string;
22
22
  /** When the work ended */
23
23
  endDate?: string;
24
- /** A strong reference to the contributions done to create the impact in the hypercerts. The record referenced must conform with the lexicon org.hypercerts.claim.contributor. */
25
- contributions?: ComAtprotoRepoStrongRef.Main[];
24
+ /** An array of contributor objects, each containing contributor information, weight, and contribution details. */
25
+ contributors?: Contributor[];
26
26
  rights?: ComAtprotoRepoStrongRef.Main;
27
27
  /** An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location. */
28
28
  locations?: ComAtprotoRepoStrongRef.Main[];
@@ -33,6 +33,23 @@ export interface Main {
33
33
  export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.activity", "main">;
34
34
  export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
35
35
  export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
36
+ export interface Contributor {
37
+ $type?: 'org.hypercerts.claim.activity#contributor';
38
+ contributorInformation: $Typed<ContributorIdentity> | $Typed<ComAtprotoRepoStrongRef.Main> | {
39
+ $type: string;
40
+ };
41
+ /** The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed. */
42
+ weight?: string;
43
+ contributionDetails?: $Typed<ContributorRole> | $Typed<ComAtprotoRepoStrongRef.Main> | {
44
+ $type: string;
45
+ };
46
+ }
47
+ export declare function isContributor<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.activity", "contributor">;
48
+ export declare function validateContributor<V>(v: V): ValidationResult<Contributor & V>;
49
+ /** Contributor information as a string (DID or identifier). */
50
+ export type ContributorIdentity = string;
51
+ /** Contribution details as a string. */
52
+ export type ContributorRole = string;
36
53
  export interface ActivityWeight {
37
54
  $type?: 'org.hypercerts.claim.activity#activityWeight';
38
55
  activity: ComAtprotoRepoStrongRef.Main;
@@ -1 +1 @@
1
- {"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../../../../generated/types/org/hypercerts/claim/activity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,+BAA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,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C"}
1
+ {"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../../../../generated/types/org/hypercerts/claim/activity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,+BAA+B,CAAA;IACtC,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,2CAA2C;IAC3C,gBAAgB,EAAE,MAAM,CAAA;IACxB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EACF,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAC7B,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,SAAS,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACxC,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kHAAkH;IAClH,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,MAAM,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACrC,8JAA8J;IAC9J,SAAS,CAAC,EAAE,uBAAuB,CAAC,IAAI,EAAE,CAAA;IAC1C,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4FAE7B;AAED,wB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ts.claim.contributionDetails';
7
+ /** Role or title of the contributor. */
8
+ role?: string;
9
+ /** What the contribution concretely was. */
10
+ contributionDescription?: string;
11
+ /** When this contribution started. This should be a subset of the hypercert timeframe. */
12
+ startDate?: string;
13
+ /** When this contribution finished. This should be a subset of the hypercert timeframe. */
14
+ endDate?: string;
15
+ /** Client-declared timestamp when this record was originally created. */
16
+ createdAt: string;
17
+ [k: string]: unknown;
18
+ }
19
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.contributionDetails", "main">;
20
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
21
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
22
+ //# sourceMappingURL=contributionDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contributionDetails.d.ts","sourceRoot":"","sources":["../../../../../generated/types/org/hypercerts/claim/contributionDetails.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,0CAA0C,CAAA;IACjD,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uGAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
@@ -5,7 +5,7 @@ import { type ValidationResult } from '@atproto/lexicon';
5
5
  import { type $Typed } from '../../../../util';
6
6
  import type * as OrgHypercertsDefs from '../defs.js';
7
7
  export interface Main {
8
- $type: 'org.hypercerts.claim.contributor';
8
+ $type: 'org.hypercerts.claim.contributorInformation';
9
9
  /** DID or a URI to a social profile of the contributor. */
10
10
  identifier?: string;
11
11
  /** Display name of the contributor. */
@@ -13,19 +13,11 @@ export interface Main {
13
13
  image?: $Typed<OrgHypercertsDefs.Uri> | $Typed<OrgHypercertsDefs.SmallImage> | {
14
14
  $type: string;
15
15
  };
16
- /** Role or title of the contributor. */
17
- role?: string;
18
- /** What the contribution concretely achieved. */
19
- contributionDescription?: string;
20
- /** When this contribution started. This should be a subset of the hypercert timeframe. */
21
- startDate?: string;
22
- /** When this contribution finished. This should be a subset of the hypercert timeframe. */
23
- endDate?: string;
24
16
  /** Client-declared timestamp when this record was originally created. */
25
17
  createdAt: string;
26
18
  [k: string]: unknown;
27
19
  }
28
- export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.contributor", "main">;
20
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.contributorInformation", "main">;
29
21
  export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
30
22
  export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
31
- //# sourceMappingURL=contributor.d.ts.map
23
+ //# sourceMappingURL=contributorInformation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contributorInformation.d.ts","sourceRoot":"","sources":["../../../../../generated/types/org/hypercerts/claim/contributorInformation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AAMpD,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,6CAA6C,CAAA;IACpD,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EACF,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAC7B,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0GAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
@@ -50,12 +50,12 @@
50
50
  "format": "datetime",
51
51
  "description": "When the work ended"
52
52
  },
53
- "contributions": {
53
+ "contributors": {
54
54
  "type": "array",
55
- "description": "A strong reference to the contributions done to create the impact in the hypercerts. The record referenced must conform with the lexicon org.hypercerts.claim.contributor.",
55
+ "description": "An array of contributor objects, each containing contributor information, weight, and contribution details.",
56
56
  "items": {
57
57
  "type": "ref",
58
- "ref": "com.atproto.repo.strongRef"
58
+ "ref": "#contributor"
59
59
  }
60
60
  },
61
61
  "rights": {
@@ -79,6 +79,36 @@
79
79
  }
80
80
  }
81
81
  },
82
+ "contributor": {
83
+ "type": "object",
84
+ "required": ["contributorInformation"],
85
+ "properties": {
86
+ "contributorInformation": {
87
+ "type": "union",
88
+ "refs": ["#contributorIdentity", "com.atproto.repo.strongRef"],
89
+ "description": "Contributor information as a string (DID or identifier) or strong reference to for instance org.hypercerts.claim.contributorInformation#main."
90
+ },
91
+ "weight": {
92
+ "type": "string",
93
+ "description": "The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed."
94
+ },
95
+ "contributionDetails": {
96
+ "type": "union",
97
+ "refs": ["#contributorRole", "com.atproto.repo.strongRef"],
98
+ "description": "Contribution details as a string or strong reference to org.hypercerts.claim.contributionDetails#main."
99
+ }
100
+ }
101
+ },
102
+ "contributorIdentity": {
103
+ "type": "string",
104
+ "description": "Contributor information as a string (DID or identifier)."
105
+ },
106
+ "contributorRole": {
107
+ "type": "string",
108
+ "description": "Contribution details as a string.",
109
+ "maxLength": 10000,
110
+ "maxGraphemes": 1000
111
+ },
82
112
  "activityWeight": {
83
113
  "type": "object",
84
114
  "required": ["activity", "weight"],
@@ -1,32 +1,15 @@
1
1
  {
2
2
  "lexicon": 1,
3
- "id": "org.hypercerts.claim.contributor",
3
+ "id": "org.hypercerts.claim.contributionDetails",
4
4
  "defs": {
5
5
  "main": {
6
6
  "type": "record",
7
- "description": "A contribution made toward a hypercert's impact.",
7
+ "description": "Details about a specific contribution including role, description, and timeframe.",
8
8
  "key": "tid",
9
9
  "record": {
10
10
  "type": "object",
11
11
  "required": ["createdAt"],
12
12
  "properties": {
13
- "identifier": {
14
- "type": "string",
15
- "description": "DID or a URI to a social profile of the contributor."
16
- },
17
- "displayName": {
18
- "type": "string",
19
- "description": "Display name of the contributor.",
20
- "maxLength": 100
21
- },
22
- "image": {
23
- "type": "union",
24
- "refs": [
25
- "org.hypercerts.defs#uri",
26
- "org.hypercerts.defs#smallImage"
27
- ],
28
- "description": "The contributor visual representation as a URI or image blob."
29
- },
30
13
  "role": {
31
14
  "type": "string",
32
15
  "description": "Role or title of the contributor.",
@@ -34,9 +17,9 @@
34
17
  },
35
18
  "contributionDescription": {
36
19
  "type": "string",
37
- "description": "What the contribution concretely achieved.",
38
- "maxLength": 2000,
39
- "maxGraphemes": 500
20
+ "description": "What the contribution concretely was.",
21
+ "maxLength": 10000,
22
+ "maxGraphemes": 1000
40
23
  },
41
24
  "startDate": {
42
25
  "type": "string",
@@ -0,0 +1,39 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "org.hypercerts.claim.contributorInformation",
4
+ "defs": {
5
+ "main": {
6
+ "type": "record",
7
+ "description": "Contributor information including identifier, display name, and image.",
8
+ "key": "tid",
9
+ "record": {
10
+ "type": "object",
11
+ "required": ["createdAt"],
12
+ "properties": {
13
+ "identifier": {
14
+ "type": "string",
15
+ "description": "DID or a URI to a social profile of the contributor."
16
+ },
17
+ "displayName": {
18
+ "type": "string",
19
+ "description": "Display name of the contributor.",
20
+ "maxLength": 100
21
+ },
22
+ "image": {
23
+ "type": "union",
24
+ "refs": [
25
+ "org.hypercerts.defs#uri",
26
+ "org.hypercerts.defs#smallImage"
27
+ ],
28
+ "description": "The contributor visual representation as a URI or image blob."
29
+ },
30
+ "createdAt": {
31
+ "type": "string",
32
+ "format": "datetime",
33
+ "description": "Client-declared timestamp when this record was originally created."
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypercerts-org/lexicon",
3
- "version": "0.10.0-beta.5",
3
+ "version": "0.10.0-beta.6",
4
4
  "description": "ATProto lexicon definitions and TypeScript types for the Hypercerts protocol",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "scripts": {
41
41
  "list": "find ./lexicons -name '*.json'",
42
- "check": "npm run gen-schemas-md && npm run gen-api && npm run lint && npm run typecheck && npm run build && npm run test",
42
+ "check": "npm run gen-api && npm run lint && npm run typecheck && npm run build && npm run test",
43
43
  "build": "rollup -c && npm run build:types",
44
44
  "build:types": "tsc --project tsconfig.build.json",
45
45
  "gen-api": "find ./lexicons -name '*.json' | xargs lex gen-api --yes ./generated && ./scripts/create-shims.sh && npm run gen-index",
@@ -1 +0,0 @@
1
- {"version":3,"file":"contributor.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/contributor.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AAMpD,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,kCAAkC,CAAA;IACzC,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EACF,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAC7B,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iDAAiD;IACjD,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"contributor.d.ts","sourceRoot":"","sources":["../../../../../generated/types/org/hypercerts/claim/contributor.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AAMpD,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,kCAAkC,CAAA;IACzC,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EACF,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAC7B,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iDAAiD;IACjD,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}