@hypercerts-org/lexicon 0.10.0-beta.7 → 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 +26 -0
- package/SCHEMAS.md +12 -8
- package/dist/exports.d.ts +143 -3
- package/dist/exports.d.ts.map +1 -1
- package/dist/generated/exports.d.ts +143 -3
- package/dist/generated/exports.d.ts.map +1 -1
- package/dist/generated/lexicons.d.ts +276 -6
- package/dist/generated/lexicons.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts +3 -1
- package/dist/generated/types/org/hypercerts/claim/activity.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 +615 -216
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +607 -212
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons.cjs +162 -3
- package/dist/lexicons.cjs.map +1 -1
- package/dist/lexicons.d.ts +276 -6
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/lexicons.mjs +162 -3
- package/dist/lexicons.mjs.map +1 -1
- package/dist/types/org/hypercerts/claim/activity.d.ts +3 -1
- package/dist/types/org/hypercerts/claim/activity.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 +8 -3
- package/lexicons/org/hypercerts/defs.json +88 -0
- package/lexicons/org/hypercerts/helper/workScopeTag.json +65 -0
- package/package.json +1 -1
package/dist/lexicons.d.ts
CHANGED
|
@@ -263,9 +263,9 @@ export declare const schemaDict: {
|
|
|
263
263
|
readonly description: "The hypercert visual representation as a URI or image blob.";
|
|
264
264
|
};
|
|
265
265
|
readonly workScope: {
|
|
266
|
-
readonly type: "
|
|
267
|
-
readonly
|
|
268
|
-
readonly description: "
|
|
266
|
+
readonly type: "union";
|
|
267
|
+
readonly refs: ["lex:org.hypercerts.defs#workScopeAll", "lex:org.hypercerts.defs#workScopeAny", "lex:org.hypercerts.defs#workScopeNot", "lex:org.hypercerts.defs#workScopeAtom"];
|
|
268
|
+
readonly description: "Work scope logic expression using boolean operators (all/any/not) and atomic scope references.";
|
|
269
269
|
};
|
|
270
270
|
readonly startDate: {
|
|
271
271
|
readonly type: "string";
|
|
@@ -816,6 +816,79 @@ export declare const schemaDict: {
|
|
|
816
816
|
};
|
|
817
817
|
};
|
|
818
818
|
};
|
|
819
|
+
readonly workScopeAll: {
|
|
820
|
+
readonly type: "object";
|
|
821
|
+
readonly required: ["op", "args"];
|
|
822
|
+
readonly description: "Logical AND operation: all arguments must be satisfied.";
|
|
823
|
+
readonly properties: {
|
|
824
|
+
readonly op: {
|
|
825
|
+
readonly type: "string";
|
|
826
|
+
readonly const: "all";
|
|
827
|
+
readonly description: "Operator type: 'all' (logical AND)";
|
|
828
|
+
};
|
|
829
|
+
readonly args: {
|
|
830
|
+
readonly type: "array";
|
|
831
|
+
readonly items: {
|
|
832
|
+
readonly type: "union";
|
|
833
|
+
readonly refs: ["lex:org.hypercerts.defs#workScopeAll", "lex:org.hypercerts.defs#workScopeAny", "lex:org.hypercerts.defs#workScopeNot", "lex:org.hypercerts.defs#workScopeAtom"];
|
|
834
|
+
};
|
|
835
|
+
readonly minLength: 1;
|
|
836
|
+
readonly maxLength: 100;
|
|
837
|
+
readonly description: "Array of work scope expressions that must all be satisfied";
|
|
838
|
+
};
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
readonly workScopeAny: {
|
|
842
|
+
readonly type: "object";
|
|
843
|
+
readonly required: ["op", "args"];
|
|
844
|
+
readonly description: "Logical OR operation: at least one argument must be satisfied.";
|
|
845
|
+
readonly properties: {
|
|
846
|
+
readonly op: {
|
|
847
|
+
readonly type: "string";
|
|
848
|
+
readonly const: "any";
|
|
849
|
+
readonly description: "Operator type: 'any' (logical OR)";
|
|
850
|
+
};
|
|
851
|
+
readonly args: {
|
|
852
|
+
readonly type: "array";
|
|
853
|
+
readonly items: {
|
|
854
|
+
readonly type: "union";
|
|
855
|
+
readonly refs: ["lex:org.hypercerts.defs#workScopeAll", "lex:org.hypercerts.defs#workScopeAny", "lex:org.hypercerts.defs#workScopeNot", "lex:org.hypercerts.defs#workScopeAtom"];
|
|
856
|
+
};
|
|
857
|
+
readonly minLength: 1;
|
|
858
|
+
readonly maxLength: 100;
|
|
859
|
+
readonly description: "Array of work scope expressions, at least one of which must be satisfied";
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
readonly workScopeNot: {
|
|
864
|
+
readonly type: "object";
|
|
865
|
+
readonly required: ["op", "arg"];
|
|
866
|
+
readonly description: "Logical NOT operation: the argument must not be satisfied.";
|
|
867
|
+
readonly properties: {
|
|
868
|
+
readonly op: {
|
|
869
|
+
readonly type: "string";
|
|
870
|
+
readonly const: "not";
|
|
871
|
+
readonly description: "Operator type: 'not' (logical NOT)";
|
|
872
|
+
};
|
|
873
|
+
readonly arg: {
|
|
874
|
+
readonly type: "union";
|
|
875
|
+
readonly refs: ["lex:org.hypercerts.defs#workScopeAll", "lex:org.hypercerts.defs#workScopeAny", "lex:org.hypercerts.defs#workScopeNot", "lex:org.hypercerts.defs#workScopeAtom"];
|
|
876
|
+
readonly description: "Work scope expression that must not be satisfied";
|
|
877
|
+
};
|
|
878
|
+
};
|
|
879
|
+
};
|
|
880
|
+
readonly workScopeAtom: {
|
|
881
|
+
readonly type: "object";
|
|
882
|
+
readonly required: ["atom"];
|
|
883
|
+
readonly description: "Atomic scope reference: a strong reference to a scope record.";
|
|
884
|
+
readonly properties: {
|
|
885
|
+
readonly atom: {
|
|
886
|
+
readonly type: "ref";
|
|
887
|
+
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
888
|
+
readonly description: "Strong reference to an org.hypercerts.helper.workScopeTag record";
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
};
|
|
819
892
|
};
|
|
820
893
|
};
|
|
821
894
|
readonly OrgHypercertsFundingReceipt: {
|
|
@@ -884,6 +957,68 @@ export declare const schemaDict: {
|
|
|
884
957
|
};
|
|
885
958
|
};
|
|
886
959
|
};
|
|
960
|
+
readonly OrgHypercertsHelperWorkScopeTag: {
|
|
961
|
+
readonly lexicon: 1;
|
|
962
|
+
readonly id: "org.hypercerts.helper.workScopeTag";
|
|
963
|
+
readonly defs: {
|
|
964
|
+
readonly main: {
|
|
965
|
+
readonly type: "record";
|
|
966
|
+
readonly description: "A reusable scope atom for work scope logic expressions. Scopes can represent topics, languages, domains, deliverables, methods, regions, tags, or other categorical labels.";
|
|
967
|
+
readonly key: "tid";
|
|
968
|
+
readonly record: {
|
|
969
|
+
readonly type: "object";
|
|
970
|
+
readonly required: ["createdAt", "key", "label"];
|
|
971
|
+
readonly properties: {
|
|
972
|
+
readonly createdAt: {
|
|
973
|
+
readonly type: "string";
|
|
974
|
+
readonly format: "datetime";
|
|
975
|
+
readonly description: "Client-declared timestamp when this record was originally created";
|
|
976
|
+
};
|
|
977
|
+
readonly key: {
|
|
978
|
+
readonly type: "string";
|
|
979
|
+
readonly description: "Lowercase, hyphenated machine-readable key for this scope (e.g., 'ipfs', 'go-lang', 'filecoin').";
|
|
980
|
+
readonly maxLength: 120;
|
|
981
|
+
};
|
|
982
|
+
readonly label: {
|
|
983
|
+
readonly type: "string";
|
|
984
|
+
readonly description: "Human-readable label for this scope.";
|
|
985
|
+
readonly maxLength: 200;
|
|
986
|
+
};
|
|
987
|
+
readonly kind: {
|
|
988
|
+
readonly type: "string";
|
|
989
|
+
readonly description: "Category type of this scope. Recommended values: topic, language, domain, method, tag.";
|
|
990
|
+
readonly maxLength: 50;
|
|
991
|
+
};
|
|
992
|
+
readonly description: {
|
|
993
|
+
readonly type: "string";
|
|
994
|
+
readonly description: "Optional longer description of this scope.";
|
|
995
|
+
readonly maxLength: 10000;
|
|
996
|
+
readonly maxGraphemes: 1000;
|
|
997
|
+
};
|
|
998
|
+
readonly parent: {
|
|
999
|
+
readonly type: "ref";
|
|
1000
|
+
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
1001
|
+
readonly description: "Optional strong reference to a parent scope record for taxonomy/hierarchy support.";
|
|
1002
|
+
};
|
|
1003
|
+
readonly aliases: {
|
|
1004
|
+
readonly type: "array";
|
|
1005
|
+
readonly items: {
|
|
1006
|
+
readonly type: "string";
|
|
1007
|
+
readonly maxLength: 200;
|
|
1008
|
+
};
|
|
1009
|
+
readonly maxLength: 50;
|
|
1010
|
+
readonly description: "Optional array of alternative names or identifiers for this scope.";
|
|
1011
|
+
};
|
|
1012
|
+
readonly externalReference: {
|
|
1013
|
+
readonly type: "union";
|
|
1014
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallBlob"];
|
|
1015
|
+
readonly description: "Optional external reference for this scope as a URI or blob.";
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
};
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
887
1022
|
};
|
|
888
1023
|
export declare const schemas: ({
|
|
889
1024
|
readonly lexicon: 1;
|
|
@@ -1139,9 +1274,9 @@ export declare const schemas: ({
|
|
|
1139
1274
|
readonly description: "The hypercert visual representation as a URI or image blob.";
|
|
1140
1275
|
};
|
|
1141
1276
|
readonly workScope: {
|
|
1142
|
-
readonly type: "
|
|
1143
|
-
readonly
|
|
1144
|
-
readonly description: "
|
|
1277
|
+
readonly type: "union";
|
|
1278
|
+
readonly refs: ["lex:org.hypercerts.defs#workScopeAll", "lex:org.hypercerts.defs#workScopeAny", "lex:org.hypercerts.defs#workScopeNot", "lex:org.hypercerts.defs#workScopeAtom"];
|
|
1279
|
+
readonly description: "Work scope logic expression using boolean operators (all/any/not) and atomic scope references.";
|
|
1145
1280
|
};
|
|
1146
1281
|
readonly startDate: {
|
|
1147
1282
|
readonly type: "string";
|
|
@@ -1684,6 +1819,79 @@ export declare const schemas: ({
|
|
|
1684
1819
|
};
|
|
1685
1820
|
};
|
|
1686
1821
|
};
|
|
1822
|
+
readonly workScopeAll: {
|
|
1823
|
+
readonly type: "object";
|
|
1824
|
+
readonly required: ["op", "args"];
|
|
1825
|
+
readonly description: "Logical AND operation: all arguments must be satisfied.";
|
|
1826
|
+
readonly properties: {
|
|
1827
|
+
readonly op: {
|
|
1828
|
+
readonly type: "string";
|
|
1829
|
+
readonly const: "all";
|
|
1830
|
+
readonly description: "Operator type: 'all' (logical AND)";
|
|
1831
|
+
};
|
|
1832
|
+
readonly args: {
|
|
1833
|
+
readonly type: "array";
|
|
1834
|
+
readonly items: {
|
|
1835
|
+
readonly type: "union";
|
|
1836
|
+
readonly refs: ["lex:org.hypercerts.defs#workScopeAll", "lex:org.hypercerts.defs#workScopeAny", "lex:org.hypercerts.defs#workScopeNot", "lex:org.hypercerts.defs#workScopeAtom"];
|
|
1837
|
+
};
|
|
1838
|
+
readonly minLength: 1;
|
|
1839
|
+
readonly maxLength: 100;
|
|
1840
|
+
readonly description: "Array of work scope expressions that must all be satisfied";
|
|
1841
|
+
};
|
|
1842
|
+
};
|
|
1843
|
+
};
|
|
1844
|
+
readonly workScopeAny: {
|
|
1845
|
+
readonly type: "object";
|
|
1846
|
+
readonly required: ["op", "args"];
|
|
1847
|
+
readonly description: "Logical OR operation: at least one argument must be satisfied.";
|
|
1848
|
+
readonly properties: {
|
|
1849
|
+
readonly op: {
|
|
1850
|
+
readonly type: "string";
|
|
1851
|
+
readonly const: "any";
|
|
1852
|
+
readonly description: "Operator type: 'any' (logical OR)";
|
|
1853
|
+
};
|
|
1854
|
+
readonly args: {
|
|
1855
|
+
readonly type: "array";
|
|
1856
|
+
readonly items: {
|
|
1857
|
+
readonly type: "union";
|
|
1858
|
+
readonly refs: ["lex:org.hypercerts.defs#workScopeAll", "lex:org.hypercerts.defs#workScopeAny", "lex:org.hypercerts.defs#workScopeNot", "lex:org.hypercerts.defs#workScopeAtom"];
|
|
1859
|
+
};
|
|
1860
|
+
readonly minLength: 1;
|
|
1861
|
+
readonly maxLength: 100;
|
|
1862
|
+
readonly description: "Array of work scope expressions, at least one of which must be satisfied";
|
|
1863
|
+
};
|
|
1864
|
+
};
|
|
1865
|
+
};
|
|
1866
|
+
readonly workScopeNot: {
|
|
1867
|
+
readonly type: "object";
|
|
1868
|
+
readonly required: ["op", "arg"];
|
|
1869
|
+
readonly description: "Logical NOT operation: the argument must not be satisfied.";
|
|
1870
|
+
readonly properties: {
|
|
1871
|
+
readonly op: {
|
|
1872
|
+
readonly type: "string";
|
|
1873
|
+
readonly const: "not";
|
|
1874
|
+
readonly description: "Operator type: 'not' (logical NOT)";
|
|
1875
|
+
};
|
|
1876
|
+
readonly arg: {
|
|
1877
|
+
readonly type: "union";
|
|
1878
|
+
readonly refs: ["lex:org.hypercerts.defs#workScopeAll", "lex:org.hypercerts.defs#workScopeAny", "lex:org.hypercerts.defs#workScopeNot", "lex:org.hypercerts.defs#workScopeAtom"];
|
|
1879
|
+
readonly description: "Work scope expression that must not be satisfied";
|
|
1880
|
+
};
|
|
1881
|
+
};
|
|
1882
|
+
};
|
|
1883
|
+
readonly workScopeAtom: {
|
|
1884
|
+
readonly type: "object";
|
|
1885
|
+
readonly required: ["atom"];
|
|
1886
|
+
readonly description: "Atomic scope reference: a strong reference to a scope record.";
|
|
1887
|
+
readonly properties: {
|
|
1888
|
+
readonly atom: {
|
|
1889
|
+
readonly type: "ref";
|
|
1890
|
+
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
1891
|
+
readonly description: "Strong reference to an org.hypercerts.helper.workScopeTag record";
|
|
1892
|
+
};
|
|
1893
|
+
};
|
|
1894
|
+
};
|
|
1687
1895
|
};
|
|
1688
1896
|
} | {
|
|
1689
1897
|
readonly lexicon: 1;
|
|
@@ -1750,6 +1958,67 @@ export declare const schemas: ({
|
|
|
1750
1958
|
};
|
|
1751
1959
|
};
|
|
1752
1960
|
};
|
|
1961
|
+
} | {
|
|
1962
|
+
readonly lexicon: 1;
|
|
1963
|
+
readonly id: "org.hypercerts.helper.workScopeTag";
|
|
1964
|
+
readonly defs: {
|
|
1965
|
+
readonly main: {
|
|
1966
|
+
readonly type: "record";
|
|
1967
|
+
readonly description: "A reusable scope atom for work scope logic expressions. Scopes can represent topics, languages, domains, deliverables, methods, regions, tags, or other categorical labels.";
|
|
1968
|
+
readonly key: "tid";
|
|
1969
|
+
readonly record: {
|
|
1970
|
+
readonly type: "object";
|
|
1971
|
+
readonly required: ["createdAt", "key", "label"];
|
|
1972
|
+
readonly properties: {
|
|
1973
|
+
readonly createdAt: {
|
|
1974
|
+
readonly type: "string";
|
|
1975
|
+
readonly format: "datetime";
|
|
1976
|
+
readonly description: "Client-declared timestamp when this record was originally created";
|
|
1977
|
+
};
|
|
1978
|
+
readonly key: {
|
|
1979
|
+
readonly type: "string";
|
|
1980
|
+
readonly description: "Lowercase, hyphenated machine-readable key for this scope (e.g., 'ipfs', 'go-lang', 'filecoin').";
|
|
1981
|
+
readonly maxLength: 120;
|
|
1982
|
+
};
|
|
1983
|
+
readonly label: {
|
|
1984
|
+
readonly type: "string";
|
|
1985
|
+
readonly description: "Human-readable label for this scope.";
|
|
1986
|
+
readonly maxLength: 200;
|
|
1987
|
+
};
|
|
1988
|
+
readonly kind: {
|
|
1989
|
+
readonly type: "string";
|
|
1990
|
+
readonly description: "Category type of this scope. Recommended values: topic, language, domain, method, tag.";
|
|
1991
|
+
readonly maxLength: 50;
|
|
1992
|
+
};
|
|
1993
|
+
readonly description: {
|
|
1994
|
+
readonly type: "string";
|
|
1995
|
+
readonly description: "Optional longer description of this scope.";
|
|
1996
|
+
readonly maxLength: 10000;
|
|
1997
|
+
readonly maxGraphemes: 1000;
|
|
1998
|
+
};
|
|
1999
|
+
readonly parent: {
|
|
2000
|
+
readonly type: "ref";
|
|
2001
|
+
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
2002
|
+
readonly description: "Optional strong reference to a parent scope record for taxonomy/hierarchy support.";
|
|
2003
|
+
};
|
|
2004
|
+
readonly aliases: {
|
|
2005
|
+
readonly type: "array";
|
|
2006
|
+
readonly items: {
|
|
2007
|
+
readonly type: "string";
|
|
2008
|
+
readonly maxLength: 200;
|
|
2009
|
+
};
|
|
2010
|
+
readonly maxLength: 50;
|
|
2011
|
+
readonly description: "Optional array of alternative names or identifiers for this scope.";
|
|
2012
|
+
};
|
|
2013
|
+
readonly externalReference: {
|
|
2014
|
+
readonly type: "union";
|
|
2015
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallBlob"];
|
|
2016
|
+
readonly description: "Optional external reference for this scope as a URI or blob.";
|
|
2017
|
+
};
|
|
2018
|
+
};
|
|
2019
|
+
};
|
|
2020
|
+
};
|
|
2021
|
+
};
|
|
1753
2022
|
})[];
|
|
1754
2023
|
export declare const lexicons: Lexicons;
|
|
1755
2024
|
export declare function validate<T extends {
|
|
@@ -1775,5 +2044,6 @@ export declare const ids: {
|
|
|
1775
2044
|
readonly OrgHypercertsClaimRights: "org.hypercerts.claim.rights";
|
|
1776
2045
|
readonly OrgHypercertsDefs: "org.hypercerts.defs";
|
|
1777
2046
|
readonly OrgHypercertsFundingReceipt: "org.hypercerts.funding.receipt";
|
|
2047
|
+
readonly OrgHypercertsHelperWorkScopeTag: "org.hypercerts.helper.workScopeTag";
|
|
1778
2048
|
};
|
|
1779
2049
|
//# sourceMappingURL=lexicons.d.ts.map
|
package/dist/lexicons.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lexicons.d.ts","sourceRoot":"","sources":["../generated/lexicons.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,QAAQ,EAER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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;;;;;;;;;;;;;;;;;;CAoBN,CAAA"}
|
package/dist/lexicons.mjs
CHANGED
|
@@ -308,9 +308,14 @@ const schemaDict = {
|
|
|
308
308
|
description: 'The hypercert visual representation as a URI or image blob.',
|
|
309
309
|
},
|
|
310
310
|
workScope: {
|
|
311
|
-
type: '
|
|
312
|
-
|
|
313
|
-
|
|
311
|
+
type: 'union',
|
|
312
|
+
refs: [
|
|
313
|
+
'lex:org.hypercerts.defs#workScopeAll',
|
|
314
|
+
'lex:org.hypercerts.defs#workScopeAny',
|
|
315
|
+
'lex:org.hypercerts.defs#workScopeNot',
|
|
316
|
+
'lex:org.hypercerts.defs#workScopeAtom',
|
|
317
|
+
],
|
|
318
|
+
description: 'Work scope logic expression using boolean operators (all/any/not) and atomic scope references.',
|
|
314
319
|
},
|
|
315
320
|
startDate: {
|
|
316
321
|
type: 'string',
|
|
@@ -890,6 +895,94 @@ const schemaDict = {
|
|
|
890
895
|
},
|
|
891
896
|
},
|
|
892
897
|
},
|
|
898
|
+
workScopeAll: {
|
|
899
|
+
type: 'object',
|
|
900
|
+
required: ['op', 'args'],
|
|
901
|
+
description: 'Logical AND operation: all arguments must be satisfied.',
|
|
902
|
+
properties: {
|
|
903
|
+
op: {
|
|
904
|
+
type: 'string',
|
|
905
|
+
const: 'all',
|
|
906
|
+
description: "Operator type: 'all' (logical AND)",
|
|
907
|
+
},
|
|
908
|
+
args: {
|
|
909
|
+
type: 'array',
|
|
910
|
+
items: {
|
|
911
|
+
type: 'union',
|
|
912
|
+
refs: [
|
|
913
|
+
'lex:org.hypercerts.defs#workScopeAll',
|
|
914
|
+
'lex:org.hypercerts.defs#workScopeAny',
|
|
915
|
+
'lex:org.hypercerts.defs#workScopeNot',
|
|
916
|
+
'lex:org.hypercerts.defs#workScopeAtom',
|
|
917
|
+
],
|
|
918
|
+
},
|
|
919
|
+
minLength: 1,
|
|
920
|
+
maxLength: 100,
|
|
921
|
+
description: 'Array of work scope expressions that must all be satisfied',
|
|
922
|
+
},
|
|
923
|
+
},
|
|
924
|
+
},
|
|
925
|
+
workScopeAny: {
|
|
926
|
+
type: 'object',
|
|
927
|
+
required: ['op', 'args'],
|
|
928
|
+
description: 'Logical OR operation: at least one argument must be satisfied.',
|
|
929
|
+
properties: {
|
|
930
|
+
op: {
|
|
931
|
+
type: 'string',
|
|
932
|
+
const: 'any',
|
|
933
|
+
description: "Operator type: 'any' (logical OR)",
|
|
934
|
+
},
|
|
935
|
+
args: {
|
|
936
|
+
type: 'array',
|
|
937
|
+
items: {
|
|
938
|
+
type: 'union',
|
|
939
|
+
refs: [
|
|
940
|
+
'lex:org.hypercerts.defs#workScopeAll',
|
|
941
|
+
'lex:org.hypercerts.defs#workScopeAny',
|
|
942
|
+
'lex:org.hypercerts.defs#workScopeNot',
|
|
943
|
+
'lex:org.hypercerts.defs#workScopeAtom',
|
|
944
|
+
],
|
|
945
|
+
},
|
|
946
|
+
minLength: 1,
|
|
947
|
+
maxLength: 100,
|
|
948
|
+
description: 'Array of work scope expressions, at least one of which must be satisfied',
|
|
949
|
+
},
|
|
950
|
+
},
|
|
951
|
+
},
|
|
952
|
+
workScopeNot: {
|
|
953
|
+
type: 'object',
|
|
954
|
+
required: ['op', 'arg'],
|
|
955
|
+
description: 'Logical NOT operation: the argument must not be satisfied.',
|
|
956
|
+
properties: {
|
|
957
|
+
op: {
|
|
958
|
+
type: 'string',
|
|
959
|
+
const: 'not',
|
|
960
|
+
description: "Operator type: 'not' (logical NOT)",
|
|
961
|
+
},
|
|
962
|
+
arg: {
|
|
963
|
+
type: 'union',
|
|
964
|
+
refs: [
|
|
965
|
+
'lex:org.hypercerts.defs#workScopeAll',
|
|
966
|
+
'lex:org.hypercerts.defs#workScopeAny',
|
|
967
|
+
'lex:org.hypercerts.defs#workScopeNot',
|
|
968
|
+
'lex:org.hypercerts.defs#workScopeAtom',
|
|
969
|
+
],
|
|
970
|
+
description: 'Work scope expression that must not be satisfied',
|
|
971
|
+
},
|
|
972
|
+
},
|
|
973
|
+
},
|
|
974
|
+
workScopeAtom: {
|
|
975
|
+
type: 'object',
|
|
976
|
+
required: ['atom'],
|
|
977
|
+
description: 'Atomic scope reference: a strong reference to a scope record.',
|
|
978
|
+
properties: {
|
|
979
|
+
atom: {
|
|
980
|
+
type: 'ref',
|
|
981
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
982
|
+
description: 'Strong reference to an org.hypercerts.helper.workScopeTag record',
|
|
983
|
+
},
|
|
984
|
+
},
|
|
985
|
+
},
|
|
893
986
|
},
|
|
894
987
|
},
|
|
895
988
|
OrgHypercertsFundingReceipt: {
|
|
@@ -958,6 +1051,71 @@ const schemaDict = {
|
|
|
958
1051
|
},
|
|
959
1052
|
},
|
|
960
1053
|
},
|
|
1054
|
+
OrgHypercertsHelperWorkScopeTag: {
|
|
1055
|
+
lexicon: 1,
|
|
1056
|
+
id: 'org.hypercerts.helper.workScopeTag',
|
|
1057
|
+
defs: {
|
|
1058
|
+
main: {
|
|
1059
|
+
type: 'record',
|
|
1060
|
+
description: 'A reusable scope atom for work scope logic expressions. Scopes can represent topics, languages, domains, deliverables, methods, regions, tags, or other categorical labels.',
|
|
1061
|
+
key: 'tid',
|
|
1062
|
+
record: {
|
|
1063
|
+
type: 'object',
|
|
1064
|
+
required: ['createdAt', 'key', 'label'],
|
|
1065
|
+
properties: {
|
|
1066
|
+
createdAt: {
|
|
1067
|
+
type: 'string',
|
|
1068
|
+
format: 'datetime',
|
|
1069
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
1070
|
+
},
|
|
1071
|
+
key: {
|
|
1072
|
+
type: 'string',
|
|
1073
|
+
description: "Lowercase, hyphenated machine-readable key for this scope (e.g., 'ipfs', 'go-lang', 'filecoin').",
|
|
1074
|
+
maxLength: 120,
|
|
1075
|
+
},
|
|
1076
|
+
label: {
|
|
1077
|
+
type: 'string',
|
|
1078
|
+
description: 'Human-readable label for this scope.',
|
|
1079
|
+
maxLength: 200,
|
|
1080
|
+
},
|
|
1081
|
+
kind: {
|
|
1082
|
+
type: 'string',
|
|
1083
|
+
description: 'Category type of this scope. Recommended values: topic, language, domain, method, tag.',
|
|
1084
|
+
maxLength: 50,
|
|
1085
|
+
},
|
|
1086
|
+
description: {
|
|
1087
|
+
type: 'string',
|
|
1088
|
+
description: 'Optional longer description of this scope.',
|
|
1089
|
+
maxLength: 10000,
|
|
1090
|
+
maxGraphemes: 1000,
|
|
1091
|
+
},
|
|
1092
|
+
parent: {
|
|
1093
|
+
type: 'ref',
|
|
1094
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
1095
|
+
description: 'Optional strong reference to a parent scope record for taxonomy/hierarchy support.',
|
|
1096
|
+
},
|
|
1097
|
+
aliases: {
|
|
1098
|
+
type: 'array',
|
|
1099
|
+
items: {
|
|
1100
|
+
type: 'string',
|
|
1101
|
+
maxLength: 200,
|
|
1102
|
+
},
|
|
1103
|
+
maxLength: 50,
|
|
1104
|
+
description: 'Optional array of alternative names or identifiers for this scope.',
|
|
1105
|
+
},
|
|
1106
|
+
externalReference: {
|
|
1107
|
+
type: 'union',
|
|
1108
|
+
refs: [
|
|
1109
|
+
'lex:org.hypercerts.defs#uri',
|
|
1110
|
+
'lex:org.hypercerts.defs#smallBlob',
|
|
1111
|
+
],
|
|
1112
|
+
description: 'Optional external reference for this scope as a URI or blob.',
|
|
1113
|
+
},
|
|
1114
|
+
},
|
|
1115
|
+
},
|
|
1116
|
+
},
|
|
1117
|
+
},
|
|
1118
|
+
},
|
|
961
1119
|
};
|
|
962
1120
|
const schemas = Object.values(schemaDict);
|
|
963
1121
|
const lexicons = new Lexicons(schemas);
|
|
@@ -986,6 +1144,7 @@ const ids = {
|
|
|
986
1144
|
OrgHypercertsClaimRights: 'org.hypercerts.claim.rights',
|
|
987
1145
|
OrgHypercertsDefs: 'org.hypercerts.defs',
|
|
988
1146
|
OrgHypercertsFundingReceipt: 'org.hypercerts.funding.receipt',
|
|
1147
|
+
OrgHypercertsHelperWorkScopeTag: 'org.hypercerts.helper.workScopeTag',
|
|
989
1148
|
};
|
|
990
1149
|
|
|
991
1150
|
export { ids, lexicons, schemaDict, schemas, validate };
|