@hypercerts-org/lexicon 0.10.0-beta.5 → 0.10.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/SCHEMAS.md +21 -13
- package/dist/exports.d.ts +79 -22
- package/dist/exports.d.ts.map +1 -1
- package/dist/generated/exports.d.ts +79 -22
- package/dist/generated/exports.d.ts.map +1 -1
- package/dist/generated/lexicons.d.ts +150 -46
- package/dist/generated/lexicons.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts +19 -2
- package/dist/generated/types/org/hypercerts/claim/activity.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 +341 -180
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +329 -172
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons.cjs +86 -27
- package/dist/lexicons.cjs.map +1 -1
- package/dist/lexicons.d.ts +150 -46
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/lexicons.mjs +86 -27
- package/dist/lexicons.mjs.map +1 -1
- package/dist/types/org/hypercerts/claim/activity.d.ts +19 -2
- package/dist/types/org/hypercerts/claim/activity.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 +33 -3
- package/lexicons/org/hypercerts/claim/{contributor.json → contributionDetails.json} +5 -22
- package/lexicons/org/hypercerts/claim/contributorInformation.json +39 -0
- package/package.json +2 -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
|
@@ -261,12 +261,12 @@ export declare const schemaDict: {
|
|
|
261
261
|
readonly format: "datetime";
|
|
262
262
|
readonly description: "When the work ended";
|
|
263
263
|
};
|
|
264
|
-
readonly
|
|
264
|
+
readonly contributors: {
|
|
265
265
|
readonly type: "array";
|
|
266
|
-
readonly description: "
|
|
266
|
+
readonly description: "An array of contributor objects, each containing contributor information, weight, and contribution details.";
|
|
267
267
|
readonly items: {
|
|
268
268
|
readonly type: "ref";
|
|
269
|
-
readonly ref: "lex:
|
|
269
|
+
readonly ref: "lex:org.hypercerts.claim.activity#contributor";
|
|
270
270
|
};
|
|
271
271
|
};
|
|
272
272
|
readonly rights: {
|
|
@@ -290,6 +290,36 @@ export declare const schemaDict: {
|
|
|
290
290
|
};
|
|
291
291
|
};
|
|
292
292
|
};
|
|
293
|
+
readonly contributor: {
|
|
294
|
+
readonly type: "object";
|
|
295
|
+
readonly required: ["contributorInformation"];
|
|
296
|
+
readonly properties: {
|
|
297
|
+
readonly contributorInformation: {
|
|
298
|
+
readonly type: "union";
|
|
299
|
+
readonly refs: ["lex:org.hypercerts.claim.activity#contributorIdentity", "lex:com.atproto.repo.strongRef"];
|
|
300
|
+
readonly description: "Contributor information as a string (DID or identifier) or strong reference to for instance org.hypercerts.claim.contributorInformation#main.";
|
|
301
|
+
};
|
|
302
|
+
readonly weight: {
|
|
303
|
+
readonly type: "string";
|
|
304
|
+
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.";
|
|
305
|
+
};
|
|
306
|
+
readonly contributionDetails: {
|
|
307
|
+
readonly type: "union";
|
|
308
|
+
readonly refs: ["lex:org.hypercerts.claim.activity#contributorRole", "lex:com.atproto.repo.strongRef"];
|
|
309
|
+
readonly description: "Contribution details as a string or strong reference to org.hypercerts.claim.contributionDetails#main.";
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
readonly contributorIdentity: {
|
|
314
|
+
readonly type: "string";
|
|
315
|
+
readonly description: "Contributor information as a string (DID or identifier).";
|
|
316
|
+
};
|
|
317
|
+
readonly contributorRole: {
|
|
318
|
+
readonly type: "string";
|
|
319
|
+
readonly description: "Contribution details as a string.";
|
|
320
|
+
readonly maxLength: 10000;
|
|
321
|
+
readonly maxGraphemes: 1000;
|
|
322
|
+
};
|
|
293
323
|
readonly activityWeight: {
|
|
294
324
|
readonly type: "object";
|
|
295
325
|
readonly required: ["activity", "weight"];
|
|
@@ -358,32 +388,18 @@ export declare const schemaDict: {
|
|
|
358
388
|
};
|
|
359
389
|
};
|
|
360
390
|
};
|
|
361
|
-
readonly
|
|
391
|
+
readonly OrgHypercertsClaimContributionDetails: {
|
|
362
392
|
readonly lexicon: 1;
|
|
363
|
-
readonly id: "org.hypercerts.claim.
|
|
393
|
+
readonly id: "org.hypercerts.claim.contributionDetails";
|
|
364
394
|
readonly defs: {
|
|
365
395
|
readonly main: {
|
|
366
396
|
readonly type: "record";
|
|
367
|
-
readonly description: "
|
|
397
|
+
readonly description: "Details about a specific contribution including role, description, and timeframe.";
|
|
368
398
|
readonly key: "tid";
|
|
369
399
|
readonly record: {
|
|
370
400
|
readonly type: "object";
|
|
371
401
|
readonly required: ["createdAt"];
|
|
372
402
|
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
403
|
readonly role: {
|
|
388
404
|
readonly type: "string";
|
|
389
405
|
readonly description: "Role or title of the contributor.";
|
|
@@ -391,9 +407,9 @@ export declare const schemaDict: {
|
|
|
391
407
|
};
|
|
392
408
|
readonly contributionDescription: {
|
|
393
409
|
readonly type: "string";
|
|
394
|
-
readonly description: "What the contribution concretely
|
|
395
|
-
readonly maxLength:
|
|
396
|
-
readonly maxGraphemes:
|
|
410
|
+
readonly description: "What the contribution concretely was.";
|
|
411
|
+
readonly maxLength: 10000;
|
|
412
|
+
readonly maxGraphemes: 1000;
|
|
397
413
|
};
|
|
398
414
|
readonly startDate: {
|
|
399
415
|
readonly type: "string";
|
|
@@ -415,6 +431,42 @@ export declare const schemaDict: {
|
|
|
415
431
|
};
|
|
416
432
|
};
|
|
417
433
|
};
|
|
434
|
+
readonly OrgHypercertsClaimContributorInformation: {
|
|
435
|
+
readonly lexicon: 1;
|
|
436
|
+
readonly id: "org.hypercerts.claim.contributorInformation";
|
|
437
|
+
readonly defs: {
|
|
438
|
+
readonly main: {
|
|
439
|
+
readonly type: "record";
|
|
440
|
+
readonly description: "Contributor information including identifier, display name, and image.";
|
|
441
|
+
readonly key: "tid";
|
|
442
|
+
readonly record: {
|
|
443
|
+
readonly type: "object";
|
|
444
|
+
readonly required: ["createdAt"];
|
|
445
|
+
readonly properties: {
|
|
446
|
+
readonly identifier: {
|
|
447
|
+
readonly type: "string";
|
|
448
|
+
readonly description: "DID or a URI to a social profile of the contributor.";
|
|
449
|
+
};
|
|
450
|
+
readonly displayName: {
|
|
451
|
+
readonly type: "string";
|
|
452
|
+
readonly description: "Display name of the contributor.";
|
|
453
|
+
readonly maxLength: 100;
|
|
454
|
+
};
|
|
455
|
+
readonly image: {
|
|
456
|
+
readonly type: "union";
|
|
457
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
458
|
+
readonly description: "The contributor visual representation as a URI or image blob.";
|
|
459
|
+
};
|
|
460
|
+
readonly createdAt: {
|
|
461
|
+
readonly type: "string";
|
|
462
|
+
readonly format: "datetime";
|
|
463
|
+
readonly description: "Client-declared timestamp when this record was originally created.";
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
};
|
|
418
470
|
readonly OrgHypercertsClaimEvaluation: {
|
|
419
471
|
readonly lexicon: 1;
|
|
420
472
|
readonly id: "org.hypercerts.claim.evaluation";
|
|
@@ -1059,12 +1111,12 @@ export declare const schemas: ({
|
|
|
1059
1111
|
readonly format: "datetime";
|
|
1060
1112
|
readonly description: "When the work ended";
|
|
1061
1113
|
};
|
|
1062
|
-
readonly
|
|
1114
|
+
readonly contributors: {
|
|
1063
1115
|
readonly type: "array";
|
|
1064
|
-
readonly description: "
|
|
1116
|
+
readonly description: "An array of contributor objects, each containing contributor information, weight, and contribution details.";
|
|
1065
1117
|
readonly items: {
|
|
1066
1118
|
readonly type: "ref";
|
|
1067
|
-
readonly ref: "lex:
|
|
1119
|
+
readonly ref: "lex:org.hypercerts.claim.activity#contributor";
|
|
1068
1120
|
};
|
|
1069
1121
|
};
|
|
1070
1122
|
readonly rights: {
|
|
@@ -1088,6 +1140,36 @@ export declare const schemas: ({
|
|
|
1088
1140
|
};
|
|
1089
1141
|
};
|
|
1090
1142
|
};
|
|
1143
|
+
readonly contributor: {
|
|
1144
|
+
readonly type: "object";
|
|
1145
|
+
readonly required: ["contributorInformation"];
|
|
1146
|
+
readonly properties: {
|
|
1147
|
+
readonly contributorInformation: {
|
|
1148
|
+
readonly type: "union";
|
|
1149
|
+
readonly refs: ["lex:org.hypercerts.claim.activity#contributorIdentity", "lex:com.atproto.repo.strongRef"];
|
|
1150
|
+
readonly description: "Contributor information as a string (DID or identifier) or strong reference to for instance org.hypercerts.claim.contributorInformation#main.";
|
|
1151
|
+
};
|
|
1152
|
+
readonly weight: {
|
|
1153
|
+
readonly type: "string";
|
|
1154
|
+
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.";
|
|
1155
|
+
};
|
|
1156
|
+
readonly contributionDetails: {
|
|
1157
|
+
readonly type: "union";
|
|
1158
|
+
readonly refs: ["lex:org.hypercerts.claim.activity#contributorRole", "lex:com.atproto.repo.strongRef"];
|
|
1159
|
+
readonly description: "Contribution details as a string or strong reference to org.hypercerts.claim.contributionDetails#main.";
|
|
1160
|
+
};
|
|
1161
|
+
};
|
|
1162
|
+
};
|
|
1163
|
+
readonly contributorIdentity: {
|
|
1164
|
+
readonly type: "string";
|
|
1165
|
+
readonly description: "Contributor information as a string (DID or identifier).";
|
|
1166
|
+
};
|
|
1167
|
+
readonly contributorRole: {
|
|
1168
|
+
readonly type: "string";
|
|
1169
|
+
readonly description: "Contribution details as a string.";
|
|
1170
|
+
readonly maxLength: 10000;
|
|
1171
|
+
readonly maxGraphemes: 1000;
|
|
1172
|
+
};
|
|
1091
1173
|
readonly activityWeight: {
|
|
1092
1174
|
readonly type: "object";
|
|
1093
1175
|
readonly required: ["activity", "weight"];
|
|
@@ -1156,30 +1238,16 @@ export declare const schemas: ({
|
|
|
1156
1238
|
};
|
|
1157
1239
|
} | {
|
|
1158
1240
|
readonly lexicon: 1;
|
|
1159
|
-
readonly id: "org.hypercerts.claim.
|
|
1241
|
+
readonly id: "org.hypercerts.claim.contributionDetails";
|
|
1160
1242
|
readonly defs: {
|
|
1161
1243
|
readonly main: {
|
|
1162
1244
|
readonly type: "record";
|
|
1163
|
-
readonly description: "
|
|
1245
|
+
readonly description: "Details about a specific contribution including role, description, and timeframe.";
|
|
1164
1246
|
readonly key: "tid";
|
|
1165
1247
|
readonly record: {
|
|
1166
1248
|
readonly type: "object";
|
|
1167
1249
|
readonly required: ["createdAt"];
|
|
1168
1250
|
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
1251
|
readonly role: {
|
|
1184
1252
|
readonly type: "string";
|
|
1185
1253
|
readonly description: "Role or title of the contributor.";
|
|
@@ -1187,9 +1255,9 @@ export declare const schemas: ({
|
|
|
1187
1255
|
};
|
|
1188
1256
|
readonly contributionDescription: {
|
|
1189
1257
|
readonly type: "string";
|
|
1190
|
-
readonly description: "What the contribution concretely
|
|
1191
|
-
readonly maxLength:
|
|
1192
|
-
readonly maxGraphemes:
|
|
1258
|
+
readonly description: "What the contribution concretely was.";
|
|
1259
|
+
readonly maxLength: 10000;
|
|
1260
|
+
readonly maxGraphemes: 1000;
|
|
1193
1261
|
};
|
|
1194
1262
|
readonly startDate: {
|
|
1195
1263
|
readonly type: "string";
|
|
@@ -1210,6 +1278,41 @@ export declare const schemas: ({
|
|
|
1210
1278
|
};
|
|
1211
1279
|
};
|
|
1212
1280
|
};
|
|
1281
|
+
} | {
|
|
1282
|
+
readonly lexicon: 1;
|
|
1283
|
+
readonly id: "org.hypercerts.claim.contributorInformation";
|
|
1284
|
+
readonly defs: {
|
|
1285
|
+
readonly main: {
|
|
1286
|
+
readonly type: "record";
|
|
1287
|
+
readonly description: "Contributor information including identifier, display name, and image.";
|
|
1288
|
+
readonly key: "tid";
|
|
1289
|
+
readonly record: {
|
|
1290
|
+
readonly type: "object";
|
|
1291
|
+
readonly required: ["createdAt"];
|
|
1292
|
+
readonly properties: {
|
|
1293
|
+
readonly identifier: {
|
|
1294
|
+
readonly type: "string";
|
|
1295
|
+
readonly description: "DID or a URI to a social profile of the contributor.";
|
|
1296
|
+
};
|
|
1297
|
+
readonly displayName: {
|
|
1298
|
+
readonly type: "string";
|
|
1299
|
+
readonly description: "Display name of the contributor.";
|
|
1300
|
+
readonly maxLength: 100;
|
|
1301
|
+
};
|
|
1302
|
+
readonly image: {
|
|
1303
|
+
readonly type: "union";
|
|
1304
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
1305
|
+
readonly description: "The contributor visual representation as a URI or image blob.";
|
|
1306
|
+
};
|
|
1307
|
+
readonly createdAt: {
|
|
1308
|
+
readonly type: "string";
|
|
1309
|
+
readonly format: "datetime";
|
|
1310
|
+
readonly description: "Client-declared timestamp when this record was originally created.";
|
|
1311
|
+
};
|
|
1312
|
+
};
|
|
1313
|
+
};
|
|
1314
|
+
};
|
|
1315
|
+
};
|
|
1213
1316
|
} | {
|
|
1214
1317
|
readonly lexicon: 1;
|
|
1215
1318
|
readonly id: "org.hypercerts.claim.evaluation";
|
|
@@ -1612,7 +1715,8 @@ export declare const ids: {
|
|
|
1612
1715
|
readonly ComAtprotoRepoStrongRef: "com.atproto.repo.strongRef";
|
|
1613
1716
|
readonly OrgHypercertsClaimActivity: "org.hypercerts.claim.activity";
|
|
1614
1717
|
readonly OrgHypercertsClaimCollection: "org.hypercerts.claim.collection";
|
|
1615
|
-
readonly
|
|
1718
|
+
readonly OrgHypercertsClaimContributionDetails: "org.hypercerts.claim.contributionDetails";
|
|
1719
|
+
readonly OrgHypercertsClaimContributorInformation: "org.hypercerts.claim.contributorInformation";
|
|
1616
1720
|
readonly OrgHypercertsClaimEvaluation: "org.hypercerts.claim.evaluation";
|
|
1617
1721
|
readonly OrgHypercertsClaimEvidence: "org.hypercerts.claim.evidence";
|
|
1618
1722
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAmD,CAAA;AACvE,eAAO,MAAM,QAAQ,EAAE,QAAgC,CAAA;AAEvD,wBAAgB,QAAQ,CAAC,CAAC,SAAS;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAClD,CAAC,EAAE,OAAO,EACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,IAAI,GACjB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AACtB,wBAAgB,QAAQ,CAAC,CAAC,SAAS;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EACnD,CAAC,EAAE,OAAO,EACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,KAAK,GACnB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAiBtB,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;CAmBN,CAAA"}
|
|
@@ -21,8 +21,8 @@ export interface Main {
|
|
|
21
21
|
startDate?: string;
|
|
22
22
|
/** When the work ended */
|
|
23
23
|
endDate?: string;
|
|
24
|
-
/**
|
|
25
|
-
|
|
24
|
+
/** An array of contributor objects, each containing contributor information, weight, and contribution details. */
|
|
25
|
+
contributors?: Contributor[];
|
|
26
26
|
rights?: ComAtprotoRepoStrongRef.Main;
|
|
27
27
|
/** An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location. */
|
|
28
28
|
locations?: ComAtprotoRepoStrongRef.Main[];
|
|
@@ -33,6 +33,23 @@ export interface Main {
|
|
|
33
33
|
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.activity", "main">;
|
|
34
34
|
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
35
35
|
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
36
|
+
export interface Contributor {
|
|
37
|
+
$type?: 'org.hypercerts.claim.activity#contributor';
|
|
38
|
+
contributorInformation: $Typed<ContributorIdentity> | $Typed<ComAtprotoRepoStrongRef.Main> | {
|
|
39
|
+
$type: string;
|
|
40
|
+
};
|
|
41
|
+
/** The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed. */
|
|
42
|
+
weight?: string;
|
|
43
|
+
contributionDetails?: $Typed<ContributorRole> | $Typed<ComAtprotoRepoStrongRef.Main> | {
|
|
44
|
+
$type: string;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export declare function isContributor<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.activity", "contributor">;
|
|
48
|
+
export declare function validateContributor<V>(v: V): ValidationResult<Contributor & V>;
|
|
49
|
+
/** Contributor information as a string (DID or identifier). */
|
|
50
|
+
export type ContributorIdentity = string;
|
|
51
|
+
/** Contribution details as a string. */
|
|
52
|
+
export type ContributorRole = string;
|
|
36
53
|
export interface ActivityWeight {
|
|
37
54
|
$type?: 'org.hypercerts.claim.activity#activityWeight';
|
|
38
55
|
activity: ComAtprotoRepoStrongRef.Main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/activity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,+BAA+B,CAAA;IACtC,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,2CAA2C;IAC3C,gBAAgB,EAAE,MAAM,CAAA;IACxB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EACF,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAC7B,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,SAAS,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACxC,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,
|
|
1
|
+
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/activity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,+BAA+B,CAAA;IACtC,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,2CAA2C;IAC3C,gBAAgB,EAAE,MAAM,CAAA;IACxB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EACF,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAC7B,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,SAAS,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACxC,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kHAAkH;IAClH,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5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AM,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sGAEvC;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
export interface Main {
|
|
6
|
+
$type: 'org.hypercerts.claim.contributionDetails';
|
|
7
|
+
/** Role or title of the contributor. */
|
|
8
|
+
role?: string;
|
|
9
|
+
/** What the contribution concretely was. */
|
|
10
|
+
contributionDescription?: string;
|
|
11
|
+
/** When this contribution started. This should be a subset of the hypercert timeframe. */
|
|
12
|
+
startDate?: string;
|
|
13
|
+
/** When this contribution finished. This should be a subset of the hypercert timeframe. */
|
|
14
|
+
endDate?: string;
|
|
15
|
+
/** Client-declared timestamp when this record was originally created. */
|
|
16
|
+
createdAt: string;
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.contributionDetails", "main">;
|
|
20
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
21
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
22
|
+
//# sourceMappingURL=contributionDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contributionDetails.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/contributionDetails.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,0CAA0C,CAAA;IACjD,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uGAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
|
package/dist/generated/types/org/hypercerts/claim/{contributor.d.ts → contributorInformation.d.ts}
RENAMED
|
@@ -5,7 +5,7 @@ import { type ValidationResult } from '@atproto/lexicon';
|
|
|
5
5
|
import { type $Typed } from '../../../../util';
|
|
6
6
|
import type * as OrgHypercertsDefs from '../defs.js';
|
|
7
7
|
export interface Main {
|
|
8
|
-
$type: 'org.hypercerts.claim.
|
|
8
|
+
$type: 'org.hypercerts.claim.contributorInformation';
|
|
9
9
|
/** DID or a URI to a social profile of the contributor. */
|
|
10
10
|
identifier?: string;
|
|
11
11
|
/** Display name of the contributor. */
|
|
@@ -13,19 +13,11 @@ export interface Main {
|
|
|
13
13
|
image?: $Typed<OrgHypercertsDefs.Uri> | $Typed<OrgHypercertsDefs.SmallImage> | {
|
|
14
14
|
$type: string;
|
|
15
15
|
};
|
|
16
|
-
/** Role or title of the contributor. */
|
|
17
|
-
role?: string;
|
|
18
|
-
/** What the contribution concretely achieved. */
|
|
19
|
-
contributionDescription?: string;
|
|
20
|
-
/** When this contribution started. This should be a subset of the hypercert timeframe. */
|
|
21
|
-
startDate?: string;
|
|
22
|
-
/** When this contribution finished. This should be a subset of the hypercert timeframe. */
|
|
23
|
-
endDate?: string;
|
|
24
16
|
/** Client-declared timestamp when this record was originally created. */
|
|
25
17
|
createdAt: string;
|
|
26
18
|
[k: string]: unknown;
|
|
27
19
|
}
|
|
28
|
-
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.
|
|
20
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.contributorInformation", "main">;
|
|
29
21
|
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
30
22
|
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
31
|
-
//# sourceMappingURL=
|
|
23
|
+
//# sourceMappingURL=contributorInformation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contributorInformation.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/claim/contributorInformation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AAMpD,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,6CAA6C,CAAA;IACpD,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EACF,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAC7B,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0GAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
|