@fedify/fedify 0.10.0-dev.199 → 0.10.0-dev.200
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +20 -1
- package/esm/codegen/schema.yaml +6 -1
- package/esm/runtime/key.js +1 -1
- package/esm/sig/http.js +10 -61
- package/esm/sig/key.js +85 -0
- package/esm/testing/fixtures/example.com/person2 +20 -3
- package/esm/testing/fixtures/server.example/users/alice +20 -0
- package/esm/testing/fixtures/wizard.casa/users/hongminhee +69 -0
- package/esm/vocab/dataintegrityproof.yaml +1 -1
- package/esm/vocab/object.yaml +1 -0
- package/esm/vocab/vocab.js +484 -221
- package/package.json +3 -2
- package/types/codegen/schema.d.ts.map +1 -1
- package/types/sig/http.d.ts +1 -1
- package/types/sig/http.d.ts.map +1 -1
- package/types/sig/key.d.ts +38 -0
- package/types/sig/key.d.ts.map +1 -1
- package/types/sig/proof.d.ts.map +1 -0
- package/types/sig/proof.test.d.ts.map +1 -0
- package/types/testing/keys.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts.map +1 -1
- package/esm/testing/fixtures/example.com/key3 +0 -7
- package/esm/testing/fixtures/example.com/key4 +0 -7
package/esm/vocab/vocab.js
CHANGED
@@ -1796,20 +1796,21 @@ export class Object {
|
|
1796
1796
|
const values = {};
|
1797
1797
|
array = [];
|
1798
1798
|
for (const v of this.#_49BipA5dq9eoH8LX8xdsVumveTca) {
|
1799
|
-
|
1799
|
+
const element = v instanceof URL
|
1800
1800
|
? { "@id": v.href }
|
1801
1801
|
: v instanceof _a
|
1802
1802
|
? await v.toJsonLd(options)
|
1803
1803
|
: v instanceof Link
|
1804
1804
|
? await v.toJsonLd(options)
|
1805
|
-
: await v.toJsonLd(options)
|
1805
|
+
: await v.toJsonLd(options);
|
1806
|
+
array.push(element);
|
1806
1807
|
}
|
1807
1808
|
if (array.length > 0) {
|
1808
1809
|
values["https://www.w3.org/ns/activitystreams#attachment"] = array;
|
1809
1810
|
}
|
1810
1811
|
array = [];
|
1811
1812
|
for (const v of this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py) {
|
1812
|
-
|
1813
|
+
const element = v instanceof URL
|
1813
1814
|
? { "@id": v.href }
|
1814
1815
|
: v instanceof Application
|
1815
1816
|
? await v.toJsonLd(options)
|
@@ -1819,237 +1820,284 @@ export class Object {
|
|
1819
1820
|
? await v.toJsonLd(options)
|
1820
1821
|
: v instanceof Person
|
1821
1822
|
? await v.toJsonLd(options)
|
1822
|
-
: await v.toJsonLd(options)
|
1823
|
+
: await v.toJsonLd(options);
|
1824
|
+
array.push(element);
|
1823
1825
|
}
|
1824
1826
|
if (array.length > 0) {
|
1825
1827
|
values["https://www.w3.org/ns/activitystreams#attributedTo"] = array;
|
1826
1828
|
}
|
1827
1829
|
array = [];
|
1828
1830
|
for (const v of this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6) {
|
1829
|
-
|
1831
|
+
const element = v instanceof URL
|
1832
|
+
? { "@id": v.href }
|
1833
|
+
: await v.toJsonLd(options);
|
1834
|
+
array.push(element);
|
1830
1835
|
}
|
1831
1836
|
if (array.length > 0) {
|
1832
1837
|
values["https://www.w3.org/ns/activitystreams#audience"] = array;
|
1833
1838
|
}
|
1834
1839
|
array = [];
|
1835
1840
|
for (const v of this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz) {
|
1836
|
-
|
1841
|
+
const element = typeof v === "string" ? { "@value": v } : {
|
1837
1842
|
"@value": v.toString(),
|
1838
1843
|
"@language": v.language.compact(),
|
1839
|
-
}
|
1844
|
+
};
|
1845
|
+
array.push(element);
|
1840
1846
|
}
|
1841
1847
|
if (array.length > 0) {
|
1842
1848
|
values["https://www.w3.org/ns/activitystreams#content"] = array;
|
1843
1849
|
}
|
1844
1850
|
array = [];
|
1845
1851
|
for (const v of this.#_3mhZzGXSpQ431mBSz2kvych22v4e) {
|
1846
|
-
|
1852
|
+
const element = v instanceof URL
|
1847
1853
|
? { "@id": v.href }
|
1848
1854
|
: v instanceof _a
|
1849
1855
|
? await v.toJsonLd(options)
|
1850
|
-
: await v.toJsonLd(options)
|
1856
|
+
: await v.toJsonLd(options);
|
1857
|
+
array.push(element);
|
1851
1858
|
}
|
1852
1859
|
if (array.length > 0) {
|
1853
1860
|
values["https://www.w3.org/ns/activitystreams#context"] = array;
|
1854
1861
|
}
|
1855
1862
|
array = [];
|
1856
1863
|
for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav) {
|
1857
|
-
|
1864
|
+
const element = typeof v === "string" ? { "@value": v } : {
|
1858
1865
|
"@value": v.toString(),
|
1859
1866
|
"@language": v.language.compact(),
|
1860
|
-
}
|
1867
|
+
};
|
1868
|
+
array.push(element);
|
1861
1869
|
}
|
1862
1870
|
if (array.length > 0) {
|
1863
1871
|
values["https://www.w3.org/ns/activitystreams#name"] = array;
|
1864
1872
|
}
|
1865
1873
|
array = [];
|
1866
1874
|
for (const v of this.#_219RwDanjScTv5tYCjwGZVCM7KZ9) {
|
1867
|
-
|
1875
|
+
const element = {
|
1868
1876
|
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
|
1869
1877
|
"@value": v.toString(),
|
1870
|
-
}
|
1878
|
+
};
|
1879
|
+
array.push(element);
|
1871
1880
|
}
|
1872
1881
|
if (array.length > 0) {
|
1873
1882
|
values["https://www.w3.org/ns/activitystreams#endTime"] = array;
|
1874
1883
|
}
|
1875
1884
|
array = [];
|
1876
1885
|
for (const v of this.#_86xFhmgBapoMvYqjbjRuDPayTrS) {
|
1877
|
-
|
1886
|
+
const element = v instanceof URL
|
1878
1887
|
? { "@id": v.href }
|
1879
1888
|
: v instanceof _a
|
1880
1889
|
? await v.toJsonLd(options)
|
1881
|
-
: await v.toJsonLd(options)
|
1890
|
+
: await v.toJsonLd(options);
|
1891
|
+
array.push(element);
|
1882
1892
|
}
|
1883
1893
|
if (array.length > 0) {
|
1884
1894
|
values["https://www.w3.org/ns/activitystreams#generator"] = array;
|
1885
1895
|
}
|
1886
1896
|
array = [];
|
1887
1897
|
for (const v of this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR) {
|
1888
|
-
|
1898
|
+
const element = v instanceof URL
|
1899
|
+
? { "@id": v.href }
|
1900
|
+
: await v.toJsonLd(options);
|
1901
|
+
array.push(element);
|
1889
1902
|
}
|
1890
1903
|
if (array.length > 0) {
|
1891
1904
|
values["https://www.w3.org/ns/activitystreams#icon"] = array;
|
1892
1905
|
}
|
1893
1906
|
array = [];
|
1894
1907
|
for (const v of this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U) {
|
1895
|
-
|
1908
|
+
const element = v instanceof URL
|
1909
|
+
? { "@id": v.href }
|
1910
|
+
: await v.toJsonLd(options);
|
1911
|
+
array.push(element);
|
1896
1912
|
}
|
1897
1913
|
if (array.length > 0) {
|
1898
1914
|
values["https://www.w3.org/ns/activitystreams#image"] = array;
|
1899
1915
|
}
|
1900
1916
|
array = [];
|
1901
1917
|
for (const v of this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s) {
|
1902
|
-
|
1918
|
+
const element = v instanceof URL
|
1903
1919
|
? { "@id": v.href }
|
1904
1920
|
: v instanceof _a
|
1905
1921
|
? await v.toJsonLd(options)
|
1906
|
-
: await v.toJsonLd(options)
|
1922
|
+
: await v.toJsonLd(options);
|
1923
|
+
array.push(element);
|
1907
1924
|
}
|
1908
1925
|
if (array.length > 0) {
|
1909
1926
|
values["https://www.w3.org/ns/activitystreams#inReplyTo"] = array;
|
1910
1927
|
}
|
1911
1928
|
array = [];
|
1912
1929
|
for (const v of this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR) {
|
1913
|
-
|
1930
|
+
const element = v instanceof URL
|
1914
1931
|
? { "@id": v.href }
|
1915
1932
|
: v instanceof _a
|
1916
1933
|
? await v.toJsonLd(options)
|
1917
|
-
: await v.toJsonLd(options)
|
1934
|
+
: await v.toJsonLd(options);
|
1935
|
+
array.push(element);
|
1918
1936
|
}
|
1919
1937
|
if (array.length > 0) {
|
1920
1938
|
values["https://www.w3.org/ns/activitystreams#location"] = array;
|
1921
1939
|
}
|
1922
1940
|
array = [];
|
1923
1941
|
for (const v of this.#_gCVTegXxWWCw6wWRxa1QF65zusg) {
|
1924
|
-
|
1942
|
+
const element = v instanceof URL
|
1925
1943
|
? { "@id": v.href }
|
1926
1944
|
: v instanceof Link
|
1927
1945
|
? await v.toJsonLd(options)
|
1928
|
-
: await v.toJsonLd(options)
|
1946
|
+
: await v.toJsonLd(options);
|
1947
|
+
array.push(element);
|
1929
1948
|
}
|
1930
1949
|
if (array.length > 0) {
|
1931
1950
|
values["https://www.w3.org/ns/activitystreams#preview"] = array;
|
1932
1951
|
}
|
1933
1952
|
array = [];
|
1934
1953
|
for (const v of this.#_5e258TDXtuhaFRPZiGoDfEpjdMr) {
|
1935
|
-
|
1954
|
+
const element = {
|
1936
1955
|
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
|
1937
1956
|
"@value": v.toString(),
|
1938
|
-
}
|
1957
|
+
};
|
1958
|
+
array.push(element);
|
1939
1959
|
}
|
1940
1960
|
if (array.length > 0) {
|
1941
1961
|
values["https://www.w3.org/ns/activitystreams#published"] = array;
|
1942
1962
|
}
|
1943
1963
|
array = [];
|
1944
1964
|
for (const v of this.#_7UpwM3JWcXhADcscukEehBorf6k) {
|
1945
|
-
|
1965
|
+
const element = v instanceof URL
|
1966
|
+
? { "@id": v.href }
|
1967
|
+
: await v.toJsonLd(options);
|
1968
|
+
array.push(element);
|
1946
1969
|
}
|
1947
1970
|
if (array.length > 0) {
|
1948
1971
|
values["https://www.w3.org/ns/activitystreams#replies"] = array;
|
1949
1972
|
}
|
1950
1973
|
array = [];
|
1951
1974
|
for (const v of this.#_2w3Jmue4up8iVDUA51WZqomEF438) {
|
1952
|
-
|
1975
|
+
const element = {
|
1953
1976
|
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
|
1954
1977
|
"@value": v.toString(),
|
1955
|
-
}
|
1978
|
+
};
|
1979
|
+
array.push(element);
|
1956
1980
|
}
|
1957
1981
|
if (array.length > 0) {
|
1958
1982
|
values["https://www.w3.org/ns/activitystreams#startTime"] = array;
|
1959
1983
|
}
|
1960
1984
|
array = [];
|
1961
1985
|
for (const v of this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1) {
|
1962
|
-
|
1986
|
+
const element = typeof v === "string" ? { "@value": v } : {
|
1963
1987
|
"@value": v.toString(),
|
1964
1988
|
"@language": v.language.compact(),
|
1965
|
-
}
|
1989
|
+
};
|
1990
|
+
array.push(element);
|
1966
1991
|
}
|
1967
1992
|
if (array.length > 0) {
|
1968
1993
|
values["https://www.w3.org/ns/activitystreams#summary"] = array;
|
1969
1994
|
}
|
1970
1995
|
array = [];
|
1971
1996
|
for (const v of this.#_5chuqj6s95p5gg2sk1HntGfarRf) {
|
1972
|
-
|
1997
|
+
const element = v instanceof URL
|
1973
1998
|
? { "@id": v.href }
|
1974
1999
|
: v instanceof _a
|
1975
2000
|
? await v.toJsonLd(options)
|
1976
|
-
: await v.toJsonLd(options)
|
2001
|
+
: await v.toJsonLd(options);
|
2002
|
+
array.push(element);
|
1977
2003
|
}
|
1978
2004
|
if (array.length > 0) {
|
1979
2005
|
values["https://www.w3.org/ns/activitystreams#tag"] = array;
|
1980
2006
|
}
|
1981
2007
|
array = [];
|
1982
2008
|
for (const v of this.#_385aB7ySixcf5Un6z3VsWmThgCzQ) {
|
1983
|
-
|
2009
|
+
const element = {
|
1984
2010
|
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
|
1985
2011
|
"@value": v.toString(),
|
1986
|
-
}
|
2012
|
+
};
|
2013
|
+
array.push(element);
|
1987
2014
|
}
|
1988
2015
|
if (array.length > 0) {
|
1989
2016
|
values["https://www.w3.org/ns/activitystreams#updated"] = array;
|
1990
2017
|
}
|
1991
2018
|
array = [];
|
1992
2019
|
for (const v of this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865) {
|
1993
|
-
|
2020
|
+
const element = v instanceof URL
|
2021
|
+
? { "@id": v.href }
|
2022
|
+
: await v.toJsonLd(options);
|
2023
|
+
array.push(element);
|
1994
2024
|
}
|
1995
2025
|
if (array.length > 0) {
|
1996
2026
|
values["https://www.w3.org/ns/activitystreams#url"] = array;
|
1997
2027
|
}
|
1998
2028
|
array = [];
|
1999
2029
|
for (const v of this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd) {
|
2000
|
-
|
2030
|
+
const element = v instanceof URL
|
2031
|
+
? { "@id": v.href }
|
2032
|
+
: await v.toJsonLd(options);
|
2033
|
+
array.push(element);
|
2001
2034
|
}
|
2002
2035
|
if (array.length > 0) {
|
2003
2036
|
values["https://www.w3.org/ns/activitystreams#to"] = array;
|
2004
2037
|
}
|
2005
2038
|
array = [];
|
2006
2039
|
for (const v of this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej) {
|
2007
|
-
|
2040
|
+
const element = v instanceof URL
|
2041
|
+
? { "@id": v.href }
|
2042
|
+
: await v.toJsonLd(options);
|
2043
|
+
array.push(element);
|
2008
2044
|
}
|
2009
2045
|
if (array.length > 0) {
|
2010
2046
|
values["https://www.w3.org/ns/activitystreams#bto"] = array;
|
2011
2047
|
}
|
2012
2048
|
array = [];
|
2013
2049
|
for (const v of this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g) {
|
2014
|
-
|
2050
|
+
const element = v instanceof URL
|
2051
|
+
? { "@id": v.href }
|
2052
|
+
: await v.toJsonLd(options);
|
2053
|
+
array.push(element);
|
2015
2054
|
}
|
2016
2055
|
if (array.length > 0) {
|
2017
2056
|
values["https://www.w3.org/ns/activitystreams#cc"] = array;
|
2018
2057
|
}
|
2019
2058
|
array = [];
|
2020
2059
|
for (const v of this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H) {
|
2021
|
-
|
2060
|
+
const element = v instanceof URL
|
2061
|
+
? { "@id": v.href }
|
2062
|
+
: await v.toJsonLd(options);
|
2063
|
+
array.push(element);
|
2022
2064
|
}
|
2023
2065
|
if (array.length > 0) {
|
2024
2066
|
values["https://www.w3.org/ns/activitystreams#bcc"] = array;
|
2025
2067
|
}
|
2026
2068
|
array = [];
|
2027
2069
|
for (const v of this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8) {
|
2028
|
-
|
2070
|
+
const element = { "@value": v };
|
2071
|
+
array.push(element);
|
2029
2072
|
}
|
2030
2073
|
if (array.length > 0) {
|
2031
2074
|
values["https://www.w3.org/ns/activitystreams#mediaType"] = array;
|
2032
2075
|
}
|
2033
2076
|
array = [];
|
2034
2077
|
for (const v of this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX) {
|
2035
|
-
|
2078
|
+
const element = {
|
2036
2079
|
"@type": "http://www.w3.org/2001/XMLSchema#duration",
|
2037
2080
|
"@value": v.toString(),
|
2038
|
-
}
|
2081
|
+
};
|
2082
|
+
array.push(element);
|
2039
2083
|
}
|
2040
2084
|
if (array.length > 0) {
|
2041
2085
|
values["https://www.w3.org/ns/activitystreams#duration"] = array;
|
2042
2086
|
}
|
2043
2087
|
array = [];
|
2044
2088
|
for (const v of this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7) {
|
2045
|
-
|
2089
|
+
const element = { "@value": v };
|
2090
|
+
array.push(element);
|
2046
2091
|
}
|
2047
2092
|
if (array.length > 0) {
|
2048
2093
|
values["https://www.w3.org/ns/activitystreams#sensitive"] = array;
|
2049
2094
|
}
|
2050
2095
|
array = [];
|
2051
2096
|
for (const v of this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8) {
|
2052
|
-
|
2097
|
+
const element = v instanceof URL
|
2098
|
+
? { "@id": v.href }
|
2099
|
+
: await v.toJsonLd(options);
|
2100
|
+
array.push({ "@graph": element });
|
2053
2101
|
}
|
2054
2102
|
if (array.length > 0)
|
2055
2103
|
values["https://w3id.org/security#proof"] = array;
|
@@ -3616,20 +3664,22 @@ export class PropertyValue {
|
|
3616
3664
|
const values = {};
|
3617
3665
|
array = [];
|
3618
3666
|
for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav) {
|
3619
|
-
|
3667
|
+
const element = typeof v === "string" ? { "@value": v } : {
|
3620
3668
|
"@value": v.toString(),
|
3621
3669
|
"@language": v.language.compact(),
|
3622
|
-
}
|
3670
|
+
};
|
3671
|
+
array.push(element);
|
3623
3672
|
}
|
3624
3673
|
if (array.length > 0) {
|
3625
3674
|
values["https://www.w3.org/ns/activitystreams#name"] = array;
|
3626
3675
|
}
|
3627
3676
|
array = [];
|
3628
3677
|
for (const v of this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx) {
|
3629
|
-
|
3678
|
+
const element = typeof v === "string" ? { "@value": v } : {
|
3630
3679
|
"@value": v.toString(),
|
3631
3680
|
"@language": v.language.compact(),
|
3632
|
-
}
|
3681
|
+
};
|
3682
|
+
array.push(element);
|
3633
3683
|
}
|
3634
3684
|
if (array.length > 0)
|
3635
3685
|
values["http://schema.org#value"] = array;
|
@@ -3783,7 +3833,7 @@ export class DataIntegrityProof {
|
|
3783
3833
|
#_2mHVKxqA7zncjveJrDEo3pWpMZqg = [];
|
3784
3834
|
#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb = [];
|
3785
3835
|
#_3CjFK5vfKpX4HQuNh2b18TykoVLq = [];
|
3786
|
-
#
|
3836
|
+
#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [];
|
3787
3837
|
/**
|
3788
3838
|
* Constructs a new instance of DataIntegrityProof with the given values.
|
3789
3839
|
* @param values The values to initialize the instance with.
|
@@ -3806,7 +3856,7 @@ export class DataIntegrityProof {
|
|
3806
3856
|
this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq = [values.proofValue];
|
3807
3857
|
}
|
3808
3858
|
if ("created" in values && values.created != null) {
|
3809
|
-
this.#
|
3859
|
+
this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
|
3810
3860
|
}
|
3811
3861
|
}
|
3812
3862
|
/**
|
@@ -3834,9 +3884,9 @@ export class DataIntegrityProof {
|
|
3834
3884
|
if ("proofValue" in values && values.proofValue != null) {
|
3835
3885
|
clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq = [values.proofValue];
|
3836
3886
|
}
|
3837
|
-
clone.#
|
3887
|
+
clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac;
|
3838
3888
|
if ("created" in values && values.created != null) {
|
3839
|
-
clone.#
|
3889
|
+
clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
|
3840
3890
|
}
|
3841
3891
|
return clone;
|
3842
3892
|
}
|
@@ -3915,9 +3965,9 @@ export class DataIntegrityProof {
|
|
3915
3965
|
/** The date and time the proof was created.
|
3916
3966
|
*/
|
3917
3967
|
get created() {
|
3918
|
-
if (this.#
|
3968
|
+
if (this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac.length < 1)
|
3919
3969
|
return null;
|
3920
|
-
return this.#
|
3970
|
+
return this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac[0];
|
3921
3971
|
}
|
3922
3972
|
/**
|
3923
3973
|
* Converts this object to a JSON-LD structure.
|
@@ -3933,47 +3983,53 @@ export class DataIntegrityProof {
|
|
3933
3983
|
const values = {};
|
3934
3984
|
array = [];
|
3935
3985
|
for (const v of this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5) {
|
3936
|
-
|
3986
|
+
const element = { "@value": v };
|
3987
|
+
array.push(element);
|
3937
3988
|
}
|
3938
3989
|
if (array.length > 0) {
|
3939
3990
|
values["https://w3id.org/security#cryptosuite"] = array;
|
3940
3991
|
}
|
3941
3992
|
array = [];
|
3942
3993
|
for (const v of this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg) {
|
3943
|
-
|
3994
|
+
const element = v instanceof URL
|
3995
|
+
? { "@id": v.href }
|
3996
|
+
: await v.toJsonLd(options);
|
3997
|
+
array.push(element);
|
3944
3998
|
}
|
3945
3999
|
if (array.length > 0) {
|
3946
4000
|
values["https://w3id.org/security#verificationMethod"] = array;
|
3947
4001
|
}
|
3948
4002
|
array = [];
|
3949
4003
|
for (const v of this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb) {
|
3950
|
-
|
4004
|
+
const element = {
|
3951
4005
|
"@id": "https://w3id.org/security#" + v,
|
3952
|
-
}
|
4006
|
+
};
|
4007
|
+
array.push(element);
|
3953
4008
|
}
|
3954
4009
|
if (array.length > 0) {
|
3955
4010
|
values["https://w3id.org/security#proofPurpose"] = array;
|
3956
4011
|
}
|
3957
4012
|
array = [];
|
3958
4013
|
for (const v of this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq) {
|
3959
|
-
|
4014
|
+
const element = {
|
3960
4015
|
"@type": "https://w3id.org/security#multibase",
|
3961
4016
|
"@value": new TextDecoder().decode(encodeMultibase("base58btc", v)),
|
3962
|
-
}
|
4017
|
+
};
|
4018
|
+
array.push(element);
|
3963
4019
|
}
|
3964
4020
|
if (array.length > 0) {
|
3965
4021
|
values["https://w3id.org/security#proofValue"] = array;
|
3966
4022
|
}
|
3967
4023
|
array = [];
|
3968
|
-
for (const v of this.#
|
3969
|
-
|
4024
|
+
for (const v of this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac) {
|
4025
|
+
const element = {
|
3970
4026
|
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
|
3971
4027
|
"@value": v.toString(),
|
3972
|
-
}
|
3973
|
-
|
3974
|
-
if (array.length > 0) {
|
3975
|
-
values["https://www.w3.org/ns/activitystreams#published"] = array;
|
4028
|
+
};
|
4029
|
+
array.push(element);
|
3976
4030
|
}
|
4031
|
+
if (array.length > 0)
|
4032
|
+
values["http://purl.org/dc/terms/created"] = array;
|
3977
4033
|
values["@type"] = ["https://w3id.org/security#DataIntegrityProof"];
|
3978
4034
|
if (this.id)
|
3979
4035
|
values["@id"] = this.id.href;
|
@@ -4052,13 +4108,13 @@ export class DataIntegrityProof {
|
|
4052
4108
|
_3CjFK5vfKpX4HQuNh2b18TykoVLq.push(decodeMultibase(v["@value"]));
|
4053
4109
|
}
|
4054
4110
|
instance.#_3CjFK5vfKpX4HQuNh2b18TykoVLq = _3CjFK5vfKpX4HQuNh2b18TykoVLq;
|
4055
|
-
const
|
4056
|
-
for (const v of values["
|
4111
|
+
const _3qzP3ukEZoUziK5FEiA1RhU4aqac = [];
|
4112
|
+
for (const v of values["http://purl.org/dc/terms/created"] ?? []) {
|
4057
4113
|
if (v == null)
|
4058
4114
|
continue;
|
4059
|
-
|
4115
|
+
_3qzP3ukEZoUziK5FEiA1RhU4aqac.push(dntShim.Temporal.Instant.from(v["@value"]));
|
4060
4116
|
}
|
4061
|
-
instance.#
|
4117
|
+
instance.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = _3qzP3ukEZoUziK5FEiA1RhU4aqac;
|
4062
4118
|
return instance;
|
4063
4119
|
}
|
4064
4120
|
_getCustomInspectProxy() {
|
@@ -4113,7 +4169,7 @@ export class DataIntegrityProof {
|
|
4113
4169
|
if (_3CjFK5vfKpX4HQuNh2b18TykoVLq.length == 1) {
|
4114
4170
|
proxy.proofValue = _3CjFK5vfKpX4HQuNh2b18TykoVLq[0];
|
4115
4171
|
}
|
4116
|
-
const
|
4172
|
+
const _3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac
|
4117
4173
|
// deno-lint-ignore no-explicit-any
|
4118
4174
|
.map((v) => v instanceof URL
|
4119
4175
|
? {
|
@@ -4121,8 +4177,8 @@ export class DataIntegrityProof {
|
|
4121
4177
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options),
|
4122
4178
|
}
|
4123
4179
|
: v);
|
4124
|
-
if (
|
4125
|
-
proxy.created =
|
4180
|
+
if (_3qzP3ukEZoUziK5FEiA1RhU4aqac.length == 1) {
|
4181
|
+
proxy.created = _3qzP3ukEZoUziK5FEiA1RhU4aqac[0];
|
4126
4182
|
}
|
4127
4183
|
return proxy;
|
4128
4184
|
}
|
@@ -4287,7 +4343,7 @@ export class CryptographicKey {
|
|
4287
4343
|
const values = {};
|
4288
4344
|
array = [];
|
4289
4345
|
for (const v of this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2) {
|
4290
|
-
|
4346
|
+
const element = v instanceof URL
|
4291
4347
|
? { "@id": v.href }
|
4292
4348
|
: v instanceof Application
|
4293
4349
|
? await v.toJsonLd(options)
|
@@ -4297,13 +4353,15 @@ export class CryptographicKey {
|
|
4297
4353
|
? await v.toJsonLd(options)
|
4298
4354
|
: v instanceof Person
|
4299
4355
|
? await v.toJsonLd(options)
|
4300
|
-
: await v.toJsonLd(options)
|
4356
|
+
: await v.toJsonLd(options);
|
4357
|
+
array.push(element);
|
4301
4358
|
}
|
4302
4359
|
if (array.length > 0)
|
4303
4360
|
values["https://w3id.org/security#owner"] = array;
|
4304
4361
|
array = [];
|
4305
4362
|
for (const v of this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD) {
|
4306
|
-
|
4363
|
+
const element = { "@value": await exportSpki(v) };
|
4364
|
+
array.push(element);
|
4307
4365
|
}
|
4308
4366
|
if (array.length > 0) {
|
4309
4367
|
values["https://w3id.org/security#publicKeyPem"] = array;
|
@@ -4596,7 +4654,7 @@ export class Multikey {
|
|
4596
4654
|
const values = {};
|
4597
4655
|
array = [];
|
4598
4656
|
for (const v of this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN) {
|
4599
|
-
|
4657
|
+
const element = v instanceof URL
|
4600
4658
|
? { "@id": v.href }
|
4601
4659
|
: v instanceof Application
|
4602
4660
|
? await v.toJsonLd(options)
|
@@ -4606,17 +4664,19 @@ export class Multikey {
|
|
4606
4664
|
? await v.toJsonLd(options)
|
4607
4665
|
: v instanceof Person
|
4608
4666
|
? await v.toJsonLd(options)
|
4609
|
-
: await v.toJsonLd(options)
|
4667
|
+
: await v.toJsonLd(options);
|
4668
|
+
array.push(element);
|
4610
4669
|
}
|
4611
4670
|
if (array.length > 0) {
|
4612
4671
|
values["https://w3id.org/security#controller"] = array;
|
4613
4672
|
}
|
4614
4673
|
array = [];
|
4615
4674
|
for (const v of this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F) {
|
4616
|
-
|
4675
|
+
const element = {
|
4617
4676
|
"@type": "https://w3id.org/security#multibase",
|
4618
4677
|
"@value": await exportMultibaseKey(v),
|
4619
|
-
}
|
4678
|
+
};
|
4679
|
+
array.push(element);
|
4620
4680
|
}
|
4621
4681
|
if (array.length > 0) {
|
4622
4682
|
values["https://w3id.org/security#publicKeyMultibase"] = array;
|
@@ -5020,7 +5080,7 @@ export class Activity extends Object {
|
|
5020
5080
|
const values = baseValues[0];
|
5021
5081
|
array = [];
|
5022
5082
|
for (const v of this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D) {
|
5023
|
-
|
5083
|
+
const element = v instanceof URL
|
5024
5084
|
? { "@id": v.href }
|
5025
5085
|
: v instanceof Application
|
5026
5086
|
? await v.toJsonLd(options)
|
@@ -5030,14 +5090,18 @@ export class Activity extends Object {
|
|
5030
5090
|
? await v.toJsonLd(options)
|
5031
5091
|
: v instanceof Person
|
5032
5092
|
? await v.toJsonLd(options)
|
5033
|
-
: await v.toJsonLd(options)
|
5093
|
+
: await v.toJsonLd(options);
|
5094
|
+
array.push(element);
|
5034
5095
|
}
|
5035
5096
|
if (array.length > 0) {
|
5036
5097
|
values["https://www.w3.org/ns/activitystreams#actor"] = array;
|
5037
5098
|
}
|
5038
5099
|
array = [];
|
5039
5100
|
for (const v of this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc) {
|
5040
|
-
|
5101
|
+
const element = v instanceof URL
|
5102
|
+
? { "@id": v.href }
|
5103
|
+
: await v.toJsonLd(options);
|
5104
|
+
array.push(element);
|
5041
5105
|
}
|
5042
5106
|
if (array.length > 0) {
|
5043
5107
|
values["https://www.w3.org/ns/activitystreams#object"] = array;
|
@@ -6301,105 +6365,136 @@ export class Application extends Object {
|
|
6301
6365
|
const values = baseValues[0];
|
6302
6366
|
array = [];
|
6303
6367
|
for (const v of this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf) {
|
6304
|
-
|
6368
|
+
const element = typeof v === "string" ? { "@value": v } : {
|
6305
6369
|
"@value": v.toString(),
|
6306
6370
|
"@language": v.language.compact(),
|
6307
|
-
}
|
6371
|
+
};
|
6372
|
+
array.push(element);
|
6308
6373
|
}
|
6309
6374
|
if (array.length > 0) {
|
6310
6375
|
values["https://www.w3.org/ns/activitystreams#preferredUsername"] = array;
|
6311
6376
|
}
|
6312
6377
|
array = [];
|
6313
6378
|
for (const v of this.#_axq166E2eZADq34V4MYUc8KMZdC) {
|
6314
|
-
|
6379
|
+
const element = v instanceof URL
|
6380
|
+
? { "@id": v.href }
|
6381
|
+
: await v.toJsonLd(options);
|
6382
|
+
array.push(element);
|
6315
6383
|
}
|
6316
6384
|
if (array.length > 0)
|
6317
6385
|
values["https://w3id.org/security#publicKey"] = array;
|
6318
6386
|
array = [];
|
6319
6387
|
for (const v of this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3) {
|
6320
|
-
|
6388
|
+
const element = v instanceof URL
|
6389
|
+
? { "@id": v.href }
|
6390
|
+
: await v.toJsonLd(options);
|
6391
|
+
array.push(element);
|
6321
6392
|
}
|
6322
6393
|
if (array.length > 0) {
|
6323
6394
|
values["https://w3id.org/security#assertionMethod"] = array;
|
6324
6395
|
}
|
6325
6396
|
array = [];
|
6326
6397
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA) {
|
6327
|
-
|
6398
|
+
const element = { "@value": v };
|
6399
|
+
array.push(element);
|
6328
6400
|
}
|
6329
6401
|
if (array.length > 0) {
|
6330
6402
|
values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"] = array;
|
6331
6403
|
}
|
6332
6404
|
array = [];
|
6333
6405
|
for (const v of this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB) {
|
6334
|
-
|
6406
|
+
const element = v instanceof URL
|
6407
|
+
? { "@id": v.href }
|
6408
|
+
: await v.toJsonLd(options);
|
6409
|
+
array.push(element);
|
6335
6410
|
}
|
6336
6411
|
if (array.length > 0)
|
6337
6412
|
values["http://www.w3.org/ns/ldp#inbox"] = array;
|
6338
6413
|
array = [];
|
6339
6414
|
for (const v of this.#_41QwhqJouoLg3h8dRPKat21brynC) {
|
6340
|
-
|
6415
|
+
const element = v instanceof URL
|
6416
|
+
? { "@id": v.href }
|
6417
|
+
: await v.toJsonLd(options);
|
6418
|
+
array.push(element);
|
6341
6419
|
}
|
6342
6420
|
if (array.length > 0) {
|
6343
6421
|
values["https://www.w3.org/ns/activitystreams#outbox"] = array;
|
6344
6422
|
}
|
6345
6423
|
array = [];
|
6346
6424
|
for (const v of this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee) {
|
6347
|
-
|
6425
|
+
const element = v instanceof URL
|
6426
|
+
? { "@id": v.href }
|
6427
|
+
: await v.toJsonLd(options);
|
6428
|
+
array.push(element);
|
6348
6429
|
}
|
6349
6430
|
if (array.length > 0) {
|
6350
6431
|
values["https://www.w3.org/ns/activitystreams#following"] = array;
|
6351
6432
|
}
|
6352
6433
|
array = [];
|
6353
6434
|
for (const v of this.#_BBCTgfphhsFzpVfKTykGSpBNwoA) {
|
6354
|
-
|
6435
|
+
const element = v instanceof URL
|
6436
|
+
? { "@id": v.href }
|
6437
|
+
: await v.toJsonLd(options);
|
6438
|
+
array.push(element);
|
6355
6439
|
}
|
6356
6440
|
if (array.length > 0) {
|
6357
6441
|
values["https://www.w3.org/ns/activitystreams#followers"] = array;
|
6358
6442
|
}
|
6359
6443
|
array = [];
|
6360
6444
|
for (const v of this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU) {
|
6361
|
-
|
6445
|
+
const element = v instanceof URL
|
6446
|
+
? { "@id": v.href }
|
6447
|
+
: await v.toJsonLd(options);
|
6448
|
+
array.push(element);
|
6362
6449
|
}
|
6363
6450
|
if (array.length > 0) {
|
6364
6451
|
values["https://www.w3.org/ns/activitystreams#liked"] = array;
|
6365
6452
|
}
|
6366
6453
|
array = [];
|
6367
6454
|
for (const v of this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9) {
|
6368
|
-
|
6455
|
+
const element = v instanceof URL
|
6456
|
+
? { "@id": v.href }
|
6457
|
+
: await v.toJsonLd(options);
|
6458
|
+
array.push(element);
|
6369
6459
|
}
|
6370
6460
|
if (array.length > 0) {
|
6371
6461
|
values["https://www.w3.org/ns/activitystreams#streams"] = array;
|
6372
6462
|
}
|
6373
6463
|
array = [];
|
6374
6464
|
for (const v of this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG) {
|
6375
|
-
|
6465
|
+
const element = await v.toJsonLd(options);
|
6466
|
+
array.push(element);
|
6376
6467
|
}
|
6377
6468
|
if (array.length > 0) {
|
6378
6469
|
values["https://www.w3.org/ns/activitystreams#endpoints"] = array;
|
6379
6470
|
}
|
6380
6471
|
array = [];
|
6381
6472
|
for (const v of this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH) {
|
6382
|
-
|
6473
|
+
const element = { "@value": v };
|
6474
|
+
array.push(element);
|
6383
6475
|
}
|
6384
6476
|
if (array.length > 0) {
|
6385
6477
|
values["http://joinmastodon.org/ns#discoverable"] = array;
|
6386
6478
|
}
|
6387
6479
|
array = [];
|
6388
6480
|
for (const v of this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7) {
|
6389
|
-
|
6481
|
+
const element = { "@value": v };
|
6482
|
+
array.push(element);
|
6390
6483
|
}
|
6391
6484
|
if (array.length > 0) {
|
6392
6485
|
values["http://joinmastodon.org/ns#suspended"] = array;
|
6393
6486
|
}
|
6394
6487
|
array = [];
|
6395
6488
|
for (const v of this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ) {
|
6396
|
-
|
6489
|
+
const element = { "@value": v };
|
6490
|
+
array.push(element);
|
6397
6491
|
}
|
6398
6492
|
if (array.length > 0)
|
6399
6493
|
values["http://joinmastodon.org/ns#memorial"] = array;
|
6400
6494
|
array = [];
|
6401
6495
|
for (const v of this.#_2diCorzqPGQQqftp6e4SrCEwEnyk) {
|
6402
|
-
|
6496
|
+
const element = { "@value": v };
|
6497
|
+
array.push(element);
|
6403
6498
|
}
|
6404
6499
|
if (array.length > 0) {
|
6405
6500
|
values["http://joinmastodon.org/ns#indexable"] = array;
|
@@ -7016,20 +7111,22 @@ export class Document extends Object {
|
|
7016
7111
|
const values = baseValues[0];
|
7017
7112
|
array = [];
|
7018
7113
|
for (const v of this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe) {
|
7019
|
-
|
7114
|
+
const element = {
|
7020
7115
|
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
|
7021
7116
|
"@value": v,
|
7022
|
-
}
|
7117
|
+
};
|
7118
|
+
array.push(element);
|
7023
7119
|
}
|
7024
7120
|
if (array.length > 0) {
|
7025
7121
|
values["https://www.w3.org/ns/activitystreams#width"] = array;
|
7026
7122
|
}
|
7027
7123
|
array = [];
|
7028
7124
|
for (const v of this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb) {
|
7029
|
-
|
7125
|
+
const element = {
|
7030
7126
|
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
|
7031
7127
|
"@value": v,
|
7032
|
-
}
|
7128
|
+
};
|
7129
|
+
array.push(element);
|
7033
7130
|
}
|
7034
7131
|
if (array.length > 0) {
|
7035
7132
|
values["https://www.w3.org/ns/activitystreams#height"] = array;
|
@@ -7798,54 +7895,59 @@ export class Collection extends Object {
|
|
7798
7895
|
const values = baseValues[0];
|
7799
7896
|
array = [];
|
7800
7897
|
for (const v of this.#_XDbmNDuWHmrhqH712zqtecdbv1V) {
|
7801
|
-
|
7898
|
+
const element = {
|
7802
7899
|
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
|
7803
7900
|
"@value": v,
|
7804
|
-
}
|
7901
|
+
};
|
7902
|
+
array.push(element);
|
7805
7903
|
}
|
7806
7904
|
if (array.length > 0) {
|
7807
7905
|
values["https://www.w3.org/ns/activitystreams#totalItems"] = array;
|
7808
7906
|
}
|
7809
7907
|
array = [];
|
7810
7908
|
for (const v of this.#_3UyUdxnyn6cDn53QKrh4MBiearma) {
|
7811
|
-
|
7909
|
+
const element = v instanceof URL
|
7812
7910
|
? { "@id": v.href }
|
7813
7911
|
: v instanceof CollectionPage
|
7814
7912
|
? await v.toJsonLd(options)
|
7815
|
-
: await v.toJsonLd(options)
|
7913
|
+
: await v.toJsonLd(options);
|
7914
|
+
array.push(element);
|
7816
7915
|
}
|
7817
7916
|
if (array.length > 0) {
|
7818
7917
|
values["https://www.w3.org/ns/activitystreams#current"] = array;
|
7819
7918
|
}
|
7820
7919
|
array = [];
|
7821
7920
|
for (const v of this.#_J52RqweMe6hhv7RnLJMC8BExTE5) {
|
7822
|
-
|
7921
|
+
const element = v instanceof URL
|
7823
7922
|
? { "@id": v.href }
|
7824
7923
|
: v instanceof CollectionPage
|
7825
7924
|
? await v.toJsonLd(options)
|
7826
|
-
: await v.toJsonLd(options)
|
7925
|
+
: await v.toJsonLd(options);
|
7926
|
+
array.push(element);
|
7827
7927
|
}
|
7828
7928
|
if (array.length > 0) {
|
7829
7929
|
values["https://www.w3.org/ns/activitystreams#first"] = array;
|
7830
7930
|
}
|
7831
7931
|
array = [];
|
7832
7932
|
for (const v of this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26) {
|
7833
|
-
|
7933
|
+
const element = v instanceof URL
|
7834
7934
|
? { "@id": v.href }
|
7835
7935
|
: v instanceof CollectionPage
|
7836
7936
|
? await v.toJsonLd(options)
|
7837
|
-
: await v.toJsonLd(options)
|
7937
|
+
: await v.toJsonLd(options);
|
7938
|
+
array.push(element);
|
7838
7939
|
}
|
7839
7940
|
if (array.length > 0) {
|
7840
7941
|
values["https://www.w3.org/ns/activitystreams#last"] = array;
|
7841
7942
|
}
|
7842
7943
|
array = [];
|
7843
7944
|
for (const v of this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg) {
|
7844
|
-
|
7945
|
+
const element = v instanceof URL
|
7845
7946
|
? { "@id": v.href }
|
7846
7947
|
: v instanceof Object
|
7847
7948
|
? await v.toJsonLd(options)
|
7848
|
-
: await v.toJsonLd(options)
|
7949
|
+
: await v.toJsonLd(options);
|
7950
|
+
array.push(element);
|
7849
7951
|
}
|
7850
7952
|
if (array.length > 0) {
|
7851
7953
|
values["https://www.w3.org/ns/activitystreams#items"] = array;
|
@@ -8376,33 +8478,36 @@ export class CollectionPage extends Collection {
|
|
8376
8478
|
const values = baseValues[0];
|
8377
8479
|
array = [];
|
8378
8480
|
for (const v of this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le) {
|
8379
|
-
|
8481
|
+
const element = v instanceof URL
|
8380
8482
|
? { "@id": v.href }
|
8381
8483
|
: v instanceof Link
|
8382
8484
|
? await v.toJsonLd(options)
|
8383
|
-
: await v.toJsonLd(options)
|
8485
|
+
: await v.toJsonLd(options);
|
8486
|
+
array.push(element);
|
8384
8487
|
}
|
8385
8488
|
if (array.length > 0) {
|
8386
8489
|
values["https://www.w3.org/ns/activitystreams#partOf"] = array;
|
8387
8490
|
}
|
8388
8491
|
array = [];
|
8389
8492
|
for (const v of this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY) {
|
8390
|
-
|
8493
|
+
const element = v instanceof URL
|
8391
8494
|
? { "@id": v.href }
|
8392
8495
|
: v instanceof _b
|
8393
8496
|
? await v.toJsonLd(options)
|
8394
|
-
: await v.toJsonLd(options)
|
8497
|
+
: await v.toJsonLd(options);
|
8498
|
+
array.push(element);
|
8395
8499
|
}
|
8396
8500
|
if (array.length > 0) {
|
8397
8501
|
values["https://www.w3.org/ns/activitystreams#next"] = array;
|
8398
8502
|
}
|
8399
8503
|
array = [];
|
8400
8504
|
for (const v of this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA) {
|
8401
|
-
|
8505
|
+
const element = v instanceof URL
|
8402
8506
|
? { "@id": v.href }
|
8403
8507
|
: v instanceof _b
|
8404
8508
|
? await v.toJsonLd(options)
|
8405
|
-
: await v.toJsonLd(options)
|
8509
|
+
: await v.toJsonLd(options);
|
8510
|
+
array.push(element);
|
8406
8511
|
}
|
8407
8512
|
if (array.length > 0) {
|
8408
8513
|
values["https://www.w3.org/ns/activitystreams#prev"] = array;
|
@@ -9107,21 +9212,24 @@ export class Endpoints {
|
|
9107
9212
|
const values = {};
|
9108
9213
|
array = [];
|
9109
9214
|
for (const v of this.#_2JCYDbSxEHCCLdBYed33cCETfGyR) {
|
9110
|
-
|
9215
|
+
const element = { "@id": v.href };
|
9216
|
+
array.push(element);
|
9111
9217
|
}
|
9112
9218
|
if (array.length > 0) {
|
9113
9219
|
values["https://www.w3.org/ns/activitystreams#proxyUrl"] = array;
|
9114
9220
|
}
|
9115
9221
|
array = [];
|
9116
9222
|
for (const v of this.#_25S6UmgzDead8hxL5sQFezZTAusd) {
|
9117
|
-
|
9223
|
+
const element = { "@id": v.href };
|
9224
|
+
array.push(element);
|
9118
9225
|
}
|
9119
9226
|
if (array.length > 0) {
|
9120
9227
|
values["https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint"] = array;
|
9121
9228
|
}
|
9122
9229
|
array = [];
|
9123
9230
|
for (const v of this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3) {
|
9124
|
-
|
9231
|
+
const element = { "@id": v.href };
|
9232
|
+
array.push(element);
|
9125
9233
|
}
|
9126
9234
|
if (array.length > 0) {
|
9127
9235
|
values["https://www.w3.org/ns/activitystreams#oauthTokenEndpoint"] =
|
@@ -9129,21 +9237,24 @@ export class Endpoints {
|
|
9129
9237
|
}
|
9130
9238
|
array = [];
|
9131
9239
|
for (const v of this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr) {
|
9132
|
-
|
9240
|
+
const element = { "@id": v.href };
|
9241
|
+
array.push(element);
|
9133
9242
|
}
|
9134
9243
|
if (array.length > 0) {
|
9135
9244
|
values["https://www.w3.org/ns/activitystreams#provideClientKey"] = array;
|
9136
9245
|
}
|
9137
9246
|
array = [];
|
9138
9247
|
for (const v of this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS) {
|
9139
|
-
|
9248
|
+
const element = { "@id": v.href };
|
9249
|
+
array.push(element);
|
9140
9250
|
}
|
9141
9251
|
if (array.length > 0) {
|
9142
9252
|
values["https://www.w3.org/ns/activitystreams#signClientKey"] = array;
|
9143
9253
|
}
|
9144
9254
|
array = [];
|
9145
9255
|
for (const v of this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc) {
|
9146
|
-
|
9256
|
+
const element = { "@id": v.href };
|
9257
|
+
array.push(element);
|
9147
9258
|
}
|
9148
9259
|
if (array.length > 0) {
|
9149
9260
|
values["https://www.w3.org/ns/activitystreams#sharedInbox"] = array;
|
@@ -10365,105 +10476,136 @@ export class Group extends Object {
|
|
10365
10476
|
const values = baseValues[0];
|
10366
10477
|
array = [];
|
10367
10478
|
for (const v of this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf) {
|
10368
|
-
|
10479
|
+
const element = typeof v === "string" ? { "@value": v } : {
|
10369
10480
|
"@value": v.toString(),
|
10370
10481
|
"@language": v.language.compact(),
|
10371
|
-
}
|
10482
|
+
};
|
10483
|
+
array.push(element);
|
10372
10484
|
}
|
10373
10485
|
if (array.length > 0) {
|
10374
10486
|
values["https://www.w3.org/ns/activitystreams#preferredUsername"] = array;
|
10375
10487
|
}
|
10376
10488
|
array = [];
|
10377
10489
|
for (const v of this.#_axq166E2eZADq34V4MYUc8KMZdC) {
|
10378
|
-
|
10490
|
+
const element = v instanceof URL
|
10491
|
+
? { "@id": v.href }
|
10492
|
+
: await v.toJsonLd(options);
|
10493
|
+
array.push(element);
|
10379
10494
|
}
|
10380
10495
|
if (array.length > 0)
|
10381
10496
|
values["https://w3id.org/security#publicKey"] = array;
|
10382
10497
|
array = [];
|
10383
10498
|
for (const v of this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3) {
|
10384
|
-
|
10499
|
+
const element = v instanceof URL
|
10500
|
+
? { "@id": v.href }
|
10501
|
+
: await v.toJsonLd(options);
|
10502
|
+
array.push(element);
|
10385
10503
|
}
|
10386
10504
|
if (array.length > 0) {
|
10387
10505
|
values["https://w3id.org/security#assertionMethod"] = array;
|
10388
10506
|
}
|
10389
10507
|
array = [];
|
10390
10508
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA) {
|
10391
|
-
|
10509
|
+
const element = { "@value": v };
|
10510
|
+
array.push(element);
|
10392
10511
|
}
|
10393
10512
|
if (array.length > 0) {
|
10394
10513
|
values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"] = array;
|
10395
10514
|
}
|
10396
10515
|
array = [];
|
10397
10516
|
for (const v of this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB) {
|
10398
|
-
|
10517
|
+
const element = v instanceof URL
|
10518
|
+
? { "@id": v.href }
|
10519
|
+
: await v.toJsonLd(options);
|
10520
|
+
array.push(element);
|
10399
10521
|
}
|
10400
10522
|
if (array.length > 0)
|
10401
10523
|
values["http://www.w3.org/ns/ldp#inbox"] = array;
|
10402
10524
|
array = [];
|
10403
10525
|
for (const v of this.#_41QwhqJouoLg3h8dRPKat21brynC) {
|
10404
|
-
|
10526
|
+
const element = v instanceof URL
|
10527
|
+
? { "@id": v.href }
|
10528
|
+
: await v.toJsonLd(options);
|
10529
|
+
array.push(element);
|
10405
10530
|
}
|
10406
10531
|
if (array.length > 0) {
|
10407
10532
|
values["https://www.w3.org/ns/activitystreams#outbox"] = array;
|
10408
10533
|
}
|
10409
10534
|
array = [];
|
10410
10535
|
for (const v of this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee) {
|
10411
|
-
|
10536
|
+
const element = v instanceof URL
|
10537
|
+
? { "@id": v.href }
|
10538
|
+
: await v.toJsonLd(options);
|
10539
|
+
array.push(element);
|
10412
10540
|
}
|
10413
10541
|
if (array.length > 0) {
|
10414
10542
|
values["https://www.w3.org/ns/activitystreams#following"] = array;
|
10415
10543
|
}
|
10416
10544
|
array = [];
|
10417
10545
|
for (const v of this.#_BBCTgfphhsFzpVfKTykGSpBNwoA) {
|
10418
|
-
|
10546
|
+
const element = v instanceof URL
|
10547
|
+
? { "@id": v.href }
|
10548
|
+
: await v.toJsonLd(options);
|
10549
|
+
array.push(element);
|
10419
10550
|
}
|
10420
10551
|
if (array.length > 0) {
|
10421
10552
|
values["https://www.w3.org/ns/activitystreams#followers"] = array;
|
10422
10553
|
}
|
10423
10554
|
array = [];
|
10424
10555
|
for (const v of this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU) {
|
10425
|
-
|
10556
|
+
const element = v instanceof URL
|
10557
|
+
? { "@id": v.href }
|
10558
|
+
: await v.toJsonLd(options);
|
10559
|
+
array.push(element);
|
10426
10560
|
}
|
10427
10561
|
if (array.length > 0) {
|
10428
10562
|
values["https://www.w3.org/ns/activitystreams#liked"] = array;
|
10429
10563
|
}
|
10430
10564
|
array = [];
|
10431
10565
|
for (const v of this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9) {
|
10432
|
-
|
10566
|
+
const element = v instanceof URL
|
10567
|
+
? { "@id": v.href }
|
10568
|
+
: await v.toJsonLd(options);
|
10569
|
+
array.push(element);
|
10433
10570
|
}
|
10434
10571
|
if (array.length > 0) {
|
10435
10572
|
values["https://www.w3.org/ns/activitystreams#streams"] = array;
|
10436
10573
|
}
|
10437
10574
|
array = [];
|
10438
10575
|
for (const v of this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG) {
|
10439
|
-
|
10576
|
+
const element = await v.toJsonLd(options);
|
10577
|
+
array.push(element);
|
10440
10578
|
}
|
10441
10579
|
if (array.length > 0) {
|
10442
10580
|
values["https://www.w3.org/ns/activitystreams#endpoints"] = array;
|
10443
10581
|
}
|
10444
10582
|
array = [];
|
10445
10583
|
for (const v of this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH) {
|
10446
|
-
|
10584
|
+
const element = { "@value": v };
|
10585
|
+
array.push(element);
|
10447
10586
|
}
|
10448
10587
|
if (array.length > 0) {
|
10449
10588
|
values["http://joinmastodon.org/ns#discoverable"] = array;
|
10450
10589
|
}
|
10451
10590
|
array = [];
|
10452
10591
|
for (const v of this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7) {
|
10453
|
-
|
10592
|
+
const element = { "@value": v };
|
10593
|
+
array.push(element);
|
10454
10594
|
}
|
10455
10595
|
if (array.length > 0) {
|
10456
10596
|
values["http://joinmastodon.org/ns#suspended"] = array;
|
10457
10597
|
}
|
10458
10598
|
array = [];
|
10459
10599
|
for (const v of this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ) {
|
10460
|
-
|
10600
|
+
const element = { "@value": v };
|
10601
|
+
array.push(element);
|
10461
10602
|
}
|
10462
10603
|
if (array.length > 0)
|
10463
10604
|
values["http://joinmastodon.org/ns#memorial"] = array;
|
10464
10605
|
array = [];
|
10465
10606
|
for (const v of this.#_2diCorzqPGQQqftp6e4SrCEwEnyk) {
|
10466
|
-
|
10607
|
+
const element = { "@value": v };
|
10608
|
+
array.push(element);
|
10467
10609
|
}
|
10468
10610
|
if (array.length > 0) {
|
10469
10611
|
values["http://joinmastodon.org/ns#indexable"] = array;
|
@@ -11169,69 +11311,77 @@ export class Link {
|
|
11169
11311
|
const values = {};
|
11170
11312
|
array = [];
|
11171
11313
|
for (const v of this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7) {
|
11172
|
-
|
11314
|
+
const element = { "@id": v.href };
|
11315
|
+
array.push(element);
|
11173
11316
|
}
|
11174
11317
|
if (array.length > 0) {
|
11175
11318
|
values["https://www.w3.org/ns/activitystreams#href"] = array;
|
11176
11319
|
}
|
11177
11320
|
array = [];
|
11178
11321
|
for (const v of this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ) {
|
11179
|
-
|
11322
|
+
const element = { "@value": v };
|
11323
|
+
array.push(element);
|
11180
11324
|
}
|
11181
11325
|
if (array.length > 0) {
|
11182
11326
|
values["https://www.w3.org/ns/activitystreams#rel"] = array;
|
11183
11327
|
}
|
11184
11328
|
array = [];
|
11185
11329
|
for (const v of this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8) {
|
11186
|
-
|
11330
|
+
const element = { "@value": v };
|
11331
|
+
array.push(element);
|
11187
11332
|
}
|
11188
11333
|
if (array.length > 0) {
|
11189
11334
|
values["https://www.w3.org/ns/activitystreams#mediaType"] = array;
|
11190
11335
|
}
|
11191
11336
|
array = [];
|
11192
11337
|
for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav) {
|
11193
|
-
|
11338
|
+
const element = typeof v === "string" ? { "@value": v } : {
|
11194
11339
|
"@value": v.toString(),
|
11195
11340
|
"@language": v.language.compact(),
|
11196
|
-
}
|
11341
|
+
};
|
11342
|
+
array.push(element);
|
11197
11343
|
}
|
11198
11344
|
if (array.length > 0) {
|
11199
11345
|
values["https://www.w3.org/ns/activitystreams#name"] = array;
|
11200
11346
|
}
|
11201
11347
|
array = [];
|
11202
11348
|
for (const v of this.#_f57HKWCp1YRBbTJE8PF12RbDJGf) {
|
11203
|
-
|
11349
|
+
const element = { "@value": v.compact() };
|
11350
|
+
array.push(element);
|
11204
11351
|
}
|
11205
11352
|
if (array.length > 0) {
|
11206
11353
|
values["https://www.w3.org/ns/activitystreams#hreflang"] = array;
|
11207
11354
|
}
|
11208
11355
|
array = [];
|
11209
11356
|
for (const v of this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb) {
|
11210
|
-
|
11357
|
+
const element = {
|
11211
11358
|
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
|
11212
11359
|
"@value": v,
|
11213
|
-
}
|
11360
|
+
};
|
11361
|
+
array.push(element);
|
11214
11362
|
}
|
11215
11363
|
if (array.length > 0) {
|
11216
11364
|
values["https://www.w3.org/ns/activitystreams#height"] = array;
|
11217
11365
|
}
|
11218
11366
|
array = [];
|
11219
11367
|
for (const v of this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe) {
|
11220
|
-
|
11368
|
+
const element = {
|
11221
11369
|
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
|
11222
11370
|
"@value": v,
|
11223
|
-
}
|
11371
|
+
};
|
11372
|
+
array.push(element);
|
11224
11373
|
}
|
11225
11374
|
if (array.length > 0) {
|
11226
11375
|
values["https://www.w3.org/ns/activitystreams#width"] = array;
|
11227
11376
|
}
|
11228
11377
|
array = [];
|
11229
11378
|
for (const v of this.#_gCVTegXxWWCw6wWRxa1QF65zusg) {
|
11230
|
-
|
11379
|
+
const element = v instanceof URL
|
11231
11380
|
? { "@id": v.href }
|
11232
11381
|
: v instanceof _c
|
11233
11382
|
? await v.toJsonLd(options)
|
11234
|
-
: await v.toJsonLd(options)
|
11383
|
+
: await v.toJsonLd(options);
|
11384
|
+
array.push(element);
|
11235
11385
|
}
|
11236
11386
|
if (array.length > 0) {
|
11237
11387
|
values["https://www.w3.org/ns/activitystreams#preview"] = array;
|
@@ -12373,10 +12523,11 @@ export class OrderedCollectionPage extends CollectionPage {
|
|
12373
12523
|
const values = baseValues[0];
|
12374
12524
|
array = [];
|
12375
12525
|
for (const v of this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd) {
|
12376
|
-
|
12526
|
+
const element = {
|
12377
12527
|
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger",
|
12378
12528
|
"@value": v,
|
12379
|
-
}
|
12529
|
+
};
|
12530
|
+
array.push(element);
|
12380
12531
|
}
|
12381
12532
|
if (array.length > 0) {
|
12382
12533
|
values["https://www.w3.org/ns/activitystreams#startIndex"] = array;
|
@@ -13170,105 +13321,136 @@ export class Organization extends Object {
|
|
13170
13321
|
const values = baseValues[0];
|
13171
13322
|
array = [];
|
13172
13323
|
for (const v of this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf) {
|
13173
|
-
|
13324
|
+
const element = typeof v === "string" ? { "@value": v } : {
|
13174
13325
|
"@value": v.toString(),
|
13175
13326
|
"@language": v.language.compact(),
|
13176
|
-
}
|
13327
|
+
};
|
13328
|
+
array.push(element);
|
13177
13329
|
}
|
13178
13330
|
if (array.length > 0) {
|
13179
13331
|
values["https://www.w3.org/ns/activitystreams#preferredUsername"] = array;
|
13180
13332
|
}
|
13181
13333
|
array = [];
|
13182
13334
|
for (const v of this.#_axq166E2eZADq34V4MYUc8KMZdC) {
|
13183
|
-
|
13335
|
+
const element = v instanceof URL
|
13336
|
+
? { "@id": v.href }
|
13337
|
+
: await v.toJsonLd(options);
|
13338
|
+
array.push(element);
|
13184
13339
|
}
|
13185
13340
|
if (array.length > 0)
|
13186
13341
|
values["https://w3id.org/security#publicKey"] = array;
|
13187
13342
|
array = [];
|
13188
13343
|
for (const v of this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3) {
|
13189
|
-
|
13344
|
+
const element = v instanceof URL
|
13345
|
+
? { "@id": v.href }
|
13346
|
+
: await v.toJsonLd(options);
|
13347
|
+
array.push(element);
|
13190
13348
|
}
|
13191
13349
|
if (array.length > 0) {
|
13192
13350
|
values["https://w3id.org/security#assertionMethod"] = array;
|
13193
13351
|
}
|
13194
13352
|
array = [];
|
13195
13353
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA) {
|
13196
|
-
|
13354
|
+
const element = { "@value": v };
|
13355
|
+
array.push(element);
|
13197
13356
|
}
|
13198
13357
|
if (array.length > 0) {
|
13199
13358
|
values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"] = array;
|
13200
13359
|
}
|
13201
13360
|
array = [];
|
13202
13361
|
for (const v of this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB) {
|
13203
|
-
|
13362
|
+
const element = v instanceof URL
|
13363
|
+
? { "@id": v.href }
|
13364
|
+
: await v.toJsonLd(options);
|
13365
|
+
array.push(element);
|
13204
13366
|
}
|
13205
13367
|
if (array.length > 0)
|
13206
13368
|
values["http://www.w3.org/ns/ldp#inbox"] = array;
|
13207
13369
|
array = [];
|
13208
13370
|
for (const v of this.#_41QwhqJouoLg3h8dRPKat21brynC) {
|
13209
|
-
|
13371
|
+
const element = v instanceof URL
|
13372
|
+
? { "@id": v.href }
|
13373
|
+
: await v.toJsonLd(options);
|
13374
|
+
array.push(element);
|
13210
13375
|
}
|
13211
13376
|
if (array.length > 0) {
|
13212
13377
|
values["https://www.w3.org/ns/activitystreams#outbox"] = array;
|
13213
13378
|
}
|
13214
13379
|
array = [];
|
13215
13380
|
for (const v of this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee) {
|
13216
|
-
|
13381
|
+
const element = v instanceof URL
|
13382
|
+
? { "@id": v.href }
|
13383
|
+
: await v.toJsonLd(options);
|
13384
|
+
array.push(element);
|
13217
13385
|
}
|
13218
13386
|
if (array.length > 0) {
|
13219
13387
|
values["https://www.w3.org/ns/activitystreams#following"] = array;
|
13220
13388
|
}
|
13221
13389
|
array = [];
|
13222
13390
|
for (const v of this.#_BBCTgfphhsFzpVfKTykGSpBNwoA) {
|
13223
|
-
|
13391
|
+
const element = v instanceof URL
|
13392
|
+
? { "@id": v.href }
|
13393
|
+
: await v.toJsonLd(options);
|
13394
|
+
array.push(element);
|
13224
13395
|
}
|
13225
13396
|
if (array.length > 0) {
|
13226
13397
|
values["https://www.w3.org/ns/activitystreams#followers"] = array;
|
13227
13398
|
}
|
13228
13399
|
array = [];
|
13229
13400
|
for (const v of this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU) {
|
13230
|
-
|
13401
|
+
const element = v instanceof URL
|
13402
|
+
? { "@id": v.href }
|
13403
|
+
: await v.toJsonLd(options);
|
13404
|
+
array.push(element);
|
13231
13405
|
}
|
13232
13406
|
if (array.length > 0) {
|
13233
13407
|
values["https://www.w3.org/ns/activitystreams#liked"] = array;
|
13234
13408
|
}
|
13235
13409
|
array = [];
|
13236
13410
|
for (const v of this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9) {
|
13237
|
-
|
13411
|
+
const element = v instanceof URL
|
13412
|
+
? { "@id": v.href }
|
13413
|
+
: await v.toJsonLd(options);
|
13414
|
+
array.push(element);
|
13238
13415
|
}
|
13239
13416
|
if (array.length > 0) {
|
13240
13417
|
values["https://www.w3.org/ns/activitystreams#streams"] = array;
|
13241
13418
|
}
|
13242
13419
|
array = [];
|
13243
13420
|
for (const v of this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG) {
|
13244
|
-
|
13421
|
+
const element = await v.toJsonLd(options);
|
13422
|
+
array.push(element);
|
13245
13423
|
}
|
13246
13424
|
if (array.length > 0) {
|
13247
13425
|
values["https://www.w3.org/ns/activitystreams#endpoints"] = array;
|
13248
13426
|
}
|
13249
13427
|
array = [];
|
13250
13428
|
for (const v of this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH) {
|
13251
|
-
|
13429
|
+
const element = { "@value": v };
|
13430
|
+
array.push(element);
|
13252
13431
|
}
|
13253
13432
|
if (array.length > 0) {
|
13254
13433
|
values["http://joinmastodon.org/ns#discoverable"] = array;
|
13255
13434
|
}
|
13256
13435
|
array = [];
|
13257
13436
|
for (const v of this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7) {
|
13258
|
-
|
13437
|
+
const element = { "@value": v };
|
13438
|
+
array.push(element);
|
13259
13439
|
}
|
13260
13440
|
if (array.length > 0) {
|
13261
13441
|
values["http://joinmastodon.org/ns#suspended"] = array;
|
13262
13442
|
}
|
13263
13443
|
array = [];
|
13264
13444
|
for (const v of this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ) {
|
13265
|
-
|
13445
|
+
const element = { "@value": v };
|
13446
|
+
array.push(element);
|
13266
13447
|
}
|
13267
13448
|
if (array.length > 0)
|
13268
13449
|
values["http://joinmastodon.org/ns#memorial"] = array;
|
13269
13450
|
array = [];
|
13270
13451
|
for (const v of this.#_2diCorzqPGQQqftp6e4SrCEwEnyk) {
|
13271
|
-
|
13452
|
+
const element = { "@value": v };
|
13453
|
+
array.push(element);
|
13272
13454
|
}
|
13273
13455
|
if (array.length > 0) {
|
13274
13456
|
values["http://joinmastodon.org/ns#indexable"] = array;
|
@@ -14507,105 +14689,136 @@ export class Person extends Object {
|
|
14507
14689
|
const values = baseValues[0];
|
14508
14690
|
array = [];
|
14509
14691
|
for (const v of this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf) {
|
14510
|
-
|
14692
|
+
const element = typeof v === "string" ? { "@value": v } : {
|
14511
14693
|
"@value": v.toString(),
|
14512
14694
|
"@language": v.language.compact(),
|
14513
|
-
}
|
14695
|
+
};
|
14696
|
+
array.push(element);
|
14514
14697
|
}
|
14515
14698
|
if (array.length > 0) {
|
14516
14699
|
values["https://www.w3.org/ns/activitystreams#preferredUsername"] = array;
|
14517
14700
|
}
|
14518
14701
|
array = [];
|
14519
14702
|
for (const v of this.#_axq166E2eZADq34V4MYUc8KMZdC) {
|
14520
|
-
|
14703
|
+
const element = v instanceof URL
|
14704
|
+
? { "@id": v.href }
|
14705
|
+
: await v.toJsonLd(options);
|
14706
|
+
array.push(element);
|
14521
14707
|
}
|
14522
14708
|
if (array.length > 0)
|
14523
14709
|
values["https://w3id.org/security#publicKey"] = array;
|
14524
14710
|
array = [];
|
14525
14711
|
for (const v of this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3) {
|
14526
|
-
|
14712
|
+
const element = v instanceof URL
|
14713
|
+
? { "@id": v.href }
|
14714
|
+
: await v.toJsonLd(options);
|
14715
|
+
array.push(element);
|
14527
14716
|
}
|
14528
14717
|
if (array.length > 0) {
|
14529
14718
|
values["https://w3id.org/security#assertionMethod"] = array;
|
14530
14719
|
}
|
14531
14720
|
array = [];
|
14532
14721
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA) {
|
14533
|
-
|
14722
|
+
const element = { "@value": v };
|
14723
|
+
array.push(element);
|
14534
14724
|
}
|
14535
14725
|
if (array.length > 0) {
|
14536
14726
|
values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"] = array;
|
14537
14727
|
}
|
14538
14728
|
array = [];
|
14539
14729
|
for (const v of this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB) {
|
14540
|
-
|
14730
|
+
const element = v instanceof URL
|
14731
|
+
? { "@id": v.href }
|
14732
|
+
: await v.toJsonLd(options);
|
14733
|
+
array.push(element);
|
14541
14734
|
}
|
14542
14735
|
if (array.length > 0)
|
14543
14736
|
values["http://www.w3.org/ns/ldp#inbox"] = array;
|
14544
14737
|
array = [];
|
14545
14738
|
for (const v of this.#_41QwhqJouoLg3h8dRPKat21brynC) {
|
14546
|
-
|
14739
|
+
const element = v instanceof URL
|
14740
|
+
? { "@id": v.href }
|
14741
|
+
: await v.toJsonLd(options);
|
14742
|
+
array.push(element);
|
14547
14743
|
}
|
14548
14744
|
if (array.length > 0) {
|
14549
14745
|
values["https://www.w3.org/ns/activitystreams#outbox"] = array;
|
14550
14746
|
}
|
14551
14747
|
array = [];
|
14552
14748
|
for (const v of this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee) {
|
14553
|
-
|
14749
|
+
const element = v instanceof URL
|
14750
|
+
? { "@id": v.href }
|
14751
|
+
: await v.toJsonLd(options);
|
14752
|
+
array.push(element);
|
14554
14753
|
}
|
14555
14754
|
if (array.length > 0) {
|
14556
14755
|
values["https://www.w3.org/ns/activitystreams#following"] = array;
|
14557
14756
|
}
|
14558
14757
|
array = [];
|
14559
14758
|
for (const v of this.#_BBCTgfphhsFzpVfKTykGSpBNwoA) {
|
14560
|
-
|
14759
|
+
const element = v instanceof URL
|
14760
|
+
? { "@id": v.href }
|
14761
|
+
: await v.toJsonLd(options);
|
14762
|
+
array.push(element);
|
14561
14763
|
}
|
14562
14764
|
if (array.length > 0) {
|
14563
14765
|
values["https://www.w3.org/ns/activitystreams#followers"] = array;
|
14564
14766
|
}
|
14565
14767
|
array = [];
|
14566
14768
|
for (const v of this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU) {
|
14567
|
-
|
14769
|
+
const element = v instanceof URL
|
14770
|
+
? { "@id": v.href }
|
14771
|
+
: await v.toJsonLd(options);
|
14772
|
+
array.push(element);
|
14568
14773
|
}
|
14569
14774
|
if (array.length > 0) {
|
14570
14775
|
values["https://www.w3.org/ns/activitystreams#liked"] = array;
|
14571
14776
|
}
|
14572
14777
|
array = [];
|
14573
14778
|
for (const v of this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9) {
|
14574
|
-
|
14779
|
+
const element = v instanceof URL
|
14780
|
+
? { "@id": v.href }
|
14781
|
+
: await v.toJsonLd(options);
|
14782
|
+
array.push(element);
|
14575
14783
|
}
|
14576
14784
|
if (array.length > 0) {
|
14577
14785
|
values["https://www.w3.org/ns/activitystreams#streams"] = array;
|
14578
14786
|
}
|
14579
14787
|
array = [];
|
14580
14788
|
for (const v of this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG) {
|
14581
|
-
|
14789
|
+
const element = await v.toJsonLd(options);
|
14790
|
+
array.push(element);
|
14582
14791
|
}
|
14583
14792
|
if (array.length > 0) {
|
14584
14793
|
values["https://www.w3.org/ns/activitystreams#endpoints"] = array;
|
14585
14794
|
}
|
14586
14795
|
array = [];
|
14587
14796
|
for (const v of this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH) {
|
14588
|
-
|
14797
|
+
const element = { "@value": v };
|
14798
|
+
array.push(element);
|
14589
14799
|
}
|
14590
14800
|
if (array.length > 0) {
|
14591
14801
|
values["http://joinmastodon.org/ns#discoverable"] = array;
|
14592
14802
|
}
|
14593
14803
|
array = [];
|
14594
14804
|
for (const v of this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7) {
|
14595
|
-
|
14805
|
+
const element = { "@value": v };
|
14806
|
+
array.push(element);
|
14596
14807
|
}
|
14597
14808
|
if (array.length > 0) {
|
14598
14809
|
values["http://joinmastodon.org/ns#suspended"] = array;
|
14599
14810
|
}
|
14600
14811
|
array = [];
|
14601
14812
|
for (const v of this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ) {
|
14602
|
-
|
14813
|
+
const element = { "@value": v };
|
14814
|
+
array.push(element);
|
14603
14815
|
}
|
14604
14816
|
if (array.length > 0)
|
14605
14817
|
values["http://joinmastodon.org/ns#memorial"] = array;
|
14606
14818
|
array = [];
|
14607
14819
|
for (const v of this.#_2diCorzqPGQQqftp6e4SrCEwEnyk) {
|
14608
|
-
|
14820
|
+
const element = { "@value": v };
|
14821
|
+
array.push(element);
|
14609
14822
|
}
|
14610
14823
|
if (array.length > 0) {
|
14611
14824
|
values["http://joinmastodon.org/ns#indexable"] = array;
|
@@ -15174,60 +15387,66 @@ export class Place extends Object {
|
|
15174
15387
|
const values = baseValues[0];
|
15175
15388
|
array = [];
|
15176
15389
|
for (const v of this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne) {
|
15177
|
-
|
15390
|
+
const element = {
|
15178
15391
|
"@type": "http://www.w3.org/2001/XMLSchema#float",
|
15179
15392
|
"@value": v,
|
15180
|
-
}
|
15393
|
+
};
|
15394
|
+
array.push(element);
|
15181
15395
|
}
|
15182
15396
|
if (array.length > 0) {
|
15183
15397
|
values["https://www.w3.org/ns/activitystreams#accuracy"] = array;
|
15184
15398
|
}
|
15185
15399
|
array = [];
|
15186
15400
|
for (const v of this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi) {
|
15187
|
-
|
15401
|
+
const element = {
|
15188
15402
|
"@type": "http://www.w3.org/2001/XMLSchema#float",
|
15189
15403
|
"@value": v,
|
15190
|
-
}
|
15404
|
+
};
|
15405
|
+
array.push(element);
|
15191
15406
|
}
|
15192
15407
|
if (array.length > 0) {
|
15193
15408
|
values["https://www.w3.org/ns/activitystreams#altitude"] = array;
|
15194
15409
|
}
|
15195
15410
|
array = [];
|
15196
15411
|
for (const v of this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM) {
|
15197
|
-
|
15412
|
+
const element = {
|
15198
15413
|
"@type": "http://www.w3.org/2001/XMLSchema#float",
|
15199
15414
|
"@value": v,
|
15200
|
-
}
|
15415
|
+
};
|
15416
|
+
array.push(element);
|
15201
15417
|
}
|
15202
15418
|
if (array.length > 0) {
|
15203
15419
|
values["https://www.w3.org/ns/activitystreams#latitude"] = array;
|
15204
15420
|
}
|
15205
15421
|
array = [];
|
15206
15422
|
for (const v of this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf) {
|
15207
|
-
|
15423
|
+
const element = {
|
15208
15424
|
"@type": "http://www.w3.org/2001/XMLSchema#float",
|
15209
15425
|
"@value": v,
|
15210
|
-
}
|
15426
|
+
};
|
15427
|
+
array.push(element);
|
15211
15428
|
}
|
15212
15429
|
if (array.length > 0) {
|
15213
15430
|
values["https://www.w3.org/ns/activitystreams#longitude"] = array;
|
15214
15431
|
}
|
15215
15432
|
array = [];
|
15216
15433
|
for (const v of this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw) {
|
15217
|
-
|
15434
|
+
const element = {
|
15218
15435
|
"@type": "http://www.w3.org/2001/XMLSchema#float",
|
15219
15436
|
"@value": v,
|
15220
|
-
}
|
15437
|
+
};
|
15438
|
+
array.push(element);
|
15221
15439
|
}
|
15222
15440
|
if (array.length > 0) {
|
15223
15441
|
values["https://www.w3.org/ns/activitystreams#radius"] = array;
|
15224
15442
|
}
|
15225
15443
|
array = [];
|
15226
15444
|
for (const v of this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c) {
|
15227
|
-
|
15445
|
+
const element = v == "cm" || v == "feet" || v == "inches" || v == "km" || v == "m" ||
|
15228
15446
|
v == "miles"
|
15229
15447
|
? { "@value": v }
|
15230
|
-
: { "@id": v.href }
|
15448
|
+
: { "@id": v.href };
|
15449
|
+
array.push(element);
|
15231
15450
|
}
|
15232
15451
|
if (array.length > 0) {
|
15233
15452
|
values["https://www.w3.org/ns/activitystreams#units"] = array;
|
@@ -15518,7 +15737,10 @@ export class Profile extends Object {
|
|
15518
15737
|
const values = baseValues[0];
|
15519
15738
|
array = [];
|
15520
15739
|
for (const v of this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1) {
|
15521
|
-
|
15740
|
+
const element = v instanceof URL
|
15741
|
+
? { "@id": v.href }
|
15742
|
+
: await v.toJsonLd(options);
|
15743
|
+
array.push(element);
|
15522
15744
|
}
|
15523
15745
|
if (array.length > 0) {
|
15524
15746
|
values["https://www.w3.org/ns/activitystreams#describes"] = array;
|
@@ -16010,21 +16232,30 @@ export class Relationship extends Object {
|
|
16010
16232
|
const values = baseValues[0];
|
16011
16233
|
array = [];
|
16012
16234
|
for (const v of this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq) {
|
16013
|
-
|
16235
|
+
const element = v instanceof URL
|
16236
|
+
? { "@id": v.href }
|
16237
|
+
: await v.toJsonLd(options);
|
16238
|
+
array.push(element);
|
16014
16239
|
}
|
16015
16240
|
if (array.length > 0) {
|
16016
16241
|
values["https://www.w3.org/ns/activitystreams#subject"] = array;
|
16017
16242
|
}
|
16018
16243
|
array = [];
|
16019
16244
|
for (const v of this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc) {
|
16020
|
-
|
16245
|
+
const element = v instanceof URL
|
16246
|
+
? { "@id": v.href }
|
16247
|
+
: await v.toJsonLd(options);
|
16248
|
+
array.push(element);
|
16021
16249
|
}
|
16022
16250
|
if (array.length > 0) {
|
16023
16251
|
values["https://www.w3.org/ns/activitystreams#object"] = array;
|
16024
16252
|
}
|
16025
16253
|
array = [];
|
16026
16254
|
for (const v of this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG) {
|
16027
|
-
|
16255
|
+
const element = v instanceof URL
|
16256
|
+
? { "@id": v.href }
|
16257
|
+
: await v.toJsonLd(options);
|
16258
|
+
array.push(element);
|
16028
16259
|
}
|
16029
16260
|
if (array.length > 0) {
|
16030
16261
|
values["https://www.w3.org/ns/activitystreams#relationship"] = array;
|
@@ -16992,105 +17223,136 @@ export class Service extends Object {
|
|
16992
17223
|
const values = baseValues[0];
|
16993
17224
|
array = [];
|
16994
17225
|
for (const v of this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf) {
|
16995
|
-
|
17226
|
+
const element = typeof v === "string" ? { "@value": v } : {
|
16996
17227
|
"@value": v.toString(),
|
16997
17228
|
"@language": v.language.compact(),
|
16998
|
-
}
|
17229
|
+
};
|
17230
|
+
array.push(element);
|
16999
17231
|
}
|
17000
17232
|
if (array.length > 0) {
|
17001
17233
|
values["https://www.w3.org/ns/activitystreams#preferredUsername"] = array;
|
17002
17234
|
}
|
17003
17235
|
array = [];
|
17004
17236
|
for (const v of this.#_axq166E2eZADq34V4MYUc8KMZdC) {
|
17005
|
-
|
17237
|
+
const element = v instanceof URL
|
17238
|
+
? { "@id": v.href }
|
17239
|
+
: await v.toJsonLd(options);
|
17240
|
+
array.push(element);
|
17006
17241
|
}
|
17007
17242
|
if (array.length > 0)
|
17008
17243
|
values["https://w3id.org/security#publicKey"] = array;
|
17009
17244
|
array = [];
|
17010
17245
|
for (const v of this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3) {
|
17011
|
-
|
17246
|
+
const element = v instanceof URL
|
17247
|
+
? { "@id": v.href }
|
17248
|
+
: await v.toJsonLd(options);
|
17249
|
+
array.push(element);
|
17012
17250
|
}
|
17013
17251
|
if (array.length > 0) {
|
17014
17252
|
values["https://w3id.org/security#assertionMethod"] = array;
|
17015
17253
|
}
|
17016
17254
|
array = [];
|
17017
17255
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA) {
|
17018
|
-
|
17256
|
+
const element = { "@value": v };
|
17257
|
+
array.push(element);
|
17019
17258
|
}
|
17020
17259
|
if (array.length > 0) {
|
17021
17260
|
values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"] = array;
|
17022
17261
|
}
|
17023
17262
|
array = [];
|
17024
17263
|
for (const v of this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB) {
|
17025
|
-
|
17264
|
+
const element = v instanceof URL
|
17265
|
+
? { "@id": v.href }
|
17266
|
+
: await v.toJsonLd(options);
|
17267
|
+
array.push(element);
|
17026
17268
|
}
|
17027
17269
|
if (array.length > 0)
|
17028
17270
|
values["http://www.w3.org/ns/ldp#inbox"] = array;
|
17029
17271
|
array = [];
|
17030
17272
|
for (const v of this.#_41QwhqJouoLg3h8dRPKat21brynC) {
|
17031
|
-
|
17273
|
+
const element = v instanceof URL
|
17274
|
+
? { "@id": v.href }
|
17275
|
+
: await v.toJsonLd(options);
|
17276
|
+
array.push(element);
|
17032
17277
|
}
|
17033
17278
|
if (array.length > 0) {
|
17034
17279
|
values["https://www.w3.org/ns/activitystreams#outbox"] = array;
|
17035
17280
|
}
|
17036
17281
|
array = [];
|
17037
17282
|
for (const v of this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee) {
|
17038
|
-
|
17283
|
+
const element = v instanceof URL
|
17284
|
+
? { "@id": v.href }
|
17285
|
+
: await v.toJsonLd(options);
|
17286
|
+
array.push(element);
|
17039
17287
|
}
|
17040
17288
|
if (array.length > 0) {
|
17041
17289
|
values["https://www.w3.org/ns/activitystreams#following"] = array;
|
17042
17290
|
}
|
17043
17291
|
array = [];
|
17044
17292
|
for (const v of this.#_BBCTgfphhsFzpVfKTykGSpBNwoA) {
|
17045
|
-
|
17293
|
+
const element = v instanceof URL
|
17294
|
+
? { "@id": v.href }
|
17295
|
+
: await v.toJsonLd(options);
|
17296
|
+
array.push(element);
|
17046
17297
|
}
|
17047
17298
|
if (array.length > 0) {
|
17048
17299
|
values["https://www.w3.org/ns/activitystreams#followers"] = array;
|
17049
17300
|
}
|
17050
17301
|
array = [];
|
17051
17302
|
for (const v of this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU) {
|
17052
|
-
|
17303
|
+
const element = v instanceof URL
|
17304
|
+
? { "@id": v.href }
|
17305
|
+
: await v.toJsonLd(options);
|
17306
|
+
array.push(element);
|
17053
17307
|
}
|
17054
17308
|
if (array.length > 0) {
|
17055
17309
|
values["https://www.w3.org/ns/activitystreams#liked"] = array;
|
17056
17310
|
}
|
17057
17311
|
array = [];
|
17058
17312
|
for (const v of this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9) {
|
17059
|
-
|
17313
|
+
const element = v instanceof URL
|
17314
|
+
? { "@id": v.href }
|
17315
|
+
: await v.toJsonLd(options);
|
17316
|
+
array.push(element);
|
17060
17317
|
}
|
17061
17318
|
if (array.length > 0) {
|
17062
17319
|
values["https://www.w3.org/ns/activitystreams#streams"] = array;
|
17063
17320
|
}
|
17064
17321
|
array = [];
|
17065
17322
|
for (const v of this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG) {
|
17066
|
-
|
17323
|
+
const element = await v.toJsonLd(options);
|
17324
|
+
array.push(element);
|
17067
17325
|
}
|
17068
17326
|
if (array.length > 0) {
|
17069
17327
|
values["https://www.w3.org/ns/activitystreams#endpoints"] = array;
|
17070
17328
|
}
|
17071
17329
|
array = [];
|
17072
17330
|
for (const v of this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH) {
|
17073
|
-
|
17331
|
+
const element = { "@value": v };
|
17332
|
+
array.push(element);
|
17074
17333
|
}
|
17075
17334
|
if (array.length > 0) {
|
17076
17335
|
values["http://joinmastodon.org/ns#discoverable"] = array;
|
17077
17336
|
}
|
17078
17337
|
array = [];
|
17079
17338
|
for (const v of this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7) {
|
17080
|
-
|
17339
|
+
const element = { "@value": v };
|
17340
|
+
array.push(element);
|
17081
17341
|
}
|
17082
17342
|
if (array.length > 0) {
|
17083
17343
|
values["http://joinmastodon.org/ns#suspended"] = array;
|
17084
17344
|
}
|
17085
17345
|
array = [];
|
17086
17346
|
for (const v of this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ) {
|
17087
|
-
|
17347
|
+
const element = { "@value": v };
|
17348
|
+
array.push(element);
|
17088
17349
|
}
|
17089
17350
|
if (array.length > 0)
|
17090
17351
|
values["http://joinmastodon.org/ns#memorial"] = array;
|
17091
17352
|
array = [];
|
17092
17353
|
for (const v of this.#_2diCorzqPGQQqftp6e4SrCEwEnyk) {
|
17093
|
-
|
17354
|
+
const element = { "@value": v };
|
17355
|
+
array.push(element);
|
17094
17356
|
}
|
17095
17357
|
if (array.length > 0) {
|
17096
17358
|
values["http://joinmastodon.org/ns#indexable"] = array;
|
@@ -17577,10 +17839,11 @@ export class Tombstone extends Object {
|
|
17577
17839
|
const values = baseValues[0];
|
17578
17840
|
array = [];
|
17579
17841
|
for (const v of this.#_8g8g4LiVMhFTXskuDEqx4ascxUr) {
|
17580
|
-
|
17842
|
+
const element = {
|
17581
17843
|
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
|
17582
17844
|
"@value": v.toString(),
|
17583
|
-
}
|
17845
|
+
};
|
17846
|
+
array.push(element);
|
17584
17847
|
}
|
17585
17848
|
if (array.length > 0) {
|
17586
17849
|
values["https://www.w3.org/ns/activitystreams#deleted"] = array;
|