@hypercerts-org/lexicon 0.10.0-beta.6 → 0.10.0-beta.8
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 +76 -0
- package/README.md +46 -0
- package/SCHEMAS.md +114 -104
- package/dist/exports.d.ts +186 -20
- package/dist/exports.d.ts.map +1 -1
- package/dist/generated/exports.d.ts +186 -20
- package/dist/generated/exports.d.ts.map +1 -1
- package/dist/generated/lexicons.d.ts +376 -54
- 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 +12 -13
- 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/defs.d.ts +44 -0
- package/dist/generated/types/org/hypercerts/defs.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/helper/workScopeTag.d.ts +31 -0
- package/dist/generated/types/org/hypercerts/helper/workScopeTag.d.ts.map +1 -0
- package/dist/index.cjs +729 -267
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +721 -263
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons.cjs +218 -27
- package/dist/lexicons.cjs.map +1 -1
- package/dist/lexicons.d.ts +376 -54
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/lexicons.mjs +218 -27
- 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 +12 -13
- 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/defs.d.ts +44 -0
- package/dist/types/org/hypercerts/defs.d.ts.map +1 -1
- package/dist/types/org/hypercerts/helper/workScopeTag.d.ts +31 -0
- package/dist/types/org/hypercerts/helper/workScopeTag.d.ts.map +1 -0
- package/lexicons/org/hypercerts/claim/activity.json +31 -25
- package/lexicons/org/hypercerts/claim/collection.json +33 -2
- package/lexicons/org/hypercerts/defs.json +88 -0
- package/lexicons/org/hypercerts/helper/workScopeTag.json +65 -0
- package/package.json +4 -1
|
@@ -3,20 +3,27 @@
|
|
|
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
|
};
|
|
19
|
-
workScope?:
|
|
24
|
+
workScope?: $Typed<OrgHypercertsDefs.WorkScopeAll> | $Typed<OrgHypercertsDefs.WorkScopeAny> | $Typed<OrgHypercertsDefs.WorkScopeNot> | $Typed<OrgHypercertsDefs.WorkScopeAtom> | {
|
|
25
|
+
$type: string;
|
|
26
|
+
};
|
|
20
27
|
/** When the work began */
|
|
21
28
|
startDate?: string;
|
|
22
29
|
/** When the work ended */
|
|
@@ -35,11 +42,11 @@ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
|
35
42
|
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
36
43
|
export interface Contributor {
|
|
37
44
|
$type?: 'org.hypercerts.claim.activity#contributor';
|
|
38
|
-
|
|
45
|
+
contributorIdentity: $Typed<ContributorIdentity> | $Typed<ComAtprotoRepoStrongRef.Main> | {
|
|
39
46
|
$type: string;
|
|
40
47
|
};
|
|
41
48
|
/** 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
|
-
|
|
49
|
+
contributionWeight?: string;
|
|
43
50
|
contributionDetails?: $Typed<ContributorRole> | $Typed<ComAtprotoRepoStrongRef.Main> | {
|
|
44
51
|
$type: string;
|
|
45
52
|
};
|
|
@@ -50,12 +57,4 @@ export declare function validateContributor<V>(v: V): ValidationResult<Contribut
|
|
|
50
57
|
export type ContributorIdentity = string;
|
|
51
58
|
/** Contribution details as a string. */
|
|
52
59
|
export type ContributorRole = string;
|
|
53
|
-
export interface ActivityWeight {
|
|
54
|
-
$type?: 'org.hypercerts.claim.activity#activityWeight';
|
|
55
|
-
activity: ComAtprotoRepoStrongRef.Main;
|
|
56
|
-
/** The relative weight/importance of this hypercert activity (stored as a string to avoid float precision issues). Weights can be any positive numeric values and do not need to sum to a specific total; normalization can be performed by the consuming application as needed. */
|
|
57
|
-
weight: string;
|
|
58
|
-
}
|
|
59
|
-
export declare function isActivityWeight<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.activity", "activityWeight">;
|
|
60
|
-
export declare function validateActivityWeight<V>(v: V): ValidationResult<ActivityWeight & V>;
|
|
61
60
|
//# 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/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,oBAAoB,MAAM,qCAAqC,CAAA;AAChF,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,sJAAsJ;IACtJ,gBAAgB,EAAE,MAAM,CAAA;IACxB,oFAAoF;IACpF,sBAAsB,CAAC,EAAE,oBAAoB,CAAC,IAAI,EAAE,CAAA;I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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,CAA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UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8FAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC"}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* GENERATED CODE - DO NOT MODIFY
|
|
3
3
|
*/
|
|
4
4
|
import { type ValidationResult, BlobRef } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../util';
|
|
6
|
+
import type * as ComAtprotoRepoStrongRef from '../../com/atproto/repo/strongRef.js';
|
|
5
7
|
/** Object containing a URI to external data */
|
|
6
8
|
export interface Uri {
|
|
7
9
|
$type?: 'org.hypercerts.defs#uri';
|
|
@@ -42,4 +44,46 @@ export interface LargeImage {
|
|
|
42
44
|
}
|
|
43
45
|
export declare function isLargeImage<V>(v: V): v is import("../../../util").$TypedObject<V, "org.hypercerts.defs", "largeImage">;
|
|
44
46
|
export declare function validateLargeImage<V>(v: V): ValidationResult<LargeImage & V>;
|
|
47
|
+
/** Logical AND operation: all arguments must be satisfied. */
|
|
48
|
+
export interface WorkScopeAll {
|
|
49
|
+
$type?: 'org.hypercerts.defs#workScopeAll';
|
|
50
|
+
/** Operator type: 'all' (logical AND) */
|
|
51
|
+
op: 'all';
|
|
52
|
+
/** Array of work scope expressions that must all be satisfied */
|
|
53
|
+
args: ($Typed<WorkScopeAll> | $Typed<WorkScopeAny> | $Typed<WorkScopeNot> | $Typed<WorkScopeAtom> | {
|
|
54
|
+
$type: string;
|
|
55
|
+
})[];
|
|
56
|
+
}
|
|
57
|
+
export declare function isWorkScopeAll<V>(v: V): v is import("../../../util").$TypedObject<V, "org.hypercerts.defs", "workScopeAll">;
|
|
58
|
+
export declare function validateWorkScopeAll<V>(v: V): ValidationResult<WorkScopeAll & V>;
|
|
59
|
+
/** Logical OR operation: at least one argument must be satisfied. */
|
|
60
|
+
export interface WorkScopeAny {
|
|
61
|
+
$type?: 'org.hypercerts.defs#workScopeAny';
|
|
62
|
+
/** Operator type: 'any' (logical OR) */
|
|
63
|
+
op: 'any';
|
|
64
|
+
/** Array of work scope expressions, at least one of which must be satisfied */
|
|
65
|
+
args: ($Typed<WorkScopeAll> | $Typed<WorkScopeAny> | $Typed<WorkScopeNot> | $Typed<WorkScopeAtom> | {
|
|
66
|
+
$type: string;
|
|
67
|
+
})[];
|
|
68
|
+
}
|
|
69
|
+
export declare function isWorkScopeAny<V>(v: V): v is import("../../../util").$TypedObject<V, "org.hypercerts.defs", "workScopeAny">;
|
|
70
|
+
export declare function validateWorkScopeAny<V>(v: V): ValidationResult<WorkScopeAny & V>;
|
|
71
|
+
/** Logical NOT operation: the argument must not be satisfied. */
|
|
72
|
+
export interface WorkScopeNot {
|
|
73
|
+
$type?: 'org.hypercerts.defs#workScopeNot';
|
|
74
|
+
/** Operator type: 'not' (logical NOT) */
|
|
75
|
+
op: 'not';
|
|
76
|
+
arg: $Typed<WorkScopeAll> | $Typed<WorkScopeAny> | $Typed<WorkScopeNot> | $Typed<WorkScopeAtom> | {
|
|
77
|
+
$type: string;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export declare function isWorkScopeNot<V>(v: V): v is import("../../../util").$TypedObject<V, "org.hypercerts.defs", "workScopeNot">;
|
|
81
|
+
export declare function validateWorkScopeNot<V>(v: V): ValidationResult<WorkScopeNot & V>;
|
|
82
|
+
/** Atomic scope reference: a strong reference to a scope record. */
|
|
83
|
+
export interface WorkScopeAtom {
|
|
84
|
+
$type?: 'org.hypercerts.defs#workScopeAtom';
|
|
85
|
+
atom: ComAtprotoRepoStrongRef.Main;
|
|
86
|
+
}
|
|
87
|
+
export declare function isWorkScopeAtom<V>(v: V): v is import("../../../util").$TypedObject<V, "org.hypercerts.defs", "workScopeAtom">;
|
|
88
|
+
export declare function validateWorkScopeAtom<V>(v: V): ValidationResult<WorkScopeAtom & V>;
|
|
45
89
|
//# sourceMappingURL=defs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../generated/types/org/hypercerts/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../generated/types/org/hypercerts/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EAAE,KAAK,MAAM,EAAuC,MAAM,eAAe,CAAA;AAChF,OAAO,KAAK,KAAK,uBAAuB,MAAM,qCAAqC,CAAA;AAMnF,+CAA+C;AAC/C,MAAM,WAAW,GAAG;IAClB,KAAK,CAAC,EAAE,yBAAyB,CAAA;IACjC,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAA;CACZ;AAID,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8EAE5B;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6BAElC;AAED,gDAAgD;AAChD,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,+BAA+B,CAAA;IACvC,yCAAyC;IACzC,IAAI,EAAE,OAAO,CAAA;CACd;AAID,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oFAElC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mCAExC;AAED,gDAAgD;AAChD,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,+BAA+B,CAAA;IACvC,0CAA0C;IAC1C,IAAI,EAAE,OAAO,CAAA;CACd;AAID,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oFAElC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,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AAC,GACpB,MAAM,CAAC,aAAa,CAAC,GACrB;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CACpB,EAAE,CAAA;CACJ;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uFAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C;AAED,iEAAiE;AACjE,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,yCAAyC;IACzC,EAAE,EAAE,KAAK,CAAA;IACT,GAAG,EACC,MAAM,CAAC,YAAY,CAAC,GACpB,MAAM,CAAC,YAAY,CAAC,GACpB,MAAM,CAAC,YAAY,CAAC,GACpB,MAAM,CAAC,aAAa,CAAC,GACrB;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CACtB;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uFAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C;AAED,oEAAoE;AACpE,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,mCAAmC,CAAA;IAC3C,IAAI,EAAE,uBAAuB,CAAC,IAAI,CAAA;CACnC;AAID,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wFAEtC;AAED,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uCAE5C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../../util';
|
|
6
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
7
|
+
import type * as OrgHypercertsDefs from '../defs.js';
|
|
8
|
+
export interface Main {
|
|
9
|
+
$type: 'org.hypercerts.helper.workScopeTag';
|
|
10
|
+
/** Client-declared timestamp when this record was originally created */
|
|
11
|
+
createdAt: string;
|
|
12
|
+
/** Lowercase, hyphenated machine-readable key for this scope (e.g., 'ipfs', 'go-lang', 'filecoin'). */
|
|
13
|
+
key: string;
|
|
14
|
+
/** Human-readable label for this scope. */
|
|
15
|
+
label: string;
|
|
16
|
+
/** Category type of this scope. Recommended values: topic, language, domain, method, tag. */
|
|
17
|
+
kind?: string;
|
|
18
|
+
/** Optional longer description of this scope. */
|
|
19
|
+
description?: string;
|
|
20
|
+
parent?: ComAtprotoRepoStrongRef.Main;
|
|
21
|
+
/** Optional array of alternative names or identifiers for this scope. */
|
|
22
|
+
aliases?: string[];
|
|
23
|
+
externalReference?: $Typed<OrgHypercertsDefs.Uri> | $Typed<OrgHypercertsDefs.SmallBlob> | {
|
|
24
|
+
$type: string;
|
|
25
|
+
};
|
|
26
|
+
[k: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.helper.workScopeTag", "main">;
|
|
29
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
30
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
31
|
+
//# sourceMappingURL=workScopeTag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workScopeTag.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/helper/workScopeTag.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,uBAAuB,MAAM,wCAAwC,CAAA;AACtF,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AAMpD,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,oCAAoC,CAAA;IAC3C,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAA;IACjB,uGAAuG;IACvG,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,6FAA6F;IAC7F,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACrC,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,iBAAiB,CAAC,EACd,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAC7B,MAAM,CAAC,iBAAiB,CAAC,SAAS,CAAC,GACnC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iGAE7B;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"}
|