@fedify/vocab 2.5.0-dev.2568 → 2.5.0-dev.2597
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/deno.json +1 -1
- package/dist/mod.cjs +792 -248
- package/dist/mod.d.cts +50 -0
- package/dist/mod.d.ts +50 -0
- package/dist/mod.js +792 -248
- package/dist-tests/{actor-ZkO1CVwO.mjs → actor-Bv4E58SY.mjs} +2 -2
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/application.yaml +16 -0
- package/dist-tests/attribution-domains.test.mjs +122 -0
- package/dist-tests/deep-clone.test.mjs +1 -1
- package/dist-tests/gateway.test.mjs +2 -2
- package/dist-tests/group.yaml +16 -0
- package/dist-tests/license.test.mjs +2 -2
- package/dist-tests/{lookup-4iQsZ6hT.mjs → lookup-CE08Sr09.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/organization.yaml +16 -0
- package/dist-tests/person.yaml +16 -0
- package/dist-tests/portable-lookup.test.mjs +3 -3
- package/dist-tests/service.yaml +16 -0
- package/dist-tests/signed-representation.test.mjs +1 -1
- package/dist-tests/sparse-arrays.test.mjs +1 -1
- package/dist-tests/{src-OznPocrm.mjs → src-BfQX2hVK.mjs} +3 -3
- package/dist-tests/translation.test.mjs +2 -2
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/update.yaml +3 -0
- package/dist-tests/{vocab-D1YJL9OP.mjs → vocab-BcGkZqeH.mjs} +791 -247
- package/dist-tests/vocab.test.mjs +12 -3
- package/package.json +5 -5
- package/src/__snapshots__/vocab.test.ts.snap +15 -0
- package/src/application.yaml +16 -0
- package/src/attribution-domains.test.ts +177 -0
- package/src/group.yaml +16 -0
- package/src/organization.yaml +16 -0
- package/src/person.yaml +16 -0
- package/src/service.yaml +16 -0
- package/src/update.yaml +3 -0
- package/src/vocab.test.ts +8 -0
- package/tsconfig.check.json +14 -0
package/dist/mod.cjs
CHANGED
|
@@ -36,7 +36,7 @@ let _fedify_vocab_runtime_temporal = require("@fedify/vocab-runtime/temporal");
|
|
|
36
36
|
let es_toolkit = require("es-toolkit");
|
|
37
37
|
//#region deno.json
|
|
38
38
|
var name = "@fedify/vocab";
|
|
39
|
-
var version = "2.5.0-dev.
|
|
39
|
+
var version = "2.5.0-dev.2597+7bed9e2b";
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/type.ts
|
|
42
42
|
function getTypeId(object) {
|
|
@@ -6313,7 +6313,7 @@ var Object$1 = class Object$1 {
|
|
|
6313
6313
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6314
6314
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6315
6315
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
6316
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
6316
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
6317
6317
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
6318
6318
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6319
6319
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -6570,7 +6570,7 @@ var Object$1 = class Object$1 {
|
|
|
6570
6570
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6571
6571
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6572
6572
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
6573
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
6573
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
6574
6574
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
6575
6575
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6576
6576
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -6922,7 +6922,7 @@ var Object$1 = class Object$1 {
|
|
|
6922
6922
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6923
6923
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6924
6924
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
6925
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
6925
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
6926
6926
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
6927
6927
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6928
6928
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -7242,7 +7242,7 @@ var Object$1 = class Object$1 {
|
|
|
7242
7242
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
7243
7243
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
7244
7244
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
7245
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
7245
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
7246
7246
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
7247
7247
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7248
7248
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -7514,7 +7514,7 @@ var Object$1 = class Object$1 {
|
|
|
7514
7514
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
7515
7515
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
7516
7516
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
7517
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
7517
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
7518
7518
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
7519
7519
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7520
7520
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -7754,7 +7754,7 @@ var Object$1 = class Object$1 {
|
|
|
7754
7754
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
7755
7755
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
7756
7756
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
7757
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
7757
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
7758
7758
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
7759
7759
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7760
7760
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -8073,7 +8073,7 @@ var Object$1 = class Object$1 {
|
|
|
8073
8073
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8074
8074
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8075
8075
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
8076
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
8076
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
8077
8077
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
8078
8078
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8079
8079
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -8392,7 +8392,7 @@ var Object$1 = class Object$1 {
|
|
|
8392
8392
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8393
8393
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8394
8394
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
8395
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
8395
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
8396
8396
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
8397
8397
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8398
8398
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -8703,7 +8703,7 @@ var Object$1 = class Object$1 {
|
|
|
8703
8703
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8704
8704
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8705
8705
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
8706
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
8706
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
8707
8707
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
8708
8708
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8709
8709
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -9014,7 +9014,7 @@ var Object$1 = class Object$1 {
|
|
|
9014
9014
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9015
9015
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9016
9016
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
9017
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
9017
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
9018
9018
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
9019
9019
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9020
9020
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -9330,7 +9330,7 @@ var Object$1 = class Object$1 {
|
|
|
9330
9330
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9331
9331
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9332
9332
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
9333
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
9333
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
9334
9334
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
9335
9335
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9336
9336
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -9556,7 +9556,7 @@ var Object$1 = class Object$1 {
|
|
|
9556
9556
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9557
9557
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9558
9558
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
9559
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
9559
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
9560
9560
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
9561
9561
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9562
9562
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -9788,7 +9788,7 @@ var Object$1 = class Object$1 {
|
|
|
9788
9788
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9789
9789
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9790
9790
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
9791
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
9791
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
9792
9792
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
9793
9793
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9794
9794
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -10020,7 +10020,7 @@ var Object$1 = class Object$1 {
|
|
|
10020
10020
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10021
10021
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10022
10022
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
10023
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
10023
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
10024
10024
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
10025
10025
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10026
10026
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -10270,7 +10270,7 @@ var Object$1 = class Object$1 {
|
|
|
10270
10270
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10271
10271
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10272
10272
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
10273
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
10273
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
10274
10274
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
10275
10275
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10276
10276
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -10532,7 +10532,7 @@ var Object$1 = class Object$1 {
|
|
|
10532
10532
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10533
10533
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10534
10534
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
10535
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
10535
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
10536
10536
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
10537
10537
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10538
10538
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -10832,7 +10832,7 @@ var Object$1 = class Object$1 {
|
|
|
10832
10832
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10833
10833
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10834
10834
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
10835
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
10835
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
10836
10836
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
10837
10837
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10838
10838
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -11132,7 +11132,7 @@ var Object$1 = class Object$1 {
|
|
|
11132
11132
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
11133
11133
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
11134
11134
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
11135
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
11135
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
11136
11136
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
11137
11137
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11138
11138
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -11432,7 +11432,7 @@ var Object$1 = class Object$1 {
|
|
|
11432
11432
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
11433
11433
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
11434
11434
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
11435
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
11435
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
11436
11436
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
11437
11437
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11438
11438
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -11769,7 +11769,7 @@ var Object$1 = class Object$1 {
|
|
|
11769
11769
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
11770
11770
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
11771
11771
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
11772
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
11772
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
11773
11773
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
11774
11774
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
11775
11775
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -12092,7 +12092,7 @@ var Object$1 = class Object$1 {
|
|
|
12092
12092
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
12093
12093
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
12094
12094
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
12095
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
12095
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
12096
12096
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
12097
12097
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12098
12098
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -12318,7 +12318,7 @@ var Object$1 = class Object$1 {
|
|
|
12318
12318
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
12319
12319
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
12320
12320
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
12321
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
12321
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
12322
12322
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
12323
12323
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12324
12324
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -12544,7 +12544,7 @@ var Object$1 = class Object$1 {
|
|
|
12544
12544
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
12545
12545
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
12546
12546
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
12547
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
12547
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
12548
12548
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
12549
12549
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12550
12550
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -13753,7 +13753,7 @@ var Object$1 = class Object$1 {
|
|
|
13753
13753
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13754
13754
|
*/
|
|
13755
13755
|
static async fromJsonLd(json, options = {}) {
|
|
13756
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
13756
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13757
13757
|
try {
|
|
13758
13758
|
const object = await this.__fromJsonLd__Object__(json, span, options);
|
|
13759
13759
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14978,7 +14978,7 @@ var Object$1 = class Object$1 {
|
|
|
14978
14978
|
let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
|
|
14979
14979
|
for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array == null ? [] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array.length === 1 && "@list" in _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0] ? _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0]["@list"] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array) {
|
|
14980
14980
|
if (v == null) continue;
|
|
14981
|
-
const decoded = v["@value"];
|
|
14981
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
14982
14982
|
if (typeof decoded === "undefined") {
|
|
14983
14983
|
shouldCacheJsonLd = false;
|
|
14984
14984
|
continue;
|
|
@@ -15597,7 +15597,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
15597
15597
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15598
15598
|
*/
|
|
15599
15599
|
static async fromJsonLd(json, options = {}) {
|
|
15600
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
15600
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15601
15601
|
try {
|
|
15602
15602
|
const object = await this.__fromJsonLd__Emoji__(json, span, options);
|
|
15603
15603
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -15868,7 +15868,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
15868
15868
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
15869
15869
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
15870
15870
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
15871
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
15871
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
15872
15872
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
15873
15873
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15874
15874
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -16111,7 +16111,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
16111
16111
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
16112
16112
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
16113
16113
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
16114
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
16114
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
16115
16115
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
16116
16116
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16117
16117
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -16536,7 +16536,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
16536
16536
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16537
16537
|
*/
|
|
16538
16538
|
static async fromJsonLd(json, options = {}) {
|
|
16539
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
16539
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16540
16540
|
try {
|
|
16541
16541
|
const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
|
|
16542
16542
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17331,7 +17331,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
17331
17331
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
17332
17332
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
17333
17333
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
17334
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
17334
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
17335
17335
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
17336
17336
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17337
17337
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -17683,7 +17683,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
17683
17683
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
17684
17684
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
17685
17685
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
17686
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
17686
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
17687
17687
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
17688
17688
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17689
17689
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -17985,7 +17985,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
17985
17985
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
17986
17986
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
17987
17987
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
17988
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
17988
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
17989
17989
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
17990
17990
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17991
17991
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -18293,7 +18293,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
18293
18293
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
18294
18294
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
18295
18295
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
18296
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
18296
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
18297
18297
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
18298
18298
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18299
18299
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -18595,7 +18595,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
18595
18595
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
18596
18596
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
18597
18597
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
18598
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
18598
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
18599
18599
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
18600
18600
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18601
18601
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -18899,7 +18899,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
18899
18899
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
18900
18900
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
18901
18901
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
18902
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
18902
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
18903
18903
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
18904
18904
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18905
18905
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -19337,7 +19337,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
19337
19337
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19338
19338
|
*/
|
|
19339
19339
|
static async fromJsonLd(json, options = {}) {
|
|
19340
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
19340
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19341
19341
|
try {
|
|
19342
19342
|
const object = await this.__fromJsonLd__Activity__(json, span, options);
|
|
19343
19343
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19808,7 +19808,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
19808
19808
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19809
19809
|
*/
|
|
19810
19810
|
static async fromJsonLd(json, options = {}) {
|
|
19811
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
19811
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19812
19812
|
try {
|
|
19813
19813
|
const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
|
|
19814
19814
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20219,7 +20219,7 @@ var PropertyValue = class {
|
|
|
20219
20219
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20220
20220
|
*/
|
|
20221
20221
|
static async fromJsonLd(json, options = {}) {
|
|
20222
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
20222
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20223
20223
|
try {
|
|
20224
20224
|
const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
|
|
20225
20225
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20656,7 +20656,7 @@ var Measure = class {
|
|
|
20656
20656
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20657
20657
|
*/
|
|
20658
20658
|
static async fromJsonLd(json, options = {}) {
|
|
20659
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
20659
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20660
20660
|
try {
|
|
20661
20661
|
const object = await this.__fromJsonLd__Measure__(json, span, options);
|
|
20662
20662
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20713,7 +20713,7 @@ var Measure = class {
|
|
|
20713
20713
|
let _27fgyFbosTtMAhuepJH8K3ZGURT6__array = values["http://www.ontology-of-units-of-measure.org/resource/om-2/hasUnit"];
|
|
20714
20714
|
for (const v of _27fgyFbosTtMAhuepJH8K3ZGURT6__array == null ? [] : _27fgyFbosTtMAhuepJH8K3ZGURT6__array.length === 1 && "@list" in _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0] ? _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0]["@list"] : _27fgyFbosTtMAhuepJH8K3ZGURT6__array) {
|
|
20715
20715
|
if (v == null) continue;
|
|
20716
|
-
const decoded = v["@value"];
|
|
20716
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
20717
20717
|
if (typeof decoded === "undefined") {
|
|
20718
20718
|
shouldCacheJsonLd = false;
|
|
20719
20719
|
continue;
|
|
@@ -20947,7 +20947,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
20947
20947
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
20948
20948
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
20949
20949
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
20950
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
20950
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
20951
20951
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
20952
20952
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20953
20953
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -21173,7 +21173,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
21173
21173
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
21174
21174
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
21175
21175
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
21176
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
21176
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
21177
21177
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
21178
21178
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21179
21179
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -21525,7 +21525,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
21525
21525
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21526
21526
|
*/
|
|
21527
21527
|
static async fromJsonLd(json, options = {}) {
|
|
21528
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
21528
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21529
21529
|
try {
|
|
21530
21530
|
const object = await this.__fromJsonLd__AnnounceAuthorization__(json, span, options);
|
|
21531
21531
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21843,7 +21843,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
21843
21843
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21844
21844
|
*/
|
|
21845
21845
|
static async fromJsonLd(json, options = {}) {
|
|
21846
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
21846
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21847
21847
|
try {
|
|
21848
21848
|
const object = await this.__fromJsonLd__AnnounceRequest__(json, span, options);
|
|
21849
21849
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22376,7 +22376,7 @@ var InteractionPolicy = class {
|
|
|
22376
22376
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22377
22377
|
*/
|
|
22378
22378
|
static async fromJsonLd(json, options = {}) {
|
|
22379
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
22379
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22380
22380
|
try {
|
|
22381
22381
|
const object = await this.__fromJsonLd__InteractionPolicy__(json, span, options);
|
|
22382
22382
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23021,7 +23021,7 @@ var InteractionRule = class {
|
|
|
23021
23021
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23022
23022
|
*/
|
|
23023
23023
|
static async fromJsonLd(json, options = {}) {
|
|
23024
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
23024
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23025
23025
|
try {
|
|
23026
23026
|
const object = await this.__fromJsonLd__InteractionRule__(json, span, options);
|
|
23027
23027
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23313,7 +23313,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
23313
23313
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
23314
23314
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
23315
23315
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
23316
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
23316
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
23317
23317
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
23318
23318
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23319
23319
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -23539,7 +23539,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
23539
23539
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
23540
23540
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
23541
23541
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
23542
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
23542
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
23543
23543
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
23544
23544
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23545
23545
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -23891,7 +23891,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
23891
23891
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23892
23892
|
*/
|
|
23893
23893
|
static async fromJsonLd(json, options = {}) {
|
|
23894
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
23894
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23895
23895
|
try {
|
|
23896
23896
|
const object = await this.__fromJsonLd__LikeAuthorization__(json, span, options);
|
|
23897
23897
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24208,7 +24208,7 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
24208
24208
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24209
24209
|
*/
|
|
24210
24210
|
static async fromJsonLd(json, options = {}) {
|
|
24211
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
24211
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24212
24212
|
try {
|
|
24213
24213
|
const object = await this.__fromJsonLd__LikeRequest__(json, span, options);
|
|
24214
24214
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24463,7 +24463,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
24463
24463
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
24464
24464
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
24465
24465
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
24466
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
24466
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
24467
24467
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
24468
24468
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24469
24469
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -24689,7 +24689,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
24689
24689
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
24690
24690
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
24691
24691
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
24692
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
24692
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
24693
24693
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
24694
24694
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24695
24695
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -25041,7 +25041,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
25041
25041
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25042
25042
|
*/
|
|
25043
25043
|
static async fromJsonLd(json, options = {}) {
|
|
25044
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
25044
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25045
25045
|
try {
|
|
25046
25046
|
const object = await this.__fromJsonLd__ReplyAuthorization__(json, span, options);
|
|
25047
25047
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25358,7 +25358,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
25358
25358
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25359
25359
|
*/
|
|
25360
25360
|
static async fromJsonLd(json, options = {}) {
|
|
25361
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
25361
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25362
25362
|
try {
|
|
25363
25363
|
const object = await this.__fromJsonLd__ReplyRequest__(json, span, options);
|
|
25364
25364
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25613,7 +25613,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
25613
25613
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
25614
25614
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
25615
25615
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
25616
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
25616
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
25617
25617
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
25618
25618
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25619
25619
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -25838,7 +25838,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
25838
25838
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
25839
25839
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
25840
25840
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
25841
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
25841
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
25842
25842
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
25843
25843
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25844
25844
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -26192,7 +26192,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
26192
26192
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26193
26193
|
*/
|
|
26194
26194
|
static async fromJsonLd(json, options = {}) {
|
|
26195
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
26195
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26196
26196
|
try {
|
|
26197
26197
|
const object = await this.__fromJsonLd__QuoteAuthorization__(json, span, options);
|
|
26198
26198
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -26539,7 +26539,7 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
26539
26539
|
* @throws {TypeError} If the given `json` is invalid.
|
|
26540
26540
|
*/
|
|
26541
26541
|
static async fromJsonLd(json, options = {}) {
|
|
26542
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
26542
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
26543
26543
|
try {
|
|
26544
26544
|
const object = await this.__fromJsonLd__QuoteRequest__(json, span, options);
|
|
26545
26545
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -27029,7 +27029,7 @@ var Translation = class {
|
|
|
27029
27029
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
27030
27030
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
27031
27031
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
27032
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
27032
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
27033
27033
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
27034
27034
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27035
27035
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -27623,7 +27623,7 @@ var Translation = class {
|
|
|
27623
27623
|
* @throws {TypeError} If the given `json` is invalid.
|
|
27624
27624
|
*/
|
|
27625
27625
|
static async fromJsonLd(json, options = {}) {
|
|
27626
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
27626
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
27627
27627
|
try {
|
|
27628
27628
|
const object = await this.__fromJsonLd__Translation__(json, span, options);
|
|
27629
27629
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28010,7 +28010,7 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
|
|
|
28010
28010
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
28011
28011
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
28012
28012
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
28013
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
28013
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
28014
28014
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
28015
28015
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28016
28016
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -28235,7 +28235,7 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
|
|
|
28235
28235
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
28236
28236
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
28237
28237
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
28238
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
28238
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
28239
28239
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
28240
28240
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28241
28241
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -28589,7 +28589,7 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
|
|
|
28589
28589
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28590
28590
|
*/
|
|
28591
28591
|
static async fromJsonLd(json, options = {}) {
|
|
28592
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
28592
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28593
28593
|
try {
|
|
28594
28594
|
const object = await this.__fromJsonLd__FeatureAuthorization__(json, span, options);
|
|
28595
28595
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28904,7 +28904,7 @@ var FeatureRequest = class FeatureRequest extends Activity {
|
|
|
28904
28904
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28905
28905
|
*/
|
|
28906
28906
|
static async fromJsonLd(json, options = {}) {
|
|
28907
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
28907
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28908
28908
|
try {
|
|
28909
28909
|
const object = await this.__fromJsonLd__FeatureRequest__(json, span, options);
|
|
28910
28910
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29481,7 +29481,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
29481
29481
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
29482
29482
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
29483
29483
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
29484
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
29484
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
29485
29485
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
29486
29486
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29487
29487
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -29707,7 +29707,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
29707
29707
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
29708
29708
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
29709
29709
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
29710
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
29710
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
29711
29711
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
29712
29712
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29713
29713
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -29933,7 +29933,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
29933
29933
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
29934
29934
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
29935
29935
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
29936
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
29936
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
29937
29937
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
29938
29938
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29939
29939
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -30159,7 +30159,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
30159
30159
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
30160
30160
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
30161
30161
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
30162
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
30162
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
30163
30163
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
30164
30164
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30165
30165
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -30400,7 +30400,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
30400
30400
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
30401
30401
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
30402
30402
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
30403
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
30403
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
30404
30404
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
30405
30405
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30406
30406
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -30625,7 +30625,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
30625
30625
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
30626
30626
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
30627
30627
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
30628
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
30628
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
30629
30629
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
30630
30630
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30631
30631
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -30850,7 +30850,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
30850
30850
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
30851
30851
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
30852
30852
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
30853
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
30853
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
30854
30854
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
30855
30855
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30856
30856
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -31075,7 +31075,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
31075
31075
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31076
31076
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31077
31077
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
31078
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
31078
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
31079
31079
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
31080
31080
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31081
31081
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -31300,7 +31300,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
31300
31300
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31301
31301
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31302
31302
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
31303
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
31303
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
31304
31304
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
31305
31305
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31306
31306
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -31525,7 +31525,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
31525
31525
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31526
31526
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31527
31527
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
31528
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
31528
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
31529
31529
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
31530
31530
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31531
31531
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -31750,7 +31750,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
31750
31750
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31751
31751
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31752
31752
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
31753
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
31753
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
31754
31754
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
31755
31755
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31756
31756
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -31975,7 +31975,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
31975
31975
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31976
31976
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31977
31977
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
31978
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
31978
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
31979
31979
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
31980
31980
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31981
31981
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -32615,7 +32615,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
32615
32615
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32616
32616
|
*/
|
|
32617
32617
|
static async fromJsonLd(json, options = {}) {
|
|
32618
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
32618
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32619
32619
|
try {
|
|
32620
32620
|
const object = await this.__fromJsonLd__Collection__(json, span, options);
|
|
32621
32621
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33300,7 +33300,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
33300
33300
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
33301
33301
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
33302
33302
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
33303
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
33303
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
33304
33304
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
33305
33305
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33306
33306
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -33706,7 +33706,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
33706
33706
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33707
33707
|
*/
|
|
33708
33708
|
static async fromJsonLd(json, options = {}) {
|
|
33709
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
33709
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33710
33710
|
try {
|
|
33711
33711
|
const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
|
|
33712
33712
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34188,7 +34188,7 @@ var FeaturedCollection = class FeaturedCollection extends OrderedCollection {
|
|
|
34188
34188
|
* @throws {TypeError} If the given `json` is invalid.
|
|
34189
34189
|
*/
|
|
34190
34190
|
static async fromJsonLd(json, options = {}) {
|
|
34191
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
34191
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
34192
34192
|
try {
|
|
34193
34193
|
const object = await this.__fromJsonLd__FeaturedCollection__(json, span, options);
|
|
34194
34194
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34478,7 +34478,7 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
|
|
|
34478
34478
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
34479
34479
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
34480
34480
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
34481
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
34481
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
34482
34482
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
34483
34483
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34484
34484
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -34703,7 +34703,7 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
|
|
|
34703
34703
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
34704
34704
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
34705
34705
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
34706
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
34706
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
34707
34707
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
34708
34708
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34709
34709
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -35058,7 +35058,7 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
|
|
|
35058
35058
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35059
35059
|
*/
|
|
35060
35060
|
static async fromJsonLd(json, options = {}) {
|
|
35061
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
35061
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35062
35062
|
try {
|
|
35063
35063
|
const object = await this.__fromJsonLd__FeaturedItem__(json, span, options);
|
|
35064
35064
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -35537,7 +35537,7 @@ var DidService = class {
|
|
|
35537
35537
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35538
35538
|
*/
|
|
35539
35539
|
static async fromJsonLd(json, options = {}) {
|
|
35540
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
35540
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35541
35541
|
try {
|
|
35542
35542
|
const object = await this.__fromJsonLd__DidService__(json, span, options);
|
|
35543
35543
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -35803,7 +35803,7 @@ var Export = class Export extends DidService {
|
|
|
35803
35803
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35804
35804
|
*/
|
|
35805
35805
|
static async fromJsonLd(json, options = {}) {
|
|
35806
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
35806
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35807
35807
|
try {
|
|
35808
35808
|
const object = await this.__fromJsonLd__Export__(json, span, options);
|
|
35809
35809
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36138,7 +36138,7 @@ var DataIntegrityProof = class {
|
|
|
36138
36138
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
36139
36139
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
36140
36140
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
36141
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
36141
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
36142
36142
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
36143
36143
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36144
36144
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -36495,7 +36495,7 @@ var DataIntegrityProof = class {
|
|
|
36495
36495
|
* @throws {TypeError} If the given `json` is invalid.
|
|
36496
36496
|
*/
|
|
36497
36497
|
static async fromJsonLd(json, options = {}) {
|
|
36498
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
36498
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
36499
36499
|
try {
|
|
36500
36500
|
const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
|
|
36501
36501
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36888,7 +36888,7 @@ var CryptographicKey = class {
|
|
|
36888
36888
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
36889
36889
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
36890
36890
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
36891
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
36891
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
36892
36892
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
36893
36893
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36894
36894
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -37290,7 +37290,7 @@ var CryptographicKey = class {
|
|
|
37290
37290
|
* @throws {TypeError} If the given `json` is invalid.
|
|
37291
37291
|
*/
|
|
37292
37292
|
static async fromJsonLd(json, options = {}) {
|
|
37293
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
37293
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
37294
37294
|
try {
|
|
37295
37295
|
const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
|
|
37296
37296
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -37644,7 +37644,7 @@ var Multikey = class {
|
|
|
37644
37644
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
37645
37645
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
37646
37646
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
37647
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
37647
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
37648
37648
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
37649
37649
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37650
37650
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -38052,7 +38052,7 @@ var Multikey = class {
|
|
|
38052
38052
|
* @throws {TypeError} If the given `json` is invalid.
|
|
38053
38053
|
*/
|
|
38054
38054
|
static async fromJsonLd(json, options = {}) {
|
|
38055
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
38055
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
38056
38056
|
try {
|
|
38057
38057
|
const object = await this.__fromJsonLd__Multikey__(json, span, options);
|
|
38058
38058
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -38539,7 +38539,7 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
38539
38539
|
* @throws {TypeError} If the given `json` is invalid.
|
|
38540
38540
|
*/
|
|
38541
38541
|
static async fromJsonLd(json, options = {}) {
|
|
38542
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
38542
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
38543
38543
|
try {
|
|
38544
38544
|
const object = await this.__fromJsonLd__Agreement__(json, span, options);
|
|
38545
38545
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -39033,7 +39033,7 @@ var Commitment = class {
|
|
|
39033
39033
|
* @throws {TypeError} If the given `json` is invalid.
|
|
39034
39034
|
*/
|
|
39035
39035
|
static async fromJsonLd(json, options = {}) {
|
|
39036
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
39036
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
39037
39037
|
try {
|
|
39038
39038
|
const object = await this.__fromJsonLd__Commitment__(json, span, options);
|
|
39039
39039
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -39645,7 +39645,7 @@ var Intent = class {
|
|
|
39645
39645
|
* @throws {TypeError} If the given `json` is invalid.
|
|
39646
39646
|
*/
|
|
39647
39647
|
static async fromJsonLd(json, options = {}) {
|
|
39648
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
39648
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
39649
39649
|
try {
|
|
39650
39650
|
const object = await this.__fromJsonLd__Intent__(json, span, options);
|
|
39651
39651
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -39702,7 +39702,7 @@ var Intent = class {
|
|
|
39702
39702
|
let _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array = values["https://w3id.org/valueflows/ont/vf#action"];
|
|
39703
39703
|
for (const v of _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array == null ? [] : _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array.length === 1 && "@list" in _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array[0] ? _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array[0]["@list"] : _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array) {
|
|
39704
39704
|
if (v == null) continue;
|
|
39705
|
-
const decoded = v["@value"];
|
|
39705
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
39706
39706
|
if (typeof decoded === "undefined") {
|
|
39707
39707
|
shouldCacheJsonLd = false;
|
|
39708
39708
|
continue;
|
|
@@ -40244,7 +40244,7 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
40244
40244
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40245
40245
|
*/
|
|
40246
40246
|
static async fromJsonLd(json, options = {}) {
|
|
40247
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
40247
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40248
40248
|
try {
|
|
40249
40249
|
const object = await this.__fromJsonLd__Proposal__(json, span, options);
|
|
40250
40250
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -40307,7 +40307,7 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
40307
40307
|
let _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array = values["https://w3id.org/valueflows/ont/vf#purpose"];
|
|
40308
40308
|
for (const v of _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array == null ? [] : _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array.length === 1 && "@list" in _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array[0] ? _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array[0]["@list"] : _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array) {
|
|
40309
40309
|
if (v == null) continue;
|
|
40310
|
-
const decoded = v["@value"];
|
|
40310
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
40311
40311
|
if (typeof decoded === "undefined") {
|
|
40312
40312
|
shouldCacheJsonLd = false;
|
|
40313
40313
|
continue;
|
|
@@ -40580,7 +40580,7 @@ var Accept = class Accept extends Activity {
|
|
|
40580
40580
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40581
40581
|
*/
|
|
40582
40582
|
static async fromJsonLd(json, options = {}) {
|
|
40583
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
40583
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40584
40584
|
try {
|
|
40585
40585
|
const object = await this.__fromJsonLd__Accept__(json, span, options);
|
|
40586
40586
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -40839,7 +40839,7 @@ var Add = class Add extends Activity {
|
|
|
40839
40839
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40840
40840
|
*/
|
|
40841
40841
|
static async fromJsonLd(json, options = {}) {
|
|
40842
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
40842
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40843
40843
|
try {
|
|
40844
40844
|
const object = await this.__fromJsonLd__Add__(json, span, options);
|
|
40845
40845
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41125,7 +41125,7 @@ var Announce = class Announce extends Activity {
|
|
|
41125
41125
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41126
41126
|
*/
|
|
41127
41127
|
static async fromJsonLd(json, options = {}) {
|
|
41128
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
41128
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41129
41129
|
try {
|
|
41130
41130
|
const object = await this.__fromJsonLd__Announce__(json, span, options);
|
|
41131
41131
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41246,6 +41246,7 @@ var Application = class Application extends Object$1 {
|
|
|
41246
41246
|
#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
41247
41247
|
#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
41248
41248
|
#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
41249
|
+
#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
41249
41250
|
#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
41250
41251
|
#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
|
|
41251
41252
|
#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
|
|
@@ -41463,6 +41464,33 @@ var Application = class Application extends Object$1 {
|
|
|
41463
41464
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
41464
41465
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
41465
41466
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
41467
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
41468
|
+
let copied;
|
|
41469
|
+
let valid = false;
|
|
41470
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
41471
|
+
const array = values.attributionDomains;
|
|
41472
|
+
const test = (v) => typeof v === "string";
|
|
41473
|
+
let checked;
|
|
41474
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
41475
|
+
const input = values.attributionDomains;
|
|
41476
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
41477
|
+
copied = input.slice();
|
|
41478
|
+
valid = true;
|
|
41479
|
+
} else {
|
|
41480
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
41481
|
+
valid: true,
|
|
41482
|
+
sparse: false
|
|
41483
|
+
});
|
|
41484
|
+
if (result.ok) {
|
|
41485
|
+
copied = result.array;
|
|
41486
|
+
valid = true;
|
|
41487
|
+
}
|
|
41488
|
+
}
|
|
41489
|
+
}
|
|
41490
|
+
}
|
|
41491
|
+
if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
41492
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
41493
|
+
}
|
|
41466
41494
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
41467
41495
|
this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
41468
41496
|
this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
|
|
@@ -41822,6 +41850,34 @@ var Application = class Application extends Object$1 {
|
|
|
41822
41850
|
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
|
|
41823
41851
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
41824
41852
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
41853
|
+
clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
|
|
41854
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
41855
|
+
let copied;
|
|
41856
|
+
let valid = false;
|
|
41857
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
41858
|
+
const array = values.attributionDomains;
|
|
41859
|
+
const test = (v) => typeof v === "string";
|
|
41860
|
+
let checked;
|
|
41861
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
41862
|
+
const input = values.attributionDomains;
|
|
41863
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
41864
|
+
copied = input.slice();
|
|
41865
|
+
valid = true;
|
|
41866
|
+
} else {
|
|
41867
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
41868
|
+
valid: true,
|
|
41869
|
+
sparse: false
|
|
41870
|
+
});
|
|
41871
|
+
if (result.ok) {
|
|
41872
|
+
copied = result.array;
|
|
41873
|
+
valid = true;
|
|
41874
|
+
}
|
|
41875
|
+
}
|
|
41876
|
+
}
|
|
41877
|
+
}
|
|
41878
|
+
if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
41879
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
41880
|
+
}
|
|
41825
41881
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
41826
41882
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
41827
41883
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
@@ -42210,7 +42266,7 @@ var Application = class Application extends Object$1 {
|
|
|
42210
42266
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
42211
42267
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
42212
42268
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
42213
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
42269
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
42214
42270
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
42215
42271
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42216
42272
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -42508,7 +42564,7 @@ var Application = class Application extends Object$1 {
|
|
|
42508
42564
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
42509
42565
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
42510
42566
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
42511
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
42567
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
42512
42568
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
42513
42569
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42514
42570
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -42842,7 +42898,7 @@ var Application = class Application extends Object$1 {
|
|
|
42842
42898
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
42843
42899
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
42844
42900
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
42845
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
42901
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
42846
42902
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
42847
42903
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42848
42904
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -43090,7 +43146,7 @@ var Application = class Application extends Object$1 {
|
|
|
43090
43146
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43091
43147
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43092
43148
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
43093
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
43149
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
43094
43150
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
43095
43151
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43096
43152
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -43335,7 +43391,7 @@ var Application = class Application extends Object$1 {
|
|
|
43335
43391
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43336
43392
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43337
43393
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
43338
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
43394
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
43339
43395
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
43340
43396
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43341
43397
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -43564,7 +43620,7 @@ var Application = class Application extends Object$1 {
|
|
|
43564
43620
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43565
43621
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43566
43622
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
43567
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
43623
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
43568
43624
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
43569
43625
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43570
43626
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -43796,7 +43852,7 @@ var Application = class Application extends Object$1 {
|
|
|
43796
43852
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43797
43853
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43798
43854
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
43799
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
43855
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
43800
43856
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
43801
43857
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43802
43858
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -44026,7 +44082,7 @@ var Application = class Application extends Object$1 {
|
|
|
44026
44082
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
44027
44083
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
44028
44084
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
44029
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
44085
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
44030
44086
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
44031
44087
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44032
44088
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -44254,7 +44310,7 @@ var Application = class Application extends Object$1 {
|
|
|
44254
44310
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
44255
44311
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
44256
44312
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
44257
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
44313
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
44258
44314
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
44259
44315
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44260
44316
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -44482,7 +44538,7 @@ var Application = class Application extends Object$1 {
|
|
|
44482
44538
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
44483
44539
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
44484
44540
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
44485
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
44541
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
44486
44542
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
44487
44543
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44488
44544
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -44707,7 +44763,7 @@ var Application = class Application extends Object$1 {
|
|
|
44707
44763
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
44708
44764
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
44709
44765
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
44710
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
44766
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
44711
44767
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
44712
44768
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44713
44769
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -44974,11 +45030,20 @@ var Application = class Application extends Object$1 {
|
|
|
44974
45030
|
if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
|
|
44975
45031
|
return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
44976
45032
|
}
|
|
45033
|
+
/** Domains this actor claims as its own, so that Mastodon can credit the
|
|
45034
|
+
* actor on link preview cards that point at one of them. Each value is a
|
|
45035
|
+
* bare host name, without a scheme, port, path, or leading `*.`. Fedify
|
|
45036
|
+
* treats the values as opaque strings and does not normalize or validate
|
|
45037
|
+
* them; applications are responsible for producing normalized host names.
|
|
45038
|
+
*/
|
|
45039
|
+
get attributionDomains() {
|
|
45040
|
+
return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
45041
|
+
}
|
|
44977
45042
|
async #fetchSuccessor(url, options = {}) {
|
|
44978
45043
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
44979
45044
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
44980
45045
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
44981
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
45046
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
44982
45047
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
44983
45048
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44984
45049
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -45253,7 +45318,7 @@ var Application = class Application extends Object$1 {
|
|
|
45253
45318
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
45254
45319
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
45255
45320
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
45256
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
45321
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
45257
45322
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
45258
45323
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
45259
45324
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -45607,7 +45672,7 @@ var Application = class Application extends Object$1 {
|
|
|
45607
45672
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
45608
45673
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
45609
45674
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
45610
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
45675
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
45611
45676
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
45612
45677
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
45613
45678
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -46134,6 +46199,12 @@ var Application = class Application extends Object$1 {
|
|
|
46134
46199
|
}
|
|
46135
46200
|
if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
46136
46201
|
compactItems = [];
|
|
46202
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
46203
|
+
const item = v;
|
|
46204
|
+
compactItems.push(item);
|
|
46205
|
+
}
|
|
46206
|
+
if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
46207
|
+
compactItems = [];
|
|
46137
46208
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
46138
46209
|
const item = (0, _fedify_vocab_runtime_internal_signed_representation.retainedSignedValueRef)(v, signedValues.scope) ?? (v instanceof URL ? (0, _fedify_vocab_runtime.formatIri)(v) : v instanceof Application ? await v.toJsonLd({
|
|
46139
46210
|
...options,
|
|
@@ -46252,6 +46323,10 @@ var Application = class Application extends Object$1 {
|
|
|
46252
46323
|
"suspended": "toot:suspended",
|
|
46253
46324
|
"memorial": "toot:memorial",
|
|
46254
46325
|
"indexable": "toot:indexable",
|
|
46326
|
+
"attributionDomains": {
|
|
46327
|
+
"@id": "toot:attributionDomains",
|
|
46328
|
+
"@container": "@set"
|
|
46329
|
+
},
|
|
46255
46330
|
"schema": "http://schema.org#",
|
|
46256
46331
|
"PropertyValue": "schema:PropertyValue",
|
|
46257
46332
|
"value": "schema:value",
|
|
@@ -46481,6 +46556,17 @@ var Application = class Application extends Object$1 {
|
|
|
46481
46556
|
}
|
|
46482
46557
|
if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
|
|
46483
46558
|
array = [];
|
|
46559
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
46560
|
+
let element = { "@value": v };
|
|
46561
|
+
if (Array.isArray(element)) {
|
|
46562
|
+
if (element.length < 1) continue;
|
|
46563
|
+
if (element.length == 1) element = element[0];
|
|
46564
|
+
}
|
|
46565
|
+
if (typeof element === "undefined") continue;
|
|
46566
|
+
array.push(element);
|
|
46567
|
+
}
|
|
46568
|
+
if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
|
|
46569
|
+
array = [];
|
|
46484
46570
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
46485
46571
|
let element = (0, _fedify_vocab_runtime_internal_signed_representation.retainedSignedValueRef)(v, signedValues.scope) ?? (v instanceof URL ? { "@id": (0, _fedify_vocab_runtime.formatIri)(v) } : v instanceof Application ? await v.toJsonLd(options) : v instanceof Group ? await v.toJsonLd(options) : v instanceof Organization ? await v.toJsonLd(options) : v instanceof Person ? await v.toJsonLd(options) : await v.toJsonLd(options));
|
|
46486
46572
|
if (Array.isArray(element)) {
|
|
@@ -46589,6 +46675,10 @@ var Application = class Application extends Object$1 {
|
|
|
46589
46675
|
"suspended": "toot:suspended",
|
|
46590
46676
|
"memorial": "toot:memorial",
|
|
46591
46677
|
"indexable": "toot:indexable",
|
|
46678
|
+
"attributionDomains": {
|
|
46679
|
+
"@id": "toot:attributionDomains",
|
|
46680
|
+
"@container": "@set"
|
|
46681
|
+
},
|
|
46592
46682
|
"schema": "http://schema.org#",
|
|
46593
46683
|
"PropertyValue": "schema:PropertyValue",
|
|
46594
46684
|
"value": "schema:value",
|
|
@@ -46639,7 +46729,7 @@ var Application = class Application extends Object$1 {
|
|
|
46639
46729
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46640
46730
|
*/
|
|
46641
46731
|
static async fromJsonLd(json, options = {}) {
|
|
46642
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
46732
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46643
46733
|
try {
|
|
46644
46734
|
const object = await this.__fromJsonLd__Application__(json, span, options);
|
|
46645
46735
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47042,6 +47132,19 @@ var Application = class Application extends Object$1 {
|
|
|
47042
47132
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
47043
47133
|
}
|
|
47044
47134
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
47135
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
47136
|
+
let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
|
|
47137
|
+
for (const v of _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array == null ? [] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array.length === 1 && "@list" in _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0] ? _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0]["@list"] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array) {
|
|
47138
|
+
if (v == null) continue;
|
|
47139
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
47140
|
+
if (typeof decoded === "undefined") {
|
|
47141
|
+
shouldCacheJsonLd = false;
|
|
47142
|
+
continue;
|
|
47143
|
+
}
|
|
47144
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
47145
|
+
_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
|
|
47146
|
+
}
|
|
47147
|
+
instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
47045
47148
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
47046
47149
|
let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
|
|
47047
47150
|
for (const v of _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array == null ? [] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array.length === 1 && "@list" in _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0] ? _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0]["@list"] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array) {
|
|
@@ -47133,7 +47236,7 @@ var Application = class Application extends Object$1 {
|
|
|
47133
47236
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
47134
47237
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
47135
47238
|
if (v == null) continue;
|
|
47136
|
-
const decoded = v["@value"];
|
|
47239
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
47137
47240
|
if (typeof decoded === "undefined") {
|
|
47138
47241
|
shouldCacheJsonLd = false;
|
|
47139
47242
|
continue;
|
|
@@ -47282,6 +47385,11 @@ var Application = class Application extends Object$1 {
|
|
|
47282
47385
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
47283
47386
|
} : v);
|
|
47284
47387
|
if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
47388
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
|
|
47389
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
47390
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
47391
|
+
} : v);
|
|
47392
|
+
if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
47285
47393
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
|
|
47286
47394
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
47287
47395
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
@@ -47498,7 +47606,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
47498
47606
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47499
47607
|
*/
|
|
47500
47608
|
static async fromJsonLd(json, options = {}) {
|
|
47501
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
47609
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47502
47610
|
try {
|
|
47503
47611
|
const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
|
|
47504
47612
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47758,7 +47866,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
47758
47866
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47759
47867
|
*/
|
|
47760
47868
|
static async fromJsonLd(json, options = {}) {
|
|
47761
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
47869
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47762
47870
|
try {
|
|
47763
47871
|
const object = await this.__fromJsonLd__Arrive__(json, span, options);
|
|
47764
47872
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -48025,7 +48133,7 @@ var Article = class Article extends Object$1 {
|
|
|
48025
48133
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
48026
48134
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
48027
48135
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
48028
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
48136
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
48029
48137
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
48030
48138
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
48031
48139
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -48268,7 +48376,7 @@ var Article = class Article extends Object$1 {
|
|
|
48268
48376
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
48269
48377
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
48270
48378
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
48271
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
48379
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
48272
48380
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
48273
48381
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
48274
48382
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -48695,7 +48803,7 @@ var Article = class Article extends Object$1 {
|
|
|
48695
48803
|
* @throws {TypeError} If the given `json` is invalid.
|
|
48696
48804
|
*/
|
|
48697
48805
|
static async fromJsonLd(json, options = {}) {
|
|
48698
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
48806
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
48699
48807
|
try {
|
|
48700
48808
|
const object = await this.__fromJsonLd__Article__(json, span, options);
|
|
48701
48809
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -49142,7 +49250,7 @@ var Document = class Document extends Object$1 {
|
|
|
49142
49250
|
* @throws {TypeError} If the given `json` is invalid.
|
|
49143
49251
|
*/
|
|
49144
49252
|
static async fromJsonLd(json, options = {}) {
|
|
49145
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
49253
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
49146
49254
|
try {
|
|
49147
49255
|
const object = await this.__fromJsonLd__Document__(json, span, options);
|
|
49148
49256
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -49235,7 +49343,7 @@ var Document = class Document extends Object$1 {
|
|
|
49235
49343
|
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
|
|
49236
49344
|
for (const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null ? [] : _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && "@list" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0] ? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]["@list"] : _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array) {
|
|
49237
49345
|
if (v == null) continue;
|
|
49238
|
-
const decoded = v["@value"];
|
|
49346
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
49239
49347
|
if (typeof decoded === "undefined") {
|
|
49240
49348
|
shouldCacheJsonLd = false;
|
|
49241
49349
|
continue;
|
|
@@ -49472,7 +49580,7 @@ var Audio = class Audio extends Document {
|
|
|
49472
49580
|
* @throws {TypeError} If the given `json` is invalid.
|
|
49473
49581
|
*/
|
|
49474
49582
|
static async fromJsonLd(json, options = {}) {
|
|
49475
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
49583
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
49476
49584
|
try {
|
|
49477
49585
|
const object = await this.__fromJsonLd__Audio__(json, span, options);
|
|
49478
49586
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -49728,7 +49836,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
49728
49836
|
* @throws {TypeError} If the given `json` is invalid.
|
|
49729
49837
|
*/
|
|
49730
49838
|
static async fromJsonLd(json, options = {}) {
|
|
49731
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
49839
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
49732
49840
|
try {
|
|
49733
49841
|
const object = await this.__fromJsonLd__Ignore__(json, span, options);
|
|
49734
49842
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -49987,7 +50095,7 @@ var Block = class Block extends Ignore {
|
|
|
49987
50095
|
* @throws {TypeError} If the given `json` is invalid.
|
|
49988
50096
|
*/
|
|
49989
50097
|
static async fromJsonLd(json, options = {}) {
|
|
49990
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
50098
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
49991
50099
|
try {
|
|
49992
50100
|
const object = await this.__fromJsonLd__Block__(json, span, options);
|
|
49993
50101
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -50263,7 +50371,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
50263
50371
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
50264
50372
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
50265
50373
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
50266
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
50374
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
50267
50375
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
50268
50376
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
50269
50377
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -50489,7 +50597,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
50489
50597
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
50490
50598
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
50491
50599
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
50492
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
50600
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
50493
50601
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
50494
50602
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
50495
50603
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -50714,7 +50822,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
50714
50822
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
50715
50823
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
50716
50824
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
50717
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
50825
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
50718
50826
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
50719
50827
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
50720
50828
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -51141,7 +51249,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
51141
51249
|
* @throws {TypeError} If the given `json` is invalid.
|
|
51142
51250
|
*/
|
|
51143
51251
|
static async fromJsonLd(json, options = {}) {
|
|
51144
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
51252
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
51145
51253
|
try {
|
|
51146
51254
|
const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
|
|
51147
51255
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -51506,7 +51614,7 @@ var Create = class Create extends Activity {
|
|
|
51506
51614
|
* @throws {TypeError} If the given `json` is invalid.
|
|
51507
51615
|
*/
|
|
51508
51616
|
static async fromJsonLd(json, options = {}) {
|
|
51509
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
51617
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
51510
51618
|
try {
|
|
51511
51619
|
const object = await this.__fromJsonLd__Create__(json, span, options);
|
|
51512
51620
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -51788,7 +51896,7 @@ var Delete = class Delete extends Activity {
|
|
|
51788
51896
|
* @throws {TypeError} If the given `json` is invalid.
|
|
51789
51897
|
*/
|
|
51790
51898
|
static async fromJsonLd(json, options = {}) {
|
|
51791
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
51899
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
51792
51900
|
try {
|
|
51793
51901
|
const object = await this.__fromJsonLd__Delete__(json, span, options);
|
|
51794
51902
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -52047,7 +52155,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
52047
52155
|
* @throws {TypeError} If the given `json` is invalid.
|
|
52048
52156
|
*/
|
|
52049
52157
|
static async fromJsonLd(json, options = {}) {
|
|
52050
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
52158
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
52051
52159
|
try {
|
|
52052
52160
|
const object = await this.__fromJsonLd__Dislike__(json, span, options);
|
|
52053
52161
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -52704,7 +52812,7 @@ var Endpoints = class {
|
|
|
52704
52812
|
* @throws {TypeError} If the given `json` is invalid.
|
|
52705
52813
|
*/
|
|
52706
52814
|
static async fromJsonLd(json, options = {}) {
|
|
52707
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
52815
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
52708
52816
|
try {
|
|
52709
52817
|
const object = await this.__fromJsonLd__Endpoints__(json, span, options);
|
|
52710
52818
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -53098,7 +53206,7 @@ var Event = class Event extends Object$1 {
|
|
|
53098
53206
|
* @throws {TypeError} If the given `json` is invalid.
|
|
53099
53207
|
*/
|
|
53100
53208
|
static async fromJsonLd(json, options = {}) {
|
|
53101
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
53209
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
53102
53210
|
try {
|
|
53103
53211
|
const object = await this.__fromJsonLd__Event__(json, span, options);
|
|
53104
53212
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -53355,7 +53463,7 @@ var Flag = class Flag extends Activity {
|
|
|
53355
53463
|
* @throws {TypeError} If the given `json` is invalid.
|
|
53356
53464
|
*/
|
|
53357
53465
|
static async fromJsonLd(json, options = {}) {
|
|
53358
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
53466
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
53359
53467
|
try {
|
|
53360
53468
|
const object = await this.__fromJsonLd__Flag__(json, span, options);
|
|
53361
53469
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -53616,7 +53724,7 @@ var Follow = class Follow extends Activity {
|
|
|
53616
53724
|
* @throws {TypeError} If the given `json` is invalid.
|
|
53617
53725
|
*/
|
|
53618
53726
|
static async fromJsonLd(json, options = {}) {
|
|
53619
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
53727
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
53620
53728
|
try {
|
|
53621
53729
|
const object = await this.__fromJsonLd__Follow__(json, span, options);
|
|
53622
53730
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -53737,6 +53845,7 @@ var Group = class Group extends Object$1 {
|
|
|
53737
53845
|
#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
53738
53846
|
#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
53739
53847
|
#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
53848
|
+
#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
53740
53849
|
#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
53741
53850
|
#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
|
|
53742
53851
|
#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
|
|
@@ -53954,6 +54063,33 @@ var Group = class Group extends Object$1 {
|
|
|
53954
54063
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
53955
54064
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
53956
54065
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
54066
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
54067
|
+
let copied;
|
|
54068
|
+
let valid = false;
|
|
54069
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
54070
|
+
const array = values.attributionDomains;
|
|
54071
|
+
const test = (v) => typeof v === "string";
|
|
54072
|
+
let checked;
|
|
54073
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
54074
|
+
const input = values.attributionDomains;
|
|
54075
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
54076
|
+
copied = input.slice();
|
|
54077
|
+
valid = true;
|
|
54078
|
+
} else {
|
|
54079
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
54080
|
+
valid: true,
|
|
54081
|
+
sparse: false
|
|
54082
|
+
});
|
|
54083
|
+
if (result.ok) {
|
|
54084
|
+
copied = result.array;
|
|
54085
|
+
valid = true;
|
|
54086
|
+
}
|
|
54087
|
+
}
|
|
54088
|
+
}
|
|
54089
|
+
}
|
|
54090
|
+
if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
54091
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
54092
|
+
}
|
|
53957
54093
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
53958
54094
|
this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
53959
54095
|
this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
|
|
@@ -54313,6 +54449,34 @@ var Group = class Group extends Object$1 {
|
|
|
54313
54449
|
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
|
|
54314
54450
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
54315
54451
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
54452
|
+
clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
|
|
54453
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
54454
|
+
let copied;
|
|
54455
|
+
let valid = false;
|
|
54456
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
54457
|
+
const array = values.attributionDomains;
|
|
54458
|
+
const test = (v) => typeof v === "string";
|
|
54459
|
+
let checked;
|
|
54460
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
54461
|
+
const input = values.attributionDomains;
|
|
54462
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
54463
|
+
copied = input.slice();
|
|
54464
|
+
valid = true;
|
|
54465
|
+
} else {
|
|
54466
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
54467
|
+
valid: true,
|
|
54468
|
+
sparse: false
|
|
54469
|
+
});
|
|
54470
|
+
if (result.ok) {
|
|
54471
|
+
copied = result.array;
|
|
54472
|
+
valid = true;
|
|
54473
|
+
}
|
|
54474
|
+
}
|
|
54475
|
+
}
|
|
54476
|
+
}
|
|
54477
|
+
if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
54478
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
54479
|
+
}
|
|
54316
54480
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
54317
54481
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
54318
54482
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
@@ -54701,7 +54865,7 @@ var Group = class Group extends Object$1 {
|
|
|
54701
54865
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
54702
54866
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
54703
54867
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
54704
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
54868
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
54705
54869
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
54706
54870
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
54707
54871
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -54999,7 +55163,7 @@ var Group = class Group extends Object$1 {
|
|
|
54999
55163
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
55000
55164
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
55001
55165
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
55002
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
55166
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
55003
55167
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
55004
55168
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
55005
55169
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -55333,7 +55497,7 @@ var Group = class Group extends Object$1 {
|
|
|
55333
55497
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
55334
55498
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
55335
55499
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
55336
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
55500
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
55337
55501
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
55338
55502
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
55339
55503
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -55581,7 +55745,7 @@ var Group = class Group extends Object$1 {
|
|
|
55581
55745
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
55582
55746
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
55583
55747
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
55584
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
55748
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
55585
55749
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
55586
55750
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
55587
55751
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -55826,7 +55990,7 @@ var Group = class Group extends Object$1 {
|
|
|
55826
55990
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
55827
55991
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
55828
55992
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
55829
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
55993
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
55830
55994
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
55831
55995
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
55832
55996
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -56055,7 +56219,7 @@ var Group = class Group extends Object$1 {
|
|
|
56055
56219
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56056
56220
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56057
56221
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
56058
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
56222
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
56059
56223
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
56060
56224
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
56061
56225
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -56287,7 +56451,7 @@ var Group = class Group extends Object$1 {
|
|
|
56287
56451
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56288
56452
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56289
56453
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
56290
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
56454
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
56291
56455
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
56292
56456
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
56293
56457
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -56517,7 +56681,7 @@ var Group = class Group extends Object$1 {
|
|
|
56517
56681
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56518
56682
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56519
56683
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
56520
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
56684
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
56521
56685
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
56522
56686
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
56523
56687
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -56745,7 +56909,7 @@ var Group = class Group extends Object$1 {
|
|
|
56745
56909
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56746
56910
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56747
56911
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
56748
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
56912
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
56749
56913
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
56750
56914
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
56751
56915
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -56973,7 +57137,7 @@ var Group = class Group extends Object$1 {
|
|
|
56973
57137
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56974
57138
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56975
57139
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
56976
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
57140
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
56977
57141
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
56978
57142
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
56979
57143
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -57198,7 +57362,7 @@ var Group = class Group extends Object$1 {
|
|
|
57198
57362
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57199
57363
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57200
57364
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
57201
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
57365
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
57202
57366
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
57203
57367
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
57204
57368
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -57465,11 +57629,20 @@ var Group = class Group extends Object$1 {
|
|
|
57465
57629
|
if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
|
|
57466
57630
|
return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
57467
57631
|
}
|
|
57632
|
+
/** Domains this actor claims as its own, so that Mastodon can credit the
|
|
57633
|
+
* actor on link preview cards that point at one of them. Each value is a
|
|
57634
|
+
* bare host name, without a scheme, port, path, or leading `*.`. Fedify
|
|
57635
|
+
* treats the values as opaque strings and does not normalize or validate
|
|
57636
|
+
* them; applications are responsible for producing normalized host names.
|
|
57637
|
+
*/
|
|
57638
|
+
get attributionDomains() {
|
|
57639
|
+
return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
57640
|
+
}
|
|
57468
57641
|
async #fetchSuccessor(url, options = {}) {
|
|
57469
57642
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57470
57643
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57471
57644
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
57472
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
57645
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
57473
57646
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
57474
57647
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
57475
57648
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -57744,7 +57917,7 @@ var Group = class Group extends Object$1 {
|
|
|
57744
57917
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57745
57918
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57746
57919
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
57747
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
57920
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
57748
57921
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
57749
57922
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
57750
57923
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -58098,7 +58271,7 @@ var Group = class Group extends Object$1 {
|
|
|
58098
58271
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
58099
58272
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
58100
58273
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
58101
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
58274
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
58102
58275
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
58103
58276
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
58104
58277
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -58625,6 +58798,12 @@ var Group = class Group extends Object$1 {
|
|
|
58625
58798
|
}
|
|
58626
58799
|
if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
58627
58800
|
compactItems = [];
|
|
58801
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
58802
|
+
const item = v;
|
|
58803
|
+
compactItems.push(item);
|
|
58804
|
+
}
|
|
58805
|
+
if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
58806
|
+
compactItems = [];
|
|
58628
58807
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
58629
58808
|
const item = (0, _fedify_vocab_runtime_internal_signed_representation.retainedSignedValueRef)(v, signedValues.scope) ?? (v instanceof URL ? (0, _fedify_vocab_runtime.formatIri)(v) : v instanceof Application ? await v.toJsonLd({
|
|
58630
58809
|
...options,
|
|
@@ -58743,6 +58922,10 @@ var Group = class Group extends Object$1 {
|
|
|
58743
58922
|
"suspended": "toot:suspended",
|
|
58744
58923
|
"memorial": "toot:memorial",
|
|
58745
58924
|
"indexable": "toot:indexable",
|
|
58925
|
+
"attributionDomains": {
|
|
58926
|
+
"@id": "toot:attributionDomains",
|
|
58927
|
+
"@container": "@set"
|
|
58928
|
+
},
|
|
58746
58929
|
"schema": "http://schema.org#",
|
|
58747
58930
|
"PropertyValue": "schema:PropertyValue",
|
|
58748
58931
|
"value": "schema:value",
|
|
@@ -58972,6 +59155,17 @@ var Group = class Group extends Object$1 {
|
|
|
58972
59155
|
}
|
|
58973
59156
|
if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
|
|
58974
59157
|
array = [];
|
|
59158
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
59159
|
+
let element = { "@value": v };
|
|
59160
|
+
if (Array.isArray(element)) {
|
|
59161
|
+
if (element.length < 1) continue;
|
|
59162
|
+
if (element.length == 1) element = element[0];
|
|
59163
|
+
}
|
|
59164
|
+
if (typeof element === "undefined") continue;
|
|
59165
|
+
array.push(element);
|
|
59166
|
+
}
|
|
59167
|
+
if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
|
|
59168
|
+
array = [];
|
|
58975
59169
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
58976
59170
|
let element = (0, _fedify_vocab_runtime_internal_signed_representation.retainedSignedValueRef)(v, signedValues.scope) ?? (v instanceof URL ? { "@id": (0, _fedify_vocab_runtime.formatIri)(v) } : v instanceof Application ? await v.toJsonLd(options) : v instanceof Group ? await v.toJsonLd(options) : v instanceof Organization ? await v.toJsonLd(options) : v instanceof Person ? await v.toJsonLd(options) : await v.toJsonLd(options));
|
|
58977
59171
|
if (Array.isArray(element)) {
|
|
@@ -59080,6 +59274,10 @@ var Group = class Group extends Object$1 {
|
|
|
59080
59274
|
"suspended": "toot:suspended",
|
|
59081
59275
|
"memorial": "toot:memorial",
|
|
59082
59276
|
"indexable": "toot:indexable",
|
|
59277
|
+
"attributionDomains": {
|
|
59278
|
+
"@id": "toot:attributionDomains",
|
|
59279
|
+
"@container": "@set"
|
|
59280
|
+
},
|
|
59083
59281
|
"schema": "http://schema.org#",
|
|
59084
59282
|
"PropertyValue": "schema:PropertyValue",
|
|
59085
59283
|
"value": "schema:value",
|
|
@@ -59130,7 +59328,7 @@ var Group = class Group extends Object$1 {
|
|
|
59130
59328
|
* @throws {TypeError} If the given `json` is invalid.
|
|
59131
59329
|
*/
|
|
59132
59330
|
static async fromJsonLd(json, options = {}) {
|
|
59133
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
59331
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
59134
59332
|
try {
|
|
59135
59333
|
const object = await this.__fromJsonLd__Group__(json, span, options);
|
|
59136
59334
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -59533,6 +59731,19 @@ var Group = class Group extends Object$1 {
|
|
|
59533
59731
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
59534
59732
|
}
|
|
59535
59733
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
59734
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
59735
|
+
let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
|
|
59736
|
+
for (const v of _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array == null ? [] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array.length === 1 && "@list" in _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0] ? _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0]["@list"] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array) {
|
|
59737
|
+
if (v == null) continue;
|
|
59738
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
59739
|
+
if (typeof decoded === "undefined") {
|
|
59740
|
+
shouldCacheJsonLd = false;
|
|
59741
|
+
continue;
|
|
59742
|
+
}
|
|
59743
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
59744
|
+
_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
|
|
59745
|
+
}
|
|
59746
|
+
instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
59536
59747
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
59537
59748
|
let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
|
|
59538
59749
|
for (const v of _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array == null ? [] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array.length === 1 && "@list" in _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0] ? _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0]["@list"] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array) {
|
|
@@ -59624,7 +59835,7 @@ var Group = class Group extends Object$1 {
|
|
|
59624
59835
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
59625
59836
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
59626
59837
|
if (v == null) continue;
|
|
59627
|
-
const decoded = v["@value"];
|
|
59838
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
59628
59839
|
if (typeof decoded === "undefined") {
|
|
59629
59840
|
shouldCacheJsonLd = false;
|
|
59630
59841
|
continue;
|
|
@@ -59773,6 +59984,11 @@ var Group = class Group extends Object$1 {
|
|
|
59773
59984
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
59774
59985
|
} : v);
|
|
59775
59986
|
if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
59987
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
|
|
59988
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
59989
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
59990
|
+
} : v);
|
|
59991
|
+
if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
59776
59992
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
|
|
59777
59993
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
59778
59994
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
@@ -60407,7 +60623,7 @@ var Link = class Link {
|
|
|
60407
60623
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
60408
60624
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
60409
60625
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
60410
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
60626
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
60411
60627
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
60412
60628
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
60413
60629
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -60921,7 +61137,7 @@ var Link = class Link {
|
|
|
60921
61137
|
* @throws {TypeError} If the given `json` is invalid.
|
|
60922
61138
|
*/
|
|
60923
61139
|
static async fromJsonLd(json, options = {}) {
|
|
60924
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
61140
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
60925
61141
|
try {
|
|
60926
61142
|
const object = await this.__fromJsonLd__Link__(json, span, options);
|
|
60927
61143
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -60993,7 +61209,7 @@ var Link = class Link {
|
|
|
60993
61209
|
let _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array = values["https://www.w3.org/ns/activitystreams#rel"];
|
|
60994
61210
|
for (const v of _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array == null ? [] : _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array.length === 1 && "@list" in _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array[0] ? _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array[0]["@list"] : _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array) {
|
|
60995
61211
|
if (v == null) continue;
|
|
60996
|
-
const decoded = v["@value"];
|
|
61212
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
60997
61213
|
if (typeof decoded === "undefined") {
|
|
60998
61214
|
shouldCacheJsonLd = false;
|
|
60999
61215
|
continue;
|
|
@@ -61006,7 +61222,7 @@ var Link = class Link {
|
|
|
61006
61222
|
let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
|
|
61007
61223
|
for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array == null ? [] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array.length === 1 && "@list" in _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0] ? _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0]["@list"] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array) {
|
|
61008
61224
|
if (v == null) continue;
|
|
61009
|
-
const decoded = v["@value"];
|
|
61225
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
61010
61226
|
if (typeof decoded === "undefined") {
|
|
61011
61227
|
shouldCacheJsonLd = false;
|
|
61012
61228
|
continue;
|
|
@@ -61019,7 +61235,7 @@ var Link = class Link {
|
|
|
61019
61235
|
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
|
|
61020
61236
|
for (const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null ? [] : _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && "@list" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0] ? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]["@list"] : _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array) {
|
|
61021
61237
|
if (v == null) continue;
|
|
61022
|
-
const decoded = v["@value"];
|
|
61238
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
61023
61239
|
if (typeof decoded === "undefined") {
|
|
61024
61240
|
shouldCacheJsonLd = false;
|
|
61025
61241
|
continue;
|
|
@@ -61451,7 +61667,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
61451
61667
|
* @throws {TypeError} If the given `json` is invalid.
|
|
61452
61668
|
*/
|
|
61453
61669
|
static async fromJsonLd(json, options = {}) {
|
|
61454
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
61670
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
61455
61671
|
try {
|
|
61456
61672
|
const object = await this.__fromJsonLd__Hashtag__(json, span, options);
|
|
61457
61673
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -61722,7 +61938,7 @@ var Image = class Image extends Document {
|
|
|
61722
61938
|
* @throws {TypeError} If the given `json` is invalid.
|
|
61723
61939
|
*/
|
|
61724
61940
|
static async fromJsonLd(json, options = {}) {
|
|
61725
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
61941
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
61726
61942
|
try {
|
|
61727
61943
|
const object = await this.__fromJsonLd__Image__(json, span, options);
|
|
61728
61944
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -61979,7 +62195,7 @@ var Offer = class Offer extends Activity {
|
|
|
61979
62195
|
* @throws {TypeError} If the given `json` is invalid.
|
|
61980
62196
|
*/
|
|
61981
62197
|
static async fromJsonLd(json, options = {}) {
|
|
61982
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
62198
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
61983
62199
|
try {
|
|
61984
62200
|
const object = await this.__fromJsonLd__Offer__(json, span, options);
|
|
61985
62201
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -62236,7 +62452,7 @@ var Invite = class Invite extends Offer {
|
|
|
62236
62452
|
* @throws {TypeError} If the given `json` is invalid.
|
|
62237
62453
|
*/
|
|
62238
62454
|
static async fromJsonLd(json, options = {}) {
|
|
62239
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
62455
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
62240
62456
|
try {
|
|
62241
62457
|
const object = await this.__fromJsonLd__Invite__(json, span, options);
|
|
62242
62458
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -62492,7 +62708,7 @@ var Join = class Join extends Activity {
|
|
|
62492
62708
|
* @throws {TypeError} If the given `json` is invalid.
|
|
62493
62709
|
*/
|
|
62494
62710
|
static async fromJsonLd(json, options = {}) {
|
|
62495
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
62711
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
62496
62712
|
try {
|
|
62497
62713
|
const object = await this.__fromJsonLd__Join__(json, span, options);
|
|
62498
62714
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -62748,7 +62964,7 @@ var Leave = class Leave extends Activity {
|
|
|
62748
62964
|
* @throws {TypeError} If the given `json` is invalid.
|
|
62749
62965
|
*/
|
|
62750
62966
|
static async fromJsonLd(json, options = {}) {
|
|
62751
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
62967
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
62752
62968
|
try {
|
|
62753
62969
|
const object = await this.__fromJsonLd__Leave__(json, span, options);
|
|
62754
62970
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -63008,7 +63224,7 @@ var Like = class Like extends Activity {
|
|
|
63008
63224
|
* @throws {TypeError} If the given `json` is invalid.
|
|
63009
63225
|
*/
|
|
63010
63226
|
static async fromJsonLd(json, options = {}) {
|
|
63011
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
63227
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
63012
63228
|
try {
|
|
63013
63229
|
const object = await this.__fromJsonLd__Like__(json, span, options);
|
|
63014
63230
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -63263,7 +63479,7 @@ var Listen = class Listen extends Activity {
|
|
|
63263
63479
|
* @throws {TypeError} If the given `json` is invalid.
|
|
63264
63480
|
*/
|
|
63265
63481
|
static async fromJsonLd(json, options = {}) {
|
|
63266
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
63482
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
63267
63483
|
try {
|
|
63268
63484
|
const object = await this.__fromJsonLd__Listen__(json, span, options);
|
|
63269
63485
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -63521,7 +63737,7 @@ var Mention = class Mention extends Link {
|
|
|
63521
63737
|
* @throws {TypeError} If the given `json` is invalid.
|
|
63522
63738
|
*/
|
|
63523
63739
|
static async fromJsonLd(json, options = {}) {
|
|
63524
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
63740
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
63525
63741
|
try {
|
|
63526
63742
|
const object = await this.__fromJsonLd__Mention__(json, span, options);
|
|
63527
63743
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -63778,7 +63994,7 @@ var Move = class Move extends Activity {
|
|
|
63778
63994
|
* @throws {TypeError} If the given `json` is invalid.
|
|
63779
63995
|
*/
|
|
63780
63996
|
static async fromJsonLd(json, options = {}) {
|
|
63781
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
63997
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
63782
63998
|
try {
|
|
63783
63999
|
const object = await this.__fromJsonLd__Move__(json, span, options);
|
|
63784
64000
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -64046,7 +64262,7 @@ var Note = class Note extends Object$1 {
|
|
|
64046
64262
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
64047
64263
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
64048
64264
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
64049
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
64265
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
64050
64266
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
64051
64267
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
64052
64268
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -64289,7 +64505,7 @@ var Note = class Note extends Object$1 {
|
|
|
64289
64505
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
64290
64506
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
64291
64507
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
64292
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
64508
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
64293
64509
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
64294
64510
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
64295
64511
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -64716,7 +64932,7 @@ var Note = class Note extends Object$1 {
|
|
|
64716
64932
|
* @throws {TypeError} If the given `json` is invalid.
|
|
64717
64933
|
*/
|
|
64718
64934
|
static async fromJsonLd(json, options = {}) {
|
|
64719
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
64935
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
64720
64936
|
try {
|
|
64721
64937
|
const object = await this.__fromJsonLd__Note__(json, span, options);
|
|
64722
64938
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -65069,7 +65285,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
65069
65285
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
65070
65286
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
65071
65287
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
65072
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
65288
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
65073
65289
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
65074
65290
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
65075
65291
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -65503,7 +65719,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
65503
65719
|
* @throws {TypeError} If the given `json` is invalid.
|
|
65504
65720
|
*/
|
|
65505
65721
|
static async fromJsonLd(json, options = {}) {
|
|
65506
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
65722
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
65507
65723
|
try {
|
|
65508
65724
|
const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
|
|
65509
65725
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -65746,6 +65962,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
65746
65962
|
#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
65747
65963
|
#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
65748
65964
|
#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
65965
|
+
#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
65749
65966
|
#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
65750
65967
|
#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
|
|
65751
65968
|
#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
|
|
@@ -65963,6 +66180,33 @@ var Organization = class Organization extends Object$1 {
|
|
|
65963
66180
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
65964
66181
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
65965
66182
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
66183
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
66184
|
+
let copied;
|
|
66185
|
+
let valid = false;
|
|
66186
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
66187
|
+
const array = values.attributionDomains;
|
|
66188
|
+
const test = (v) => typeof v === "string";
|
|
66189
|
+
let checked;
|
|
66190
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
66191
|
+
const input = values.attributionDomains;
|
|
66192
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
66193
|
+
copied = input.slice();
|
|
66194
|
+
valid = true;
|
|
66195
|
+
} else {
|
|
66196
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
66197
|
+
valid: true,
|
|
66198
|
+
sparse: false
|
|
66199
|
+
});
|
|
66200
|
+
if (result.ok) {
|
|
66201
|
+
copied = result.array;
|
|
66202
|
+
valid = true;
|
|
66203
|
+
}
|
|
66204
|
+
}
|
|
66205
|
+
}
|
|
66206
|
+
}
|
|
66207
|
+
if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
66208
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
66209
|
+
}
|
|
65966
66210
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
65967
66211
|
this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
65968
66212
|
this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
|
|
@@ -66322,6 +66566,34 @@ var Organization = class Organization extends Object$1 {
|
|
|
66322
66566
|
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
|
|
66323
66567
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
66324
66568
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
66569
|
+
clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
|
|
66570
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
66571
|
+
let copied;
|
|
66572
|
+
let valid = false;
|
|
66573
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
66574
|
+
const array = values.attributionDomains;
|
|
66575
|
+
const test = (v) => typeof v === "string";
|
|
66576
|
+
let checked;
|
|
66577
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
66578
|
+
const input = values.attributionDomains;
|
|
66579
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
66580
|
+
copied = input.slice();
|
|
66581
|
+
valid = true;
|
|
66582
|
+
} else {
|
|
66583
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
66584
|
+
valid: true,
|
|
66585
|
+
sparse: false
|
|
66586
|
+
});
|
|
66587
|
+
if (result.ok) {
|
|
66588
|
+
copied = result.array;
|
|
66589
|
+
valid = true;
|
|
66590
|
+
}
|
|
66591
|
+
}
|
|
66592
|
+
}
|
|
66593
|
+
}
|
|
66594
|
+
if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
66595
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
66596
|
+
}
|
|
66325
66597
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
66326
66598
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
66327
66599
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
@@ -66710,7 +66982,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
66710
66982
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
66711
66983
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
66712
66984
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
66713
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
66985
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
66714
66986
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
66715
66987
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
66716
66988
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -67008,7 +67280,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
67008
67280
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
67009
67281
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
67010
67282
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
67011
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
67283
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
67012
67284
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
67013
67285
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
67014
67286
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -67342,7 +67614,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
67342
67614
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
67343
67615
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
67344
67616
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
67345
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
67617
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
67346
67618
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
67347
67619
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
67348
67620
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -67590,7 +67862,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
67590
67862
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
67591
67863
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
67592
67864
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
67593
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
67865
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
67594
67866
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
67595
67867
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
67596
67868
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -67835,7 +68107,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
67835
68107
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
67836
68108
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
67837
68109
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
67838
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
68110
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
67839
68111
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
67840
68112
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
67841
68113
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -68064,7 +68336,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
68064
68336
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68065
68337
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68066
68338
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
68067
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
68339
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
68068
68340
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
68069
68341
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
68070
68342
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -68296,7 +68568,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
68296
68568
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68297
68569
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68298
68570
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
68299
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
68571
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
68300
68572
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
68301
68573
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
68302
68574
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -68526,7 +68798,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
68526
68798
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68527
68799
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68528
68800
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
68529
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
68801
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
68530
68802
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
68531
68803
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
68532
68804
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -68754,7 +69026,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
68754
69026
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68755
69027
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68756
69028
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
68757
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
69029
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
68758
69030
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
68759
69031
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
68760
69032
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -68982,7 +69254,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
68982
69254
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68983
69255
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68984
69256
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
68985
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
69257
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
68986
69258
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
68987
69259
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
68988
69260
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -69207,7 +69479,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
69207
69479
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
69208
69480
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
69209
69481
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
69210
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
69482
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
69211
69483
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
69212
69484
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
69213
69485
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -69474,11 +69746,20 @@ var Organization = class Organization extends Object$1 {
|
|
|
69474
69746
|
if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
|
|
69475
69747
|
return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
69476
69748
|
}
|
|
69749
|
+
/** Domains this actor claims as its own, so that Mastodon can credit the
|
|
69750
|
+
* actor on link preview cards that point at one of them. Each value is a
|
|
69751
|
+
* bare host name, without a scheme, port, path, or leading `*.`. Fedify
|
|
69752
|
+
* treats the values as opaque strings and does not normalize or validate
|
|
69753
|
+
* them; applications are responsible for producing normalized host names.
|
|
69754
|
+
*/
|
|
69755
|
+
get attributionDomains() {
|
|
69756
|
+
return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
69757
|
+
}
|
|
69477
69758
|
async #fetchSuccessor(url, options = {}) {
|
|
69478
69759
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
69479
69760
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
69480
69761
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
69481
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
69762
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
69482
69763
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
69483
69764
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
69484
69765
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -69753,7 +70034,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
69753
70034
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
69754
70035
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
69755
70036
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
69756
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
70037
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
69757
70038
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
69758
70039
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
69759
70040
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -70107,7 +70388,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
70107
70388
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
70108
70389
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
70109
70390
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
70110
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
70391
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
70111
70392
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
70112
70393
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
70113
70394
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -70634,6 +70915,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
70634
70915
|
}
|
|
70635
70916
|
if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
70636
70917
|
compactItems = [];
|
|
70918
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
70919
|
+
const item = v;
|
|
70920
|
+
compactItems.push(item);
|
|
70921
|
+
}
|
|
70922
|
+
if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
70923
|
+
compactItems = [];
|
|
70637
70924
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
70638
70925
|
const item = (0, _fedify_vocab_runtime_internal_signed_representation.retainedSignedValueRef)(v, signedValues.scope) ?? (v instanceof URL ? (0, _fedify_vocab_runtime.formatIri)(v) : v instanceof Application ? await v.toJsonLd({
|
|
70639
70926
|
...options,
|
|
@@ -70752,6 +71039,10 @@ var Organization = class Organization extends Object$1 {
|
|
|
70752
71039
|
"suspended": "toot:suspended",
|
|
70753
71040
|
"memorial": "toot:memorial",
|
|
70754
71041
|
"indexable": "toot:indexable",
|
|
71042
|
+
"attributionDomains": {
|
|
71043
|
+
"@id": "toot:attributionDomains",
|
|
71044
|
+
"@container": "@set"
|
|
71045
|
+
},
|
|
70755
71046
|
"schema": "http://schema.org#",
|
|
70756
71047
|
"PropertyValue": "schema:PropertyValue",
|
|
70757
71048
|
"value": "schema:value",
|
|
@@ -70981,6 +71272,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
70981
71272
|
}
|
|
70982
71273
|
if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
|
|
70983
71274
|
array = [];
|
|
71275
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
71276
|
+
let element = { "@value": v };
|
|
71277
|
+
if (Array.isArray(element)) {
|
|
71278
|
+
if (element.length < 1) continue;
|
|
71279
|
+
if (element.length == 1) element = element[0];
|
|
71280
|
+
}
|
|
71281
|
+
if (typeof element === "undefined") continue;
|
|
71282
|
+
array.push(element);
|
|
71283
|
+
}
|
|
71284
|
+
if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
|
|
71285
|
+
array = [];
|
|
70984
71286
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
70985
71287
|
let element = (0, _fedify_vocab_runtime_internal_signed_representation.retainedSignedValueRef)(v, signedValues.scope) ?? (v instanceof URL ? { "@id": (0, _fedify_vocab_runtime.formatIri)(v) } : v instanceof Application ? await v.toJsonLd(options) : v instanceof Group ? await v.toJsonLd(options) : v instanceof Organization ? await v.toJsonLd(options) : v instanceof Person ? await v.toJsonLd(options) : await v.toJsonLd(options));
|
|
70986
71288
|
if (Array.isArray(element)) {
|
|
@@ -71089,6 +71391,10 @@ var Organization = class Organization extends Object$1 {
|
|
|
71089
71391
|
"suspended": "toot:suspended",
|
|
71090
71392
|
"memorial": "toot:memorial",
|
|
71091
71393
|
"indexable": "toot:indexable",
|
|
71394
|
+
"attributionDomains": {
|
|
71395
|
+
"@id": "toot:attributionDomains",
|
|
71396
|
+
"@container": "@set"
|
|
71397
|
+
},
|
|
71092
71398
|
"schema": "http://schema.org#",
|
|
71093
71399
|
"PropertyValue": "schema:PropertyValue",
|
|
71094
71400
|
"value": "schema:value",
|
|
@@ -71139,7 +71445,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
71139
71445
|
* @throws {TypeError} If the given `json` is invalid.
|
|
71140
71446
|
*/
|
|
71141
71447
|
static async fromJsonLd(json, options = {}) {
|
|
71142
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
71448
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
71143
71449
|
try {
|
|
71144
71450
|
const object = await this.__fromJsonLd__Organization__(json, span, options);
|
|
71145
71451
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -71542,6 +71848,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
71542
71848
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
71543
71849
|
}
|
|
71544
71850
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
71851
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
71852
|
+
let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
|
|
71853
|
+
for (const v of _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array == null ? [] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array.length === 1 && "@list" in _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0] ? _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0]["@list"] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array) {
|
|
71854
|
+
if (v == null) continue;
|
|
71855
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
71856
|
+
if (typeof decoded === "undefined") {
|
|
71857
|
+
shouldCacheJsonLd = false;
|
|
71858
|
+
continue;
|
|
71859
|
+
}
|
|
71860
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
71861
|
+
_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
|
|
71862
|
+
}
|
|
71863
|
+
instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
71545
71864
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
71546
71865
|
let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
|
|
71547
71866
|
for (const v of _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array == null ? [] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array.length === 1 && "@list" in _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0] ? _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0]["@list"] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array) {
|
|
@@ -71633,7 +71952,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
71633
71952
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
71634
71953
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
71635
71954
|
if (v == null) continue;
|
|
71636
|
-
const decoded = v["@value"];
|
|
71955
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
71637
71956
|
if (typeof decoded === "undefined") {
|
|
71638
71957
|
shouldCacheJsonLd = false;
|
|
71639
71958
|
continue;
|
|
@@ -71782,6 +72101,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
71782
72101
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
71783
72102
|
} : v);
|
|
71784
72103
|
if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
72104
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
|
|
72105
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
72106
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
72107
|
+
} : v);
|
|
72108
|
+
if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
71785
72109
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
|
|
71786
72110
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
71787
72111
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
@@ -72012,7 +72336,7 @@ var Page = class Page extends Document {
|
|
|
72012
72336
|
* @throws {TypeError} If the given `json` is invalid.
|
|
72013
72337
|
*/
|
|
72014
72338
|
static async fromJsonLd(json, options = {}) {
|
|
72015
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
72339
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
72016
72340
|
try {
|
|
72017
72341
|
const object = await this.__fromJsonLd__Page__(json, span, options);
|
|
72018
72342
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -72133,6 +72457,7 @@ var Person = class Person extends Object$1 {
|
|
|
72133
72457
|
#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
72134
72458
|
#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
72135
72459
|
#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
72460
|
+
#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
72136
72461
|
#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
72137
72462
|
#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
|
|
72138
72463
|
#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
|
|
@@ -72350,6 +72675,33 @@ var Person = class Person extends Object$1 {
|
|
|
72350
72675
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
72351
72676
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
72352
72677
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
72678
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
72679
|
+
let copied;
|
|
72680
|
+
let valid = false;
|
|
72681
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
72682
|
+
const array = values.attributionDomains;
|
|
72683
|
+
const test = (v) => typeof v === "string";
|
|
72684
|
+
let checked;
|
|
72685
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
72686
|
+
const input = values.attributionDomains;
|
|
72687
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
72688
|
+
copied = input.slice();
|
|
72689
|
+
valid = true;
|
|
72690
|
+
} else {
|
|
72691
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
72692
|
+
valid: true,
|
|
72693
|
+
sparse: false
|
|
72694
|
+
});
|
|
72695
|
+
if (result.ok) {
|
|
72696
|
+
copied = result.array;
|
|
72697
|
+
valid = true;
|
|
72698
|
+
}
|
|
72699
|
+
}
|
|
72700
|
+
}
|
|
72701
|
+
}
|
|
72702
|
+
if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
72703
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
72704
|
+
}
|
|
72353
72705
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
72354
72706
|
this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
72355
72707
|
this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
|
|
@@ -72709,6 +73061,34 @@ var Person = class Person extends Object$1 {
|
|
|
72709
73061
|
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
|
|
72710
73062
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
72711
73063
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
73064
|
+
clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
|
|
73065
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
73066
|
+
let copied;
|
|
73067
|
+
let valid = false;
|
|
73068
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
73069
|
+
const array = values.attributionDomains;
|
|
73070
|
+
const test = (v) => typeof v === "string";
|
|
73071
|
+
let checked;
|
|
73072
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
73073
|
+
const input = values.attributionDomains;
|
|
73074
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
73075
|
+
copied = input.slice();
|
|
73076
|
+
valid = true;
|
|
73077
|
+
} else {
|
|
73078
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
73079
|
+
valid: true,
|
|
73080
|
+
sparse: false
|
|
73081
|
+
});
|
|
73082
|
+
if (result.ok) {
|
|
73083
|
+
copied = result.array;
|
|
73084
|
+
valid = true;
|
|
73085
|
+
}
|
|
73086
|
+
}
|
|
73087
|
+
}
|
|
73088
|
+
}
|
|
73089
|
+
if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
73090
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
73091
|
+
}
|
|
72712
73092
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
72713
73093
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
72714
73094
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
@@ -73097,7 +73477,7 @@ var Person = class Person extends Object$1 {
|
|
|
73097
73477
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73098
73478
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73099
73479
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
73100
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
73480
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
73101
73481
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
73102
73482
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
73103
73483
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -73395,7 +73775,7 @@ var Person = class Person extends Object$1 {
|
|
|
73395
73775
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73396
73776
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73397
73777
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
73398
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
73778
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
73399
73779
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
73400
73780
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
73401
73781
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -73729,7 +74109,7 @@ var Person = class Person extends Object$1 {
|
|
|
73729
74109
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73730
74110
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73731
74111
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
73732
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
74112
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
73733
74113
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
73734
74114
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
73735
74115
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -73977,7 +74357,7 @@ var Person = class Person extends Object$1 {
|
|
|
73977
74357
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73978
74358
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73979
74359
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
73980
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
74360
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
73981
74361
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
73982
74362
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
73983
74363
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -74222,7 +74602,7 @@ var Person = class Person extends Object$1 {
|
|
|
74222
74602
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74223
74603
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74224
74604
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
74225
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
74605
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
74226
74606
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
74227
74607
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
74228
74608
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -74451,7 +74831,7 @@ var Person = class Person extends Object$1 {
|
|
|
74451
74831
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74452
74832
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74453
74833
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
74454
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
74834
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
74455
74835
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
74456
74836
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
74457
74837
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -74683,7 +75063,7 @@ var Person = class Person extends Object$1 {
|
|
|
74683
75063
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74684
75064
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74685
75065
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
74686
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
75066
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
74687
75067
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
74688
75068
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
74689
75069
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -74913,7 +75293,7 @@ var Person = class Person extends Object$1 {
|
|
|
74913
75293
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74914
75294
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74915
75295
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
74916
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
75296
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
74917
75297
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
74918
75298
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
74919
75299
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -75141,7 +75521,7 @@ var Person = class Person extends Object$1 {
|
|
|
75141
75521
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
75142
75522
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
75143
75523
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
75144
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
75524
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
75145
75525
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
75146
75526
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
75147
75527
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -75369,7 +75749,7 @@ var Person = class Person extends Object$1 {
|
|
|
75369
75749
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
75370
75750
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
75371
75751
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
75372
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
75752
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
75373
75753
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
75374
75754
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
75375
75755
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -75594,7 +75974,7 @@ var Person = class Person extends Object$1 {
|
|
|
75594
75974
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
75595
75975
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
75596
75976
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
75597
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
75977
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
75598
75978
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
75599
75979
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
75600
75980
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -75861,11 +76241,20 @@ var Person = class Person extends Object$1 {
|
|
|
75861
76241
|
if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
|
|
75862
76242
|
return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
75863
76243
|
}
|
|
76244
|
+
/** Domains this actor claims as its own, so that Mastodon can credit the
|
|
76245
|
+
* actor on link preview cards that point at one of them. Each value is a
|
|
76246
|
+
* bare host name, without a scheme, port, path, or leading `*.`. Fedify
|
|
76247
|
+
* treats the values as opaque strings and does not normalize or validate
|
|
76248
|
+
* them; applications are responsible for producing normalized host names.
|
|
76249
|
+
*/
|
|
76250
|
+
get attributionDomains() {
|
|
76251
|
+
return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
76252
|
+
}
|
|
75864
76253
|
async #fetchSuccessor(url, options = {}) {
|
|
75865
76254
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
75866
76255
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
75867
76256
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
75868
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
76257
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
75869
76258
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
75870
76259
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
75871
76260
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -76140,7 +76529,7 @@ var Person = class Person extends Object$1 {
|
|
|
76140
76529
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
76141
76530
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
76142
76531
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
76143
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
76532
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
76144
76533
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
76145
76534
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
76146
76535
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -76494,7 +76883,7 @@ var Person = class Person extends Object$1 {
|
|
|
76494
76883
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
76495
76884
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
76496
76885
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
76497
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
76886
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
76498
76887
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
76499
76888
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
76500
76889
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -77021,6 +77410,12 @@ var Person = class Person extends Object$1 {
|
|
|
77021
77410
|
}
|
|
77022
77411
|
if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
77023
77412
|
compactItems = [];
|
|
77413
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
77414
|
+
const item = v;
|
|
77415
|
+
compactItems.push(item);
|
|
77416
|
+
}
|
|
77417
|
+
if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
77418
|
+
compactItems = [];
|
|
77024
77419
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
77025
77420
|
const item = (0, _fedify_vocab_runtime_internal_signed_representation.retainedSignedValueRef)(v, signedValues.scope) ?? (v instanceof URL ? (0, _fedify_vocab_runtime.formatIri)(v) : v instanceof Application ? await v.toJsonLd({
|
|
77026
77421
|
...options,
|
|
@@ -77139,6 +77534,10 @@ var Person = class Person extends Object$1 {
|
|
|
77139
77534
|
"suspended": "toot:suspended",
|
|
77140
77535
|
"memorial": "toot:memorial",
|
|
77141
77536
|
"indexable": "toot:indexable",
|
|
77537
|
+
"attributionDomains": {
|
|
77538
|
+
"@id": "toot:attributionDomains",
|
|
77539
|
+
"@container": "@set"
|
|
77540
|
+
},
|
|
77142
77541
|
"schema": "http://schema.org#",
|
|
77143
77542
|
"PropertyValue": "schema:PropertyValue",
|
|
77144
77543
|
"value": "schema:value",
|
|
@@ -77368,6 +77767,17 @@ var Person = class Person extends Object$1 {
|
|
|
77368
77767
|
}
|
|
77369
77768
|
if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
|
|
77370
77769
|
array = [];
|
|
77770
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
77771
|
+
let element = { "@value": v };
|
|
77772
|
+
if (Array.isArray(element)) {
|
|
77773
|
+
if (element.length < 1) continue;
|
|
77774
|
+
if (element.length == 1) element = element[0];
|
|
77775
|
+
}
|
|
77776
|
+
if (typeof element === "undefined") continue;
|
|
77777
|
+
array.push(element);
|
|
77778
|
+
}
|
|
77779
|
+
if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
|
|
77780
|
+
array = [];
|
|
77371
77781
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
77372
77782
|
let element = (0, _fedify_vocab_runtime_internal_signed_representation.retainedSignedValueRef)(v, signedValues.scope) ?? (v instanceof URL ? { "@id": (0, _fedify_vocab_runtime.formatIri)(v) } : v instanceof Application ? await v.toJsonLd(options) : v instanceof Group ? await v.toJsonLd(options) : v instanceof Organization ? await v.toJsonLd(options) : v instanceof Person ? await v.toJsonLd(options) : await v.toJsonLd(options));
|
|
77373
77783
|
if (Array.isArray(element)) {
|
|
@@ -77476,6 +77886,10 @@ var Person = class Person extends Object$1 {
|
|
|
77476
77886
|
"suspended": "toot:suspended",
|
|
77477
77887
|
"memorial": "toot:memorial",
|
|
77478
77888
|
"indexable": "toot:indexable",
|
|
77889
|
+
"attributionDomains": {
|
|
77890
|
+
"@id": "toot:attributionDomains",
|
|
77891
|
+
"@container": "@set"
|
|
77892
|
+
},
|
|
77479
77893
|
"schema": "http://schema.org#",
|
|
77480
77894
|
"PropertyValue": "schema:PropertyValue",
|
|
77481
77895
|
"value": "schema:value",
|
|
@@ -77526,7 +77940,7 @@ var Person = class Person extends Object$1 {
|
|
|
77526
77940
|
* @throws {TypeError} If the given `json` is invalid.
|
|
77527
77941
|
*/
|
|
77528
77942
|
static async fromJsonLd(json, options = {}) {
|
|
77529
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
77943
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
77530
77944
|
try {
|
|
77531
77945
|
const object = await this.__fromJsonLd__Person__(json, span, options);
|
|
77532
77946
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -77929,6 +78343,19 @@ var Person = class Person extends Object$1 {
|
|
|
77929
78343
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
77930
78344
|
}
|
|
77931
78345
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
78346
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
78347
|
+
let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
|
|
78348
|
+
for (const v of _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array == null ? [] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array.length === 1 && "@list" in _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0] ? _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0]["@list"] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array) {
|
|
78349
|
+
if (v == null) continue;
|
|
78350
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
78351
|
+
if (typeof decoded === "undefined") {
|
|
78352
|
+
shouldCacheJsonLd = false;
|
|
78353
|
+
continue;
|
|
78354
|
+
}
|
|
78355
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
78356
|
+
_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
|
|
78357
|
+
}
|
|
78358
|
+
instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
77932
78359
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
77933
78360
|
let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
|
|
77934
78361
|
for (const v of _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array == null ? [] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array.length === 1 && "@list" in _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0] ? _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0]["@list"] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array) {
|
|
@@ -78020,7 +78447,7 @@ var Person = class Person extends Object$1 {
|
|
|
78020
78447
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
78021
78448
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
78022
78449
|
if (v == null) continue;
|
|
78023
|
-
const decoded = v["@value"];
|
|
78450
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
78024
78451
|
if (typeof decoded === "undefined") {
|
|
78025
78452
|
shouldCacheJsonLd = false;
|
|
78026
78453
|
continue;
|
|
@@ -78169,6 +78596,11 @@ var Person = class Person extends Object$1 {
|
|
|
78169
78596
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
78170
78597
|
} : v);
|
|
78171
78598
|
if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
78599
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
|
|
78600
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
78601
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
78602
|
+
} : v);
|
|
78603
|
+
if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
78172
78604
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
|
|
78173
78605
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
78174
78606
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
@@ -78627,7 +79059,7 @@ var Place = class Place extends Object$1 {
|
|
|
78627
79059
|
* @throws {TypeError} If the given `json` is invalid.
|
|
78628
79060
|
*/
|
|
78629
79061
|
static async fromJsonLd(json, options = {}) {
|
|
78630
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
79062
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
78631
79063
|
try {
|
|
78632
79064
|
const object = await this.__fromJsonLd__Place__(json, span, options);
|
|
78633
79065
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -78962,7 +79394,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
78962
79394
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
78963
79395
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
78964
79396
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
78965
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
79397
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
78966
79398
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
78967
79399
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
78968
79400
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -79294,7 +79726,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
79294
79726
|
* @throws {TypeError} If the given `json` is invalid.
|
|
79295
79727
|
*/
|
|
79296
79728
|
static async fromJsonLd(json, options = {}) {
|
|
79297
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
79729
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
79298
79730
|
try {
|
|
79299
79731
|
const object = await this.__fromJsonLd__Profile__(json, span, options);
|
|
79300
79732
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -79759,7 +80191,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
79759
80191
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
79760
80192
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
79761
80193
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
79762
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
80194
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
79763
80195
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
79764
80196
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
79765
80197
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -79990,7 +80422,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
79990
80422
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
79991
80423
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
79992
80424
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
79993
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
80425
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
79994
80426
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
79995
80427
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
79996
80428
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -80237,7 +80669,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
80237
80669
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
80238
80670
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
80239
80671
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
80240
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
80672
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
80241
80673
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
80242
80674
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
80243
80675
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -80480,7 +80912,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
80480
80912
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
80481
80913
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
80482
80914
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
80483
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
80915
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
80484
80916
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
80485
80917
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
80486
80918
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -80893,7 +81325,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
80893
81325
|
* @throws {TypeError} If the given `json` is invalid.
|
|
80894
81326
|
*/
|
|
80895
81327
|
static async fromJsonLd(json, options = {}) {
|
|
80896
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
81328
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
80897
81329
|
try {
|
|
80898
81330
|
const object = await this.__fromJsonLd__Question__(json, span, options);
|
|
80899
81331
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -81309,7 +81741,7 @@ var Read = class Read extends Activity {
|
|
|
81309
81741
|
* @throws {TypeError} If the given `json` is invalid.
|
|
81310
81742
|
*/
|
|
81311
81743
|
static async fromJsonLd(json, options = {}) {
|
|
81312
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
81744
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
81313
81745
|
try {
|
|
81314
81746
|
const object = await this.__fromJsonLd__Read__(json, span, options);
|
|
81315
81747
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -81565,7 +81997,7 @@ var Reject = class Reject extends Activity {
|
|
|
81565
81997
|
* @throws {TypeError} If the given `json` is invalid.
|
|
81566
81998
|
*/
|
|
81567
81999
|
static async fromJsonLd(json, options = {}) {
|
|
81568
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
82000
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
81569
82001
|
try {
|
|
81570
82002
|
const object = await this.__fromJsonLd__Reject__(json, span, options);
|
|
81571
82003
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -81968,7 +82400,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
81968
82400
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
81969
82401
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
81970
82402
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
81971
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
82403
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
81972
82404
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
81973
82405
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
81974
82406
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -82196,7 +82628,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
82196
82628
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
82197
82629
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
82198
82630
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
82199
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
82631
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
82200
82632
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
82201
82633
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
82202
82634
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -82494,7 +82926,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
82494
82926
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
82495
82927
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
82496
82928
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
82497
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
82929
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
82498
82930
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
82499
82931
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
82500
82932
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -82944,7 +83376,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
82944
83376
|
* @throws {TypeError} If the given `json` is invalid.
|
|
82945
83377
|
*/
|
|
82946
83378
|
static async fromJsonLd(json, options = {}) {
|
|
82947
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
83379
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
82948
83380
|
try {
|
|
82949
83381
|
const object = await this.__fromJsonLd__Relationship__(json, span, options);
|
|
82950
83382
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -83281,7 +83713,7 @@ var Remove = class Remove extends Activity {
|
|
|
83281
83713
|
* @throws {TypeError} If the given `json` is invalid.
|
|
83282
83714
|
*/
|
|
83283
83715
|
static async fromJsonLd(json, options = {}) {
|
|
83284
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
83716
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
83285
83717
|
try {
|
|
83286
83718
|
const object = await this.__fromJsonLd__Remove__(json, span, options);
|
|
83287
83719
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -83402,6 +83834,7 @@ var Service = class Service extends Object$1 {
|
|
|
83402
83834
|
#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
83403
83835
|
#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
83404
83836
|
#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
83837
|
+
#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
83405
83838
|
#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
83406
83839
|
#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
|
|
83407
83840
|
#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
|
|
@@ -83619,6 +84052,33 @@ var Service = class Service extends Object$1 {
|
|
|
83619
84052
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
83620
84053
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
83621
84054
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
84055
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
84056
|
+
let copied;
|
|
84057
|
+
let valid = false;
|
|
84058
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
84059
|
+
const array = values.attributionDomains;
|
|
84060
|
+
const test = (v) => typeof v === "string";
|
|
84061
|
+
let checked;
|
|
84062
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
84063
|
+
const input = values.attributionDomains;
|
|
84064
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
84065
|
+
copied = input.slice();
|
|
84066
|
+
valid = true;
|
|
84067
|
+
} else {
|
|
84068
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
84069
|
+
valid: true,
|
|
84070
|
+
sparse: false
|
|
84071
|
+
});
|
|
84072
|
+
if (result.ok) {
|
|
84073
|
+
copied = result.array;
|
|
84074
|
+
valid = true;
|
|
84075
|
+
}
|
|
84076
|
+
}
|
|
84077
|
+
}
|
|
84078
|
+
}
|
|
84079
|
+
if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
84080
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
84081
|
+
}
|
|
83622
84082
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
83623
84083
|
this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
83624
84084
|
this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
|
|
@@ -83978,6 +84438,34 @@ var Service = class Service extends Object$1 {
|
|
|
83978
84438
|
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
|
|
83979
84439
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
83980
84440
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
84441
|
+
clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
|
|
84442
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
84443
|
+
let copied;
|
|
84444
|
+
let valid = false;
|
|
84445
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
84446
|
+
const array = values.attributionDomains;
|
|
84447
|
+
const test = (v) => typeof v === "string";
|
|
84448
|
+
let checked;
|
|
84449
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
84450
|
+
const input = values.attributionDomains;
|
|
84451
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
84452
|
+
copied = input.slice();
|
|
84453
|
+
valid = true;
|
|
84454
|
+
} else {
|
|
84455
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
84456
|
+
valid: true,
|
|
84457
|
+
sparse: false
|
|
84458
|
+
});
|
|
84459
|
+
if (result.ok) {
|
|
84460
|
+
copied = result.array;
|
|
84461
|
+
valid = true;
|
|
84462
|
+
}
|
|
84463
|
+
}
|
|
84464
|
+
}
|
|
84465
|
+
}
|
|
84466
|
+
if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
84467
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
84468
|
+
}
|
|
83981
84469
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
83982
84470
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
83983
84471
|
if ("successor" in values && values.successor != null) if (values.successor instanceof Application || values.successor instanceof Group || values.successor instanceof Organization || values.successor instanceof Person || values.successor instanceof Service || values.successor instanceof URL) {
|
|
@@ -84366,7 +84854,7 @@ var Service = class Service extends Object$1 {
|
|
|
84366
84854
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
84367
84855
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
84368
84856
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
84369
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
84857
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
84370
84858
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
84371
84859
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
84372
84860
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -84664,7 +85152,7 @@ var Service = class Service extends Object$1 {
|
|
|
84664
85152
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
84665
85153
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
84666
85154
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
84667
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
85155
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
84668
85156
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
84669
85157
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
84670
85158
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -84998,7 +85486,7 @@ var Service = class Service extends Object$1 {
|
|
|
84998
85486
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
84999
85487
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
85000
85488
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
85001
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
85489
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
85002
85490
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
85003
85491
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
85004
85492
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -85246,7 +85734,7 @@ var Service = class Service extends Object$1 {
|
|
|
85246
85734
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
85247
85735
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
85248
85736
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
85249
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
85737
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
85250
85738
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
85251
85739
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
85252
85740
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -85491,7 +85979,7 @@ var Service = class Service extends Object$1 {
|
|
|
85491
85979
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
85492
85980
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
85493
85981
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
85494
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
85982
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
85495
85983
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
85496
85984
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
85497
85985
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -85720,7 +86208,7 @@ var Service = class Service extends Object$1 {
|
|
|
85720
86208
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
85721
86209
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
85722
86210
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
85723
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
86211
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
85724
86212
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
85725
86213
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
85726
86214
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -85952,7 +86440,7 @@ var Service = class Service extends Object$1 {
|
|
|
85952
86440
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
85953
86441
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
85954
86442
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
85955
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
86443
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
85956
86444
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
85957
86445
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
85958
86446
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -86182,7 +86670,7 @@ var Service = class Service extends Object$1 {
|
|
|
86182
86670
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
86183
86671
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
86184
86672
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
86185
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
86673
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
86186
86674
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
86187
86675
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
86188
86676
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -86410,7 +86898,7 @@ var Service = class Service extends Object$1 {
|
|
|
86410
86898
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
86411
86899
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
86412
86900
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
86413
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
86901
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
86414
86902
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
86415
86903
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
86416
86904
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -86638,7 +87126,7 @@ var Service = class Service extends Object$1 {
|
|
|
86638
87126
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
86639
87127
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
86640
87128
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
86641
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
87129
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
86642
87130
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
86643
87131
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
86644
87132
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -86863,7 +87351,7 @@ var Service = class Service extends Object$1 {
|
|
|
86863
87351
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
86864
87352
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
86865
87353
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
86866
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
87354
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
86867
87355
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
86868
87356
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
86869
87357
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -87130,11 +87618,20 @@ var Service = class Service extends Object$1 {
|
|
|
87130
87618
|
if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
|
|
87131
87619
|
return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
87132
87620
|
}
|
|
87621
|
+
/** Domains this actor claims as its own, so that Mastodon can credit the
|
|
87622
|
+
* actor on link preview cards that point at one of them. Each value is a
|
|
87623
|
+
* bare host name, without a scheme, port, path, or leading `*.`. Fedify
|
|
87624
|
+
* treats the values as opaque strings and does not normalize or validate
|
|
87625
|
+
* them; applications are responsible for producing normalized host names.
|
|
87626
|
+
*/
|
|
87627
|
+
get attributionDomains() {
|
|
87628
|
+
return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
87629
|
+
}
|
|
87133
87630
|
async #fetchSuccessor(url, options = {}) {
|
|
87134
87631
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
87135
87632
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
87136
87633
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
87137
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
87634
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
87138
87635
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
87139
87636
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
87140
87637
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -87409,7 +87906,7 @@ var Service = class Service extends Object$1 {
|
|
|
87409
87906
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
87410
87907
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
87411
87908
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
87412
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
87909
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
87413
87910
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
87414
87911
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
87415
87912
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -87763,7 +88260,7 @@ var Service = class Service extends Object$1 {
|
|
|
87763
88260
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
87764
88261
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
87765
88262
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
87766
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
88263
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
87767
88264
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
87768
88265
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
87769
88266
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -88290,6 +88787,12 @@ var Service = class Service extends Object$1 {
|
|
|
88290
88787
|
}
|
|
88291
88788
|
if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
88292
88789
|
compactItems = [];
|
|
88790
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
88791
|
+
const item = v;
|
|
88792
|
+
compactItems.push(item);
|
|
88793
|
+
}
|
|
88794
|
+
if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
88795
|
+
compactItems = [];
|
|
88293
88796
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
88294
88797
|
const item = (0, _fedify_vocab_runtime_internal_signed_representation.retainedSignedValueRef)(v, signedValues.scope) ?? (v instanceof URL ? (0, _fedify_vocab_runtime.formatIri)(v) : v instanceof Application ? await v.toJsonLd({
|
|
88295
88798
|
...options,
|
|
@@ -88408,6 +88911,10 @@ var Service = class Service extends Object$1 {
|
|
|
88408
88911
|
"suspended": "toot:suspended",
|
|
88409
88912
|
"memorial": "toot:memorial",
|
|
88410
88913
|
"indexable": "toot:indexable",
|
|
88914
|
+
"attributionDomains": {
|
|
88915
|
+
"@id": "toot:attributionDomains",
|
|
88916
|
+
"@container": "@set"
|
|
88917
|
+
},
|
|
88411
88918
|
"schema": "http://schema.org#",
|
|
88412
88919
|
"PropertyValue": "schema:PropertyValue",
|
|
88413
88920
|
"value": "schema:value",
|
|
@@ -88637,6 +89144,17 @@ var Service = class Service extends Object$1 {
|
|
|
88637
89144
|
}
|
|
88638
89145
|
if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
|
|
88639
89146
|
array = [];
|
|
89147
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
89148
|
+
let element = { "@value": v };
|
|
89149
|
+
if (Array.isArray(element)) {
|
|
89150
|
+
if (element.length < 1) continue;
|
|
89151
|
+
if (element.length == 1) element = element[0];
|
|
89152
|
+
}
|
|
89153
|
+
if (typeof element === "undefined") continue;
|
|
89154
|
+
array.push(element);
|
|
89155
|
+
}
|
|
89156
|
+
if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
|
|
89157
|
+
array = [];
|
|
88640
89158
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
88641
89159
|
let element = (0, _fedify_vocab_runtime_internal_signed_representation.retainedSignedValueRef)(v, signedValues.scope) ?? (v instanceof URL ? { "@id": (0, _fedify_vocab_runtime.formatIri)(v) } : v instanceof Application ? await v.toJsonLd(options) : v instanceof Group ? await v.toJsonLd(options) : v instanceof Organization ? await v.toJsonLd(options) : v instanceof Person ? await v.toJsonLd(options) : await v.toJsonLd(options));
|
|
88642
89160
|
if (Array.isArray(element)) {
|
|
@@ -88745,6 +89263,10 @@ var Service = class Service extends Object$1 {
|
|
|
88745
89263
|
"suspended": "toot:suspended",
|
|
88746
89264
|
"memorial": "toot:memorial",
|
|
88747
89265
|
"indexable": "toot:indexable",
|
|
89266
|
+
"attributionDomains": {
|
|
89267
|
+
"@id": "toot:attributionDomains",
|
|
89268
|
+
"@container": "@set"
|
|
89269
|
+
},
|
|
88748
89270
|
"schema": "http://schema.org#",
|
|
88749
89271
|
"PropertyValue": "schema:PropertyValue",
|
|
88750
89272
|
"value": "schema:value",
|
|
@@ -88795,7 +89317,7 @@ var Service = class Service extends Object$1 {
|
|
|
88795
89317
|
* @throws {TypeError} If the given `json` is invalid.
|
|
88796
89318
|
*/
|
|
88797
89319
|
static async fromJsonLd(json, options = {}) {
|
|
88798
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
89320
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
88799
89321
|
try {
|
|
88800
89322
|
const object = await this.__fromJsonLd__Service__(json, span, options);
|
|
88801
89323
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -89198,6 +89720,19 @@ var Service = class Service extends Object$1 {
|
|
|
89198
89720
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
89199
89721
|
}
|
|
89200
89722
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
89723
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
89724
|
+
let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
|
|
89725
|
+
for (const v of _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array == null ? [] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array.length === 1 && "@list" in _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0] ? _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array[0]["@list"] : _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array) {
|
|
89726
|
+
if (v == null) continue;
|
|
89727
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
89728
|
+
if (typeof decoded === "undefined") {
|
|
89729
|
+
shouldCacheJsonLd = false;
|
|
89730
|
+
continue;
|
|
89731
|
+
}
|
|
89732
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
89733
|
+
_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
|
|
89734
|
+
}
|
|
89735
|
+
instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
89201
89736
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
89202
89737
|
let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
|
|
89203
89738
|
for (const v of _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array == null ? [] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array.length === 1 && "@list" in _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0] ? _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array[0]["@list"] : _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array) {
|
|
@@ -89289,7 +89824,7 @@ var Service = class Service extends Object$1 {
|
|
|
89289
89824
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
89290
89825
|
for (const v of _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array == null ? [] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array.length === 1 && "@list" in _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0] ? _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array[0]["@list"] : _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array) {
|
|
89291
89826
|
if (v == null) continue;
|
|
89292
|
-
const decoded = v["@value"];
|
|
89827
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
89293
89828
|
if (typeof decoded === "undefined") {
|
|
89294
89829
|
shouldCacheJsonLd = false;
|
|
89295
89830
|
continue;
|
|
@@ -89438,6 +89973,11 @@ var Service = class Service extends Object$1 {
|
|
|
89438
89973
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
89439
89974
|
} : v);
|
|
89440
89975
|
if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
89976
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
|
|
89977
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
89978
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
89979
|
+
} : v);
|
|
89980
|
+
if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
89441
89981
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
|
|
89442
89982
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
89443
89983
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
@@ -89852,7 +90392,7 @@ var Source = class {
|
|
|
89852
90392
|
* @throws {TypeError} If the given `json` is invalid.
|
|
89853
90393
|
*/
|
|
89854
90394
|
static async fromJsonLd(json, options = {}) {
|
|
89855
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
90395
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
89856
90396
|
try {
|
|
89857
90397
|
const object = await this.__fromJsonLd__Source__(json, span, options);
|
|
89858
90398
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -89922,7 +90462,7 @@ var Source = class {
|
|
|
89922
90462
|
let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
|
|
89923
90463
|
for (const v of _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array == null ? [] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array.length === 1 && "@list" in _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0] ? _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array[0]["@list"] : _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array) {
|
|
89924
90464
|
if (v == null) continue;
|
|
89925
|
-
const decoded = v["@value"];
|
|
90465
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
89926
90466
|
if (typeof decoded === "undefined") {
|
|
89927
90467
|
shouldCacheJsonLd = false;
|
|
89928
90468
|
continue;
|
|
@@ -90144,7 +90684,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
90144
90684
|
* @throws {TypeError} If the given `json` is invalid.
|
|
90145
90685
|
*/
|
|
90146
90686
|
static async fromJsonLd(json, options = {}) {
|
|
90147
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
90687
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
90148
90688
|
try {
|
|
90149
90689
|
const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
|
|
90150
90690
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -90400,7 +90940,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
90400
90940
|
* @throws {TypeError} If the given `json` is invalid.
|
|
90401
90941
|
*/
|
|
90402
90942
|
static async fromJsonLd(json, options = {}) {
|
|
90403
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
90943
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
90404
90944
|
try {
|
|
90405
90945
|
const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
|
|
90406
90946
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -90801,7 +91341,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
90801
91341
|
* @throws {TypeError} If the given `json` is invalid.
|
|
90802
91342
|
*/
|
|
90803
91343
|
static async fromJsonLd(json, options = {}) {
|
|
90804
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
91344
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
90805
91345
|
try {
|
|
90806
91346
|
const object = await this.__fromJsonLd__Tombstone__(json, span, options);
|
|
90807
91347
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -91102,7 +91642,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
91102
91642
|
* @throws {TypeError} If the given `json` is invalid.
|
|
91103
91643
|
*/
|
|
91104
91644
|
static async fromJsonLd(json, options = {}) {
|
|
91105
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
91645
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
91106
91646
|
try {
|
|
91107
91647
|
const object = await this.__fromJsonLd__Travel__(json, span, options);
|
|
91108
91648
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -91372,7 +91912,7 @@ var Undo = class Undo extends Activity {
|
|
|
91372
91912
|
* @throws {TypeError} If the given `json` is invalid.
|
|
91373
91913
|
*/
|
|
91374
91914
|
static async fromJsonLd(json, options = {}) {
|
|
91375
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
91915
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
91376
91916
|
try {
|
|
91377
91917
|
const object = await this.__fromJsonLd__Undo__(json, span, options);
|
|
91378
91918
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -91619,6 +92159,10 @@ var Update = class Update extends Activity {
|
|
|
91619
92159
|
"suspended": "toot:suspended",
|
|
91620
92160
|
"memorial": "toot:memorial",
|
|
91621
92161
|
"indexable": "toot:indexable",
|
|
92162
|
+
"attributionDomains": {
|
|
92163
|
+
"@id": "toot:attributionDomains",
|
|
92164
|
+
"@container": "@set"
|
|
92165
|
+
},
|
|
91622
92166
|
"votersCount": {
|
|
91623
92167
|
"@id": "toot:votersCount",
|
|
91624
92168
|
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
|
@@ -91690,7 +92234,7 @@ var Update = class Update extends Activity {
|
|
|
91690
92234
|
* @throws {TypeError} If the given `json` is invalid.
|
|
91691
92235
|
*/
|
|
91692
92236
|
static async fromJsonLd(json, options = {}) {
|
|
91693
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
92237
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
91694
92238
|
try {
|
|
91695
92239
|
const object = await this.__fromJsonLd__Update__(json, span, options);
|
|
91696
92240
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -91961,7 +92505,7 @@ var Video = class Video extends Document {
|
|
|
91961
92505
|
* @throws {TypeError} If the given `json` is invalid.
|
|
91962
92506
|
*/
|
|
91963
92507
|
static async fromJsonLd(json, options = {}) {
|
|
91964
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
92508
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
91965
92509
|
try {
|
|
91966
92510
|
const object = await this.__fromJsonLd__Video__(json, span, options);
|
|
91967
92511
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -92216,7 +92760,7 @@ var View = class View extends Activity {
|
|
|
92216
92760
|
* @throws {TypeError} If the given `json` is invalid.
|
|
92217
92761
|
*/
|
|
92218
92762
|
static async fromJsonLd(json, options = {}) {
|
|
92219
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
92763
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
92220
92764
|
try {
|
|
92221
92765
|
const object = await this.__fromJsonLd__View__(json, span, options);
|
|
92222
92766
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|