@hypercerts-org/lexicon 0.9.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.
Files changed (109) hide show
  1. package/README.md +346 -164
  2. package/dist/exports.d.ts +1018 -0
  3. package/dist/exports.d.ts.map +1 -0
  4. package/dist/generated/exports.d.ts +1018 -0
  5. package/dist/generated/exports.d.ts.map +1 -0
  6. package/dist/generated/lexicons.d.ts +1805 -0
  7. package/dist/generated/lexicons.d.ts.map +1 -0
  8. package/dist/generated/types/app/certified/badge/award.d.ts +24 -0
  9. package/dist/generated/types/app/certified/badge/award.d.ts.map +1 -0
  10. package/dist/generated/types/app/certified/badge/definition.d.ts +25 -0
  11. package/dist/generated/types/app/certified/badge/definition.d.ts.map +1 -0
  12. package/dist/generated/types/app/certified/badge/response.d.ts +20 -0
  13. package/dist/generated/types/app/certified/badge/response.d.ts.map +1 -0
  14. package/dist/generated/types/app/certified/defs.d.ts +3 -0
  15. package/dist/generated/types/app/certified/defs.d.ts.map +1 -0
  16. package/dist/generated/types/app/certified/location.d.ts +29 -0
  17. package/dist/generated/types/app/certified/location.d.ts.map +1 -0
  18. package/dist/generated/types/com/atproto/repo/strongRef.d.ts +12 -0
  19. package/dist/generated/types/com/atproto/repo/strongRef.d.ts.map +1 -0
  20. package/dist/generated/types/org/hypercerts/claim/activity.d.ts +57 -0
  21. package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -0
  22. package/dist/generated/types/org/hypercerts/claim/collection.d.ts +25 -0
  23. package/dist/generated/types/org/hypercerts/claim/collection.d.ts.map +1 -0
  24. package/dist/generated/types/org/hypercerts/claim/contribution.d.ts +24 -0
  25. package/dist/generated/types/org/hypercerts/claim/contribution.d.ts.map +1 -0
  26. package/dist/generated/types/org/hypercerts/claim/evaluation.d.ts +43 -0
  27. package/dist/generated/types/org/hypercerts/claim/evaluation.d.ts.map +1 -0
  28. package/dist/generated/types/org/hypercerts/claim/evidence.d.ts +29 -0
  29. package/dist/generated/types/org/hypercerts/claim/evidence.d.ts.map +1 -0
  30. package/dist/generated/types/org/hypercerts/claim/measurement.d.ts +30 -0
  31. package/dist/generated/types/org/hypercerts/claim/measurement.d.ts.map +1 -0
  32. package/dist/generated/types/org/hypercerts/claim/project.d.ts +29 -0
  33. package/dist/generated/types/org/hypercerts/claim/project.d.ts.map +1 -0
  34. package/dist/generated/types/org/hypercerts/claim/rights.d.ts +25 -0
  35. package/dist/generated/types/org/hypercerts/claim/rights.d.ts.map +1 -0
  36. package/dist/generated/types/org/hypercerts/defs.d.ts +45 -0
  37. package/dist/generated/types/org/hypercerts/defs.d.ts.map +1 -0
  38. package/dist/generated/types/org/hypercerts/funding/receipt.d.ts +34 -0
  39. package/dist/generated/types/org/hypercerts/funding/receipt.d.ts.map +1 -0
  40. package/dist/generated/types/pub/leaflet/pages/linearDocument.d.ts +2 -0
  41. package/dist/generated/types/pub/leaflet/pages/linearDocument.d.ts.map +1 -0
  42. package/dist/generated/util.d.ts +37 -0
  43. package/dist/generated/util.d.ts.map +1 -0
  44. package/dist/index.cjs +2119 -955
  45. package/dist/index.cjs.map +1 -1
  46. package/dist/index.mjs +2054 -935
  47. package/dist/index.mjs.map +1 -1
  48. package/dist/lexicons.cjs +1002 -0
  49. package/dist/lexicons.cjs.map +1 -0
  50. package/dist/lexicons.d.ts +1805 -0
  51. package/dist/lexicons.d.ts.map +1 -0
  52. package/dist/lexicons.mjs +996 -0
  53. package/dist/lexicons.mjs.map +1 -0
  54. package/dist/types/app/certified/badge/award.d.ts +24 -0
  55. package/dist/types/app/certified/badge/award.d.ts.map +1 -0
  56. package/dist/types/app/certified/badge/definition.d.ts +25 -0
  57. package/dist/types/app/certified/badge/definition.d.ts.map +1 -0
  58. package/dist/types/app/certified/badge/response.d.ts +20 -0
  59. package/dist/types/app/certified/badge/response.d.ts.map +1 -0
  60. package/dist/types/app/certified/defs.d.ts +3 -0
  61. package/dist/types/app/certified/defs.d.ts.map +1 -0
  62. package/dist/types/app/certified/location.d.ts +29 -0
  63. package/dist/types/app/certified/location.d.ts.map +1 -0
  64. package/dist/types/com/atproto/repo/strongRef.d.ts +12 -0
  65. package/dist/types/com/atproto/repo/strongRef.d.ts.map +1 -0
  66. package/dist/types/org/hypercerts/claim/activity.d.ts +57 -0
  67. package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -0
  68. package/dist/types/org/hypercerts/claim/collection.d.ts +25 -0
  69. package/dist/types/org/hypercerts/claim/collection.d.ts.map +1 -0
  70. package/dist/types/org/hypercerts/claim/contribution.d.ts +24 -0
  71. package/dist/types/org/hypercerts/claim/contribution.d.ts.map +1 -0
  72. package/dist/types/org/hypercerts/claim/evaluation.d.ts +43 -0
  73. package/dist/types/org/hypercerts/claim/evaluation.d.ts.map +1 -0
  74. package/dist/types/org/hypercerts/claim/evidence.d.ts +29 -0
  75. package/dist/types/org/hypercerts/claim/evidence.d.ts.map +1 -0
  76. package/dist/types/org/hypercerts/claim/measurement.d.ts +30 -0
  77. package/dist/types/org/hypercerts/claim/measurement.d.ts.map +1 -0
  78. package/dist/types/org/hypercerts/claim/project.d.ts +29 -0
  79. package/dist/types/org/hypercerts/claim/project.d.ts.map +1 -0
  80. package/dist/types/org/hypercerts/claim/rights.d.ts +25 -0
  81. package/dist/types/org/hypercerts/claim/rights.d.ts.map +1 -0
  82. package/dist/types/org/hypercerts/defs.d.ts +45 -0
  83. package/dist/types/org/hypercerts/defs.d.ts.map +1 -0
  84. package/dist/types/org/hypercerts/funding/receipt.d.ts +34 -0
  85. package/dist/types/org/hypercerts/funding/receipt.d.ts.map +1 -0
  86. package/dist/types/pub/leaflet/pages/linearDocument.d.ts +2 -0
  87. package/dist/types/pub/leaflet/pages/linearDocument.d.ts.map +1 -0
  88. package/dist/util.d.ts +37 -0
  89. package/dist/util.d.ts.map +1 -0
  90. package/lexicons/app/certified/badge/award.json +36 -0
  91. package/lexicons/app/certified/badge/definition.json +53 -0
  92. package/lexicons/app/certified/badge/response.json +36 -0
  93. package/lexicons/app/certified/defs.json +4 -16
  94. package/lexicons/app/certified/location.json +5 -8
  95. package/lexicons/com/atproto/repo/strongRef.json +1 -1
  96. package/lexicons/org/hypercerts/claim/activity.json +135 -0
  97. package/lexicons/org/hypercerts/claim/collection.json +54 -0
  98. package/lexicons/org/hypercerts/claim/contribution.json +4 -11
  99. package/lexicons/org/hypercerts/claim/evaluation.json +50 -9
  100. package/lexicons/org/hypercerts/claim/evidence.json +29 -16
  101. package/lexicons/org/hypercerts/claim/measurement.json +18 -8
  102. package/lexicons/org/hypercerts/claim/project.json +64 -0
  103. package/lexicons/org/hypercerts/claim/rights.json +16 -3
  104. package/lexicons/org/hypercerts/defs.json +71 -0
  105. package/lexicons/org/hypercerts/funding/receipt.json +66 -0
  106. package/package.json +46 -26
  107. package/dist/index.d.ts +0 -2094
  108. package/lexicons/org/hypercerts/claim.json +0 -95
  109. package/lexicons/org/hypercerts/collection.json +0 -62
package/dist/index.d.ts DELETED
@@ -1,2094 +0,0 @@
1
- import { BlobRef, ValidationResult, Lexicons, LexiconDoc } from '@atproto/lexicon';
2
-
3
- declare let lexicon$9: number;
4
- declare let id$9: string;
5
- declare namespace defs$a {
6
- namespace uri {
7
- let type: string;
8
- let format: string;
9
- let maxGraphemes: number;
10
- let description: string;
11
- }
12
- namespace smallBlob {
13
- let type_1: string;
14
- export { type_1 as type };
15
- export let accept: string[];
16
- export let maxSize: number;
17
- let description_1: string;
18
- export { description_1 as description };
19
- }
20
- namespace largeBlob {
21
- let type_2: string;
22
- export { type_2 as type };
23
- let accept_1: string[];
24
- export { accept_1 as accept };
25
- let maxSize_1: number;
26
- export { maxSize_1 as maxSize };
27
- let description_2: string;
28
- export { description_2 as description };
29
- }
30
- }
31
-
32
-
33
- declare const export_default$9: {
34
- lexicon: typeof lexicon$9;
35
- id: typeof id$9;
36
- defs: typeof defs$a;
37
- };
38
-
39
- declare let lexicon$8: number;
40
- declare let id$8: string;
41
- declare namespace defs$9 {
42
- namespace main {
43
- let type: string;
44
- let description: string;
45
- let key: string;
46
- namespace record {
47
- let type_1: string;
48
- export { type_1 as type };
49
- export let required: string[];
50
- export namespace properties {
51
- export namespace lpVersion {
52
- let type_2: string;
53
- export { type_2 as type };
54
- let description_1: string;
55
- export { description_1 as description };
56
- export let maxLength: number;
57
- }
58
- export namespace srs {
59
- let type_3: string;
60
- export { type_3 as type };
61
- export let format: string;
62
- let description_2: string;
63
- export { description_2 as description };
64
- let maxLength_1: number;
65
- export { maxLength_1 as maxLength };
66
- }
67
- export namespace locationType {
68
- let type_4: string;
69
- export { type_4 as type };
70
- let description_3: string;
71
- export { description_3 as description };
72
- export let knownValues: string[];
73
- let maxLength_2: number;
74
- export { maxLength_2 as maxLength };
75
- }
76
- export namespace location {
77
- let type_5: string;
78
- export { type_5 as type };
79
- export let refs: string[];
80
- let description_4: string;
81
- export { description_4 as description };
82
- }
83
- export namespace name {
84
- let type_6: string;
85
- export { type_6 as type };
86
- let description_5: string;
87
- export { description_5 as description };
88
- let maxLength_3: number;
89
- export { maxLength_3 as maxLength };
90
- export let maxGraphemes: number;
91
- }
92
- export namespace description_6 {
93
- let type_7: string;
94
- export { type_7 as type };
95
- let description_7: string;
96
- export { description_7 as description };
97
- let maxLength_4: number;
98
- export { maxLength_4 as maxLength };
99
- let maxGraphemes_1: number;
100
- export { maxGraphemes_1 as maxGraphemes };
101
- }
102
- export { description_6 as description };
103
- export namespace createdAt {
104
- let type_8: string;
105
- export { type_8 as type };
106
- let format_1: string;
107
- export { format_1 as format };
108
- let description_8: string;
109
- export { description_8 as description };
110
- }
111
- }
112
- }
113
- }
114
- }
115
-
116
-
117
- declare const export_default$8: {
118
- lexicon: typeof lexicon$8;
119
- id: typeof id$8;
120
- defs: typeof defs$9;
121
- };
122
-
123
- declare let lexicon$7: number;
124
- declare let id$7: string;
125
- declare namespace defs$8 {
126
- namespace main {
127
- let type: string;
128
- let description: string;
129
- let key: string;
130
- namespace record {
131
- let type_1: string;
132
- export { type_1 as type };
133
- export let required: string[];
134
- export namespace properties {
135
- export namespace title {
136
- let type_2: string;
137
- export { type_2 as type };
138
- let description_1: string;
139
- export { description_1 as description };
140
- export let maxLength: number;
141
- }
142
- export namespace shortDescription {
143
- let type_3: string;
144
- export { type_3 as type };
145
- let description_2: string;
146
- export { description_2 as description };
147
- let maxLength_1: number;
148
- export { maxLength_1 as maxLength };
149
- export let maxGraphemes: number;
150
- }
151
- export namespace description_3 {
152
- let type_4: string;
153
- export { type_4 as type };
154
- let description_4: string;
155
- export { description_4 as description };
156
- let maxLength_2: number;
157
- export { maxLength_2 as maxLength };
158
- let maxGraphemes_1: number;
159
- export { maxGraphemes_1 as maxGraphemes };
160
- }
161
- export { description_3 as description };
162
- export namespace image {
163
- let type_5: string;
164
- export { type_5 as type };
165
- export let refs: string[];
166
- let description_5: string;
167
- export { description_5 as description };
168
- }
169
- export namespace workScope {
170
- let type_6: string;
171
- export { type_6 as type };
172
- let description_6: string;
173
- export { description_6 as description };
174
- let maxLength_3: number;
175
- export { maxLength_3 as maxLength };
176
- let maxGraphemes_2: number;
177
- export { maxGraphemes_2 as maxGraphemes };
178
- }
179
- export namespace workTimeFrameFrom {
180
- let type_7: string;
181
- export { type_7 as type };
182
- export let format: string;
183
- let description_7: string;
184
- export { description_7 as description };
185
- }
186
- export namespace workTimeFrameTo {
187
- let type_8: string;
188
- export { type_8 as type };
189
- let format_1: string;
190
- export { format_1 as format };
191
- let description_8: string;
192
- export { description_8 as description };
193
- }
194
- export namespace evidence {
195
- let type_9: string;
196
- export { type_9 as type };
197
- let description_9: string;
198
- export { description_9 as description };
199
- export namespace items {
200
- let type_10: string;
201
- export { type_10 as type };
202
- export let ref: string;
203
- let description_10: string;
204
- export { description_10 as description };
205
- }
206
- let maxLength_4: number;
207
- export { maxLength_4 as maxLength };
208
- }
209
- export namespace contributions {
210
- let type_11: string;
211
- export { type_11 as type };
212
- let description_11: string;
213
- export { description_11 as description };
214
- export namespace items_1 {
215
- let type_12: string;
216
- export { type_12 as type };
217
- let ref_1: string;
218
- export { ref_1 as ref };
219
- }
220
- export { items_1 as items };
221
- }
222
- export namespace rights {
223
- let type_13: string;
224
- export { type_13 as type };
225
- let ref_2: string;
226
- export { ref_2 as ref };
227
- let description_12: string;
228
- export { description_12 as description };
229
- }
230
- export namespace location {
231
- let type_14: string;
232
- export { type_14 as type };
233
- let ref_3: string;
234
- export { ref_3 as ref };
235
- let description_13: string;
236
- export { description_13 as description };
237
- }
238
- export namespace createdAt {
239
- let type_15: string;
240
- export { type_15 as type };
241
- let format_2: string;
242
- export { format_2 as format };
243
- let description_14: string;
244
- export { description_14 as description };
245
- }
246
- }
247
- }
248
- }
249
- }
250
-
251
-
252
- declare const export_default$7: {
253
- lexicon: typeof lexicon$7;
254
- id: typeof id$7;
255
- defs: typeof defs$8;
256
- };
257
-
258
- declare let lexicon$6: number;
259
- declare let id$6: string;
260
- declare namespace defs$7 {
261
- namespace main {
262
- let type: string;
263
- let description: string;
264
- let key: string;
265
- namespace record {
266
- let type_1: string;
267
- export { type_1 as type };
268
- export let required: string[];
269
- export namespace properties {
270
- export namespace hypercert {
271
- let type_2: string;
272
- export { type_2 as type };
273
- export let ref: string;
274
- let description_1: string;
275
- export { description_1 as description };
276
- }
277
- export namespace role {
278
- let type_3: string;
279
- export { type_3 as type };
280
- let description_2: string;
281
- export { description_2 as description };
282
- export let maxLength: number;
283
- }
284
- export namespace contributors {
285
- let type_4: string;
286
- export { type_4 as type };
287
- let description_3: string;
288
- export { description_3 as description };
289
- export namespace items {
290
- let type_5: string;
291
- export { type_5 as type };
292
- }
293
- }
294
- export namespace description_4 {
295
- let type_6: string;
296
- export { type_6 as type };
297
- let description_5: string;
298
- export { description_5 as description };
299
- let maxLength_1: number;
300
- export { maxLength_1 as maxLength };
301
- export let maxGraphemes: number;
302
- }
303
- export { description_4 as description };
304
- export namespace workTimeframeFrom {
305
- let type_7: string;
306
- export { type_7 as type };
307
- export let format: string;
308
- let description_6: string;
309
- export { description_6 as description };
310
- }
311
- export namespace workTimeframeTo {
312
- let type_8: string;
313
- export { type_8 as type };
314
- let format_1: string;
315
- export { format_1 as format };
316
- let description_7: string;
317
- export { description_7 as description };
318
- }
319
- export namespace createdAt {
320
- let type_9: string;
321
- export { type_9 as type };
322
- let format_2: string;
323
- export { format_2 as format };
324
- let description_8: string;
325
- export { description_8 as description };
326
- }
327
- }
328
- }
329
- }
330
- }
331
-
332
-
333
- declare const export_default$6: {
334
- lexicon: typeof lexicon$6;
335
- id: typeof id$6;
336
- defs: typeof defs$7;
337
- };
338
-
339
- declare let lexicon$5: number;
340
- declare let id$5: string;
341
- declare namespace defs$6 {
342
- namespace main {
343
- let type: string;
344
- let description: string;
345
- let key: string;
346
- namespace record {
347
- let type_1: string;
348
- export { type_1 as type };
349
- export let required: string[];
350
- export namespace properties {
351
- namespace subject {
352
- let type_2: string;
353
- export { type_2 as type };
354
- export let ref: string;
355
- let description_1: string;
356
- export { description_1 as description };
357
- }
358
- namespace evaluators {
359
- let type_3: string;
360
- export { type_3 as type };
361
- let description_2: string;
362
- export { description_2 as description };
363
- export namespace items {
364
- let type_4: string;
365
- export { type_4 as type };
366
- export let format: string;
367
- }
368
- export let maxLength: number;
369
- }
370
- namespace evaluations {
371
- let type_5: string;
372
- export { type_5 as type };
373
- let description_3: string;
374
- export { description_3 as description };
375
- export namespace items_1 {
376
- let type_6: string;
377
- export { type_6 as type };
378
- export let refs: string[];
379
- }
380
- export { items_1 as items };
381
- let maxLength_1: number;
382
- export { maxLength_1 as maxLength };
383
- }
384
- namespace summary {
385
- let type_7: string;
386
- export { type_7 as type };
387
- let description_4: string;
388
- export { description_4 as description };
389
- let maxLength_2: number;
390
- export { maxLength_2 as maxLength };
391
- export let maxGraphemes: number;
392
- }
393
- namespace createdAt {
394
- let type_8: string;
395
- export { type_8 as type };
396
- let format_1: string;
397
- export { format_1 as format };
398
- let description_5: string;
399
- export { description_5 as description };
400
- }
401
- }
402
- }
403
- }
404
- }
405
-
406
-
407
- declare const export_default$5: {
408
- lexicon: typeof lexicon$5;
409
- id: typeof id$5;
410
- defs: typeof defs$6;
411
- };
412
-
413
- declare let lexicon$4: number;
414
- declare let id$4: string;
415
- declare namespace defs$5 {
416
- namespace main {
417
- let type: string;
418
- let description: string;
419
- let key: string;
420
- namespace record {
421
- let type_1: string;
422
- export { type_1 as type };
423
- export let required: string[];
424
- export namespace properties {
425
- export namespace content {
426
- let type_2: string;
427
- export { type_2 as type };
428
- export let refs: string[];
429
- let description_1: string;
430
- export { description_1 as description };
431
- }
432
- export namespace title {
433
- let type_3: string;
434
- export { type_3 as type };
435
- export let maxLength: number;
436
- let description_2: string;
437
- export { description_2 as description };
438
- }
439
- export namespace shortDescription {
440
- let type_4: string;
441
- export { type_4 as type };
442
- let maxLength_1: number;
443
- export { maxLength_1 as maxLength };
444
- export let maxGraphemes: number;
445
- let description_3: string;
446
- export { description_3 as description };
447
- }
448
- export namespace description_4 {
449
- let type_5: string;
450
- export { type_5 as type };
451
- let description_5: string;
452
- export { description_5 as description };
453
- let maxLength_2: number;
454
- export { maxLength_2 as maxLength };
455
- let maxGraphemes_1: number;
456
- export { maxGraphemes_1 as maxGraphemes };
457
- }
458
- export { description_4 as description };
459
- export namespace createdAt {
460
- let type_6: string;
461
- export { type_6 as type };
462
- export let format: string;
463
- let description_6: string;
464
- export { description_6 as description };
465
- }
466
- }
467
- }
468
- }
469
- }
470
-
471
-
472
- declare const export_default$4: {
473
- lexicon: typeof lexicon$4;
474
- id: typeof id$4;
475
- defs: typeof defs$5;
476
- };
477
-
478
- declare let lexicon$3: number;
479
- declare let id$3: string;
480
- declare namespace defs$4 {
481
- namespace main {
482
- let type: string;
483
- let description: string;
484
- let key: string;
485
- namespace record {
486
- let type_1: string;
487
- export { type_1 as type };
488
- export let required: string[];
489
- export namespace properties {
490
- namespace hypercert {
491
- let type_2: string;
492
- export { type_2 as type };
493
- export let ref: string;
494
- let description_1: string;
495
- export { description_1 as description };
496
- }
497
- namespace measurers {
498
- let type_3: string;
499
- export { type_3 as type };
500
- let description_2: string;
501
- export { description_2 as description };
502
- export namespace items {
503
- let type_4: string;
504
- export { type_4 as type };
505
- export let format: string;
506
- }
507
- export let maxLength: number;
508
- }
509
- namespace metric {
510
- let type_5: string;
511
- export { type_5 as type };
512
- let description_3: string;
513
- export { description_3 as description };
514
- let maxLength_1: number;
515
- export { maxLength_1 as maxLength };
516
- }
517
- namespace value {
518
- let type_6: string;
519
- export { type_6 as type };
520
- let description_4: string;
521
- export { description_4 as description };
522
- let maxLength_2: number;
523
- export { maxLength_2 as maxLength };
524
- }
525
- namespace measurementMethodURI {
526
- let type_7: string;
527
- export { type_7 as type };
528
- let format_1: string;
529
- export { format_1 as format };
530
- let description_5: string;
531
- export { description_5 as description };
532
- }
533
- namespace evidenceURI {
534
- let type_8: string;
535
- export { type_8 as type };
536
- let description_6: string;
537
- export { description_6 as description };
538
- export namespace items_1 {
539
- let type_9: string;
540
- export { type_9 as type };
541
- let format_2: string;
542
- export { format_2 as format };
543
- }
544
- export { items_1 as items };
545
- let maxLength_3: number;
546
- export { maxLength_3 as maxLength };
547
- }
548
- namespace createdAt {
549
- let type_10: string;
550
- export { type_10 as type };
551
- let format_3: string;
552
- export { format_3 as format };
553
- let description_7: string;
554
- export { description_7 as description };
555
- }
556
- }
557
- }
558
- }
559
- }
560
-
561
-
562
- declare const export_default$3: {
563
- lexicon: typeof lexicon$3;
564
- id: typeof id$3;
565
- defs: typeof defs$4;
566
- };
567
-
568
- declare let lexicon$2: number;
569
- declare let id$2: string;
570
- declare namespace defs$3 {
571
- namespace main {
572
- let type: string;
573
- let description: string;
574
- let key: string;
575
- namespace record {
576
- let type_1: string;
577
- export { type_1 as type };
578
- export let required: string[];
579
- export namespace properties {
580
- namespace rightsName {
581
- let type_2: string;
582
- export { type_2 as type };
583
- let description_1: string;
584
- export { description_1 as description };
585
- export let maxLength: number;
586
- }
587
- namespace rightsType {
588
- let type_3: string;
589
- export { type_3 as type };
590
- let description_2: string;
591
- export { description_2 as description };
592
- let maxLength_1: number;
593
- export { maxLength_1 as maxLength };
594
- }
595
- namespace rightsDescription {
596
- let type_4: string;
597
- export { type_4 as type };
598
- let description_3: string;
599
- export { description_3 as description };
600
- }
601
- namespace createdAt {
602
- let type_5: string;
603
- export { type_5 as type };
604
- export let format: string;
605
- let description_4: string;
606
- export { description_4 as description };
607
- }
608
- }
609
- }
610
- }
611
- }
612
-
613
-
614
- declare const export_default$2: {
615
- lexicon: typeof lexicon$2;
616
- id: typeof id$2;
617
- defs: typeof defs$3;
618
- };
619
-
620
- declare let lexicon$1: number;
621
- declare let id$1: string;
622
- declare let description: string;
623
- declare namespace defs$2 {
624
- namespace main {
625
- let type: string;
626
- let required: string[];
627
- namespace properties {
628
- namespace uri {
629
- let type_1: string;
630
- export { type_1 as type };
631
- export let format: string;
632
- }
633
- namespace cid {
634
- let type_2: string;
635
- export { type_2 as type };
636
- let format_1: string;
637
- export { format_1 as format };
638
- }
639
- }
640
- }
641
- }
642
-
643
-
644
- declare const export_default$1: {
645
- lexicon: typeof lexicon$1;
646
- id: typeof id$1;
647
- description: typeof description;
648
- defs: typeof defs$2;
649
- };
650
-
651
- declare let lexicon: number;
652
- declare let id: string;
653
- declare namespace defs$1 {
654
- namespace main {
655
- let type: string;
656
- let description: string;
657
- let key: string;
658
- namespace record {
659
- let type_1: string;
660
- export { type_1 as type };
661
- export let required: string[];
662
- export namespace properties {
663
- namespace title {
664
- let type_2: string;
665
- export { type_2 as type };
666
- let description_1: string;
667
- export { description_1 as description };
668
- export let maxLength: number;
669
- export let maxGraphemes: number;
670
- }
671
- namespace shortDescription {
672
- let type_3: string;
673
- export { type_3 as type };
674
- let maxLength_1: number;
675
- export { maxLength_1 as maxLength };
676
- let maxGraphemes_1: number;
677
- export { maxGraphemes_1 as maxGraphemes };
678
- let description_2: string;
679
- export { description_2 as description };
680
- }
681
- namespace coverPhoto {
682
- let type_4: string;
683
- export { type_4 as type };
684
- export let refs: string[];
685
- let description_3: string;
686
- export { description_3 as description };
687
- }
688
- namespace claims {
689
- let type_5: string;
690
- export { type_5 as type };
691
- let description_4: string;
692
- export { description_4 as description };
693
- export namespace items {
694
- let type_6: string;
695
- export { type_6 as type };
696
- export let ref: string;
697
- }
698
- }
699
- namespace createdAt {
700
- let type_7: string;
701
- export { type_7 as type };
702
- export let format: string;
703
- let description_5: string;
704
- export { description_5 as description };
705
- }
706
- }
707
- }
708
- }
709
- namespace claimItem {
710
- let type_8: string;
711
- export { type_8 as type };
712
- let required_1: string[];
713
- export { required_1 as required };
714
- export namespace properties_1 {
715
- namespace claim {
716
- let type_9: string;
717
- export { type_9 as type };
718
- let ref_1: string;
719
- export { ref_1 as ref };
720
- let description_6: string;
721
- export { description_6 as description };
722
- }
723
- namespace weight {
724
- let type_10: string;
725
- export { type_10 as type };
726
- let description_7: string;
727
- export { description_7 as description };
728
- }
729
- }
730
- export { properties_1 as properties };
731
- }
732
- }
733
-
734
-
735
- declare const export_default: {
736
- lexicon: typeof lexicon;
737
- id: typeof id;
738
- defs: typeof defs$1;
739
- };
740
-
741
- /**
742
- * GENERATED CODE - DO NOT MODIFY
743
- */
744
-
745
- /** URI to external data */
746
- type Uri = string;
747
- /** Blob to external data (up to 10MB) */
748
- type SmallBlob = BlobRef;
749
- /** Blob to external data (up to 100MB) */
750
- type LargeBlob = BlobRef;
751
-
752
- type defs_LargeBlob = LargeBlob;
753
- type defs_SmallBlob = SmallBlob;
754
- type defs_Uri = Uri;
755
- declare namespace defs {
756
- export type { defs_LargeBlob as LargeBlob, defs_SmallBlob as SmallBlob, defs_Uri as Uri };
757
- }
758
-
759
- /**
760
- * GENERATED CODE - DO NOT MODIFY
761
- */
762
-
763
- type OmitKey<T, K extends keyof T> = {
764
- [K2 in keyof T as K2 extends K ? never : K2]: T[K2];
765
- };
766
- type $Typed<V, T extends string = string> = V & {
767
- $type: T;
768
- };
769
- type Un$Typed<V extends {
770
- $type?: string;
771
- }> = OmitKey<V, '$type'>;
772
- type $Type<Id extends string, Hash extends string> = Hash extends 'main' ? Id : `${Id}#${Hash}`;
773
- type $TypedObject<V, Id extends string, Hash extends string> = V extends {
774
- $type: $Type<Id, Hash>;
775
- } ? V : V extends {
776
- $type?: string;
777
- } ? V extends {
778
- $type?: infer T extends $Type<Id, Hash>;
779
- } ? V & {
780
- $type: T;
781
- } : never : V & {
782
- $type: $Type<Id, Hash>;
783
- };
784
- declare function is$typed<V, Id extends string, Hash extends string>(v: V, id: Id, hash: Hash): v is $TypedObject<V, Id, Hash>;
785
- declare function maybe$typed<V, Id extends string, Hash extends string>(v: V, id: Id, hash: Hash): v is V & object & {
786
- $type?: $Type<Id, Hash>;
787
- };
788
- type Validator<R = unknown> = (v: unknown) => ValidationResult<R>;
789
- type ValidatorParam<V extends Validator> = V extends Validator<infer R> ? R : never;
790
- /**
791
- * Utility function that allows to convert a "validate*" utility function into a
792
- * type predicate.
793
- */
794
- declare function asPredicate<V extends Validator>(validate: V): <T>(v: T) => v is T & ValidatorParam<V>;
795
-
796
- interface Main$8 {
797
- $type: 'app.certified.location';
798
- /** The version of the Location Protocol */
799
- lpVersion: string;
800
- /** The Spatial Reference System URI (e.g., http://www.opengis.net/def/crs/OGC/1.3/CRS84) that defines the coordinate system. */
801
- srs: string;
802
- /** An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point) */
803
- locationType: 'coordinate-decimal' | 'geojson-point' | (string & {});
804
- location: $Typed<Uri> | $Typed<SmallBlob> | {
805
- $type: string;
806
- };
807
- /** Optional name for this location */
808
- name?: string;
809
- /** Optional description for this location */
810
- description?: string;
811
- /** Client-declared timestamp when this record was originally created */
812
- createdAt: string;
813
- [k: string]: unknown;
814
- }
815
- declare function isMain$8<V>(v: V): v is $TypedObject<V, "app.certified.location", "main">;
816
- declare function validateMain$8<V>(v: V): ValidationResult<Main$8 & V>;
817
-
818
- declare namespace location {
819
- export { isMain$8 as isMain, isMain$8 as isRecord, validateMain$8 as validateMain, validateMain$8 as validateRecord };
820
- export type { Main$8 as Main, Main$8 as Record };
821
- }
822
-
823
- interface Main$7 {
824
- $type?: 'com.atproto.repo.strongRef';
825
- uri: string;
826
- cid: string;
827
- }
828
- declare function isMain$7<V>(v: V): v is $TypedObject<V, "com.atproto.repo.strongRef", "main">;
829
- declare function validateMain$7<V>(v: V): ValidationResult<Main$7 & V>;
830
-
831
- declare namespace strongRef {
832
- export { isMain$7 as isMain, validateMain$7 as validateMain };
833
- export type { Main$7 as Main };
834
- }
835
-
836
- interface Main$6 {
837
- $type: 'org.hypercerts.claim';
838
- /** Title of the hypercert */
839
- title: string;
840
- /** Short blurb of the impact work done. */
841
- shortDescription: string;
842
- /** Optional longer description of the impact work done. */
843
- description?: string;
844
- image?: $Typed<Uri> | $Typed<SmallBlob> | {
845
- $type: string;
846
- };
847
- /** Scope of the work performed */
848
- workScope: string;
849
- /** When the work began */
850
- workTimeFrameFrom: string;
851
- /** When the work ended */
852
- workTimeFrameTo: string;
853
- /** Supporting evidence, documentation, or external data URIs */
854
- evidence?: Main$7[];
855
- /** 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.contributions */
856
- contributions?: Main$7[];
857
- rights?: Main$7;
858
- location?: Main$7;
859
- /** Client-declared timestamp when this record was originally created */
860
- createdAt: string;
861
- [k: string]: unknown;
862
- }
863
- declare function isMain$6<V>(v: V): v is $TypedObject<V, "org.hypercerts.claim", "main">;
864
- declare function validateMain$6<V>(v: V): ValidationResult<Main$6 & V>;
865
-
866
- declare namespace claim {
867
- export { isMain$6 as isMain, isMain$6 as isRecord, validateMain$6 as validateMain, validateMain$6 as validateRecord };
868
- export type { Main$6 as Main, Main$6 as Record };
869
- }
870
-
871
- interface Main$5 {
872
- $type: 'org.hypercerts.claim.contribution';
873
- hypercert: Main$7;
874
- /** Role or title of the contributor(s). */
875
- role?: string;
876
- /** 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. */
877
- contributors: string[];
878
- /** What the contribution concretely achieved */
879
- description?: string;
880
- /** When this contribution started. This should be a subset of the hypercert timeframe. */
881
- workTimeframeFrom?: string;
882
- /** When this contribution finished. This should be a subset of the hypercert timeframe. */
883
- workTimeframeTo?: string;
884
- /** Client-declared timestamp when this record was originally created */
885
- createdAt: string;
886
- [k: string]: unknown;
887
- }
888
- declare function isMain$5<V>(v: V): v is $TypedObject<V, "org.hypercerts.claim.contribution", "main">;
889
- declare function validateMain$5<V>(v: V): ValidationResult<Main$5 & V>;
890
-
891
- declare namespace contribution {
892
- export { isMain$5 as isMain, isMain$5 as isRecord, validateMain$5 as validateMain, validateMain$5 as validateRecord };
893
- export type { Main$5 as Main, Main$5 as Record };
894
- }
895
-
896
- interface Main$4 {
897
- $type: 'org.hypercerts.claim.evaluation';
898
- subject: Main$7;
899
- /** DIDs of the evaluators */
900
- evaluators: string[];
901
- /** Evaluation data (URIs or blobs) containing detailed reports or methodology */
902
- evaluations?: ($Typed<Uri> | $Typed<SmallBlob> | {
903
- $type: string;
904
- })[];
905
- /** Brief evaluation summary */
906
- summary: string;
907
- /** Client-declared timestamp when this record was originally created */
908
- createdAt: string;
909
- [k: string]: unknown;
910
- }
911
- declare function isMain$4<V>(v: V): v is $TypedObject<V, "org.hypercerts.claim.evaluation", "main">;
912
- declare function validateMain$4<V>(v: V): ValidationResult<Main$4 & V>;
913
-
914
- declare namespace evaluation {
915
- export { isMain$4 as isMain, isMain$4 as isRecord, validateMain$4 as validateMain, validateMain$4 as validateRecord };
916
- export type { Main$4 as Main, Main$4 as Record };
917
- }
918
-
919
- interface Main$3 {
920
- $type: 'org.hypercerts.claim.evidence';
921
- content: $Typed<Uri> | $Typed<SmallBlob> | {
922
- $type: string;
923
- };
924
- /** Optional title to describe the nature of the evidence */
925
- title?: string;
926
- /** Short description explaining what this evidence demonstrates or proves */
927
- shortDescription: string;
928
- /** Optional longer description describing the impact claim evidence. */
929
- description?: string;
930
- /** Client-declared timestamp when this hypercert claim was originally created */
931
- createdAt: string;
932
- [k: string]: unknown;
933
- }
934
- declare function isMain$3<V>(v: V): v is $TypedObject<V, "org.hypercerts.claim.evidence", "main">;
935
- declare function validateMain$3<V>(v: V): ValidationResult<Main$3 & V>;
936
-
937
- declare namespace evidence {
938
- export { isMain$3 as isMain, isMain$3 as isRecord, validateMain$3 as validateMain, validateMain$3 as validateRecord };
939
- export type { Main$3 as Main, Main$3 as Record };
940
- }
941
-
942
- interface Main$2 {
943
- $type: 'org.hypercerts.claim.measurement';
944
- hypercert: Main$7;
945
- /** DIDs of the entity (or entities) that measured this data */
946
- measurers: string[];
947
- /** The metric being measured */
948
- metric: string;
949
- /** The measured value */
950
- value: string;
951
- /** URI to methodology documentation, standard protocol, or measurement procedure */
952
- measurementMethodURI?: string;
953
- /** URIs to supporting evidence or data */
954
- evidenceURI?: string[];
955
- /** Client-declared timestamp when this record was originally created */
956
- createdAt: string;
957
- [k: string]: unknown;
958
- }
959
- declare function isMain$2<V>(v: V): v is $TypedObject<V, "org.hypercerts.claim.measurement", "main">;
960
- declare function validateMain$2<V>(v: V): ValidationResult<Main$2 & V>;
961
-
962
- declare namespace measurement {
963
- export { isMain$2 as isMain, isMain$2 as isRecord, validateMain$2 as validateMain, validateMain$2 as validateRecord };
964
- export type { Main$2 as Main, Main$2 as Record };
965
- }
966
-
967
- interface Main$1 {
968
- $type: 'org.hypercerts.claim.rights';
969
- /** Full name of the rights */
970
- rightsName: string;
971
- /** Short rights identifier for easier search */
972
- rightsType: string;
973
- /** Description of the rights of this hypercert */
974
- rightsDescription: string;
975
- /** Client-declared timestamp when this record was originally created */
976
- createdAt: string;
977
- [k: string]: unknown;
978
- }
979
- declare function isMain$1<V>(v: V): v is $TypedObject<V, "org.hypercerts.claim.rights", "main">;
980
- declare function validateMain$1<V>(v: V): ValidationResult<Main$1 & V>;
981
-
982
- declare namespace rights {
983
- export { isMain$1 as isMain, isMain$1 as isRecord, validateMain$1 as validateMain, validateMain$1 as validateRecord };
984
- export type { Main$1 as Main, Main$1 as Record };
985
- }
986
-
987
- interface Main {
988
- $type: 'org.hypercerts.collection';
989
- /** The title of this collection */
990
- title: string;
991
- /** A short description of this collection */
992
- shortDescription?: string;
993
- coverPhoto?: $Typed<Uri> | $Typed<SmallBlob> | {
994
- $type: string;
995
- };
996
- /** Array of claims with their associated weights in this collection */
997
- claims: ClaimItem[];
998
- /** Client-declared timestamp when this record was originally created */
999
- createdAt: string;
1000
- [k: string]: unknown;
1001
- }
1002
- declare function isMain<V>(v: V): v is $TypedObject<V, "org.hypercerts.collection", "main">;
1003
- declare function validateMain<V>(v: V): ValidationResult<Main & V>;
1004
-
1005
- interface ClaimItem {
1006
- $type?: 'org.hypercerts.collection#claimItem';
1007
- claim: Main$7;
1008
- /** The weight/importance of this hypercert claim in the collection (a percentage from 0-100, stored as a string to avoid float precision issues). The total claim weights should add up to 100. */
1009
- weight: string;
1010
- }
1011
- declare function isClaimItem<V>(v: V): v is $TypedObject<V, "org.hypercerts.collection", "claimItem">;
1012
- declare function validateClaimItem<V>(v: V): ValidationResult<ClaimItem & V>;
1013
-
1014
- type collection_ClaimItem = ClaimItem;
1015
- type collection_Main = Main;
1016
- declare const collection_isClaimItem: typeof isClaimItem;
1017
- declare const collection_isMain: typeof isMain;
1018
- declare const collection_validateClaimItem: typeof validateClaimItem;
1019
- declare const collection_validateMain: typeof validateMain;
1020
- declare namespace collection {
1021
- export { collection_isClaimItem as isClaimItem, collection_isMain as isMain, isMain as isRecord, collection_validateClaimItem as validateClaimItem, collection_validateMain as validateMain, validateMain as validateRecord };
1022
- export type { collection_ClaimItem as ClaimItem, collection_Main as Main, Main as Record };
1023
- }
1024
-
1025
- /**
1026
- * GENERATED CODE - DO NOT MODIFY
1027
- */
1028
-
1029
- declare const schemaDict: {
1030
- readonly AppCertifiedDefs: {
1031
- readonly lexicon: 1;
1032
- readonly id: "app.certified.defs";
1033
- readonly defs: {
1034
- readonly uri: {
1035
- readonly type: "string";
1036
- readonly format: "uri";
1037
- readonly maxGraphemes: 1000;
1038
- readonly description: "URI to external data";
1039
- };
1040
- readonly smallBlob: {
1041
- readonly type: "blob";
1042
- readonly accept: readonly ["*/*"];
1043
- readonly maxSize: 10485760;
1044
- readonly description: "Blob to external data (up to 10MB)";
1045
- };
1046
- readonly largeBlob: {
1047
- readonly type: "blob";
1048
- readonly accept: readonly ["*/*"];
1049
- readonly maxSize: 104857600;
1050
- readonly description: "Blob to external data (up to 100MB)";
1051
- };
1052
- };
1053
- };
1054
- readonly AppCertifiedLocation: {
1055
- readonly lexicon: 1;
1056
- readonly id: "app.certified.location";
1057
- readonly defs: {
1058
- readonly main: {
1059
- readonly type: "record";
1060
- readonly description: "A location reference";
1061
- readonly key: "any";
1062
- readonly record: {
1063
- readonly type: "object";
1064
- readonly required: readonly ["lpVersion", "srs", "locationType", "location", "createdAt"];
1065
- readonly properties: {
1066
- readonly lpVersion: {
1067
- readonly type: "string";
1068
- readonly description: "The version of the Location Protocol";
1069
- readonly maxLength: 10;
1070
- };
1071
- readonly srs: {
1072
- readonly type: "string";
1073
- readonly format: "uri";
1074
- readonly description: "The Spatial Reference System URI (e.g., http://www.opengis.net/def/crs/OGC/1.3/CRS84) that defines the coordinate system.";
1075
- readonly maxLength: 100;
1076
- };
1077
- readonly locationType: {
1078
- readonly type: "string";
1079
- readonly description: "An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point)";
1080
- readonly knownValues: readonly ["coordinate-decimal", "geojson-point"];
1081
- readonly maxLength: 20;
1082
- };
1083
- readonly location: {
1084
- readonly type: "union";
1085
- readonly refs: readonly ["lex:app.certified.defs#uri", "lex:app.certified.defs#smallBlob"];
1086
- readonly description: "The location of where the work was performed as a URI or blob.";
1087
- };
1088
- readonly name: {
1089
- readonly type: "string";
1090
- readonly description: "Optional name for this location";
1091
- readonly maxLength: 1000;
1092
- readonly maxGraphemes: 100;
1093
- };
1094
- readonly description: {
1095
- readonly type: "string";
1096
- readonly description: "Optional description for this location";
1097
- readonly maxLength: 2000;
1098
- readonly maxGraphemes: 500;
1099
- };
1100
- readonly createdAt: {
1101
- readonly type: "string";
1102
- readonly format: "datetime";
1103
- readonly description: "Client-declared timestamp when this record was originally created";
1104
- };
1105
- };
1106
- };
1107
- };
1108
- };
1109
- };
1110
- readonly ComAtprotoRepoStrongRef: {
1111
- readonly lexicon: 1;
1112
- readonly id: "com.atproto.repo.strongRef";
1113
- readonly description: "A URI with a content-hash fingerprint.";
1114
- readonly defs: {
1115
- readonly main: {
1116
- readonly type: "object";
1117
- readonly required: readonly ["uri", "cid"];
1118
- readonly properties: {
1119
- readonly uri: {
1120
- readonly type: "string";
1121
- readonly format: "at-uri";
1122
- };
1123
- readonly cid: {
1124
- readonly type: "string";
1125
- readonly format: "cid";
1126
- };
1127
- };
1128
- };
1129
- };
1130
- };
1131
- readonly OrgHypercertsClaim: {
1132
- readonly lexicon: 1;
1133
- readonly id: "org.hypercerts.claim";
1134
- readonly defs: {
1135
- readonly main: {
1136
- readonly type: "record";
1137
- readonly description: "A hypercert record tracking impact work.";
1138
- readonly key: "any";
1139
- readonly record: {
1140
- readonly type: "object";
1141
- readonly required: readonly ["title", "shortDescription", "createdAt", "workScope", "workTimeFrameFrom", "workTimeFrameTo"];
1142
- readonly properties: {
1143
- readonly title: {
1144
- readonly type: "string";
1145
- readonly description: "Title of the hypercert";
1146
- readonly maxLength: 256;
1147
- };
1148
- readonly shortDescription: {
1149
- readonly type: "string";
1150
- readonly description: "Short blurb of the impact work done.";
1151
- readonly maxLength: 3000;
1152
- readonly maxGraphemes: 300;
1153
- };
1154
- readonly description: {
1155
- readonly type: "string";
1156
- readonly description: "Optional longer description of the impact work done.";
1157
- readonly maxLength: 30000;
1158
- readonly maxGraphemes: 3000;
1159
- };
1160
- readonly image: {
1161
- readonly type: "union";
1162
- readonly refs: readonly ["lex:app.certified.defs#uri", "lex:app.certified.defs#smallBlob"];
1163
- readonly description: "The hypercert visual representation as a URI or blob";
1164
- };
1165
- readonly workScope: {
1166
- readonly type: "string";
1167
- readonly description: "Scope of the work performed";
1168
- readonly maxLength: 5000;
1169
- readonly maxGraphemes: 1000;
1170
- };
1171
- readonly workTimeFrameFrom: {
1172
- readonly type: "string";
1173
- readonly format: "datetime";
1174
- readonly description: "When the work began";
1175
- };
1176
- readonly workTimeFrameTo: {
1177
- readonly type: "string";
1178
- readonly format: "datetime";
1179
- readonly description: "When the work ended";
1180
- };
1181
- readonly evidence: {
1182
- readonly type: "array";
1183
- readonly description: "Supporting evidence, documentation, or external data URIs";
1184
- readonly items: {
1185
- readonly type: "ref";
1186
- readonly ref: "lex:com.atproto.repo.strongRef";
1187
- readonly description: "A strong reference to the evidence that supports this impact claim. The record referenced must conform with the org.hypercerts.claim.evidence lexicon";
1188
- };
1189
- readonly maxLength: 100;
1190
- };
1191
- readonly contributions: {
1192
- readonly type: "array";
1193
- readonly 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.contributions";
1194
- readonly items: {
1195
- readonly type: "ref";
1196
- readonly ref: "lex:com.atproto.repo.strongRef";
1197
- };
1198
- };
1199
- readonly rights: {
1200
- readonly type: "ref";
1201
- readonly ref: "lex:com.atproto.repo.strongRef";
1202
- readonly description: "A strong reference to the rights that this hypercert has. The record referenced must conform with the lexicon org.hypercerts.claim.rights";
1203
- };
1204
- readonly location: {
1205
- readonly type: "ref";
1206
- readonly ref: "lex:com.atproto.repo.strongRef";
1207
- readonly description: "A strong reference to the location where the work for done hypercert was located. The record referenced must conform with the lexicon org.hypercerts.claim.location";
1208
- };
1209
- readonly createdAt: {
1210
- readonly type: "string";
1211
- readonly format: "datetime";
1212
- readonly description: "Client-declared timestamp when this record was originally created";
1213
- };
1214
- };
1215
- };
1216
- };
1217
- };
1218
- };
1219
- readonly OrgHypercertsClaimContribution: {
1220
- readonly lexicon: 1;
1221
- readonly id: "org.hypercerts.claim.contribution";
1222
- readonly defs: {
1223
- readonly main: {
1224
- readonly type: "record";
1225
- readonly description: "A contribution made toward a hypercert's impact.";
1226
- readonly key: "any";
1227
- readonly record: {
1228
- readonly type: "object";
1229
- readonly required: readonly ["hypercert", "contributors", "createdAt"];
1230
- readonly properties: {
1231
- readonly hypercert: {
1232
- readonly type: "ref";
1233
- readonly ref: "lex:com.atproto.repo.strongRef";
1234
- readonly description: "A strong reference to the hypercert this contribution is for. The record referenced must conform with the lexicon org.hypercerts.claim.";
1235
- };
1236
- readonly role: {
1237
- readonly type: "string";
1238
- readonly description: "Role or title of the contributor(s).";
1239
- readonly maxLength: 100;
1240
- };
1241
- readonly contributors: {
1242
- readonly type: "array";
1243
- readonly 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.";
1244
- readonly items: {
1245
- readonly type: "string";
1246
- };
1247
- };
1248
- readonly description: {
1249
- readonly type: "string";
1250
- readonly description: "What the contribution concretely achieved";
1251
- readonly maxLength: 2000;
1252
- readonly maxGraphemes: 500;
1253
- };
1254
- readonly workTimeframeFrom: {
1255
- readonly type: "string";
1256
- readonly format: "datetime";
1257
- readonly description: "When this contribution started. This should be a subset of the hypercert timeframe.";
1258
- };
1259
- readonly workTimeframeTo: {
1260
- readonly type: "string";
1261
- readonly format: "datetime";
1262
- readonly description: "When this contribution finished. This should be a subset of the hypercert timeframe.";
1263
- };
1264
- readonly createdAt: {
1265
- readonly type: "string";
1266
- readonly format: "datetime";
1267
- readonly description: "Client-declared timestamp when this record was originally created";
1268
- };
1269
- };
1270
- };
1271
- };
1272
- };
1273
- };
1274
- readonly OrgHypercertsClaimEvaluation: {
1275
- readonly lexicon: 1;
1276
- readonly id: "org.hypercerts.claim.evaluation";
1277
- readonly defs: {
1278
- readonly main: {
1279
- readonly type: "record";
1280
- readonly description: "An evaluation of a hypercert or other claim";
1281
- readonly key: "tid";
1282
- readonly record: {
1283
- readonly type: "object";
1284
- readonly required: readonly ["subject", "evaluators", "summary", "createdAt"];
1285
- readonly properties: {
1286
- readonly subject: {
1287
- readonly type: "ref";
1288
- readonly ref: "lex:com.atproto.repo.strongRef";
1289
- readonly description: "A strong reference to the evaluated claim. (e.g measurement, hypercert, contribution, etc)";
1290
- };
1291
- readonly evaluators: {
1292
- readonly type: "array";
1293
- readonly description: "DIDs of the evaluators";
1294
- readonly items: {
1295
- readonly type: "string";
1296
- readonly format: "did";
1297
- };
1298
- readonly maxLength: 100;
1299
- };
1300
- readonly evaluations: {
1301
- readonly type: "array";
1302
- readonly description: "Evaluation data (URIs or blobs) containing detailed reports or methodology";
1303
- readonly items: {
1304
- readonly type: "union";
1305
- readonly refs: readonly ["lex:app.certified.defs#uri", "lex:app.certified.defs#smallBlob"];
1306
- };
1307
- readonly maxLength: 100;
1308
- };
1309
- readonly summary: {
1310
- readonly type: "string";
1311
- readonly description: "Brief evaluation summary";
1312
- readonly maxLength: 5000;
1313
- readonly maxGraphemes: 1000;
1314
- };
1315
- readonly createdAt: {
1316
- readonly type: "string";
1317
- readonly format: "datetime";
1318
- readonly description: "Client-declared timestamp when this record was originally created";
1319
- };
1320
- };
1321
- };
1322
- };
1323
- };
1324
- };
1325
- readonly OrgHypercertsClaimEvidence: {
1326
- readonly lexicon: 1;
1327
- readonly id: "org.hypercerts.claim.evidence";
1328
- readonly defs: {
1329
- readonly main: {
1330
- readonly type: "record";
1331
- readonly description: "A piece of evidence supporting a hypercert claim";
1332
- readonly key: "any";
1333
- readonly record: {
1334
- readonly type: "object";
1335
- readonly required: readonly ["content", "shortDescription", "createdAt"];
1336
- readonly properties: {
1337
- readonly content: {
1338
- readonly type: "union";
1339
- readonly refs: readonly ["lex:app.certified.defs#uri", "lex:app.certified.defs#smallBlob"];
1340
- readonly description: "A piece of evidence (URI or blobs) supporting a hypercert claim";
1341
- };
1342
- readonly title: {
1343
- readonly type: "string";
1344
- readonly maxLength: 256;
1345
- readonly description: "Optional title to describe the nature of the evidence";
1346
- };
1347
- readonly shortDescription: {
1348
- readonly type: "string";
1349
- readonly maxLength: 3000;
1350
- readonly maxGraphemes: 300;
1351
- readonly description: "Short description explaining what this evidence demonstrates or proves";
1352
- };
1353
- readonly description: {
1354
- readonly type: "string";
1355
- readonly description: "Optional longer description describing the impact claim evidence.";
1356
- readonly maxLength: 30000;
1357
- readonly maxGraphemes: 3000;
1358
- };
1359
- readonly createdAt: {
1360
- readonly type: "string";
1361
- readonly format: "datetime";
1362
- readonly description: "Client-declared timestamp when this hypercert claim was originally created";
1363
- };
1364
- };
1365
- };
1366
- };
1367
- };
1368
- };
1369
- readonly OrgHypercertsClaimMeasurement: {
1370
- readonly lexicon: 1;
1371
- readonly id: "org.hypercerts.claim.measurement";
1372
- readonly defs: {
1373
- readonly main: {
1374
- readonly type: "record";
1375
- readonly description: "External measurement data supporting a hypercert claim";
1376
- readonly key: "tid";
1377
- readonly record: {
1378
- readonly type: "object";
1379
- readonly required: readonly ["hypercert", "measurers", "metric", "value", "createdAt"];
1380
- readonly properties: {
1381
- readonly hypercert: {
1382
- readonly type: "ref";
1383
- readonly ref: "lex:com.atproto.repo.strongRef";
1384
- readonly description: "A strong reference to the hypercert that this measurement is for. The record referenced must conform with the lexicon org.hypercerts.claim.";
1385
- };
1386
- readonly measurers: {
1387
- readonly type: "array";
1388
- readonly description: "DIDs of the entity (or entities) that measured this data";
1389
- readonly items: {
1390
- readonly type: "string";
1391
- readonly format: "did";
1392
- };
1393
- readonly maxLength: 100;
1394
- };
1395
- readonly metric: {
1396
- readonly type: "string";
1397
- readonly description: "The metric being measured";
1398
- readonly maxLength: 500;
1399
- };
1400
- readonly value: {
1401
- readonly type: "string";
1402
- readonly description: "The measured value";
1403
- readonly maxLength: 500;
1404
- };
1405
- readonly measurementMethodURI: {
1406
- readonly type: "string";
1407
- readonly format: "uri";
1408
- readonly description: "URI to methodology documentation, standard protocol, or measurement procedure";
1409
- };
1410
- readonly evidenceURI: {
1411
- readonly type: "array";
1412
- readonly description: "URIs to supporting evidence or data";
1413
- readonly items: {
1414
- readonly type: "string";
1415
- readonly format: "uri";
1416
- };
1417
- readonly maxLength: 50;
1418
- };
1419
- readonly createdAt: {
1420
- readonly type: "string";
1421
- readonly format: "datetime";
1422
- readonly description: "Client-declared timestamp when this record was originally created";
1423
- };
1424
- };
1425
- };
1426
- };
1427
- };
1428
- };
1429
- readonly OrgHypercertsClaimRights: {
1430
- readonly lexicon: 1;
1431
- readonly id: "org.hypercerts.claim.rights";
1432
- readonly defs: {
1433
- readonly main: {
1434
- readonly type: "record";
1435
- readonly description: "Describes the rights that a user has with a hypercert, such as whether it can be sold, transferred, and under what conditions.";
1436
- readonly key: "any";
1437
- readonly record: {
1438
- readonly type: "object";
1439
- readonly required: readonly ["rightsName", "rightsType", "rightsDescription", "createdAt"];
1440
- readonly properties: {
1441
- readonly rightsName: {
1442
- readonly type: "string";
1443
- readonly description: "Full name of the rights";
1444
- readonly maxLength: 100;
1445
- };
1446
- readonly rightsType: {
1447
- readonly type: "string";
1448
- readonly description: "Short rights identifier for easier search";
1449
- readonly maxLength: 10;
1450
- };
1451
- readonly rightsDescription: {
1452
- readonly type: "string";
1453
- readonly description: "Description of the rights of this hypercert";
1454
- };
1455
- readonly createdAt: {
1456
- readonly type: "string";
1457
- readonly format: "datetime";
1458
- readonly description: "Client-declared timestamp when this record was originally created";
1459
- };
1460
- };
1461
- };
1462
- };
1463
- };
1464
- };
1465
- readonly OrgHypercertsCollection: {
1466
- readonly lexicon: 1;
1467
- readonly id: "org.hypercerts.collection";
1468
- readonly defs: {
1469
- readonly main: {
1470
- readonly type: "record";
1471
- readonly description: "A collection/group of hypercerts that have a specific property.";
1472
- readonly key: "tid";
1473
- readonly record: {
1474
- readonly type: "object";
1475
- readonly required: readonly ["title", "claims", "createdAt"];
1476
- readonly properties: {
1477
- readonly title: {
1478
- readonly type: "string";
1479
- readonly description: "The title of this collection";
1480
- readonly maxLength: 800;
1481
- readonly maxGraphemes: 80;
1482
- };
1483
- readonly shortDescription: {
1484
- readonly type: "string";
1485
- readonly maxLength: 3000;
1486
- readonly maxGraphemes: 300;
1487
- readonly description: "A short description of this collection";
1488
- };
1489
- readonly coverPhoto: {
1490
- readonly type: "union";
1491
- readonly refs: readonly ["lex:app.certified.defs#uri", "lex:app.certified.defs#smallBlob"];
1492
- readonly description: "The cover photo of this collection (either in URI format or in a blob).";
1493
- };
1494
- readonly claims: {
1495
- readonly type: "array";
1496
- readonly description: "Array of claims with their associated weights in this collection";
1497
- readonly items: {
1498
- readonly type: "ref";
1499
- readonly ref: "lex:org.hypercerts.collection#claimItem";
1500
- };
1501
- };
1502
- readonly createdAt: {
1503
- readonly type: "string";
1504
- readonly format: "datetime";
1505
- readonly description: "Client-declared timestamp when this record was originally created";
1506
- };
1507
- };
1508
- };
1509
- };
1510
- readonly claimItem: {
1511
- readonly type: "object";
1512
- readonly required: readonly ["claim", "weight"];
1513
- readonly properties: {
1514
- readonly claim: {
1515
- readonly type: "ref";
1516
- readonly ref: "lex:com.atproto.repo.strongRef";
1517
- readonly description: "A strong reference to a hypercert claim record. This claim must conform to the lexicon org.hypercerts.claim.record";
1518
- };
1519
- readonly weight: {
1520
- readonly type: "string";
1521
- readonly description: "The weight/importance of this hypercert claim in the collection (a percentage from 0-100, stored as a string to avoid float precision issues). The total claim weights should add up to 100.";
1522
- };
1523
- };
1524
- };
1525
- };
1526
- };
1527
- };
1528
- declare const schemas: ({
1529
- readonly lexicon: 1;
1530
- readonly id: "app.certified.defs";
1531
- readonly defs: {
1532
- readonly uri: {
1533
- readonly type: "string";
1534
- readonly format: "uri";
1535
- readonly maxGraphemes: 1000;
1536
- readonly description: "URI to external data";
1537
- };
1538
- readonly smallBlob: {
1539
- readonly type: "blob";
1540
- readonly accept: readonly ["*/*"];
1541
- readonly maxSize: 10485760;
1542
- readonly description: "Blob to external data (up to 10MB)";
1543
- };
1544
- readonly largeBlob: {
1545
- readonly type: "blob";
1546
- readonly accept: readonly ["*/*"];
1547
- readonly maxSize: 104857600;
1548
- readonly description: "Blob to external data (up to 100MB)";
1549
- };
1550
- };
1551
- } | {
1552
- readonly lexicon: 1;
1553
- readonly id: "app.certified.location";
1554
- readonly defs: {
1555
- readonly main: {
1556
- readonly type: "record";
1557
- readonly description: "A location reference";
1558
- readonly key: "any";
1559
- readonly record: {
1560
- readonly type: "object";
1561
- readonly required: readonly ["lpVersion", "srs", "locationType", "location", "createdAt"];
1562
- readonly properties: {
1563
- readonly lpVersion: {
1564
- readonly type: "string";
1565
- readonly description: "The version of the Location Protocol";
1566
- readonly maxLength: 10;
1567
- };
1568
- readonly srs: {
1569
- readonly type: "string";
1570
- readonly format: "uri";
1571
- readonly description: "The Spatial Reference System URI (e.g., http://www.opengis.net/def/crs/OGC/1.3/CRS84) that defines the coordinate system.";
1572
- readonly maxLength: 100;
1573
- };
1574
- readonly locationType: {
1575
- readonly type: "string";
1576
- readonly description: "An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point)";
1577
- readonly knownValues: readonly ["coordinate-decimal", "geojson-point"];
1578
- readonly maxLength: 20;
1579
- };
1580
- readonly location: {
1581
- readonly type: "union";
1582
- readonly refs: readonly ["lex:app.certified.defs#uri", "lex:app.certified.defs#smallBlob"];
1583
- readonly description: "The location of where the work was performed as a URI or blob.";
1584
- };
1585
- readonly name: {
1586
- readonly type: "string";
1587
- readonly description: "Optional name for this location";
1588
- readonly maxLength: 1000;
1589
- readonly maxGraphemes: 100;
1590
- };
1591
- readonly description: {
1592
- readonly type: "string";
1593
- readonly description: "Optional description for this location";
1594
- readonly maxLength: 2000;
1595
- readonly maxGraphemes: 500;
1596
- };
1597
- readonly createdAt: {
1598
- readonly type: "string";
1599
- readonly format: "datetime";
1600
- readonly description: "Client-declared timestamp when this record was originally created";
1601
- };
1602
- };
1603
- };
1604
- };
1605
- };
1606
- } | {
1607
- readonly lexicon: 1;
1608
- readonly id: "com.atproto.repo.strongRef";
1609
- readonly description: "A URI with a content-hash fingerprint.";
1610
- readonly defs: {
1611
- readonly main: {
1612
- readonly type: "object";
1613
- readonly required: readonly ["uri", "cid"];
1614
- readonly properties: {
1615
- readonly uri: {
1616
- readonly type: "string";
1617
- readonly format: "at-uri";
1618
- };
1619
- readonly cid: {
1620
- readonly type: "string";
1621
- readonly format: "cid";
1622
- };
1623
- };
1624
- };
1625
- };
1626
- } | {
1627
- readonly lexicon: 1;
1628
- readonly id: "org.hypercerts.claim";
1629
- readonly defs: {
1630
- readonly main: {
1631
- readonly type: "record";
1632
- readonly description: "A hypercert record tracking impact work.";
1633
- readonly key: "any";
1634
- readonly record: {
1635
- readonly type: "object";
1636
- readonly required: readonly ["title", "shortDescription", "createdAt", "workScope", "workTimeFrameFrom", "workTimeFrameTo"];
1637
- readonly properties: {
1638
- readonly title: {
1639
- readonly type: "string";
1640
- readonly description: "Title of the hypercert";
1641
- readonly maxLength: 256;
1642
- };
1643
- readonly shortDescription: {
1644
- readonly type: "string";
1645
- readonly description: "Short blurb of the impact work done.";
1646
- readonly maxLength: 3000;
1647
- readonly maxGraphemes: 300;
1648
- };
1649
- readonly description: {
1650
- readonly type: "string";
1651
- readonly description: "Optional longer description of the impact work done.";
1652
- readonly maxLength: 30000;
1653
- readonly maxGraphemes: 3000;
1654
- };
1655
- readonly image: {
1656
- readonly type: "union";
1657
- readonly refs: readonly ["lex:app.certified.defs#uri", "lex:app.certified.defs#smallBlob"];
1658
- readonly description: "The hypercert visual representation as a URI or blob";
1659
- };
1660
- readonly workScope: {
1661
- readonly type: "string";
1662
- readonly description: "Scope of the work performed";
1663
- readonly maxLength: 5000;
1664
- readonly maxGraphemes: 1000;
1665
- };
1666
- readonly workTimeFrameFrom: {
1667
- readonly type: "string";
1668
- readonly format: "datetime";
1669
- readonly description: "When the work began";
1670
- };
1671
- readonly workTimeFrameTo: {
1672
- readonly type: "string";
1673
- readonly format: "datetime";
1674
- readonly description: "When the work ended";
1675
- };
1676
- readonly evidence: {
1677
- readonly type: "array";
1678
- readonly description: "Supporting evidence, documentation, or external data URIs";
1679
- readonly items: {
1680
- readonly type: "ref";
1681
- readonly ref: "lex:com.atproto.repo.strongRef";
1682
- readonly description: "A strong reference to the evidence that supports this impact claim. The record referenced must conform with the org.hypercerts.claim.evidence lexicon";
1683
- };
1684
- readonly maxLength: 100;
1685
- };
1686
- readonly contributions: {
1687
- readonly type: "array";
1688
- readonly 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.contributions";
1689
- readonly items: {
1690
- readonly type: "ref";
1691
- readonly ref: "lex:com.atproto.repo.strongRef";
1692
- };
1693
- };
1694
- readonly rights: {
1695
- readonly type: "ref";
1696
- readonly ref: "lex:com.atproto.repo.strongRef";
1697
- readonly description: "A strong reference to the rights that this hypercert has. The record referenced must conform with the lexicon org.hypercerts.claim.rights";
1698
- };
1699
- readonly location: {
1700
- readonly type: "ref";
1701
- readonly ref: "lex:com.atproto.repo.strongRef";
1702
- readonly description: "A strong reference to the location where the work for done hypercert was located. The record referenced must conform with the lexicon org.hypercerts.claim.location";
1703
- };
1704
- readonly createdAt: {
1705
- readonly type: "string";
1706
- readonly format: "datetime";
1707
- readonly description: "Client-declared timestamp when this record was originally created";
1708
- };
1709
- };
1710
- };
1711
- };
1712
- };
1713
- } | {
1714
- readonly lexicon: 1;
1715
- readonly id: "org.hypercerts.claim.contribution";
1716
- readonly defs: {
1717
- readonly main: {
1718
- readonly type: "record";
1719
- readonly description: "A contribution made toward a hypercert's impact.";
1720
- readonly key: "any";
1721
- readonly record: {
1722
- readonly type: "object";
1723
- readonly required: readonly ["hypercert", "contributors", "createdAt"];
1724
- readonly properties: {
1725
- readonly hypercert: {
1726
- readonly type: "ref";
1727
- readonly ref: "lex:com.atproto.repo.strongRef";
1728
- readonly description: "A strong reference to the hypercert this contribution is for. The record referenced must conform with the lexicon org.hypercerts.claim.";
1729
- };
1730
- readonly role: {
1731
- readonly type: "string";
1732
- readonly description: "Role or title of the contributor(s).";
1733
- readonly maxLength: 100;
1734
- };
1735
- readonly contributors: {
1736
- readonly type: "array";
1737
- readonly 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.";
1738
- readonly items: {
1739
- readonly type: "string";
1740
- };
1741
- };
1742
- readonly description: {
1743
- readonly type: "string";
1744
- readonly description: "What the contribution concretely achieved";
1745
- readonly maxLength: 2000;
1746
- readonly maxGraphemes: 500;
1747
- };
1748
- readonly workTimeframeFrom: {
1749
- readonly type: "string";
1750
- readonly format: "datetime";
1751
- readonly description: "When this contribution started. This should be a subset of the hypercert timeframe.";
1752
- };
1753
- readonly workTimeframeTo: {
1754
- readonly type: "string";
1755
- readonly format: "datetime";
1756
- readonly description: "When this contribution finished. This should be a subset of the hypercert timeframe.";
1757
- };
1758
- readonly createdAt: {
1759
- readonly type: "string";
1760
- readonly format: "datetime";
1761
- readonly description: "Client-declared timestamp when this record was originally created";
1762
- };
1763
- };
1764
- };
1765
- };
1766
- };
1767
- } | {
1768
- readonly lexicon: 1;
1769
- readonly id: "org.hypercerts.claim.evaluation";
1770
- readonly defs: {
1771
- readonly main: {
1772
- readonly type: "record";
1773
- readonly description: "An evaluation of a hypercert or other claim";
1774
- readonly key: "tid";
1775
- readonly record: {
1776
- readonly type: "object";
1777
- readonly required: readonly ["subject", "evaluators", "summary", "createdAt"];
1778
- readonly properties: {
1779
- readonly subject: {
1780
- readonly type: "ref";
1781
- readonly ref: "lex:com.atproto.repo.strongRef";
1782
- readonly description: "A strong reference to the evaluated claim. (e.g measurement, hypercert, contribution, etc)";
1783
- };
1784
- readonly evaluators: {
1785
- readonly type: "array";
1786
- readonly description: "DIDs of the evaluators";
1787
- readonly items: {
1788
- readonly type: "string";
1789
- readonly format: "did";
1790
- };
1791
- readonly maxLength: 100;
1792
- };
1793
- readonly evaluations: {
1794
- readonly type: "array";
1795
- readonly description: "Evaluation data (URIs or blobs) containing detailed reports or methodology";
1796
- readonly items: {
1797
- readonly type: "union";
1798
- readonly refs: readonly ["lex:app.certified.defs#uri", "lex:app.certified.defs#smallBlob"];
1799
- };
1800
- readonly maxLength: 100;
1801
- };
1802
- readonly summary: {
1803
- readonly type: "string";
1804
- readonly description: "Brief evaluation summary";
1805
- readonly maxLength: 5000;
1806
- readonly maxGraphemes: 1000;
1807
- };
1808
- readonly createdAt: {
1809
- readonly type: "string";
1810
- readonly format: "datetime";
1811
- readonly description: "Client-declared timestamp when this record was originally created";
1812
- };
1813
- };
1814
- };
1815
- };
1816
- };
1817
- } | {
1818
- readonly lexicon: 1;
1819
- readonly id: "org.hypercerts.claim.evidence";
1820
- readonly defs: {
1821
- readonly main: {
1822
- readonly type: "record";
1823
- readonly description: "A piece of evidence supporting a hypercert claim";
1824
- readonly key: "any";
1825
- readonly record: {
1826
- readonly type: "object";
1827
- readonly required: readonly ["content", "shortDescription", "createdAt"];
1828
- readonly properties: {
1829
- readonly content: {
1830
- readonly type: "union";
1831
- readonly refs: readonly ["lex:app.certified.defs#uri", "lex:app.certified.defs#smallBlob"];
1832
- readonly description: "A piece of evidence (URI or blobs) supporting a hypercert claim";
1833
- };
1834
- readonly title: {
1835
- readonly type: "string";
1836
- readonly maxLength: 256;
1837
- readonly description: "Optional title to describe the nature of the evidence";
1838
- };
1839
- readonly shortDescription: {
1840
- readonly type: "string";
1841
- readonly maxLength: 3000;
1842
- readonly maxGraphemes: 300;
1843
- readonly description: "Short description explaining what this evidence demonstrates or proves";
1844
- };
1845
- readonly description: {
1846
- readonly type: "string";
1847
- readonly description: "Optional longer description describing the impact claim evidence.";
1848
- readonly maxLength: 30000;
1849
- readonly maxGraphemes: 3000;
1850
- };
1851
- readonly createdAt: {
1852
- readonly type: "string";
1853
- readonly format: "datetime";
1854
- readonly description: "Client-declared timestamp when this hypercert claim was originally created";
1855
- };
1856
- };
1857
- };
1858
- };
1859
- };
1860
- } | {
1861
- readonly lexicon: 1;
1862
- readonly id: "org.hypercerts.claim.measurement";
1863
- readonly defs: {
1864
- readonly main: {
1865
- readonly type: "record";
1866
- readonly description: "External measurement data supporting a hypercert claim";
1867
- readonly key: "tid";
1868
- readonly record: {
1869
- readonly type: "object";
1870
- readonly required: readonly ["hypercert", "measurers", "metric", "value", "createdAt"];
1871
- readonly properties: {
1872
- readonly hypercert: {
1873
- readonly type: "ref";
1874
- readonly ref: "lex:com.atproto.repo.strongRef";
1875
- readonly description: "A strong reference to the hypercert that this measurement is for. The record referenced must conform with the lexicon org.hypercerts.claim.";
1876
- };
1877
- readonly measurers: {
1878
- readonly type: "array";
1879
- readonly description: "DIDs of the entity (or entities) that measured this data";
1880
- readonly items: {
1881
- readonly type: "string";
1882
- readonly format: "did";
1883
- };
1884
- readonly maxLength: 100;
1885
- };
1886
- readonly metric: {
1887
- readonly type: "string";
1888
- readonly description: "The metric being measured";
1889
- readonly maxLength: 500;
1890
- };
1891
- readonly value: {
1892
- readonly type: "string";
1893
- readonly description: "The measured value";
1894
- readonly maxLength: 500;
1895
- };
1896
- readonly measurementMethodURI: {
1897
- readonly type: "string";
1898
- readonly format: "uri";
1899
- readonly description: "URI to methodology documentation, standard protocol, or measurement procedure";
1900
- };
1901
- readonly evidenceURI: {
1902
- readonly type: "array";
1903
- readonly description: "URIs to supporting evidence or data";
1904
- readonly items: {
1905
- readonly type: "string";
1906
- readonly format: "uri";
1907
- };
1908
- readonly maxLength: 50;
1909
- };
1910
- readonly createdAt: {
1911
- readonly type: "string";
1912
- readonly format: "datetime";
1913
- readonly description: "Client-declared timestamp when this record was originally created";
1914
- };
1915
- };
1916
- };
1917
- };
1918
- };
1919
- } | {
1920
- readonly lexicon: 1;
1921
- readonly id: "org.hypercerts.claim.rights";
1922
- readonly defs: {
1923
- readonly main: {
1924
- readonly type: "record";
1925
- readonly description: "Describes the rights that a user has with a hypercert, such as whether it can be sold, transferred, and under what conditions.";
1926
- readonly key: "any";
1927
- readonly record: {
1928
- readonly type: "object";
1929
- readonly required: readonly ["rightsName", "rightsType", "rightsDescription", "createdAt"];
1930
- readonly properties: {
1931
- readonly rightsName: {
1932
- readonly type: "string";
1933
- readonly description: "Full name of the rights";
1934
- readonly maxLength: 100;
1935
- };
1936
- readonly rightsType: {
1937
- readonly type: "string";
1938
- readonly description: "Short rights identifier for easier search";
1939
- readonly maxLength: 10;
1940
- };
1941
- readonly rightsDescription: {
1942
- readonly type: "string";
1943
- readonly description: "Description of the rights of this hypercert";
1944
- };
1945
- readonly createdAt: {
1946
- readonly type: "string";
1947
- readonly format: "datetime";
1948
- readonly description: "Client-declared timestamp when this record was originally created";
1949
- };
1950
- };
1951
- };
1952
- };
1953
- };
1954
- } | {
1955
- readonly lexicon: 1;
1956
- readonly id: "org.hypercerts.collection";
1957
- readonly defs: {
1958
- readonly main: {
1959
- readonly type: "record";
1960
- readonly description: "A collection/group of hypercerts that have a specific property.";
1961
- readonly key: "tid";
1962
- readonly record: {
1963
- readonly type: "object";
1964
- readonly required: readonly ["title", "claims", "createdAt"];
1965
- readonly properties: {
1966
- readonly title: {
1967
- readonly type: "string";
1968
- readonly description: "The title of this collection";
1969
- readonly maxLength: 800;
1970
- readonly maxGraphemes: 80;
1971
- };
1972
- readonly shortDescription: {
1973
- readonly type: "string";
1974
- readonly maxLength: 3000;
1975
- readonly maxGraphemes: 300;
1976
- readonly description: "A short description of this collection";
1977
- };
1978
- readonly coverPhoto: {
1979
- readonly type: "union";
1980
- readonly refs: readonly ["lex:app.certified.defs#uri", "lex:app.certified.defs#smallBlob"];
1981
- readonly description: "The cover photo of this collection (either in URI format or in a blob).";
1982
- };
1983
- readonly claims: {
1984
- readonly type: "array";
1985
- readonly description: "Array of claims with their associated weights in this collection";
1986
- readonly items: {
1987
- readonly type: "ref";
1988
- readonly ref: "lex:org.hypercerts.collection#claimItem";
1989
- };
1990
- };
1991
- readonly createdAt: {
1992
- readonly type: "string";
1993
- readonly format: "datetime";
1994
- readonly description: "Client-declared timestamp when this record was originally created";
1995
- };
1996
- };
1997
- };
1998
- };
1999
- readonly claimItem: {
2000
- readonly type: "object";
2001
- readonly required: readonly ["claim", "weight"];
2002
- readonly properties: {
2003
- readonly claim: {
2004
- readonly type: "ref";
2005
- readonly ref: "lex:com.atproto.repo.strongRef";
2006
- readonly description: "A strong reference to a hypercert claim record. This claim must conform to the lexicon org.hypercerts.claim.record";
2007
- };
2008
- readonly weight: {
2009
- readonly type: "string";
2010
- readonly description: "The weight/importance of this hypercert claim in the collection (a percentage from 0-100, stored as a string to avoid float precision issues). The total claim weights should add up to 100.";
2011
- };
2012
- };
2013
- };
2014
- };
2015
- })[];
2016
- declare const lexicons: Lexicons;
2017
- declare function validate<T extends {
2018
- $type: string;
2019
- }>(v: unknown, id: string, hash: string, requiredType: true): ValidationResult<T>;
2020
- declare function validate<T extends {
2021
- $type?: string;
2022
- }>(v: unknown, id: string, hash: string, requiredType?: false): ValidationResult<T>;
2023
- declare const ids: {
2024
- readonly AppCertifiedDefs: "app.certified.defs";
2025
- readonly AppCertifiedLocation: "app.certified.location";
2026
- readonly ComAtprotoRepoStrongRef: "com.atproto.repo.strongRef";
2027
- readonly OrgHypercertsClaim: "org.hypercerts.claim";
2028
- readonly OrgHypercertsClaimContribution: "org.hypercerts.claim.contribution";
2029
- readonly OrgHypercertsClaimEvaluation: "org.hypercerts.claim.evaluation";
2030
- readonly OrgHypercertsClaimEvidence: "org.hypercerts.claim.evidence";
2031
- readonly OrgHypercertsClaimMeasurement: "org.hypercerts.claim.measurement";
2032
- readonly OrgHypercertsClaimRights: "org.hypercerts.claim.rights";
2033
- readonly OrgHypercertsCollection: "org.hypercerts.collection";
2034
- };
2035
-
2036
- /**
2037
- * Hypercert lexicon definitions for AT Protocol.
2038
- *
2039
- * This module exports the lexicon documents, collection names,
2040
- * and generated TypeScript types for all hypercert-related record types.
2041
- *
2042
- * @packageDocumentation
2043
- */
2044
-
2045
- /**
2046
- * All hypercert-related lexicons for registration with AT Protocol Agent.
2047
- *
2048
- * This array contains all lexicon documents needed to work with
2049
- * hypercert records.
2050
- */
2051
- declare const HYPERCERT_LEXICONS: LexiconDoc[];
2052
- /**
2053
- * Collection NSIDs (Namespaced Identifiers) for hypercert records.
2054
- *
2055
- * Use these constants when performing record operations to ensure
2056
- * correct collection names.
2057
- */
2058
- declare const HYPERCERT_COLLECTIONS: {
2059
- /**
2060
- * Main hypercert claim record collection.
2061
- */
2062
- readonly CLAIM: "org.hypercerts.claim";
2063
- /**
2064
- * Rights record collection.
2065
- */
2066
- readonly RIGHTS: "org.hypercerts.claim.rights";
2067
- /**
2068
- * Location record collection (shared certified lexicon).
2069
- */
2070
- readonly LOCATION: "app.certified.location";
2071
- /**
2072
- * Contribution record collection.
2073
- */
2074
- readonly CONTRIBUTION: "org.hypercerts.claim.contribution";
2075
- /**
2076
- * Measurement record collection.
2077
- */
2078
- readonly MEASUREMENT: "org.hypercerts.claim.measurement";
2079
- /**
2080
- * Evaluation record collection.
2081
- */
2082
- readonly EVALUATION: "org.hypercerts.claim.evaluation";
2083
- /**
2084
- * Evidence record collection.
2085
- */
2086
- readonly EVIDENCE: "org.hypercerts.claim.evidence";
2087
- /**
2088
- * Collection record collection (groups of hypercerts).
2089
- */
2090
- readonly COLLECTION: "org.hypercerts.collection";
2091
- };
2092
-
2093
- export { defs as AppCertifiedDefs, location as AppCertifiedLocation, strongRef as ComAtprotoRepoStrongRef, HYPERCERT_COLLECTIONS, HYPERCERT_LEXICONS, claim as OrgHypercertsClaim, contribution as OrgHypercertsClaimContribution, evaluation as OrgHypercertsClaimEvaluation, evidence as OrgHypercertsClaimEvidence, measurement as OrgHypercertsClaimMeasurement, rights as OrgHypercertsClaimRights, collection as OrgHypercertsCollection, asPredicate, export_default$7 as claimLexicon, export_default as collectionLexicon, export_default$6 as contributionLexicon, export_default$9 as defsLexicon, export_default$5 as evaluationLexicon, export_default$4 as evidenceLexicon, ids, is$typed, lexicons, export_default$8 as locationLexicon, maybe$typed, export_default$3 as measurementLexicon, export_default$2 as rightsLexicon, schemaDict, schemas, export_default$1 as strongRefLexicon, validate };
2094
- export type { $Type, $Typed, $TypedObject, OmitKey, Un$Typed, Validator, ValidatorParam };