@hypercerts-org/lexicon 0.10.0-beta.5 → 0.10.0-beta.7
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/CHANGELOG.md +75 -0
- package/README.md +46 -0
- package/SCHEMAS.md +104 -90
- package/dist/exports.d.ts +109 -26
- package/dist/exports.d.ts.map +1 -1
- package/dist/generated/exports.d.ts +109 -26
- package/dist/generated/exports.d.ts.map +1 -1
- package/dist/generated/lexicons.d.ts +226 -70
- package/dist/generated/lexicons.d.ts.map +1 -1
- package/dist/generated/types/app/bsky/richtext/facet.d.ts +8 -0
- package/dist/generated/types/app/bsky/richtext/facet.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts +25 -11
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/claim/collection.d.ts +18 -2
- package/dist/generated/types/org/hypercerts/claim/collection.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/claim/contributionDetails.d.ts +22 -0
- package/dist/generated/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/{contributor.d.ts → contributorInformation.d.ts} +3 -11
- package/dist/generated/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
- package/dist/index.cjs +427 -203
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +415 -195
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons.cjs +130 -39
- package/dist/lexicons.cjs.map +1 -1
- package/dist/lexicons.d.ts +226 -70
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/lexicons.mjs +130 -39
- package/dist/lexicons.mjs.map +1 -1
- package/dist/types/app/bsky/richtext/facet.d.ts +8 -0
- package/dist/types/app/bsky/richtext/facet.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/activity.d.ts +25 -11
- package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/dist/types/org/hypercerts/claim/collection.d.ts +18 -2
- package/dist/types/org/hypercerts/claim/collection.d.ts.map +1 -1
- package/dist/types/org/hypercerts/claim/contributionDetails.d.ts +22 -0
- package/dist/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/{contributor.d.ts → contributorInformation.d.ts} +3 -11
- package/dist/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
- package/lexicons/org/hypercerts/claim/activity.json +44 -13
- package/lexicons/org/hypercerts/claim/collection.json +33 -2
- package/lexicons/org/hypercerts/claim/{contributor.json → contributionDetails.json} +5 -22
- package/lexicons/org/hypercerts/claim/contributorInformation.json +39 -0
- package/package.json +5 -2
- package/dist/generated/types/org/hypercerts/claim/contributor.d.ts.map +0 -1
- package/dist/types/org/hypercerts/claim/contributor.d.ts.map +0 -1
|
@@ -231,16 +231,32 @@ export declare const schemaDict: {
|
|
|
231
231
|
};
|
|
232
232
|
readonly shortDescription: {
|
|
233
233
|
readonly type: "string";
|
|
234
|
-
readonly description: "Short
|
|
234
|
+
readonly description: "Short summary of this activity claim, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`.";
|
|
235
235
|
readonly maxLength: 3000;
|
|
236
236
|
readonly maxGraphemes: 300;
|
|
237
237
|
};
|
|
238
|
+
readonly shortDescriptionFacets: {
|
|
239
|
+
readonly type: "array";
|
|
240
|
+
readonly description: "Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc).";
|
|
241
|
+
readonly items: {
|
|
242
|
+
readonly type: "ref";
|
|
243
|
+
readonly ref: "lex:app.bsky.richtext.facet";
|
|
244
|
+
};
|
|
245
|
+
};
|
|
238
246
|
readonly description: {
|
|
239
247
|
readonly type: "string";
|
|
240
|
-
readonly description: "Optional longer description of
|
|
248
|
+
readonly description: "Optional longer description of this activity claim, including context or interpretation. Rich text annotations may be provided via `descriptionFacets`.";
|
|
241
249
|
readonly maxLength: 30000;
|
|
242
250
|
readonly maxGraphemes: 3000;
|
|
243
251
|
};
|
|
252
|
+
readonly descriptionFacets: {
|
|
253
|
+
readonly type: "array";
|
|
254
|
+
readonly description: "Rich text annotations for `description` (mentions, URLs, hashtags, etc).";
|
|
255
|
+
readonly items: {
|
|
256
|
+
readonly type: "ref";
|
|
257
|
+
readonly ref: "lex:app.bsky.richtext.facet";
|
|
258
|
+
};
|
|
259
|
+
};
|
|
244
260
|
readonly image: {
|
|
245
261
|
readonly type: "union";
|
|
246
262
|
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
@@ -261,12 +277,12 @@ export declare const schemaDict: {
|
|
|
261
277
|
readonly format: "datetime";
|
|
262
278
|
readonly description: "When the work ended";
|
|
263
279
|
};
|
|
264
|
-
readonly
|
|
280
|
+
readonly contributors: {
|
|
265
281
|
readonly type: "array";
|
|
266
|
-
readonly description: "
|
|
282
|
+
readonly description: "An array of contributor objects, each containing contributor information, weight, and contribution details.";
|
|
267
283
|
readonly items: {
|
|
268
284
|
readonly type: "ref";
|
|
269
|
-
readonly ref: "lex:
|
|
285
|
+
readonly ref: "lex:org.hypercerts.claim.activity#contributor";
|
|
270
286
|
};
|
|
271
287
|
};
|
|
272
288
|
readonly rights: {
|
|
@@ -290,21 +306,36 @@ export declare const schemaDict: {
|
|
|
290
306
|
};
|
|
291
307
|
};
|
|
292
308
|
};
|
|
293
|
-
readonly
|
|
309
|
+
readonly contributor: {
|
|
294
310
|
readonly type: "object";
|
|
295
|
-
readonly required: ["
|
|
311
|
+
readonly required: ["contributorIdentity"];
|
|
296
312
|
readonly properties: {
|
|
297
|
-
readonly
|
|
298
|
-
readonly type: "
|
|
299
|
-
readonly
|
|
300
|
-
readonly description: "
|
|
313
|
+
readonly contributorIdentity: {
|
|
314
|
+
readonly type: "union";
|
|
315
|
+
readonly refs: ["lex:org.hypercerts.claim.activity#contributorIdentity", "lex:com.atproto.repo.strongRef"];
|
|
316
|
+
readonly description: "Contributor identity as a string (DID or identifier) via org.hypercerts.claim.activity#contributorIdentity, or a strong reference to a contributor information record.";
|
|
301
317
|
};
|
|
302
|
-
readonly
|
|
318
|
+
readonly contributionWeight: {
|
|
303
319
|
readonly type: "string";
|
|
304
|
-
readonly description: "The relative weight/importance of this
|
|
320
|
+
readonly description: "The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed.";
|
|
321
|
+
};
|
|
322
|
+
readonly contributionDetails: {
|
|
323
|
+
readonly type: "union";
|
|
324
|
+
readonly refs: ["lex:org.hypercerts.claim.activity#contributorRole", "lex:com.atproto.repo.strongRef"];
|
|
325
|
+
readonly description: "Contribution details as a string via org.hypercerts.claim.activity#contributorRole, or a strong reference to a contribution details record.";
|
|
305
326
|
};
|
|
306
327
|
};
|
|
307
328
|
};
|
|
329
|
+
readonly contributorIdentity: {
|
|
330
|
+
readonly type: "string";
|
|
331
|
+
readonly description: "Contributor information as a string (DID or identifier).";
|
|
332
|
+
};
|
|
333
|
+
readonly contributorRole: {
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
readonly description: "Contribution details as a string.";
|
|
336
|
+
readonly maxLength: 10000;
|
|
337
|
+
readonly maxGraphemes: 1000;
|
|
338
|
+
};
|
|
308
339
|
};
|
|
309
340
|
};
|
|
310
341
|
readonly OrgHypercertsClaimCollection: {
|
|
@@ -340,12 +371,22 @@ export declare const schemaDict: {
|
|
|
340
371
|
readonly ref: "lex:pub.leaflet.pages.linearDocument#main";
|
|
341
372
|
readonly description: "Rich-text description, represented as a Leaflet linear document.";
|
|
342
373
|
};
|
|
374
|
+
readonly avatar: {
|
|
375
|
+
readonly type: "union";
|
|
376
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
377
|
+
readonly description: "The collection's avatar/profile image as a URI or image blob.";
|
|
378
|
+
};
|
|
379
|
+
readonly banner: {
|
|
380
|
+
readonly type: "union";
|
|
381
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#largeImage"];
|
|
382
|
+
readonly description: "Larger horizontal image to display behind the collection view.";
|
|
383
|
+
};
|
|
343
384
|
readonly items: {
|
|
344
385
|
readonly type: "array";
|
|
345
|
-
readonly description: "Array of
|
|
386
|
+
readonly description: "Array of items in this collection with optional weights.";
|
|
346
387
|
readonly items: {
|
|
347
388
|
readonly type: "ref";
|
|
348
|
-
readonly ref: "lex:
|
|
389
|
+
readonly ref: "lex:org.hypercerts.claim.collection#item";
|
|
349
390
|
};
|
|
350
391
|
};
|
|
351
392
|
readonly createdAt: {
|
|
@@ -356,34 +397,35 @@ export declare const schemaDict: {
|
|
|
356
397
|
};
|
|
357
398
|
};
|
|
358
399
|
};
|
|
400
|
+
readonly item: {
|
|
401
|
+
readonly type: "object";
|
|
402
|
+
readonly required: ["itemIdentifier"];
|
|
403
|
+
readonly properties: {
|
|
404
|
+
readonly itemIdentifier: {
|
|
405
|
+
readonly type: "ref";
|
|
406
|
+
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
407
|
+
readonly description: "Strong reference to an item in this collection. Items can be activities (org.hypercerts.claim.activity) and/or other collections (org.hypercerts.claim.collection).";
|
|
408
|
+
};
|
|
409
|
+
readonly itemWeight: {
|
|
410
|
+
readonly type: "string";
|
|
411
|
+
readonly description: "Optional weight for this item (positive numeric value stored as string). Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed.";
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
};
|
|
359
415
|
};
|
|
360
416
|
};
|
|
361
|
-
readonly
|
|
417
|
+
readonly OrgHypercertsClaimContributionDetails: {
|
|
362
418
|
readonly lexicon: 1;
|
|
363
|
-
readonly id: "org.hypercerts.claim.
|
|
419
|
+
readonly id: "org.hypercerts.claim.contributionDetails";
|
|
364
420
|
readonly defs: {
|
|
365
421
|
readonly main: {
|
|
366
422
|
readonly type: "record";
|
|
367
|
-
readonly description: "
|
|
423
|
+
readonly description: "Details about a specific contribution including role, description, and timeframe.";
|
|
368
424
|
readonly key: "tid";
|
|
369
425
|
readonly record: {
|
|
370
426
|
readonly type: "object";
|
|
371
427
|
readonly required: ["createdAt"];
|
|
372
428
|
readonly properties: {
|
|
373
|
-
readonly identifier: {
|
|
374
|
-
readonly type: "string";
|
|
375
|
-
readonly description: "DID or a URI to a social profile of the contributor.";
|
|
376
|
-
};
|
|
377
|
-
readonly displayName: {
|
|
378
|
-
readonly type: "string";
|
|
379
|
-
readonly description: "Display name of the contributor.";
|
|
380
|
-
readonly maxLength: 100;
|
|
381
|
-
};
|
|
382
|
-
readonly image: {
|
|
383
|
-
readonly type: "union";
|
|
384
|
-
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
385
|
-
readonly description: "The contributor visual representation as a URI or image blob.";
|
|
386
|
-
};
|
|
387
429
|
readonly role: {
|
|
388
430
|
readonly type: "string";
|
|
389
431
|
readonly description: "Role or title of the contributor.";
|
|
@@ -391,9 +433,9 @@ export declare const schemaDict: {
|
|
|
391
433
|
};
|
|
392
434
|
readonly contributionDescription: {
|
|
393
435
|
readonly type: "string";
|
|
394
|
-
readonly description: "What the contribution concretely
|
|
395
|
-
readonly maxLength:
|
|
396
|
-
readonly maxGraphemes:
|
|
436
|
+
readonly description: "What the contribution concretely was.";
|
|
437
|
+
readonly maxLength: 10000;
|
|
438
|
+
readonly maxGraphemes: 1000;
|
|
397
439
|
};
|
|
398
440
|
readonly startDate: {
|
|
399
441
|
readonly type: "string";
|
|
@@ -415,6 +457,42 @@ export declare const schemaDict: {
|
|
|
415
457
|
};
|
|
416
458
|
};
|
|
417
459
|
};
|
|
460
|
+
readonly OrgHypercertsClaimContributorInformation: {
|
|
461
|
+
readonly lexicon: 1;
|
|
462
|
+
readonly id: "org.hypercerts.claim.contributorInformation";
|
|
463
|
+
readonly defs: {
|
|
464
|
+
readonly main: {
|
|
465
|
+
readonly type: "record";
|
|
466
|
+
readonly description: "Contributor information including identifier, display name, and image.";
|
|
467
|
+
readonly key: "tid";
|
|
468
|
+
readonly record: {
|
|
469
|
+
readonly type: "object";
|
|
470
|
+
readonly required: ["createdAt"];
|
|
471
|
+
readonly properties: {
|
|
472
|
+
readonly identifier: {
|
|
473
|
+
readonly type: "string";
|
|
474
|
+
readonly description: "DID or a URI to a social profile of the contributor.";
|
|
475
|
+
};
|
|
476
|
+
readonly displayName: {
|
|
477
|
+
readonly type: "string";
|
|
478
|
+
readonly description: "Display name of the contributor.";
|
|
479
|
+
readonly maxLength: 100;
|
|
480
|
+
};
|
|
481
|
+
readonly image: {
|
|
482
|
+
readonly type: "union";
|
|
483
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
484
|
+
readonly description: "The contributor visual representation as a URI or image blob.";
|
|
485
|
+
};
|
|
486
|
+
readonly createdAt: {
|
|
487
|
+
readonly type: "string";
|
|
488
|
+
readonly format: "datetime";
|
|
489
|
+
readonly description: "Client-declared timestamp when this record was originally created.";
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
};
|
|
418
496
|
readonly OrgHypercertsClaimEvaluation: {
|
|
419
497
|
readonly lexicon: 1;
|
|
420
498
|
readonly id: "org.hypercerts.claim.evaluation";
|
|
@@ -1029,16 +1107,32 @@ export declare const schemas: ({
|
|
|
1029
1107
|
};
|
|
1030
1108
|
readonly shortDescription: {
|
|
1031
1109
|
readonly type: "string";
|
|
1032
|
-
readonly description: "Short
|
|
1110
|
+
readonly description: "Short summary of this activity claim, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`.";
|
|
1033
1111
|
readonly maxLength: 3000;
|
|
1034
1112
|
readonly maxGraphemes: 300;
|
|
1035
1113
|
};
|
|
1114
|
+
readonly shortDescriptionFacets: {
|
|
1115
|
+
readonly type: "array";
|
|
1116
|
+
readonly description: "Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc).";
|
|
1117
|
+
readonly items: {
|
|
1118
|
+
readonly type: "ref";
|
|
1119
|
+
readonly ref: "lex:app.bsky.richtext.facet";
|
|
1120
|
+
};
|
|
1121
|
+
};
|
|
1036
1122
|
readonly description: {
|
|
1037
1123
|
readonly type: "string";
|
|
1038
|
-
readonly description: "Optional longer description of
|
|
1124
|
+
readonly description: "Optional longer description of this activity claim, including context or interpretation. Rich text annotations may be provided via `descriptionFacets`.";
|
|
1039
1125
|
readonly maxLength: 30000;
|
|
1040
1126
|
readonly maxGraphemes: 3000;
|
|
1041
1127
|
};
|
|
1128
|
+
readonly descriptionFacets: {
|
|
1129
|
+
readonly type: "array";
|
|
1130
|
+
readonly description: "Rich text annotations for `description` (mentions, URLs, hashtags, etc).";
|
|
1131
|
+
readonly items: {
|
|
1132
|
+
readonly type: "ref";
|
|
1133
|
+
readonly ref: "lex:app.bsky.richtext.facet";
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1042
1136
|
readonly image: {
|
|
1043
1137
|
readonly type: "union";
|
|
1044
1138
|
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
@@ -1059,12 +1153,12 @@ export declare const schemas: ({
|
|
|
1059
1153
|
readonly format: "datetime";
|
|
1060
1154
|
readonly description: "When the work ended";
|
|
1061
1155
|
};
|
|
1062
|
-
readonly
|
|
1156
|
+
readonly contributors: {
|
|
1063
1157
|
readonly type: "array";
|
|
1064
|
-
readonly description: "
|
|
1158
|
+
readonly description: "An array of contributor objects, each containing contributor information, weight, and contribution details.";
|
|
1065
1159
|
readonly items: {
|
|
1066
1160
|
readonly type: "ref";
|
|
1067
|
-
readonly ref: "lex:
|
|
1161
|
+
readonly ref: "lex:org.hypercerts.claim.activity#contributor";
|
|
1068
1162
|
};
|
|
1069
1163
|
};
|
|
1070
1164
|
readonly rights: {
|
|
@@ -1088,21 +1182,36 @@ export declare const schemas: ({
|
|
|
1088
1182
|
};
|
|
1089
1183
|
};
|
|
1090
1184
|
};
|
|
1091
|
-
readonly
|
|
1185
|
+
readonly contributor: {
|
|
1092
1186
|
readonly type: "object";
|
|
1093
|
-
readonly required: ["
|
|
1187
|
+
readonly required: ["contributorIdentity"];
|
|
1094
1188
|
readonly properties: {
|
|
1095
|
-
readonly
|
|
1096
|
-
readonly type: "
|
|
1097
|
-
readonly
|
|
1098
|
-
readonly description: "
|
|
1189
|
+
readonly contributorIdentity: {
|
|
1190
|
+
readonly type: "union";
|
|
1191
|
+
readonly refs: ["lex:org.hypercerts.claim.activity#contributorIdentity", "lex:com.atproto.repo.strongRef"];
|
|
1192
|
+
readonly description: "Contributor identity as a string (DID or identifier) via org.hypercerts.claim.activity#contributorIdentity, or a strong reference to a contributor information record.";
|
|
1099
1193
|
};
|
|
1100
|
-
readonly
|
|
1194
|
+
readonly contributionWeight: {
|
|
1101
1195
|
readonly type: "string";
|
|
1102
|
-
readonly description: "The relative weight/importance of this
|
|
1196
|
+
readonly description: "The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed.";
|
|
1197
|
+
};
|
|
1198
|
+
readonly contributionDetails: {
|
|
1199
|
+
readonly type: "union";
|
|
1200
|
+
readonly refs: ["lex:org.hypercerts.claim.activity#contributorRole", "lex:com.atproto.repo.strongRef"];
|
|
1201
|
+
readonly description: "Contribution details as a string via org.hypercerts.claim.activity#contributorRole, or a strong reference to a contribution details record.";
|
|
1103
1202
|
};
|
|
1104
1203
|
};
|
|
1105
1204
|
};
|
|
1205
|
+
readonly contributorIdentity: {
|
|
1206
|
+
readonly type: "string";
|
|
1207
|
+
readonly description: "Contributor information as a string (DID or identifier).";
|
|
1208
|
+
};
|
|
1209
|
+
readonly contributorRole: {
|
|
1210
|
+
readonly type: "string";
|
|
1211
|
+
readonly description: "Contribution details as a string.";
|
|
1212
|
+
readonly maxLength: 10000;
|
|
1213
|
+
readonly maxGraphemes: 1000;
|
|
1214
|
+
};
|
|
1106
1215
|
};
|
|
1107
1216
|
} | {
|
|
1108
1217
|
readonly lexicon: 1;
|
|
@@ -1137,12 +1246,22 @@ export declare const schemas: ({
|
|
|
1137
1246
|
readonly ref: "lex:pub.leaflet.pages.linearDocument#main";
|
|
1138
1247
|
readonly description: "Rich-text description, represented as a Leaflet linear document.";
|
|
1139
1248
|
};
|
|
1249
|
+
readonly avatar: {
|
|
1250
|
+
readonly type: "union";
|
|
1251
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
1252
|
+
readonly description: "The collection's avatar/profile image as a URI or image blob.";
|
|
1253
|
+
};
|
|
1254
|
+
readonly banner: {
|
|
1255
|
+
readonly type: "union";
|
|
1256
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#largeImage"];
|
|
1257
|
+
readonly description: "Larger horizontal image to display behind the collection view.";
|
|
1258
|
+
};
|
|
1140
1259
|
readonly items: {
|
|
1141
1260
|
readonly type: "array";
|
|
1142
|
-
readonly description: "Array of
|
|
1261
|
+
readonly description: "Array of items in this collection with optional weights.";
|
|
1143
1262
|
readonly items: {
|
|
1144
1263
|
readonly type: "ref";
|
|
1145
|
-
readonly ref: "lex:
|
|
1264
|
+
readonly ref: "lex:org.hypercerts.claim.collection#item";
|
|
1146
1265
|
};
|
|
1147
1266
|
};
|
|
1148
1267
|
readonly createdAt: {
|
|
@@ -1153,33 +1272,34 @@ export declare const schemas: ({
|
|
|
1153
1272
|
};
|
|
1154
1273
|
};
|
|
1155
1274
|
};
|
|
1275
|
+
readonly item: {
|
|
1276
|
+
readonly type: "object";
|
|
1277
|
+
readonly required: ["itemIdentifier"];
|
|
1278
|
+
readonly properties: {
|
|
1279
|
+
readonly itemIdentifier: {
|
|
1280
|
+
readonly type: "ref";
|
|
1281
|
+
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
1282
|
+
readonly description: "Strong reference to an item in this collection. Items can be activities (org.hypercerts.claim.activity) and/or other collections (org.hypercerts.claim.collection).";
|
|
1283
|
+
};
|
|
1284
|
+
readonly itemWeight: {
|
|
1285
|
+
readonly type: "string";
|
|
1286
|
+
readonly description: "Optional weight for this item (positive numeric value stored as string). Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed.";
|
|
1287
|
+
};
|
|
1288
|
+
};
|
|
1289
|
+
};
|
|
1156
1290
|
};
|
|
1157
1291
|
} | {
|
|
1158
1292
|
readonly lexicon: 1;
|
|
1159
|
-
readonly id: "org.hypercerts.claim.
|
|
1293
|
+
readonly id: "org.hypercerts.claim.contributionDetails";
|
|
1160
1294
|
readonly defs: {
|
|
1161
1295
|
readonly main: {
|
|
1162
1296
|
readonly type: "record";
|
|
1163
|
-
readonly description: "
|
|
1297
|
+
readonly description: "Details about a specific contribution including role, description, and timeframe.";
|
|
1164
1298
|
readonly key: "tid";
|
|
1165
1299
|
readonly record: {
|
|
1166
1300
|
readonly type: "object";
|
|
1167
1301
|
readonly required: ["createdAt"];
|
|
1168
1302
|
readonly properties: {
|
|
1169
|
-
readonly identifier: {
|
|
1170
|
-
readonly type: "string";
|
|
1171
|
-
readonly description: "DID or a URI to a social profile of the contributor.";
|
|
1172
|
-
};
|
|
1173
|
-
readonly displayName: {
|
|
1174
|
-
readonly type: "string";
|
|
1175
|
-
readonly description: "Display name of the contributor.";
|
|
1176
|
-
readonly maxLength: 100;
|
|
1177
|
-
};
|
|
1178
|
-
readonly image: {
|
|
1179
|
-
readonly type: "union";
|
|
1180
|
-
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
1181
|
-
readonly description: "The contributor visual representation as a URI or image blob.";
|
|
1182
|
-
};
|
|
1183
1303
|
readonly role: {
|
|
1184
1304
|
readonly type: "string";
|
|
1185
1305
|
readonly description: "Role or title of the contributor.";
|
|
@@ -1187,9 +1307,9 @@ export declare const schemas: ({
|
|
|
1187
1307
|
};
|
|
1188
1308
|
readonly contributionDescription: {
|
|
1189
1309
|
readonly type: "string";
|
|
1190
|
-
readonly description: "What the contribution concretely
|
|
1191
|
-
readonly maxLength:
|
|
1192
|
-
readonly maxGraphemes:
|
|
1310
|
+
readonly description: "What the contribution concretely was.";
|
|
1311
|
+
readonly maxLength: 10000;
|
|
1312
|
+
readonly maxGraphemes: 1000;
|
|
1193
1313
|
};
|
|
1194
1314
|
readonly startDate: {
|
|
1195
1315
|
readonly type: "string";
|
|
@@ -1210,6 +1330,41 @@ export declare const schemas: ({
|
|
|
1210
1330
|
};
|
|
1211
1331
|
};
|
|
1212
1332
|
};
|
|
1333
|
+
} | {
|
|
1334
|
+
readonly lexicon: 1;
|
|
1335
|
+
readonly id: "org.hypercerts.claim.contributorInformation";
|
|
1336
|
+
readonly defs: {
|
|
1337
|
+
readonly main: {
|
|
1338
|
+
readonly type: "record";
|
|
1339
|
+
readonly description: "Contributor information including identifier, display name, and image.";
|
|
1340
|
+
readonly key: "tid";
|
|
1341
|
+
readonly record: {
|
|
1342
|
+
readonly type: "object";
|
|
1343
|
+
readonly required: ["createdAt"];
|
|
1344
|
+
readonly properties: {
|
|
1345
|
+
readonly identifier: {
|
|
1346
|
+
readonly type: "string";
|
|
1347
|
+
readonly description: "DID or a URI to a social profile of the contributor.";
|
|
1348
|
+
};
|
|
1349
|
+
readonly displayName: {
|
|
1350
|
+
readonly type: "string";
|
|
1351
|
+
readonly description: "Display name of the contributor.";
|
|
1352
|
+
readonly maxLength: 100;
|
|
1353
|
+
};
|
|
1354
|
+
readonly image: {
|
|
1355
|
+
readonly type: "union";
|
|
1356
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
1357
|
+
readonly description: "The contributor visual representation as a URI or image blob.";
|
|
1358
|
+
};
|
|
1359
|
+
readonly createdAt: {
|
|
1360
|
+
readonly type: "string";
|
|
1361
|
+
readonly format: "datetime";
|
|
1362
|
+
readonly description: "Client-declared timestamp when this record was originally created.";
|
|
1363
|
+
};
|
|
1364
|
+
};
|
|
1365
|
+
};
|
|
1366
|
+
};
|
|
1367
|
+
};
|
|
1213
1368
|
} | {
|
|
1214
1369
|
readonly lexicon: 1;
|
|
1215
1370
|
readonly id: "org.hypercerts.claim.evaluation";
|
|
@@ -1612,7 +1767,8 @@ export declare const ids: {
|
|
|
1612
1767
|
readonly ComAtprotoRepoStrongRef: "com.atproto.repo.strongRef";
|
|
1613
1768
|
readonly OrgHypercertsClaimActivity: "org.hypercerts.claim.activity";
|
|
1614
1769
|
readonly OrgHypercertsClaimCollection: "org.hypercerts.claim.collection";
|
|
1615
|
-
readonly
|
|
1770
|
+
readonly OrgHypercertsClaimContributionDetails: "org.hypercerts.claim.contributionDetails";
|
|
1771
|
+
readonly OrgHypercertsClaimContributorInformation: "org.hypercerts.claim.contributorInformation";
|
|
1616
1772
|
readonly OrgHypercertsClaimEvaluation: "org.hypercerts.claim.evaluation";
|
|
1617
1773
|
readonly OrgHypercertsClaimEvidence: "org.hypercerts.claim.evidence";
|
|
1618
1774
|
readonly OrgHypercertsClaimMeasurement: "org.hypercerts.claim.measurement";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lexicons.d.ts","sourceRoot":"","sources":["../../generated/lexicons.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,QAAQ,EAER,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAA;AAGzB,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"lexicons.d.ts","sourceRoot":"","sources":["../../generated/lexicons.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,QAAQ,EAER,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAA;AAGzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;CAmBN,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AppBskyRichtextFacet } from '@atcute/bluesky';
|
|
2
|
+
export type { AppBskyRichtextFacet };
|
|
3
|
+
export type Main = AppBskyRichtextFacet.Main;
|
|
4
|
+
export type ByteSlice = AppBskyRichtextFacet.ByteSlice;
|
|
5
|
+
export type Link = AppBskyRichtextFacet.Link;
|
|
6
|
+
export type Mention = AppBskyRichtextFacet.Mention;
|
|
7
|
+
export type Tag = AppBskyRichtextFacet.Tag;
|
|
8
|
+
//# sourceMappingURL=facet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"facet.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/app/bsky/richtext/facet.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,YAAY,EAAE,oBAAoB,EAAE,CAAC;AACrC,MAAM,MAAM,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC;AAC7C,MAAM,MAAM,SAAS,GAAG,oBAAoB,CAAC,SAAS,CAAC;AACvD,MAAM,MAAM,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAC;AAC7C,MAAM,MAAM,OAAO,GAAG,oBAAoB,CAAC,OAAO,CAAC;AACnD,MAAM,MAAM,GAAG,GAAG,oBAAoB,CAAC,GAAG,CAAC"}
|
|
@@ -3,16 +3,21 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
5
|
import { type $Typed } from '../../../../util';
|
|
6
|
+
import type * as AppBskyRichtextFacet from '../../../app/bsky/richtext/facet.js';
|
|
6
7
|
import type * as OrgHypercertsDefs from '../defs.js';
|
|
7
8
|
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
8
9
|
export interface Main {
|
|
9
10
|
$type: 'org.hypercerts.claim.activity';
|
|
10
11
|
/** Title of the hypercert. */
|
|
11
12
|
title: string;
|
|
12
|
-
/** Short
|
|
13
|
+
/** Short summary of this activity claim, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`. */
|
|
13
14
|
shortDescription: string;
|
|
14
|
-
/**
|
|
15
|
+
/** Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc). */
|
|
16
|
+
shortDescriptionFacets?: AppBskyRichtextFacet.Main[];
|
|
17
|
+
/** Optional longer description of this activity claim, including context or interpretation. Rich text annotations may be provided via `descriptionFacets`. */
|
|
15
18
|
description?: string;
|
|
19
|
+
/** Rich text annotations for `description` (mentions, URLs, hashtags, etc). */
|
|
20
|
+
descriptionFacets?: AppBskyRichtextFacet.Main[];
|
|
16
21
|
image?: $Typed<OrgHypercertsDefs.Uri> | $Typed<OrgHypercertsDefs.SmallImage> | {
|
|
17
22
|
$type: string;
|
|
18
23
|
};
|
|
@@ -21,8 +26,8 @@ export interface Main {
|
|
|
21
26
|
startDate?: string;
|
|
22
27
|
/** When the work ended */
|
|
23
28
|
endDate?: string;
|
|
24
|
-
/**
|
|
25
|
-
|
|
29
|
+
/** An array of contributor objects, each containing contributor information, weight, and contribution details. */
|
|
30
|
+
contributors?: Contributor[];
|
|
26
31
|
rights?: ComAtprotoRepoStrongRef.Main;
|
|
27
32
|
/** An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location. */
|
|
28
33
|
locations?: ComAtprotoRepoStrongRef.Main[];
|
|
@@ -33,12 +38,21 @@ export interface Main {
|
|
|
33
38
|
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.activity", "main">;
|
|
34
39
|
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
35
40
|
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
36
|
-
export interface
|
|
37
|
-
$type?: 'org.hypercerts.claim.activity#
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
export interface Contributor {
|
|
42
|
+
$type?: 'org.hypercerts.claim.activity#contributor';
|
|
43
|
+
contributorIdentity: $Typed<ContributorIdentity> | $Typed<ComAtprotoRepoStrongRef.Main> | {
|
|
44
|
+
$type: string;
|
|
45
|
+
};
|
|
46
|
+
/** The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed. */
|
|
47
|
+
contributionWeight?: string;
|
|
48
|
+
contributionDetails?: $Typed<ContributorRole> | $Typed<ComAtprotoRepoStrongRef.Main> | {
|
|
49
|
+
$type: string;
|
|
50
|
+
};
|
|
41
51
|
}
|
|
42
|
-
export declare function
|
|
43
|
-
export declare function
|
|
52
|
+
export declare function isContributor<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.activity", "contributor">;
|
|
53
|
+
export declare function validateContributor<V>(v: V): ValidationResult<Contributor & V>;
|
|
54
|
+
/** Contributor information as a string (DID or identifier). */
|
|
55
|
+
export type ContributorIdentity = string;
|
|
56
|
+
/** Contribution details as a string. */
|
|
57
|
+
export type ContributorRole = string;
|
|
44
58
|
//# sourceMappingURL=activity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/activity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,+BAA+B,CAAA;IACtC,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,
|
|
1
|
+
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/cla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,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4FAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,2CAA2C,CAAA;IACnD,mBAAmB,EACf,MAAM,CAAC,mBAAmB,CAAC,GAC3B,MAAM,CAAC,uBAAuB,CAAC,IAAI,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,yQAAyQ;IACzQ,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,mBAAmB,CAAC,EAChB,MAAM,CAAC,eAAe,CAAC,GACvB,MAAM,CAAC,uBAAuB,CAAC,IAAI,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CACtB;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mGAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C;AAED,+DAA+D;AAC/D,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAA;AACxC,wCAAwC;AACxC,MAAM,MAAM,eAAe,GAAG,MAAM,CAAA"}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../../util';
|
|
5
6
|
import type * as PubLeafletPagesLinearDocument from '../../../pub/leaflet/pages/linearDocument.js';
|
|
7
|
+
import type * as OrgHypercertsDefs from '../defs.js';
|
|
6
8
|
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
7
9
|
export interface Main {
|
|
8
10
|
$type: 'org.hypercerts.claim.collection';
|
|
@@ -13,8 +15,14 @@ export interface Main {
|
|
|
13
15
|
/** Short summary of this collection, suitable for previews and list views */
|
|
14
16
|
shortDescription?: string;
|
|
15
17
|
description?: PubLeafletPagesLinearDocument.Main;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
avatar?: $Typed<OrgHypercertsDefs.Uri> | $Typed<OrgHypercertsDefs.SmallImage> | {
|
|
19
|
+
$type: string;
|
|
20
|
+
};
|
|
21
|
+
banner?: $Typed<OrgHypercertsDefs.Uri> | $Typed<OrgHypercertsDefs.LargeImage> | {
|
|
22
|
+
$type: string;
|
|
23
|
+
};
|
|
24
|
+
/** Array of items in this collection with optional weights. */
|
|
25
|
+
items: Item[];
|
|
18
26
|
/** Client-declared timestamp when this record was originally created */
|
|
19
27
|
createdAt: string;
|
|
20
28
|
[k: string]: unknown;
|
|
@@ -22,4 +30,12 @@ export interface Main {
|
|
|
22
30
|
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.collection", "main">;
|
|
23
31
|
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
24
32
|
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
33
|
+
export interface Item {
|
|
34
|
+
$type?: 'org.hypercerts.claim.collection#item';
|
|
35
|
+
itemIdentifier: ComAtprotoRepoStrongRef.Main;
|
|
36
|
+
/** Optional weight for this item (positive numeric value stored as string). Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed. */
|
|
37
|
+
itemWeight?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare function isItem<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.collection", "item">;
|
|
40
|
+
export declare function validateItem<V>(v: V): ValidationResult<Item & V>;
|
|
25
41
|
//# sourceMappingURL=collection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/collection.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/collection.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,6BAA6B,MAAM,8CAA8C,CAAA;AAClG,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,iCAAiC,CAAA;IACxC,mHAAmH;IACnH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,6EAA6E;IAC7E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,WAAW,CAAC,EAAE,6BAA6B,CAAC,IAAI,CAAA;IAChD,MAAM,CAAC,EACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAC7B,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,MAAM,CAAC,EACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAC7B,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,+DAA+D;IAC/D,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MA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