@hypercerts-org/lexicon 0.10.0-beta.0 → 0.10.0-beta.1
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.
- package/README.md +126 -13
- package/dist/exports.d.ts +1018 -0
- package/dist/exports.d.ts.map +1 -0
- package/dist/generated/exports.d.ts +1018 -0
- package/dist/generated/exports.d.ts.map +1 -0
- package/dist/generated/lexicons.d.ts +1805 -0
- package/dist/generated/lexicons.d.ts.map +1 -0
- package/dist/generated/types/app/certified/badge/award.d.ts +24 -0
- package/dist/generated/types/app/certified/badge/award.d.ts.map +1 -0
- package/dist/generated/types/app/certified/badge/definition.d.ts +25 -0
- package/dist/generated/types/app/certified/badge/definition.d.ts.map +1 -0
- package/dist/generated/types/app/certified/badge/response.d.ts +20 -0
- package/dist/generated/types/app/certified/badge/response.d.ts.map +1 -0
- package/dist/generated/types/app/certified/defs.d.ts +3 -0
- package/dist/generated/types/app/certified/defs.d.ts.map +1 -0
- package/dist/generated/types/app/certified/location.d.ts +29 -0
- package/dist/generated/types/app/certified/location.d.ts.map +1 -0
- package/dist/generated/types/com/atproto/repo/strongRef.d.ts +12 -0
- package/dist/generated/types/com/atproto/repo/strongRef.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts +57 -0
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/collection.d.ts +25 -0
- package/dist/generated/types/org/hypercerts/claim/collection.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/contribution.d.ts +24 -0
- package/dist/generated/types/org/hypercerts/claim/contribution.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/evaluation.d.ts +43 -0
- package/dist/generated/types/org/hypercerts/claim/evaluation.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/evidence.d.ts +29 -0
- package/dist/generated/types/org/hypercerts/claim/evidence.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/measurement.d.ts +30 -0
- package/dist/generated/types/org/hypercerts/claim/measurement.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/project.d.ts +29 -0
- package/dist/generated/types/org/hypercerts/claim/project.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/rights.d.ts +25 -0
- package/dist/generated/types/org/hypercerts/claim/rights.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/defs.d.ts +45 -0
- package/dist/generated/types/org/hypercerts/defs.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/funding/receipt.d.ts +34 -0
- package/dist/generated/types/org/hypercerts/funding/receipt.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/pages/linearDocument.d.ts +2 -0
- package/dist/generated/types/pub/leaflet/pages/linearDocument.d.ts.map +1 -0
- package/dist/generated/util.d.ts +37 -0
- package/dist/generated/util.d.ts.map +1 -0
- package/dist/index.cjs +2636 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +2560 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lexicons.cjs +1002 -0
- package/dist/lexicons.cjs.map +1 -0
- package/dist/lexicons.d.ts +1805 -0
- package/dist/lexicons.d.ts.map +1 -0
- package/dist/lexicons.mjs +996 -0
- package/dist/lexicons.mjs.map +1 -0
- package/dist/types/app/certified/badge/award.d.ts +24 -0
- package/dist/types/app/certified/badge/award.d.ts.map +1 -0
- package/dist/types/app/certified/badge/definition.d.ts +25 -0
- package/dist/types/app/certified/badge/definition.d.ts.map +1 -0
- package/dist/types/app/certified/badge/response.d.ts +20 -0
- package/dist/types/app/certified/badge/response.d.ts.map +1 -0
- package/dist/types/app/certified/defs.d.ts +3 -0
- package/dist/types/app/certified/defs.d.ts.map +1 -0
- package/dist/types/app/certified/location.d.ts +29 -0
- package/dist/types/app/certified/location.d.ts.map +1 -0
- package/dist/types/com/atproto/repo/strongRef.d.ts +12 -0
- package/dist/types/com/atproto/repo/strongRef.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/activity.d.ts +57 -0
- package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/collection.d.ts +25 -0
- package/dist/types/org/hypercerts/claim/collection.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/contribution.d.ts +24 -0
- package/dist/types/org/hypercerts/claim/contribution.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/evaluation.d.ts +43 -0
- package/dist/types/org/hypercerts/claim/evaluation.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/evidence.d.ts +29 -0
- package/dist/types/org/hypercerts/claim/evidence.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/measurement.d.ts +30 -0
- package/dist/types/org/hypercerts/claim/measurement.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/project.d.ts +29 -0
- package/dist/types/org/hypercerts/claim/project.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/rights.d.ts +25 -0
- package/dist/types/org/hypercerts/claim/rights.d.ts.map +1 -0
- package/dist/types/org/hypercerts/defs.d.ts +45 -0
- package/dist/types/org/hypercerts/defs.d.ts.map +1 -0
- package/dist/types/org/hypercerts/funding/receipt.d.ts +34 -0
- package/dist/types/org/hypercerts/funding/receipt.d.ts.map +1 -0
- package/dist/types/pub/leaflet/pages/linearDocument.d.ts +2 -0
- package/dist/types/pub/leaflet/pages/linearDocument.d.ts.map +1 -0
- package/dist/util.d.ts +37 -0
- package/dist/util.d.ts.map +1 -0
- package/package.json +48 -21
- package/README.md.orig +0 -267
- package/types/index.ts +0 -1257
- package/types/lexicons.ts +0 -1071
- package/types/types/app/certified/badge/award.ts +0 -48
- package/types/types/app/certified/badge/definition.ts +0 -49
- package/types/types/app/certified/badge/response.ts +0 -44
- package/types/types/app/certified/defs.ts +0 -14
- package/types/types/app/certified/location.ts +0 -49
- package/types/types/com/atproto/repo/strongRef.ts +0 -31
- package/types/types/org/hypercerts/claim/activity.ts +0 -99
- package/types/types/org/hypercerts/claim/collection.ts +0 -49
- package/types/types/org/hypercerts/claim/contribution.ts +0 -48
- package/types/types/org/hypercerts/claim/evaluation.ts +0 -77
- package/types/types/org/hypercerts/claim/evidence.ts +0 -53
- package/types/types/org/hypercerts/claim/measurement.ts +0 -54
- package/types/types/org/hypercerts/claim/project.ts +0 -53
- package/types/types/org/hypercerts/claim/rights.ts +0 -49
- package/types/types/org/hypercerts/defs.ts +0 -96
- package/types/types/org/hypercerts/funding/receipt.ts +0 -58
- package/types/util.ts +0 -82
|
@@ -0,0 +1,1002 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var lexicon = require('@atproto/lexicon');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
7
|
+
*/
|
|
8
|
+
function isObject(v) {
|
|
9
|
+
return v != null && typeof v === 'object';
|
|
10
|
+
}
|
|
11
|
+
function is$type($type, id, hash) {
|
|
12
|
+
return hash === 'main'
|
|
13
|
+
? $type === id
|
|
14
|
+
: // $type === `${id}#${hash}`
|
|
15
|
+
typeof $type === 'string' &&
|
|
16
|
+
$type.length === id.length + 1 + hash.length &&
|
|
17
|
+
$type.charCodeAt(id.length) === 35 /* '#' */ &&
|
|
18
|
+
$type.startsWith(id) &&
|
|
19
|
+
$type.endsWith(hash);
|
|
20
|
+
}
|
|
21
|
+
function is$typed(v, id, hash) {
|
|
22
|
+
return isObject(v) && '$type' in v && is$type(v.$type, id, hash);
|
|
23
|
+
}
|
|
24
|
+
function maybe$typed(v, id, hash) {
|
|
25
|
+
return (isObject(v) &&
|
|
26
|
+
('$type' in v ? v.$type === undefined || is$type(v.$type, id, hash) : true));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
31
|
+
*/
|
|
32
|
+
const schemaDict = {
|
|
33
|
+
AppCertifiedBadgeAward: {
|
|
34
|
+
lexicon: 1,
|
|
35
|
+
id: 'app.certified.badge.award',
|
|
36
|
+
defs: {
|
|
37
|
+
main: {
|
|
38
|
+
type: 'record',
|
|
39
|
+
description: 'Records a badge award to a user, project, or activity claim.',
|
|
40
|
+
key: 'tid',
|
|
41
|
+
record: {
|
|
42
|
+
type: 'object',
|
|
43
|
+
required: ['badge', 'subject', 'createdAt'],
|
|
44
|
+
properties: {
|
|
45
|
+
badge: {
|
|
46
|
+
type: 'ref',
|
|
47
|
+
ref: 'lex:app.certified.badge.definition',
|
|
48
|
+
description: 'Reference to the badge definition for this award.',
|
|
49
|
+
},
|
|
50
|
+
subject: {
|
|
51
|
+
type: 'union',
|
|
52
|
+
description: '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.',
|
|
53
|
+
refs: [
|
|
54
|
+
'lex:app.certified.defs#did',
|
|
55
|
+
'lex:com.atproto.repo.strongRef',
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
note: {
|
|
59
|
+
type: 'string',
|
|
60
|
+
description: 'Optional statement explaining the reason for this badge award.',
|
|
61
|
+
},
|
|
62
|
+
createdAt: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
format: 'datetime',
|
|
65
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
AppCertifiedBadgeDefinition: {
|
|
73
|
+
lexicon: 1,
|
|
74
|
+
id: 'app.certified.badge.definition',
|
|
75
|
+
defs: {
|
|
76
|
+
main: {
|
|
77
|
+
type: 'record',
|
|
78
|
+
description: 'Defines a badge that can be awarded via badge award records to users, projects, or activity claims.',
|
|
79
|
+
key: 'tid',
|
|
80
|
+
record: {
|
|
81
|
+
type: 'object',
|
|
82
|
+
required: ['title', 'badgeType', 'icon', 'createdAt'],
|
|
83
|
+
properties: {
|
|
84
|
+
badgeType: {
|
|
85
|
+
type: 'string',
|
|
86
|
+
description: 'Category of the badge (e.g. endorsement, participation, affiliation).',
|
|
87
|
+
},
|
|
88
|
+
title: {
|
|
89
|
+
type: 'string',
|
|
90
|
+
description: 'Human-readable title of the badge.',
|
|
91
|
+
},
|
|
92
|
+
icon: {
|
|
93
|
+
type: 'blob',
|
|
94
|
+
description: 'Icon representing the badge, stored as a blob for compact visual display.',
|
|
95
|
+
accept: [
|
|
96
|
+
'image/png',
|
|
97
|
+
'image/jpeg',
|
|
98
|
+
'image/webp',
|
|
99
|
+
'image/svg+xml',
|
|
100
|
+
],
|
|
101
|
+
maxSize: 1048576,
|
|
102
|
+
},
|
|
103
|
+
description: {
|
|
104
|
+
type: 'string',
|
|
105
|
+
description: 'Optional short statement describing what the badge represents.',
|
|
106
|
+
},
|
|
107
|
+
allowedIssuers: {
|
|
108
|
+
type: 'array',
|
|
109
|
+
description: 'Optional allowlist of DIDs allowed to issue this badge. If omitted, anyone may issue it.',
|
|
110
|
+
items: {
|
|
111
|
+
type: 'ref',
|
|
112
|
+
ref: 'lex:app.certified.defs#did',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
createdAt: {
|
|
116
|
+
type: 'string',
|
|
117
|
+
format: 'datetime',
|
|
118
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
AppCertifiedBadgeResponse: {
|
|
126
|
+
lexicon: 1,
|
|
127
|
+
id: 'app.certified.badge.response',
|
|
128
|
+
defs: {
|
|
129
|
+
main: {
|
|
130
|
+
type: 'record',
|
|
131
|
+
description: 'Recipient response to a badge award.',
|
|
132
|
+
key: 'tid',
|
|
133
|
+
record: {
|
|
134
|
+
type: 'object',
|
|
135
|
+
required: ['badgeAward', 'response', 'createdAt'],
|
|
136
|
+
properties: {
|
|
137
|
+
badgeAward: {
|
|
138
|
+
type: 'ref',
|
|
139
|
+
ref: 'lex:app.certified.badge.award',
|
|
140
|
+
description: 'Reference to the badge award.',
|
|
141
|
+
},
|
|
142
|
+
response: {
|
|
143
|
+
type: 'string',
|
|
144
|
+
enum: ['accepted', 'rejected'],
|
|
145
|
+
description: 'The recipient’s response for the badge (accepted or rejected).',
|
|
146
|
+
},
|
|
147
|
+
weight: {
|
|
148
|
+
type: 'string',
|
|
149
|
+
description: 'Optional relative weight for accepted badges, assigned by the recipient.',
|
|
150
|
+
},
|
|
151
|
+
createdAt: {
|
|
152
|
+
type: 'string',
|
|
153
|
+
format: 'datetime',
|
|
154
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
AppCertifiedDefs: {
|
|
162
|
+
lexicon: 1,
|
|
163
|
+
id: 'app.certified.defs',
|
|
164
|
+
description: 'Common type definitions used across certified protocols.',
|
|
165
|
+
defs: {
|
|
166
|
+
did: {
|
|
167
|
+
type: 'string',
|
|
168
|
+
format: 'did',
|
|
169
|
+
description: 'A Decentralized Identifier (DID) string.',
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
AppCertifiedLocation: {
|
|
174
|
+
lexicon: 1,
|
|
175
|
+
id: 'app.certified.location',
|
|
176
|
+
defs: {
|
|
177
|
+
main: {
|
|
178
|
+
type: 'record',
|
|
179
|
+
description: 'A location reference',
|
|
180
|
+
key: 'tid',
|
|
181
|
+
record: {
|
|
182
|
+
type: 'object',
|
|
183
|
+
required: [
|
|
184
|
+
'lpVersion',
|
|
185
|
+
'srs',
|
|
186
|
+
'locationType',
|
|
187
|
+
'location',
|
|
188
|
+
'createdAt',
|
|
189
|
+
],
|
|
190
|
+
properties: {
|
|
191
|
+
lpVersion: {
|
|
192
|
+
type: 'string',
|
|
193
|
+
description: 'The version of the Location Protocol',
|
|
194
|
+
maxLength: 10,
|
|
195
|
+
},
|
|
196
|
+
srs: {
|
|
197
|
+
type: 'string',
|
|
198
|
+
format: 'uri',
|
|
199
|
+
description: 'The Spatial Reference System URI (e.g., http://www.opengis.net/def/crs/OGC/1.3/CRS84) that defines the coordinate system.',
|
|
200
|
+
maxLength: 100,
|
|
201
|
+
},
|
|
202
|
+
locationType: {
|
|
203
|
+
type: 'string',
|
|
204
|
+
description: 'An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point)',
|
|
205
|
+
knownValues: ['coordinate-decimal', 'geojson-point'],
|
|
206
|
+
maxLength: 20,
|
|
207
|
+
},
|
|
208
|
+
location: {
|
|
209
|
+
type: 'union',
|
|
210
|
+
refs: [
|
|
211
|
+
'lex:org.hypercerts.defs#uri',
|
|
212
|
+
'lex:org.hypercerts.defs#smallBlob',
|
|
213
|
+
],
|
|
214
|
+
description: 'The location of where the work was performed as a URI or blob.',
|
|
215
|
+
},
|
|
216
|
+
name: {
|
|
217
|
+
type: 'string',
|
|
218
|
+
description: 'Optional name for this location',
|
|
219
|
+
maxLength: 1000,
|
|
220
|
+
maxGraphemes: 100,
|
|
221
|
+
},
|
|
222
|
+
description: {
|
|
223
|
+
type: 'string',
|
|
224
|
+
description: 'Optional description for this location',
|
|
225
|
+
maxLength: 2000,
|
|
226
|
+
maxGraphemes: 500,
|
|
227
|
+
},
|
|
228
|
+
createdAt: {
|
|
229
|
+
type: 'string',
|
|
230
|
+
format: 'datetime',
|
|
231
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
ComAtprotoRepoStrongRef: {
|
|
239
|
+
lexicon: 1,
|
|
240
|
+
id: 'com.atproto.repo.strongRef',
|
|
241
|
+
description: 'A URI with a content-hash fingerprint.',
|
|
242
|
+
defs: {
|
|
243
|
+
main: {
|
|
244
|
+
type: 'object',
|
|
245
|
+
required: ['uri', 'cid'],
|
|
246
|
+
properties: {
|
|
247
|
+
uri: {
|
|
248
|
+
type: 'string',
|
|
249
|
+
format: 'at-uri',
|
|
250
|
+
},
|
|
251
|
+
cid: {
|
|
252
|
+
type: 'string',
|
|
253
|
+
format: 'cid',
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
OrgHypercertsClaimActivity: {
|
|
260
|
+
lexicon: 1,
|
|
261
|
+
id: 'org.hypercerts.claim.activity',
|
|
262
|
+
defs: {
|
|
263
|
+
main: {
|
|
264
|
+
type: 'record',
|
|
265
|
+
description: 'A hypercert record tracking impact work.',
|
|
266
|
+
key: 'any',
|
|
267
|
+
record: {
|
|
268
|
+
type: 'object',
|
|
269
|
+
required: [
|
|
270
|
+
'title',
|
|
271
|
+
'shortDescription',
|
|
272
|
+
'createdAt',
|
|
273
|
+
'startDate',
|
|
274
|
+
'endDate',
|
|
275
|
+
],
|
|
276
|
+
properties: {
|
|
277
|
+
title: {
|
|
278
|
+
type: 'string',
|
|
279
|
+
description: 'Title of the hypercert.',
|
|
280
|
+
maxLength: 256,
|
|
281
|
+
},
|
|
282
|
+
shortDescription: {
|
|
283
|
+
type: 'string',
|
|
284
|
+
description: 'Short blurb of the impact work done.',
|
|
285
|
+
maxLength: 3000,
|
|
286
|
+
maxGraphemes: 300,
|
|
287
|
+
},
|
|
288
|
+
description: {
|
|
289
|
+
type: 'string',
|
|
290
|
+
description: 'Optional longer description of the impact work done.',
|
|
291
|
+
maxLength: 30000,
|
|
292
|
+
maxGraphemes: 3000,
|
|
293
|
+
},
|
|
294
|
+
image: {
|
|
295
|
+
type: 'union',
|
|
296
|
+
refs: [
|
|
297
|
+
'lex:org.hypercerts.defs#uri',
|
|
298
|
+
'lex:org.hypercerts.defs#smallImage',
|
|
299
|
+
],
|
|
300
|
+
description: 'The hypercert visual representation as a URI or image blob.',
|
|
301
|
+
},
|
|
302
|
+
workScope: {
|
|
303
|
+
type: 'ref',
|
|
304
|
+
ref: 'lex:org.hypercerts.claim.activity#workScope',
|
|
305
|
+
},
|
|
306
|
+
startDate: {
|
|
307
|
+
type: 'string',
|
|
308
|
+
format: 'datetime',
|
|
309
|
+
description: 'When the work began',
|
|
310
|
+
},
|
|
311
|
+
endDate: {
|
|
312
|
+
type: 'string',
|
|
313
|
+
format: 'datetime',
|
|
314
|
+
description: 'When the work ended',
|
|
315
|
+
},
|
|
316
|
+
contributions: {
|
|
317
|
+
type: 'array',
|
|
318
|
+
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.contribution.',
|
|
319
|
+
items: {
|
|
320
|
+
type: 'ref',
|
|
321
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
322
|
+
},
|
|
323
|
+
},
|
|
324
|
+
rights: {
|
|
325
|
+
type: 'ref',
|
|
326
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
327
|
+
description: 'A strong reference to the rights that this hypercert has. The record referenced must conform with the lexicon org.hypercerts.claim.rights.',
|
|
328
|
+
},
|
|
329
|
+
location: {
|
|
330
|
+
type: 'ref',
|
|
331
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
332
|
+
description: 'A strong reference to the location where the activity was performed. The record referenced must conform with the lexicon app.certified.location.',
|
|
333
|
+
},
|
|
334
|
+
project: {
|
|
335
|
+
type: 'string',
|
|
336
|
+
format: 'at-uri',
|
|
337
|
+
description: 'A reference (AT-URI) to the project record that this activity is part of. The record referenced must conform with the lexicon org.hypercerts.claim.project. This activity must also be referenced by the project, establishing a bidirectional link.',
|
|
338
|
+
},
|
|
339
|
+
createdAt: {
|
|
340
|
+
type: 'string',
|
|
341
|
+
format: 'datetime',
|
|
342
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
},
|
|
347
|
+
workScope: {
|
|
348
|
+
type: 'object',
|
|
349
|
+
description: 'Logical scope of the work using label-based conditions. All labels in `withinAllOf` must apply; at least one label in `withinAnyOf` must apply if provided; no label in `withinNoneOf` may apply.',
|
|
350
|
+
properties: {
|
|
351
|
+
withinAllOf: {
|
|
352
|
+
type: 'array',
|
|
353
|
+
description: 'Labels that MUST all hold for the scope to apply.',
|
|
354
|
+
items: {
|
|
355
|
+
type: 'string',
|
|
356
|
+
},
|
|
357
|
+
maxLength: 100,
|
|
358
|
+
},
|
|
359
|
+
withinAnyOf: {
|
|
360
|
+
type: 'array',
|
|
361
|
+
description: 'Labels of which AT LEAST ONE must hold (optional). If omitted or empty, imposes no additional condition.',
|
|
362
|
+
items: {
|
|
363
|
+
type: 'string',
|
|
364
|
+
},
|
|
365
|
+
maxLength: 100,
|
|
366
|
+
},
|
|
367
|
+
withinNoneOf: {
|
|
368
|
+
type: 'array',
|
|
369
|
+
description: 'Labels that MUST NOT hold for the scope to apply.',
|
|
370
|
+
items: {
|
|
371
|
+
type: 'string',
|
|
372
|
+
},
|
|
373
|
+
maxLength: 100,
|
|
374
|
+
},
|
|
375
|
+
},
|
|
376
|
+
},
|
|
377
|
+
activityWeight: {
|
|
378
|
+
type: 'object',
|
|
379
|
+
required: ['activity', 'weight'],
|
|
380
|
+
properties: {
|
|
381
|
+
activity: {
|
|
382
|
+
type: 'ref',
|
|
383
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
384
|
+
description: 'A strong reference to a hypercert activity record. This activity must conform to the lexicon org.hypercerts.claim.activity',
|
|
385
|
+
},
|
|
386
|
+
weight: {
|
|
387
|
+
type: 'string',
|
|
388
|
+
description: '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.',
|
|
389
|
+
},
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
OrgHypercertsClaimCollection: {
|
|
395
|
+
lexicon: 1,
|
|
396
|
+
id: 'org.hypercerts.claim.collection',
|
|
397
|
+
defs: {
|
|
398
|
+
main: {
|
|
399
|
+
type: 'record',
|
|
400
|
+
description: 'A collection/group of hypercerts that have a specific property.',
|
|
401
|
+
key: 'tid',
|
|
402
|
+
record: {
|
|
403
|
+
type: 'object',
|
|
404
|
+
required: ['title', 'activities', 'createdAt'],
|
|
405
|
+
properties: {
|
|
406
|
+
title: {
|
|
407
|
+
type: 'string',
|
|
408
|
+
description: 'The title of this collection',
|
|
409
|
+
maxLength: 800,
|
|
410
|
+
maxGraphemes: 80,
|
|
411
|
+
},
|
|
412
|
+
shortDescription: {
|
|
413
|
+
type: 'string',
|
|
414
|
+
maxLength: 3000,
|
|
415
|
+
maxGraphemes: 300,
|
|
416
|
+
description: 'A short description of this collection',
|
|
417
|
+
},
|
|
418
|
+
avatar: {
|
|
419
|
+
type: 'blob',
|
|
420
|
+
description: 'Primary avatar image representing this collection across apps and views; typically a square image.',
|
|
421
|
+
accept: ['image/png', 'image/jpeg'],
|
|
422
|
+
maxSize: 1000000,
|
|
423
|
+
},
|
|
424
|
+
coverPhoto: {
|
|
425
|
+
type: 'blob',
|
|
426
|
+
description: 'The cover photo of this collection.',
|
|
427
|
+
accept: ['image/png', 'image/jpeg'],
|
|
428
|
+
maxSize: 1000000,
|
|
429
|
+
},
|
|
430
|
+
activities: {
|
|
431
|
+
type: 'array',
|
|
432
|
+
description: 'Array of activities with their associated weights in this collection',
|
|
433
|
+
items: {
|
|
434
|
+
type: 'ref',
|
|
435
|
+
ref: 'lex:org.hypercerts.claim.activity#activityWeight',
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
createdAt: {
|
|
439
|
+
type: 'string',
|
|
440
|
+
format: 'datetime',
|
|
441
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
442
|
+
},
|
|
443
|
+
},
|
|
444
|
+
},
|
|
445
|
+
},
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
OrgHypercertsClaimContribution: {
|
|
449
|
+
lexicon: 1,
|
|
450
|
+
id: 'org.hypercerts.claim.contribution',
|
|
451
|
+
defs: {
|
|
452
|
+
main: {
|
|
453
|
+
type: 'record',
|
|
454
|
+
description: "A contribution made toward a hypercert's impact.",
|
|
455
|
+
key: 'tid',
|
|
456
|
+
record: {
|
|
457
|
+
type: 'object',
|
|
458
|
+
required: ['contributors', 'createdAt'],
|
|
459
|
+
properties: {
|
|
460
|
+
role: {
|
|
461
|
+
type: 'string',
|
|
462
|
+
description: 'Role or title of the contributor(s).',
|
|
463
|
+
maxLength: 100,
|
|
464
|
+
},
|
|
465
|
+
contributors: {
|
|
466
|
+
type: 'array',
|
|
467
|
+
description: 'List of the contributors (names, pseudonyms, or DIDs). If multiple contributors are stored in the same hypercertContribution, then they would have the exact same role.',
|
|
468
|
+
items: {
|
|
469
|
+
type: 'string',
|
|
470
|
+
},
|
|
471
|
+
},
|
|
472
|
+
description: {
|
|
473
|
+
type: 'string',
|
|
474
|
+
description: 'What the contribution concretely achieved',
|
|
475
|
+
maxLength: 2000,
|
|
476
|
+
maxGraphemes: 500,
|
|
477
|
+
},
|
|
478
|
+
startDate: {
|
|
479
|
+
type: 'string',
|
|
480
|
+
format: 'datetime',
|
|
481
|
+
description: 'When this contribution started. This should be a subset of the hypercert timeframe.',
|
|
482
|
+
},
|
|
483
|
+
endDate: {
|
|
484
|
+
type: 'string',
|
|
485
|
+
format: 'datetime',
|
|
486
|
+
description: 'When this contribution finished. This should be a subset of the hypercert timeframe.',
|
|
487
|
+
},
|
|
488
|
+
createdAt: {
|
|
489
|
+
type: 'string',
|
|
490
|
+
format: 'datetime',
|
|
491
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
492
|
+
},
|
|
493
|
+
},
|
|
494
|
+
},
|
|
495
|
+
},
|
|
496
|
+
},
|
|
497
|
+
},
|
|
498
|
+
OrgHypercertsClaimEvaluation: {
|
|
499
|
+
lexicon: 1,
|
|
500
|
+
id: 'org.hypercerts.claim.evaluation',
|
|
501
|
+
defs: {
|
|
502
|
+
score: {
|
|
503
|
+
type: 'object',
|
|
504
|
+
description: 'Overall score for an evaluation on a numeric scale.',
|
|
505
|
+
required: ['min', 'max', 'value'],
|
|
506
|
+
properties: {
|
|
507
|
+
min: {
|
|
508
|
+
type: 'integer',
|
|
509
|
+
description: 'Minimum value of the scale, e.g. 0 or 1.',
|
|
510
|
+
},
|
|
511
|
+
max: {
|
|
512
|
+
type: 'integer',
|
|
513
|
+
description: 'Maximum value of the scale, e.g. 5 or 10.',
|
|
514
|
+
},
|
|
515
|
+
value: {
|
|
516
|
+
type: 'integer',
|
|
517
|
+
description: 'Score within the inclusive range [min, max].',
|
|
518
|
+
},
|
|
519
|
+
},
|
|
520
|
+
},
|
|
521
|
+
main: {
|
|
522
|
+
type: 'record',
|
|
523
|
+
description: 'An evaluation of a hypercert record (e.g. an activity and its impact).',
|
|
524
|
+
key: 'tid',
|
|
525
|
+
record: {
|
|
526
|
+
type: 'object',
|
|
527
|
+
required: ['evaluators', 'summary', 'createdAt'],
|
|
528
|
+
properties: {
|
|
529
|
+
subject: {
|
|
530
|
+
type: 'ref',
|
|
531
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
532
|
+
description: 'A strong reference to what is being evaluated. (e.g activity, measurement, contribution, etc.)',
|
|
533
|
+
},
|
|
534
|
+
evaluators: {
|
|
535
|
+
type: 'array',
|
|
536
|
+
description: 'DIDs of the evaluators',
|
|
537
|
+
items: {
|
|
538
|
+
type: 'ref',
|
|
539
|
+
ref: 'lex:app.certified.defs#did',
|
|
540
|
+
},
|
|
541
|
+
maxLength: 1000,
|
|
542
|
+
},
|
|
543
|
+
content: {
|
|
544
|
+
type: 'array',
|
|
545
|
+
description: 'Evaluation data (URIs or blobs) containing detailed reports or methodology',
|
|
546
|
+
items: {
|
|
547
|
+
type: 'union',
|
|
548
|
+
refs: [
|
|
549
|
+
'lex:org.hypercerts.defs#uri',
|
|
550
|
+
'lex:org.hypercerts.defs#smallBlob',
|
|
551
|
+
],
|
|
552
|
+
},
|
|
553
|
+
maxLength: 100,
|
|
554
|
+
},
|
|
555
|
+
measurements: {
|
|
556
|
+
type: 'array',
|
|
557
|
+
description: 'Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement ',
|
|
558
|
+
items: {
|
|
559
|
+
type: 'ref',
|
|
560
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
561
|
+
},
|
|
562
|
+
maxLength: 100,
|
|
563
|
+
},
|
|
564
|
+
summary: {
|
|
565
|
+
type: 'string',
|
|
566
|
+
description: 'Brief evaluation summary',
|
|
567
|
+
maxLength: 5000,
|
|
568
|
+
maxGraphemes: 1000,
|
|
569
|
+
},
|
|
570
|
+
score: {
|
|
571
|
+
type: 'ref',
|
|
572
|
+
ref: 'lex:org.hypercerts.claim.evaluation#score',
|
|
573
|
+
description: 'Optional overall score for this evaluation on a numeric scale.',
|
|
574
|
+
},
|
|
575
|
+
location: {
|
|
576
|
+
type: 'ref',
|
|
577
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
578
|
+
description: 'An optional reference for georeferenced evaluations. The record referenced must conform with the lexicon app.certified.location.',
|
|
579
|
+
},
|
|
580
|
+
createdAt: {
|
|
581
|
+
type: 'string',
|
|
582
|
+
format: 'datetime',
|
|
583
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
584
|
+
},
|
|
585
|
+
},
|
|
586
|
+
},
|
|
587
|
+
},
|
|
588
|
+
},
|
|
589
|
+
},
|
|
590
|
+
OrgHypercertsClaimEvidence: {
|
|
591
|
+
lexicon: 1,
|
|
592
|
+
id: 'org.hypercerts.claim.evidence',
|
|
593
|
+
defs: {
|
|
594
|
+
main: {
|
|
595
|
+
type: 'record',
|
|
596
|
+
description: '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.',
|
|
597
|
+
key: 'tid',
|
|
598
|
+
record: {
|
|
599
|
+
type: 'object',
|
|
600
|
+
required: ['content', 'title', 'createdAt'],
|
|
601
|
+
properties: {
|
|
602
|
+
subject: {
|
|
603
|
+
type: 'ref',
|
|
604
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
605
|
+
description: 'A strong reference to the record this evidence relates to (e.g. an activity, project, claim, or evaluation).',
|
|
606
|
+
},
|
|
607
|
+
content: {
|
|
608
|
+
type: 'union',
|
|
609
|
+
refs: [
|
|
610
|
+
'lex:org.hypercerts.defs#uri',
|
|
611
|
+
'lex:org.hypercerts.defs#smallBlob',
|
|
612
|
+
],
|
|
613
|
+
description: 'A piece of evidence (URI or blob) related to the subject record; it may support, clarify, or challenge a hypercert claim.',
|
|
614
|
+
},
|
|
615
|
+
title: {
|
|
616
|
+
type: 'string',
|
|
617
|
+
maxLength: 256,
|
|
618
|
+
description: 'Title to describe the nature of the evidence.',
|
|
619
|
+
},
|
|
620
|
+
shortDescription: {
|
|
621
|
+
type: 'string',
|
|
622
|
+
maxLength: 3000,
|
|
623
|
+
maxGraphemes: 300,
|
|
624
|
+
description: 'Short description explaining what this evidence shows.',
|
|
625
|
+
},
|
|
626
|
+
description: {
|
|
627
|
+
type: 'string',
|
|
628
|
+
description: 'Longer description describing the evidence in more detail.',
|
|
629
|
+
maxLength: 30000,
|
|
630
|
+
maxGraphemes: 3000,
|
|
631
|
+
},
|
|
632
|
+
relationType: {
|
|
633
|
+
type: 'string',
|
|
634
|
+
description: 'How this evidence relates to the subject.',
|
|
635
|
+
knownValues: ['supports', 'challenges', 'clarifies'],
|
|
636
|
+
},
|
|
637
|
+
createdAt: {
|
|
638
|
+
type: 'string',
|
|
639
|
+
format: 'datetime',
|
|
640
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
641
|
+
},
|
|
642
|
+
},
|
|
643
|
+
},
|
|
644
|
+
},
|
|
645
|
+
},
|
|
646
|
+
},
|
|
647
|
+
OrgHypercertsClaimMeasurement: {
|
|
648
|
+
lexicon: 1,
|
|
649
|
+
id: 'org.hypercerts.claim.measurement',
|
|
650
|
+
defs: {
|
|
651
|
+
main: {
|
|
652
|
+
type: 'record',
|
|
653
|
+
description: 'Measurement data related to a hypercert record (e.g. an activity and its impact).',
|
|
654
|
+
key: 'tid',
|
|
655
|
+
record: {
|
|
656
|
+
type: 'object',
|
|
657
|
+
required: ['measurers', 'metric', 'value', 'createdAt'],
|
|
658
|
+
properties: {
|
|
659
|
+
subject: {
|
|
660
|
+
type: 'ref',
|
|
661
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
662
|
+
description: 'A strong reference to the record this measurement refers to (e.g. an activity, project, or claim).',
|
|
663
|
+
},
|
|
664
|
+
measurers: {
|
|
665
|
+
type: 'array',
|
|
666
|
+
description: 'DIDs of the entity (or entities) that measured this data',
|
|
667
|
+
items: {
|
|
668
|
+
type: 'ref',
|
|
669
|
+
ref: 'lex:app.certified.defs#did',
|
|
670
|
+
},
|
|
671
|
+
maxLength: 100,
|
|
672
|
+
},
|
|
673
|
+
metric: {
|
|
674
|
+
type: 'string',
|
|
675
|
+
description: 'The metric being measured',
|
|
676
|
+
maxLength: 500,
|
|
677
|
+
},
|
|
678
|
+
value: {
|
|
679
|
+
type: 'string',
|
|
680
|
+
description: 'The measured value',
|
|
681
|
+
maxLength: 500,
|
|
682
|
+
},
|
|
683
|
+
methodType: {
|
|
684
|
+
type: 'string',
|
|
685
|
+
description: 'Short identifier for the measurement methodology',
|
|
686
|
+
maxLength: 30,
|
|
687
|
+
},
|
|
688
|
+
methodURI: {
|
|
689
|
+
type: 'string',
|
|
690
|
+
format: 'uri',
|
|
691
|
+
description: 'URI to methodology documentation, standard protocol, or measurement procedure',
|
|
692
|
+
},
|
|
693
|
+
evidenceURI: {
|
|
694
|
+
type: 'array',
|
|
695
|
+
description: 'URIs to related evidence or underlying data (e.g. org.hypercerts.claim.evidence records or raw datasets)',
|
|
696
|
+
items: {
|
|
697
|
+
type: 'string',
|
|
698
|
+
format: 'uri',
|
|
699
|
+
},
|
|
700
|
+
maxLength: 50,
|
|
701
|
+
},
|
|
702
|
+
location: {
|
|
703
|
+
type: 'ref',
|
|
704
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
705
|
+
description: 'A strong reference to the location where the measurement was taken. The record referenced must conform with the lexicon app.certified.location',
|
|
706
|
+
},
|
|
707
|
+
createdAt: {
|
|
708
|
+
type: 'string',
|
|
709
|
+
format: 'datetime',
|
|
710
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
711
|
+
},
|
|
712
|
+
},
|
|
713
|
+
},
|
|
714
|
+
},
|
|
715
|
+
},
|
|
716
|
+
},
|
|
717
|
+
OrgHypercertsClaimProject: {
|
|
718
|
+
lexicon: 1,
|
|
719
|
+
id: 'org.hypercerts.claim.project',
|
|
720
|
+
defs: {
|
|
721
|
+
main: {
|
|
722
|
+
type: 'record',
|
|
723
|
+
description: 'A project that can include multiple activities, each of which may be linked to at most one project.',
|
|
724
|
+
key: 'tid',
|
|
725
|
+
record: {
|
|
726
|
+
type: 'object',
|
|
727
|
+
required: ['title', 'shortDescription', 'createdAt'],
|
|
728
|
+
properties: {
|
|
729
|
+
title: {
|
|
730
|
+
type: 'string',
|
|
731
|
+
description: 'Title of this project',
|
|
732
|
+
maxLength: 800,
|
|
733
|
+
maxGraphemes: 80,
|
|
734
|
+
},
|
|
735
|
+
shortDescription: {
|
|
736
|
+
type: 'string',
|
|
737
|
+
maxLength: 3000,
|
|
738
|
+
maxGraphemes: 300,
|
|
739
|
+
description: 'Short summary of this project, suitable for previews and list views.',
|
|
740
|
+
},
|
|
741
|
+
description: {
|
|
742
|
+
type: 'ref',
|
|
743
|
+
ref: 'lex:pub.leaflet.pages.linearDocument#main',
|
|
744
|
+
description: 'Rich-text description of this project, represented as a Leaflet linear document.',
|
|
745
|
+
},
|
|
746
|
+
avatar: {
|
|
747
|
+
type: 'blob',
|
|
748
|
+
description: 'Primary avatar image representing this project across apps and views; typically a square logo or project identity image.',
|
|
749
|
+
accept: ['image/png', 'image/jpeg'],
|
|
750
|
+
maxSize: 1000000,
|
|
751
|
+
},
|
|
752
|
+
coverPhoto: {
|
|
753
|
+
type: 'blob',
|
|
754
|
+
description: 'The cover photo of this project.',
|
|
755
|
+
accept: ['image/png', 'image/jpeg'],
|
|
756
|
+
maxSize: 1000000,
|
|
757
|
+
},
|
|
758
|
+
activities: {
|
|
759
|
+
type: 'array',
|
|
760
|
+
description: 'Array of activities with their associated weights in this project',
|
|
761
|
+
items: {
|
|
762
|
+
type: 'ref',
|
|
763
|
+
ref: 'lex:org.hypercerts.claim.activity#activityWeight',
|
|
764
|
+
},
|
|
765
|
+
},
|
|
766
|
+
location: {
|
|
767
|
+
type: 'ref',
|
|
768
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
769
|
+
description: 'A strong reference to a location record describing where the work for this project took place. The referenced record must conform to the app.certified.location lexicon.',
|
|
770
|
+
},
|
|
771
|
+
createdAt: {
|
|
772
|
+
type: 'string',
|
|
773
|
+
format: 'datetime',
|
|
774
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
775
|
+
},
|
|
776
|
+
},
|
|
777
|
+
},
|
|
778
|
+
},
|
|
779
|
+
},
|
|
780
|
+
},
|
|
781
|
+
OrgHypercertsClaimRights: {
|
|
782
|
+
lexicon: 1,
|
|
783
|
+
id: 'org.hypercerts.claim.rights',
|
|
784
|
+
defs: {
|
|
785
|
+
main: {
|
|
786
|
+
type: 'record',
|
|
787
|
+
description: 'Describes the rights that a contributor and/or an owner has, such as whether the hypercert can be sold, transferred, and under what conditions.',
|
|
788
|
+
key: 'tid',
|
|
789
|
+
record: {
|
|
790
|
+
type: 'object',
|
|
791
|
+
required: [
|
|
792
|
+
'rightsName',
|
|
793
|
+
'rightsType',
|
|
794
|
+
'rightsDescription',
|
|
795
|
+
'createdAt',
|
|
796
|
+
],
|
|
797
|
+
properties: {
|
|
798
|
+
rightsName: {
|
|
799
|
+
type: 'string',
|
|
800
|
+
description: 'Full name of the rights',
|
|
801
|
+
maxLength: 100,
|
|
802
|
+
},
|
|
803
|
+
rightsType: {
|
|
804
|
+
type: 'string',
|
|
805
|
+
description: 'Short rights identifier for easier search',
|
|
806
|
+
maxLength: 10,
|
|
807
|
+
},
|
|
808
|
+
rightsDescription: {
|
|
809
|
+
type: 'string',
|
|
810
|
+
description: 'Description of the rights of this hypercert',
|
|
811
|
+
},
|
|
812
|
+
attachment: {
|
|
813
|
+
type: 'union',
|
|
814
|
+
refs: [
|
|
815
|
+
'lex:org.hypercerts.defs#uri',
|
|
816
|
+
'lex:org.hypercerts.defs#smallBlob',
|
|
817
|
+
],
|
|
818
|
+
description: 'An attachment to define the rights further, e.g. a legal document.',
|
|
819
|
+
},
|
|
820
|
+
createdAt: {
|
|
821
|
+
type: 'string',
|
|
822
|
+
format: 'datetime',
|
|
823
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
824
|
+
},
|
|
825
|
+
},
|
|
826
|
+
},
|
|
827
|
+
},
|
|
828
|
+
},
|
|
829
|
+
},
|
|
830
|
+
OrgHypercertsDefs: {
|
|
831
|
+
lexicon: 1,
|
|
832
|
+
id: 'org.hypercerts.defs',
|
|
833
|
+
defs: {
|
|
834
|
+
uri: {
|
|
835
|
+
type: 'object',
|
|
836
|
+
required: ['uri'],
|
|
837
|
+
description: 'Object containing a URI to external data',
|
|
838
|
+
properties: {
|
|
839
|
+
uri: {
|
|
840
|
+
type: 'string',
|
|
841
|
+
format: 'uri',
|
|
842
|
+
maxGraphemes: 1024,
|
|
843
|
+
description: 'URI to external data',
|
|
844
|
+
},
|
|
845
|
+
},
|
|
846
|
+
},
|
|
847
|
+
smallBlob: {
|
|
848
|
+
type: 'object',
|
|
849
|
+
required: ['blob'],
|
|
850
|
+
description: 'Object containing a blob to external data',
|
|
851
|
+
properties: {
|
|
852
|
+
blob: {
|
|
853
|
+
type: 'blob',
|
|
854
|
+
accept: ['*/*'],
|
|
855
|
+
maxSize: 10485760,
|
|
856
|
+
description: 'Blob to external data (up to 10MB)',
|
|
857
|
+
},
|
|
858
|
+
},
|
|
859
|
+
},
|
|
860
|
+
largeBlob: {
|
|
861
|
+
type: 'object',
|
|
862
|
+
required: ['blob'],
|
|
863
|
+
description: 'Object containing a blob to external data',
|
|
864
|
+
properties: {
|
|
865
|
+
blob: {
|
|
866
|
+
type: 'blob',
|
|
867
|
+
accept: ['*/*'],
|
|
868
|
+
maxSize: 104857600,
|
|
869
|
+
description: 'Blob to external data (up to 100MB)',
|
|
870
|
+
},
|
|
871
|
+
},
|
|
872
|
+
},
|
|
873
|
+
smallImage: {
|
|
874
|
+
type: 'object',
|
|
875
|
+
required: ['image'],
|
|
876
|
+
description: 'Object containing a small image',
|
|
877
|
+
properties: {
|
|
878
|
+
image: {
|
|
879
|
+
type: 'blob',
|
|
880
|
+
accept: ['image/jpeg', 'image/jpg', 'image/png', 'image/webp'],
|
|
881
|
+
maxSize: 5242880,
|
|
882
|
+
description: 'Image (up to 5MB)',
|
|
883
|
+
},
|
|
884
|
+
},
|
|
885
|
+
},
|
|
886
|
+
largeImage: {
|
|
887
|
+
type: 'object',
|
|
888
|
+
required: ['image'],
|
|
889
|
+
description: 'Object containing a large image',
|
|
890
|
+
properties: {
|
|
891
|
+
image: {
|
|
892
|
+
type: 'blob',
|
|
893
|
+
accept: ['image/jpeg', 'image/jpg', 'image/png', 'image/webp'],
|
|
894
|
+
maxSize: 10485760,
|
|
895
|
+
description: 'Image (up to 10MB)',
|
|
896
|
+
},
|
|
897
|
+
},
|
|
898
|
+
},
|
|
899
|
+
},
|
|
900
|
+
},
|
|
901
|
+
OrgHypercertsFundingReceipt: {
|
|
902
|
+
lexicon: 1,
|
|
903
|
+
id: 'org.hypercerts.funding.receipt',
|
|
904
|
+
defs: {
|
|
905
|
+
main: {
|
|
906
|
+
type: 'record',
|
|
907
|
+
description: '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.',
|
|
908
|
+
key: 'tid',
|
|
909
|
+
record: {
|
|
910
|
+
type: 'object',
|
|
911
|
+
required: ['from', 'to', 'amount', 'currency', 'createdAt'],
|
|
912
|
+
properties: {
|
|
913
|
+
from: {
|
|
914
|
+
type: 'ref',
|
|
915
|
+
ref: 'lex:app.certified.defs#did',
|
|
916
|
+
description: 'DID of the sender who transferred the funds. Leave empty if sender wants to stay anonymous.',
|
|
917
|
+
},
|
|
918
|
+
to: {
|
|
919
|
+
type: 'string',
|
|
920
|
+
description: 'The recipient of the funds. Can be identified by DID or a clear-text name.',
|
|
921
|
+
},
|
|
922
|
+
amount: {
|
|
923
|
+
type: 'string',
|
|
924
|
+
description: 'Amount of funding received.',
|
|
925
|
+
},
|
|
926
|
+
currency: {
|
|
927
|
+
type: 'string',
|
|
928
|
+
description: 'Currency of the payment (e.g. EUR, USD, ETH).',
|
|
929
|
+
},
|
|
930
|
+
paymentRail: {
|
|
931
|
+
type: 'string',
|
|
932
|
+
description: 'How the funds were transferred (e.g. bank_transfer, credit_card, onchain, cash, check, payment_processor).',
|
|
933
|
+
},
|
|
934
|
+
paymentNetwork: {
|
|
935
|
+
type: 'string',
|
|
936
|
+
description: 'Optional network within the payment rail (e.g. arbitrum, ethereum, sepa, visa, paypal).',
|
|
937
|
+
},
|
|
938
|
+
transactionId: {
|
|
939
|
+
type: 'string',
|
|
940
|
+
description: '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.',
|
|
941
|
+
},
|
|
942
|
+
for: {
|
|
943
|
+
type: 'string',
|
|
944
|
+
format: 'at-uri',
|
|
945
|
+
description: 'Optional reference to the activity, project, or organization this funding relates to.',
|
|
946
|
+
},
|
|
947
|
+
notes: {
|
|
948
|
+
type: 'string',
|
|
949
|
+
description: 'Optional notes or additional context for this funding receipt.',
|
|
950
|
+
maxLength: 500,
|
|
951
|
+
},
|
|
952
|
+
occurredAt: {
|
|
953
|
+
type: 'string',
|
|
954
|
+
format: 'datetime',
|
|
955
|
+
description: 'Timestamp when the payment occurred.',
|
|
956
|
+
},
|
|
957
|
+
createdAt: {
|
|
958
|
+
type: 'string',
|
|
959
|
+
format: 'datetime',
|
|
960
|
+
description: 'Client-declared timestamp when this receipt record was created.',
|
|
961
|
+
},
|
|
962
|
+
},
|
|
963
|
+
},
|
|
964
|
+
},
|
|
965
|
+
},
|
|
966
|
+
},
|
|
967
|
+
};
|
|
968
|
+
const schemas = Object.values(schemaDict);
|
|
969
|
+
const lexicons = new lexicon.Lexicons(schemas);
|
|
970
|
+
function validate(v, id, hash, requiredType) {
|
|
971
|
+
return (requiredType ? is$typed : maybe$typed)(v, id, hash)
|
|
972
|
+
? lexicons.validate(`${id}#${hash}`, v)
|
|
973
|
+
: {
|
|
974
|
+
success: false,
|
|
975
|
+
error: new lexicon.ValidationError(`Must be an object with "${hash === 'main' ? id : `${id}#${hash}`}" $type property`),
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
const ids = {
|
|
979
|
+
AppCertifiedBadgeAward: 'app.certified.badge.award',
|
|
980
|
+
AppCertifiedBadgeDefinition: 'app.certified.badge.definition',
|
|
981
|
+
AppCertifiedBadgeResponse: 'app.certified.badge.response',
|
|
982
|
+
AppCertifiedDefs: 'app.certified.defs',
|
|
983
|
+
AppCertifiedLocation: 'app.certified.location',
|
|
984
|
+
ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
|
|
985
|
+
OrgHypercertsClaimActivity: 'org.hypercerts.claim.activity',
|
|
986
|
+
OrgHypercertsClaimCollection: 'org.hypercerts.claim.collection',
|
|
987
|
+
OrgHypercertsClaimContribution: 'org.hypercerts.claim.contribution',
|
|
988
|
+
OrgHypercertsClaimEvaluation: 'org.hypercerts.claim.evaluation',
|
|
989
|
+
OrgHypercertsClaimEvidence: 'org.hypercerts.claim.evidence',
|
|
990
|
+
OrgHypercertsClaimMeasurement: 'org.hypercerts.claim.measurement',
|
|
991
|
+
OrgHypercertsClaimProject: 'org.hypercerts.claim.project',
|
|
992
|
+
OrgHypercertsClaimRights: 'org.hypercerts.claim.rights',
|
|
993
|
+
OrgHypercertsDefs: 'org.hypercerts.defs',
|
|
994
|
+
OrgHypercertsFundingReceipt: 'org.hypercerts.funding.receipt',
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
exports.ids = ids;
|
|
998
|
+
exports.lexicons = lexicons;
|
|
999
|
+
exports.schemaDict = schemaDict;
|
|
1000
|
+
exports.schemas = schemas;
|
|
1001
|
+
exports.validate = validate;
|
|
1002
|
+
//# sourceMappingURL=lexicons.cjs.map
|