@fedify/vocab 2.5.0-dev.2562 → 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-BjR7XMY3.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-DLoLCARL.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-l_qXemk3.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-fx-0u7cy.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
|
@@ -2803,7 +2803,7 @@ var Object$1 = class Object$1 {
|
|
|
2803
2803
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
2804
2804
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
2805
2805
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
2806
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
2806
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
2807
2807
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
2808
2808
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
2809
2809
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -3060,7 +3060,7 @@ var Object$1 = class Object$1 {
|
|
|
3060
3060
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3061
3061
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3062
3062
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3063
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
3063
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
3064
3064
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
3065
3065
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3066
3066
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -3412,7 +3412,7 @@ var Object$1 = class Object$1 {
|
|
|
3412
3412
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3413
3413
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3414
3414
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3415
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
3415
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
3416
3416
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
3417
3417
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3418
3418
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -3732,7 +3732,7 @@ var Object$1 = class Object$1 {
|
|
|
3732
3732
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
3733
3733
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
3734
3734
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
3735
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
3735
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
3736
3736
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
3737
3737
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
3738
3738
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -4004,7 +4004,7 @@ var Object$1 = class Object$1 {
|
|
|
4004
4004
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4005
4005
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4006
4006
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4007
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
4007
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
4008
4008
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
4009
4009
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4010
4010
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -4244,7 +4244,7 @@ var Object$1 = class Object$1 {
|
|
|
4244
4244
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4245
4245
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4246
4246
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4247
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
4247
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
4248
4248
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
4249
4249
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4250
4250
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -4563,7 +4563,7 @@ var Object$1 = class Object$1 {
|
|
|
4563
4563
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4564
4564
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4565
4565
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4566
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
4566
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
4567
4567
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
4568
4568
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4569
4569
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -4882,7 +4882,7 @@ var Object$1 = class Object$1 {
|
|
|
4882
4882
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
4883
4883
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
4884
4884
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
4885
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
4885
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
4886
4886
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
4887
4887
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4888
4888
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -5193,7 +5193,7 @@ var Object$1 = class Object$1 {
|
|
|
5193
5193
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
5194
5194
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
5195
5195
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
5196
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
5196
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
5197
5197
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
5198
5198
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
5199
5199
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -5504,7 +5504,7 @@ var Object$1 = class Object$1 {
|
|
|
5504
5504
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
5505
5505
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
5506
5506
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
5507
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
5507
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
5508
5508
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
5509
5509
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
5510
5510
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -5820,7 +5820,7 @@ var Object$1 = class Object$1 {
|
|
|
5820
5820
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
5821
5821
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
5822
5822
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
5823
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
5823
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
5824
5824
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
5825
5825
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
5826
5826
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -6046,7 +6046,7 @@ var Object$1 = class Object$1 {
|
|
|
6046
6046
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
6047
6047
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
6048
6048
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
6049
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
6049
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
6050
6050
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
6051
6051
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6052
6052
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -6278,7 +6278,7 @@ var Object$1 = class Object$1 {
|
|
|
6278
6278
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
6279
6279
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
6280
6280
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
6281
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
6281
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
6282
6282
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
6283
6283
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6284
6284
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -6510,7 +6510,7 @@ var Object$1 = class Object$1 {
|
|
|
6510
6510
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
6511
6511
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
6512
6512
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
6513
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
6513
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
6514
6514
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
6515
6515
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6516
6516
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -6760,7 +6760,7 @@ var Object$1 = class Object$1 {
|
|
|
6760
6760
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
6761
6761
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
6762
6762
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
6763
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
6763
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
6764
6764
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
6765
6765
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6766
6766
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -7022,7 +7022,7 @@ var Object$1 = class Object$1 {
|
|
|
7022
7022
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7023
7023
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7024
7024
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7025
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
7025
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
7026
7026
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
7027
7027
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7028
7028
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -7322,7 +7322,7 @@ var Object$1 = class Object$1 {
|
|
|
7322
7322
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7323
7323
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7324
7324
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7325
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
7325
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
7326
7326
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
7327
7327
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7328
7328
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -7622,7 +7622,7 @@ var Object$1 = class Object$1 {
|
|
|
7622
7622
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7623
7623
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7624
7624
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7625
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
7625
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
7626
7626
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
7627
7627
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7628
7628
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -7922,7 +7922,7 @@ var Object$1 = class Object$1 {
|
|
|
7922
7922
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
7923
7923
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
7924
7924
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
7925
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
7925
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
7926
7926
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
7927
7927
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7928
7928
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -8259,7 +8259,7 @@ var Object$1 = class Object$1 {
|
|
|
8259
8259
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8260
8260
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8261
8261
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8262
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
8262
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
8263
8263
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
8264
8264
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8265
8265
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -8582,7 +8582,7 @@ var Object$1 = class Object$1 {
|
|
|
8582
8582
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8583
8583
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8584
8584
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8585
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
8585
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
8586
8586
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
8587
8587
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8588
8588
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -8808,7 +8808,7 @@ var Object$1 = class Object$1 {
|
|
|
8808
8808
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
8809
8809
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
8810
8810
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
8811
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
8811
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
8812
8812
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
8813
8813
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8814
8814
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -9034,7 +9034,7 @@ var Object$1 = class Object$1 {
|
|
|
9034
9034
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
9035
9035
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
9036
9036
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
9037
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
9037
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
9038
9038
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
9039
9039
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9040
9040
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -10243,7 +10243,7 @@ var Object$1 = class Object$1 {
|
|
|
10243
10243
|
* @throws {TypeError} If the given `json` is invalid.
|
|
10244
10244
|
*/
|
|
10245
10245
|
static async fromJsonLd(json, options = {}) {
|
|
10246
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
10246
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
10247
10247
|
try {
|
|
10248
10248
|
const object = await this.__fromJsonLd__Object__(json, span, options);
|
|
10249
10249
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -11468,7 +11468,7 @@ var Object$1 = class Object$1 {
|
|
|
11468
11468
|
let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
|
|
11469
11469
|
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) {
|
|
11470
11470
|
if (v == null) continue;
|
|
11471
|
-
const decoded = v["@value"];
|
|
11471
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
11472
11472
|
if (typeof decoded === "undefined") {
|
|
11473
11473
|
shouldCacheJsonLd = false;
|
|
11474
11474
|
continue;
|
|
@@ -12087,7 +12087,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
12087
12087
|
* @throws {TypeError} If the given `json` is invalid.
|
|
12088
12088
|
*/
|
|
12089
12089
|
static async fromJsonLd(json, options = {}) {
|
|
12090
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
12090
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
12091
12091
|
try {
|
|
12092
12092
|
const object = await this.__fromJsonLd__Emoji__(json, span, options);
|
|
12093
12093
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -12358,7 +12358,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
12358
12358
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12359
12359
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12360
12360
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12361
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
12361
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
12362
12362
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
12363
12363
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12364
12364
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -12601,7 +12601,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
12601
12601
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
12602
12602
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
12603
12603
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
12604
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
12604
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
12605
12605
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
12606
12606
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
12607
12607
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -13026,7 +13026,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
13026
13026
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13027
13027
|
*/
|
|
13028
13028
|
static async fromJsonLd(json, options = {}) {
|
|
13029
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
13029
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13030
13030
|
try {
|
|
13031
13031
|
const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
|
|
13032
13032
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13821,7 +13821,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
13821
13821
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
13822
13822
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
13823
13823
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
13824
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
13824
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
13825
13825
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
13826
13826
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13827
13827
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -14173,7 +14173,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
14173
14173
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14174
14174
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14175
14175
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14176
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
14176
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
14177
14177
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
14178
14178
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14179
14179
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -14475,7 +14475,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
14475
14475
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14476
14476
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14477
14477
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14478
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
14478
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
14479
14479
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
14480
14480
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14481
14481
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -14783,7 +14783,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
14783
14783
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
14784
14784
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
14785
14785
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
14786
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
14786
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
14787
14787
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
14788
14788
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14789
14789
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -15085,7 +15085,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
15085
15085
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15086
15086
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15087
15087
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15088
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
15088
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
15089
15089
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
15090
15090
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15091
15091
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -15389,7 +15389,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
15389
15389
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
15390
15390
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
15391
15391
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
15392
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
15392
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
15393
15393
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
15394
15394
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15395
15395
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -15827,7 +15827,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
15827
15827
|
* @throws {TypeError} If the given `json` is invalid.
|
|
15828
15828
|
*/
|
|
15829
15829
|
static async fromJsonLd(json, options = {}) {
|
|
15830
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
15830
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
15831
15831
|
try {
|
|
15832
15832
|
const object = await this.__fromJsonLd__Activity__(json, span, options);
|
|
15833
15833
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16298,7 +16298,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
16298
16298
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16299
16299
|
*/
|
|
16300
16300
|
static async fromJsonLd(json, options = {}) {
|
|
16301
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
16301
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16302
16302
|
try {
|
|
16303
16303
|
const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
|
|
16304
16304
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -16709,7 +16709,7 @@ var PropertyValue = class {
|
|
|
16709
16709
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16710
16710
|
*/
|
|
16711
16711
|
static async fromJsonLd(json, options = {}) {
|
|
16712
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
16712
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16713
16713
|
try {
|
|
16714
16714
|
const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
|
|
16715
16715
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17146,7 +17146,7 @@ var Measure = class {
|
|
|
17146
17146
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17147
17147
|
*/
|
|
17148
17148
|
static async fromJsonLd(json, options = {}) {
|
|
17149
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
17149
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17150
17150
|
try {
|
|
17151
17151
|
const object = await this.__fromJsonLd__Measure__(json, span, options);
|
|
17152
17152
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17203,7 +17203,7 @@ var Measure = class {
|
|
|
17203
17203
|
let _27fgyFbosTtMAhuepJH8K3ZGURT6__array = values["http://www.ontology-of-units-of-measure.org/resource/om-2/hasUnit"];
|
|
17204
17204
|
for (const v of _27fgyFbosTtMAhuepJH8K3ZGURT6__array == null ? [] : _27fgyFbosTtMAhuepJH8K3ZGURT6__array.length === 1 && "@list" in _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0] ? _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0]["@list"] : _27fgyFbosTtMAhuepJH8K3ZGURT6__array) {
|
|
17205
17205
|
if (v == null) continue;
|
|
17206
|
-
const decoded = v["@value"];
|
|
17206
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
17207
17207
|
if (typeof decoded === "undefined") {
|
|
17208
17208
|
shouldCacheJsonLd = false;
|
|
17209
17209
|
continue;
|
|
@@ -17437,7 +17437,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
17437
17437
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17438
17438
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17439
17439
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17440
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
17440
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
17441
17441
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
17442
17442
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17443
17443
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -17663,7 +17663,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
17663
17663
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
17664
17664
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
17665
17665
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
17666
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
17666
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
17667
17667
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
17668
17668
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
17669
17669
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -18015,7 +18015,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
18015
18015
|
* @throws {TypeError} If the given `json` is invalid.
|
|
18016
18016
|
*/
|
|
18017
18017
|
static async fromJsonLd(json, options = {}) {
|
|
18018
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
18018
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
18019
18019
|
try {
|
|
18020
18020
|
const object = await this.__fromJsonLd__AnnounceAuthorization__(json, span, options);
|
|
18021
18021
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18333,7 +18333,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
18333
18333
|
* @throws {TypeError} If the given `json` is invalid.
|
|
18334
18334
|
*/
|
|
18335
18335
|
static async fromJsonLd(json, options = {}) {
|
|
18336
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
18336
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
18337
18337
|
try {
|
|
18338
18338
|
const object = await this.__fromJsonLd__AnnounceRequest__(json, span, options);
|
|
18339
18339
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18866,7 +18866,7 @@ var InteractionPolicy = class {
|
|
|
18866
18866
|
* @throws {TypeError} If the given `json` is invalid.
|
|
18867
18867
|
*/
|
|
18868
18868
|
static async fromJsonLd(json, options = {}) {
|
|
18869
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
18869
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
18870
18870
|
try {
|
|
18871
18871
|
const object = await this.__fromJsonLd__InteractionPolicy__(json, span, options);
|
|
18872
18872
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19511,7 +19511,7 @@ var InteractionRule = class {
|
|
|
19511
19511
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19512
19512
|
*/
|
|
19513
19513
|
static async fromJsonLd(json, options = {}) {
|
|
19514
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
19514
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19515
19515
|
try {
|
|
19516
19516
|
const object = await this.__fromJsonLd__InteractionRule__(json, span, options);
|
|
19517
19517
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19803,7 +19803,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
19803
19803
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
19804
19804
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
19805
19805
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
19806
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
19806
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
19807
19807
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
19808
19808
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
19809
19809
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -20029,7 +20029,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
20029
20029
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20030
20030
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20031
20031
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20032
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
20032
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
20033
20033
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
20034
20034
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20035
20035
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -20381,7 +20381,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
20381
20381
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20382
20382
|
*/
|
|
20383
20383
|
static async fromJsonLd(json, options = {}) {
|
|
20384
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
20384
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20385
20385
|
try {
|
|
20386
20386
|
const object = await this.__fromJsonLd__LikeAuthorization__(json, span, options);
|
|
20387
20387
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20698,7 +20698,7 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
20698
20698
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20699
20699
|
*/
|
|
20700
20700
|
static async fromJsonLd(json, options = {}) {
|
|
20701
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
20701
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20702
20702
|
try {
|
|
20703
20703
|
const object = await this.__fromJsonLd__LikeRequest__(json, span, options);
|
|
20704
20704
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20953,7 +20953,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
20953
20953
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
20954
20954
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
20955
20955
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
20956
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
20956
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
20957
20957
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
20958
20958
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20959
20959
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -21179,7 +21179,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
21179
21179
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
21180
21180
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
21181
21181
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
21182
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
21182
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
21183
21183
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
21184
21184
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21185
21185
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -21531,7 +21531,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
21531
21531
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21532
21532
|
*/
|
|
21533
21533
|
static async fromJsonLd(json, options = {}) {
|
|
21534
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
21534
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21535
21535
|
try {
|
|
21536
21536
|
const object = await this.__fromJsonLd__ReplyAuthorization__(json, span, options);
|
|
21537
21537
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21848,7 +21848,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
21848
21848
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21849
21849
|
*/
|
|
21850
21850
|
static async fromJsonLd(json, options = {}) {
|
|
21851
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
21851
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21852
21852
|
try {
|
|
21853
21853
|
const object = await this.__fromJsonLd__ReplyRequest__(json, span, options);
|
|
21854
21854
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22103,7 +22103,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
22103
22103
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22104
22104
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22105
22105
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22106
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
22106
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
22107
22107
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
22108
22108
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22109
22109
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -22328,7 +22328,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
22328
22328
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
22329
22329
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
22330
22330
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
22331
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
22331
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
22332
22332
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
22333
22333
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22334
22334
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -22682,7 +22682,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
22682
22682
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22683
22683
|
*/
|
|
22684
22684
|
static async fromJsonLd(json, options = {}) {
|
|
22685
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
22685
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22686
22686
|
try {
|
|
22687
22687
|
const object = await this.__fromJsonLd__QuoteAuthorization__(json, span, options);
|
|
22688
22688
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23029,7 +23029,7 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
23029
23029
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23030
23030
|
*/
|
|
23031
23031
|
static async fromJsonLd(json, options = {}) {
|
|
23032
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
23032
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23033
23033
|
try {
|
|
23034
23034
|
const object = await this.__fromJsonLd__QuoteRequest__(json, span, options);
|
|
23035
23035
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23519,7 +23519,7 @@ var Translation = class {
|
|
|
23519
23519
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
23520
23520
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
23521
23521
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
23522
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
23522
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
23523
23523
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
23524
23524
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23525
23525
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -24113,7 +24113,7 @@ var Translation = class {
|
|
|
24113
24113
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24114
24114
|
*/
|
|
24115
24115
|
static async fromJsonLd(json, options = {}) {
|
|
24116
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
24116
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24117
24117
|
try {
|
|
24118
24118
|
const object = await this.__fromJsonLd__Translation__(json, span, options);
|
|
24119
24119
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24500,7 +24500,7 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
|
|
|
24500
24500
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24501
24501
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24502
24502
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24503
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
24503
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
24504
24504
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
24505
24505
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24506
24506
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -24725,7 +24725,7 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
|
|
|
24725
24725
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
24726
24726
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
24727
24727
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
24728
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
24728
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
24729
24729
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
24730
24730
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24731
24731
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -25079,7 +25079,7 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
|
|
|
25079
25079
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25080
25080
|
*/
|
|
25081
25081
|
static async fromJsonLd(json, options = {}) {
|
|
25082
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
25082
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25083
25083
|
try {
|
|
25084
25084
|
const object = await this.__fromJsonLd__FeatureAuthorization__(json, span, options);
|
|
25085
25085
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25394,7 +25394,7 @@ var FeatureRequest = class FeatureRequest extends Activity {
|
|
|
25394
25394
|
* @throws {TypeError} If the given `json` is invalid.
|
|
25395
25395
|
*/
|
|
25396
25396
|
static async fromJsonLd(json, options = {}) {
|
|
25397
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
25397
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
25398
25398
|
try {
|
|
25399
25399
|
const object = await this.__fromJsonLd__FeatureRequest__(json, span, options);
|
|
25400
25400
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25971,7 +25971,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
25971
25971
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
25972
25972
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
25973
25973
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
25974
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
25974
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
25975
25975
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
25976
25976
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25977
25977
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -26197,7 +26197,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
26197
26197
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26198
26198
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26199
26199
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26200
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
26200
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
26201
26201
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
26202
26202
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26203
26203
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -26423,7 +26423,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
26423
26423
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26424
26424
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26425
26425
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26426
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
26426
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
26427
26427
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
26428
26428
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26429
26429
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -26649,7 +26649,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
26649
26649
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26650
26650
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26651
26651
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26652
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
26652
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
26653
26653
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
26654
26654
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26655
26655
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -26890,7 +26890,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
26890
26890
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
26891
26891
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
26892
26892
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
26893
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
26893
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
26894
26894
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
26895
26895
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26896
26896
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -27115,7 +27115,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
27115
27115
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27116
27116
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27117
27117
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27118
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
27118
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
27119
27119
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
27120
27120
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27121
27121
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -27340,7 +27340,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
27340
27340
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27341
27341
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27342
27342
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27343
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
27343
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
27344
27344
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
27345
27345
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27346
27346
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -27565,7 +27565,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
27565
27565
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27566
27566
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27567
27567
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27568
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
27568
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
27569
27569
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
27570
27570
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27571
27571
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -27790,7 +27790,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
27790
27790
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
27791
27791
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
27792
27792
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
27793
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
27793
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
27794
27794
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
27795
27795
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27796
27796
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -28015,7 +28015,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
28015
28015
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28016
28016
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28017
28017
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28018
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
28018
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
28019
28019
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
28020
28020
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28021
28021
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -28240,7 +28240,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
28240
28240
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28241
28241
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28242
28242
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28243
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
28243
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
28244
28244
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
28245
28245
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28246
28246
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -28465,7 +28465,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
28465
28465
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
28466
28466
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
28467
28467
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
28468
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
28468
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
28469
28469
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
28470
28470
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28471
28471
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -29105,7 +29105,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
29105
29105
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29106
29106
|
*/
|
|
29107
29107
|
static async fromJsonLd(json, options = {}) {
|
|
29108
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
29108
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29109
29109
|
try {
|
|
29110
29110
|
const object = await this.__fromJsonLd__Collection__(json, span, options);
|
|
29111
29111
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29790,7 +29790,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
29790
29790
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
29791
29791
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
29792
29792
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
29793
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
29793
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
29794
29794
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
29795
29795
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29796
29796
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -30196,7 +30196,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
30196
30196
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30197
30197
|
*/
|
|
30198
30198
|
static async fromJsonLd(json, options = {}) {
|
|
30199
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
30199
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30200
30200
|
try {
|
|
30201
30201
|
const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
|
|
30202
30202
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30678,7 +30678,7 @@ var FeaturedCollection = class FeaturedCollection extends OrderedCollection {
|
|
|
30678
30678
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30679
30679
|
*/
|
|
30680
30680
|
static async fromJsonLd(json, options = {}) {
|
|
30681
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
30681
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30682
30682
|
try {
|
|
30683
30683
|
const object = await this.__fromJsonLd__FeaturedCollection__(json, span, options);
|
|
30684
30684
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30968,7 +30968,7 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
|
|
|
30968
30968
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
30969
30969
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
30970
30970
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
30971
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
30971
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
30972
30972
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
30973
30973
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30974
30974
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -31193,7 +31193,7 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
|
|
|
31193
31193
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
31194
31194
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
31195
31195
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
31196
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
31196
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
31197
31197
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
31198
31198
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31199
31199
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -31548,7 +31548,7 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
|
|
|
31548
31548
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31549
31549
|
*/
|
|
31550
31550
|
static async fromJsonLd(json, options = {}) {
|
|
31551
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
31551
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31552
31552
|
try {
|
|
31553
31553
|
const object = await this.__fromJsonLd__FeaturedItem__(json, span, options);
|
|
31554
31554
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32027,7 +32027,7 @@ var DidService = class {
|
|
|
32027
32027
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32028
32028
|
*/
|
|
32029
32029
|
static async fromJsonLd(json, options = {}) {
|
|
32030
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
32030
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32031
32031
|
try {
|
|
32032
32032
|
const object = await this.__fromJsonLd__DidService__(json, span, options);
|
|
32033
32033
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32293,7 +32293,7 @@ var Export = class Export extends DidService {
|
|
|
32293
32293
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32294
32294
|
*/
|
|
32295
32295
|
static async fromJsonLd(json, options = {}) {
|
|
32296
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
32296
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32297
32297
|
try {
|
|
32298
32298
|
const object = await this.__fromJsonLd__Export__(json, span, options);
|
|
32299
32299
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32628,7 +32628,7 @@ var DataIntegrityProof = class {
|
|
|
32628
32628
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
32629
32629
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
32630
32630
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
32631
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
32631
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
32632
32632
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
32633
32633
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32634
32634
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -32985,7 +32985,7 @@ var DataIntegrityProof = class {
|
|
|
32985
32985
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32986
32986
|
*/
|
|
32987
32987
|
static async fromJsonLd(json, options = {}) {
|
|
32988
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
32988
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32989
32989
|
try {
|
|
32990
32990
|
const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
|
|
32991
32991
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33378,7 +33378,7 @@ var CryptographicKey = class {
|
|
|
33378
33378
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
33379
33379
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
33380
33380
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
33381
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
33381
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
33382
33382
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
33383
33383
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
33384
33384
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -33780,7 +33780,7 @@ var CryptographicKey = class {
|
|
|
33780
33780
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33781
33781
|
*/
|
|
33782
33782
|
static async fromJsonLd(json, options = {}) {
|
|
33783
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
33783
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33784
33784
|
try {
|
|
33785
33785
|
const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
|
|
33786
33786
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34134,7 +34134,7 @@ var Multikey = class {
|
|
|
34134
34134
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
34135
34135
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
34136
34136
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
34137
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
34137
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
34138
34138
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
34139
34139
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
34140
34140
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -34542,7 +34542,7 @@ var Multikey = class {
|
|
|
34542
34542
|
* @throws {TypeError} If the given `json` is invalid.
|
|
34543
34543
|
*/
|
|
34544
34544
|
static async fromJsonLd(json, options = {}) {
|
|
34545
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
34545
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
34546
34546
|
try {
|
|
34547
34547
|
const object = await this.__fromJsonLd__Multikey__(json, span, options);
|
|
34548
34548
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -35029,7 +35029,7 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
35029
35029
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35030
35030
|
*/
|
|
35031
35031
|
static async fromJsonLd(json, options = {}) {
|
|
35032
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
35032
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35033
35033
|
try {
|
|
35034
35034
|
const object = await this.__fromJsonLd__Agreement__(json, span, options);
|
|
35035
35035
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -35523,7 +35523,7 @@ var Commitment = class {
|
|
|
35523
35523
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35524
35524
|
*/
|
|
35525
35525
|
static async fromJsonLd(json, options = {}) {
|
|
35526
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
35526
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35527
35527
|
try {
|
|
35528
35528
|
const object = await this.__fromJsonLd__Commitment__(json, span, options);
|
|
35529
35529
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36135,7 +36135,7 @@ var Intent = class {
|
|
|
36135
36135
|
* @throws {TypeError} If the given `json` is invalid.
|
|
36136
36136
|
*/
|
|
36137
36137
|
static async fromJsonLd(json, options = {}) {
|
|
36138
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
36138
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
36139
36139
|
try {
|
|
36140
36140
|
const object = await this.__fromJsonLd__Intent__(json, span, options);
|
|
36141
36141
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36192,7 +36192,7 @@ var Intent = class {
|
|
|
36192
36192
|
let _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array = values["https://w3id.org/valueflows/ont/vf#action"];
|
|
36193
36193
|
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) {
|
|
36194
36194
|
if (v == null) continue;
|
|
36195
|
-
const decoded = v["@value"];
|
|
36195
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
36196
36196
|
if (typeof decoded === "undefined") {
|
|
36197
36197
|
shouldCacheJsonLd = false;
|
|
36198
36198
|
continue;
|
|
@@ -36734,7 +36734,7 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
36734
36734
|
* @throws {TypeError} If the given `json` is invalid.
|
|
36735
36735
|
*/
|
|
36736
36736
|
static async fromJsonLd(json, options = {}) {
|
|
36737
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
36737
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
36738
36738
|
try {
|
|
36739
36739
|
const object = await this.__fromJsonLd__Proposal__(json, span, options);
|
|
36740
36740
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -36797,7 +36797,7 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
36797
36797
|
let _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array = values["https://w3id.org/valueflows/ont/vf#purpose"];
|
|
36798
36798
|
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) {
|
|
36799
36799
|
if (v == null) continue;
|
|
36800
|
-
const decoded = v["@value"];
|
|
36800
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
36801
36801
|
if (typeof decoded === "undefined") {
|
|
36802
36802
|
shouldCacheJsonLd = false;
|
|
36803
36803
|
continue;
|
|
@@ -37070,7 +37070,7 @@ var Accept = class Accept extends Activity {
|
|
|
37070
37070
|
* @throws {TypeError} If the given `json` is invalid.
|
|
37071
37071
|
*/
|
|
37072
37072
|
static async fromJsonLd(json, options = {}) {
|
|
37073
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
37073
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
37074
37074
|
try {
|
|
37075
37075
|
const object = await this.__fromJsonLd__Accept__(json, span, options);
|
|
37076
37076
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -37329,7 +37329,7 @@ var Add = class Add extends Activity {
|
|
|
37329
37329
|
* @throws {TypeError} If the given `json` is invalid.
|
|
37330
37330
|
*/
|
|
37331
37331
|
static async fromJsonLd(json, options = {}) {
|
|
37332
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
37332
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
37333
37333
|
try {
|
|
37334
37334
|
const object = await this.__fromJsonLd__Add__(json, span, options);
|
|
37335
37335
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -37615,7 +37615,7 @@ var Announce = class Announce extends Activity {
|
|
|
37615
37615
|
* @throws {TypeError} If the given `json` is invalid.
|
|
37616
37616
|
*/
|
|
37617
37617
|
static async fromJsonLd(json, options = {}) {
|
|
37618
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
37618
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
37619
37619
|
try {
|
|
37620
37620
|
const object = await this.__fromJsonLd__Announce__(json, span, options);
|
|
37621
37621
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -37736,6 +37736,7 @@ var Application = class Application extends Object$1 {
|
|
|
37736
37736
|
#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
37737
37737
|
#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
37738
37738
|
#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
37739
|
+
#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
37739
37740
|
#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
37740
37741
|
#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
|
|
37741
37742
|
#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
|
|
@@ -37953,6 +37954,33 @@ var Application = class Application extends Object$1 {
|
|
|
37953
37954
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
37954
37955
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
37955
37956
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
37957
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
37958
|
+
let copied;
|
|
37959
|
+
let valid = false;
|
|
37960
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
37961
|
+
const array = values.attributionDomains;
|
|
37962
|
+
const test = (v) => typeof v === "string";
|
|
37963
|
+
let checked;
|
|
37964
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
37965
|
+
const input = values.attributionDomains;
|
|
37966
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
37967
|
+
copied = input.slice();
|
|
37968
|
+
valid = true;
|
|
37969
|
+
} else {
|
|
37970
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
37971
|
+
valid: true,
|
|
37972
|
+
sparse: false
|
|
37973
|
+
});
|
|
37974
|
+
if (result.ok) {
|
|
37975
|
+
copied = result.array;
|
|
37976
|
+
valid = true;
|
|
37977
|
+
}
|
|
37978
|
+
}
|
|
37979
|
+
}
|
|
37980
|
+
}
|
|
37981
|
+
if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
37982
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
37983
|
+
}
|
|
37956
37984
|
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) {
|
|
37957
37985
|
this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
37958
37986
|
this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
|
|
@@ -38312,6 +38340,34 @@ var Application = class Application extends Object$1 {
|
|
|
38312
38340
|
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
|
|
38313
38341
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
38314
38342
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
38343
|
+
clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
|
|
38344
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
38345
|
+
let copied;
|
|
38346
|
+
let valid = false;
|
|
38347
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
38348
|
+
const array = values.attributionDomains;
|
|
38349
|
+
const test = (v) => typeof v === "string";
|
|
38350
|
+
let checked;
|
|
38351
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
38352
|
+
const input = values.attributionDomains;
|
|
38353
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
38354
|
+
copied = input.slice();
|
|
38355
|
+
valid = true;
|
|
38356
|
+
} else {
|
|
38357
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
38358
|
+
valid: true,
|
|
38359
|
+
sparse: false
|
|
38360
|
+
});
|
|
38361
|
+
if (result.ok) {
|
|
38362
|
+
copied = result.array;
|
|
38363
|
+
valid = true;
|
|
38364
|
+
}
|
|
38365
|
+
}
|
|
38366
|
+
}
|
|
38367
|
+
}
|
|
38368
|
+
if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
38369
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
38370
|
+
}
|
|
38315
38371
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
38316
38372
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
38317
38373
|
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) {
|
|
@@ -38700,7 +38756,7 @@ var Application = class Application extends Object$1 {
|
|
|
38700
38756
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38701
38757
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
38702
38758
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
38703
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
38759
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
38704
38760
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
38705
38761
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38706
38762
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -38998,7 +39054,7 @@ var Application = class Application extends Object$1 {
|
|
|
38998
39054
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
38999
39055
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39000
39056
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39001
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
39057
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
39002
39058
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
39003
39059
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39004
39060
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -39332,7 +39388,7 @@ var Application = class Application extends Object$1 {
|
|
|
39332
39388
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39333
39389
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39334
39390
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39335
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
39391
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
39336
39392
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
39337
39393
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39338
39394
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -39580,7 +39636,7 @@ var Application = class Application extends Object$1 {
|
|
|
39580
39636
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39581
39637
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39582
39638
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39583
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
39639
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
39584
39640
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
39585
39641
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39586
39642
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -39825,7 +39881,7 @@ var Application = class Application extends Object$1 {
|
|
|
39825
39881
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
39826
39882
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
39827
39883
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
39828
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
39884
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
39829
39885
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
39830
39886
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39831
39887
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -40054,7 +40110,7 @@ var Application = class Application extends Object$1 {
|
|
|
40054
40110
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40055
40111
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40056
40112
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40057
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
40113
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
40058
40114
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
40059
40115
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40060
40116
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -40286,7 +40342,7 @@ var Application = class Application extends Object$1 {
|
|
|
40286
40342
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40287
40343
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40288
40344
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40289
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
40345
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
40290
40346
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
40291
40347
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40292
40348
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -40516,7 +40572,7 @@ var Application = class Application extends Object$1 {
|
|
|
40516
40572
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40517
40573
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40518
40574
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40519
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
40575
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
40520
40576
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
40521
40577
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40522
40578
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -40744,7 +40800,7 @@ var Application = class Application extends Object$1 {
|
|
|
40744
40800
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40745
40801
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40746
40802
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40747
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
40803
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
40748
40804
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
40749
40805
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40750
40806
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -40972,7 +41028,7 @@ var Application = class Application extends Object$1 {
|
|
|
40972
41028
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
40973
41029
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
40974
41030
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
40975
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
41031
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
40976
41032
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
40977
41033
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
40978
41034
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -41197,7 +41253,7 @@ var Application = class Application extends Object$1 {
|
|
|
41197
41253
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41198
41254
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41199
41255
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41200
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
41256
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
41201
41257
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
41202
41258
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41203
41259
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -41464,11 +41520,20 @@ var Application = class Application extends Object$1 {
|
|
|
41464
41520
|
if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
|
|
41465
41521
|
return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
41466
41522
|
}
|
|
41523
|
+
/** Domains this actor claims as its own, so that Mastodon can credit the
|
|
41524
|
+
* actor on link preview cards that point at one of them. Each value is a
|
|
41525
|
+
* bare host name, without a scheme, port, path, or leading `*.`. Fedify
|
|
41526
|
+
* treats the values as opaque strings and does not normalize or validate
|
|
41527
|
+
* them; applications are responsible for producing normalized host names.
|
|
41528
|
+
*/
|
|
41529
|
+
get attributionDomains() {
|
|
41530
|
+
return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
41531
|
+
}
|
|
41467
41532
|
async #fetchSuccessor(url, options = {}) {
|
|
41468
41533
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41469
41534
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41470
41535
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41471
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
41536
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
41472
41537
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
41473
41538
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41474
41539
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -41743,7 +41808,7 @@ var Application = class Application extends Object$1 {
|
|
|
41743
41808
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
41744
41809
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
41745
41810
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
41746
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
41811
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
41747
41812
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
41748
41813
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41749
41814
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -42097,7 +42162,7 @@ var Application = class Application extends Object$1 {
|
|
|
42097
42162
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
42098
42163
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
42099
42164
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
42100
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
42165
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
42101
42166
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
42102
42167
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
42103
42168
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -42624,6 +42689,12 @@ var Application = class Application extends Object$1 {
|
|
|
42624
42689
|
}
|
|
42625
42690
|
if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
42626
42691
|
compactItems = [];
|
|
42692
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
42693
|
+
const item = v;
|
|
42694
|
+
compactItems.push(item);
|
|
42695
|
+
}
|
|
42696
|
+
if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
42697
|
+
compactItems = [];
|
|
42627
42698
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
42628
42699
|
const item = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? formatIri(v) : v instanceof Application ? await v.toJsonLd({
|
|
42629
42700
|
...options,
|
|
@@ -42742,6 +42813,10 @@ var Application = class Application extends Object$1 {
|
|
|
42742
42813
|
"suspended": "toot:suspended",
|
|
42743
42814
|
"memorial": "toot:memorial",
|
|
42744
42815
|
"indexable": "toot:indexable",
|
|
42816
|
+
"attributionDomains": {
|
|
42817
|
+
"@id": "toot:attributionDomains",
|
|
42818
|
+
"@container": "@set"
|
|
42819
|
+
},
|
|
42745
42820
|
"schema": "http://schema.org#",
|
|
42746
42821
|
"PropertyValue": "schema:PropertyValue",
|
|
42747
42822
|
"value": "schema:value",
|
|
@@ -42971,6 +43046,17 @@ var Application = class Application extends Object$1 {
|
|
|
42971
43046
|
}
|
|
42972
43047
|
if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
|
|
42973
43048
|
array = [];
|
|
43049
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
43050
|
+
let element = { "@value": v };
|
|
43051
|
+
if (Array.isArray(element)) {
|
|
43052
|
+
if (element.length < 1) continue;
|
|
43053
|
+
if (element.length == 1) element = element[0];
|
|
43054
|
+
}
|
|
43055
|
+
if (typeof element === "undefined") continue;
|
|
43056
|
+
array.push(element);
|
|
43057
|
+
}
|
|
43058
|
+
if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
|
|
43059
|
+
array = [];
|
|
42974
43060
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
42975
43061
|
let element = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? { "@id": 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));
|
|
42976
43062
|
if (Array.isArray(element)) {
|
|
@@ -43079,6 +43165,10 @@ var Application = class Application extends Object$1 {
|
|
|
43079
43165
|
"suspended": "toot:suspended",
|
|
43080
43166
|
"memorial": "toot:memorial",
|
|
43081
43167
|
"indexable": "toot:indexable",
|
|
43168
|
+
"attributionDomains": {
|
|
43169
|
+
"@id": "toot:attributionDomains",
|
|
43170
|
+
"@container": "@set"
|
|
43171
|
+
},
|
|
43082
43172
|
"schema": "http://schema.org#",
|
|
43083
43173
|
"PropertyValue": "schema:PropertyValue",
|
|
43084
43174
|
"value": "schema:value",
|
|
@@ -43129,7 +43219,7 @@ var Application = class Application extends Object$1 {
|
|
|
43129
43219
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43130
43220
|
*/
|
|
43131
43221
|
static async fromJsonLd(json, options = {}) {
|
|
43132
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
43222
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43133
43223
|
try {
|
|
43134
43224
|
const object = await this.__fromJsonLd__Application__(json, span, options);
|
|
43135
43225
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43532,6 +43622,19 @@ var Application = class Application extends Object$1 {
|
|
|
43532
43622
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
43533
43623
|
}
|
|
43534
43624
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
43625
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
43626
|
+
let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
|
|
43627
|
+
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) {
|
|
43628
|
+
if (v == null) continue;
|
|
43629
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
43630
|
+
if (typeof decoded === "undefined") {
|
|
43631
|
+
shouldCacheJsonLd = false;
|
|
43632
|
+
continue;
|
|
43633
|
+
}
|
|
43634
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
43635
|
+
_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
|
|
43636
|
+
}
|
|
43637
|
+
instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
43535
43638
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
43536
43639
|
let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
|
|
43537
43640
|
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) {
|
|
@@ -43623,7 +43726,7 @@ var Application = class Application extends Object$1 {
|
|
|
43623
43726
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
43624
43727
|
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) {
|
|
43625
43728
|
if (v == null) continue;
|
|
43626
|
-
const decoded = v["@value"];
|
|
43729
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
43627
43730
|
if (typeof decoded === "undefined") {
|
|
43628
43731
|
shouldCacheJsonLd = false;
|
|
43629
43732
|
continue;
|
|
@@ -43772,6 +43875,11 @@ var Application = class Application extends Object$1 {
|
|
|
43772
43875
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
43773
43876
|
} : v);
|
|
43774
43877
|
if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
43878
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
|
|
43879
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
43880
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
43881
|
+
} : v);
|
|
43882
|
+
if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
43775
43883
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
|
|
43776
43884
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
43777
43885
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
@@ -43988,7 +44096,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
43988
44096
|
* @throws {TypeError} If the given `json` is invalid.
|
|
43989
44097
|
*/
|
|
43990
44098
|
static async fromJsonLd(json, options = {}) {
|
|
43991
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
44099
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
43992
44100
|
try {
|
|
43993
44101
|
const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
|
|
43994
44102
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -44248,7 +44356,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
44248
44356
|
* @throws {TypeError} If the given `json` is invalid.
|
|
44249
44357
|
*/
|
|
44250
44358
|
static async fromJsonLd(json, options = {}) {
|
|
44251
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
44359
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
44252
44360
|
try {
|
|
44253
44361
|
const object = await this.__fromJsonLd__Arrive__(json, span, options);
|
|
44254
44362
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -44515,7 +44623,7 @@ var Article = class Article extends Object$1 {
|
|
|
44515
44623
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44516
44624
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44517
44625
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44518
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
44626
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
44519
44627
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
44520
44628
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44521
44629
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -44758,7 +44866,7 @@ var Article = class Article extends Object$1 {
|
|
|
44758
44866
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
44759
44867
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
44760
44868
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
44761
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
44869
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
44762
44870
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
44763
44871
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
44764
44872
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -45185,7 +45293,7 @@ var Article = class Article extends Object$1 {
|
|
|
45185
45293
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45186
45294
|
*/
|
|
45187
45295
|
static async fromJsonLd(json, options = {}) {
|
|
45188
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
45296
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45189
45297
|
try {
|
|
45190
45298
|
const object = await this.__fromJsonLd__Article__(json, span, options);
|
|
45191
45299
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45632,7 +45740,7 @@ var Document = class Document extends Object$1 {
|
|
|
45632
45740
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45633
45741
|
*/
|
|
45634
45742
|
static async fromJsonLd(json, options = {}) {
|
|
45635
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
45743
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45636
45744
|
try {
|
|
45637
45745
|
const object = await this.__fromJsonLd__Document__(json, span, options);
|
|
45638
45746
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45725,7 +45833,7 @@ var Document = class Document extends Object$1 {
|
|
|
45725
45833
|
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
|
|
45726
45834
|
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) {
|
|
45727
45835
|
if (v == null) continue;
|
|
45728
|
-
const decoded = v["@value"];
|
|
45836
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
45729
45837
|
if (typeof decoded === "undefined") {
|
|
45730
45838
|
shouldCacheJsonLd = false;
|
|
45731
45839
|
continue;
|
|
@@ -45962,7 +46070,7 @@ var Audio = class Audio extends Document {
|
|
|
45962
46070
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45963
46071
|
*/
|
|
45964
46072
|
static async fromJsonLd(json, options = {}) {
|
|
45965
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
46073
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45966
46074
|
try {
|
|
45967
46075
|
const object = await this.__fromJsonLd__Audio__(json, span, options);
|
|
45968
46076
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46218,7 +46326,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
46218
46326
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46219
46327
|
*/
|
|
46220
46328
|
static async fromJsonLd(json, options = {}) {
|
|
46221
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
46329
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46222
46330
|
try {
|
|
46223
46331
|
const object = await this.__fromJsonLd__Ignore__(json, span, options);
|
|
46224
46332
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46477,7 +46585,7 @@ var Block = class Block extends Ignore {
|
|
|
46477
46585
|
* @throws {TypeError} If the given `json` is invalid.
|
|
46478
46586
|
*/
|
|
46479
46587
|
static async fromJsonLd(json, options = {}) {
|
|
46480
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
46588
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
46481
46589
|
try {
|
|
46482
46590
|
const object = await this.__fromJsonLd__Block__(json, span, options);
|
|
46483
46591
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46753,7 +46861,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
46753
46861
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
46754
46862
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
46755
46863
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
46756
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
46864
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
46757
46865
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
46758
46866
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
46759
46867
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -46979,7 +47087,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
46979
47087
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
46980
47088
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
46981
47089
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
46982
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
47090
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
46983
47091
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
46984
47092
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
46985
47093
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -47204,7 +47312,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
47204
47312
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
47205
47313
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
47206
47314
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
47207
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
47315
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
47208
47316
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
47209
47317
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47210
47318
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -47631,7 +47739,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
47631
47739
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47632
47740
|
*/
|
|
47633
47741
|
static async fromJsonLd(json, options = {}) {
|
|
47634
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
47742
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
47635
47743
|
try {
|
|
47636
47744
|
const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
|
|
47637
47745
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -47996,7 +48104,7 @@ var Create = class Create extends Activity {
|
|
|
47996
48104
|
* @throws {TypeError} If the given `json` is invalid.
|
|
47997
48105
|
*/
|
|
47998
48106
|
static async fromJsonLd(json, options = {}) {
|
|
47999
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
48107
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
48000
48108
|
try {
|
|
48001
48109
|
const object = await this.__fromJsonLd__Create__(json, span, options);
|
|
48002
48110
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -48278,7 +48386,7 @@ var Delete = class Delete extends Activity {
|
|
|
48278
48386
|
* @throws {TypeError} If the given `json` is invalid.
|
|
48279
48387
|
*/
|
|
48280
48388
|
static async fromJsonLd(json, options = {}) {
|
|
48281
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
48389
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
48282
48390
|
try {
|
|
48283
48391
|
const object = await this.__fromJsonLd__Delete__(json, span, options);
|
|
48284
48392
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -48537,7 +48645,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
48537
48645
|
* @throws {TypeError} If the given `json` is invalid.
|
|
48538
48646
|
*/
|
|
48539
48647
|
static async fromJsonLd(json, options = {}) {
|
|
48540
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
48648
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
48541
48649
|
try {
|
|
48542
48650
|
const object = await this.__fromJsonLd__Dislike__(json, span, options);
|
|
48543
48651
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -49194,7 +49302,7 @@ var Endpoints = class {
|
|
|
49194
49302
|
* @throws {TypeError} If the given `json` is invalid.
|
|
49195
49303
|
*/
|
|
49196
49304
|
static async fromJsonLd(json, options = {}) {
|
|
49197
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
49305
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
49198
49306
|
try {
|
|
49199
49307
|
const object = await this.__fromJsonLd__Endpoints__(json, span, options);
|
|
49200
49308
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -49588,7 +49696,7 @@ var Event = class Event extends Object$1 {
|
|
|
49588
49696
|
* @throws {TypeError} If the given `json` is invalid.
|
|
49589
49697
|
*/
|
|
49590
49698
|
static async fromJsonLd(json, options = {}) {
|
|
49591
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
49699
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
49592
49700
|
try {
|
|
49593
49701
|
const object = await this.__fromJsonLd__Event__(json, span, options);
|
|
49594
49702
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -49845,7 +49953,7 @@ var Flag = class Flag extends Activity {
|
|
|
49845
49953
|
* @throws {TypeError} If the given `json` is invalid.
|
|
49846
49954
|
*/
|
|
49847
49955
|
static async fromJsonLd(json, options = {}) {
|
|
49848
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
49956
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
49849
49957
|
try {
|
|
49850
49958
|
const object = await this.__fromJsonLd__Flag__(json, span, options);
|
|
49851
49959
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -50106,7 +50214,7 @@ var Follow = class Follow extends Activity {
|
|
|
50106
50214
|
* @throws {TypeError} If the given `json` is invalid.
|
|
50107
50215
|
*/
|
|
50108
50216
|
static async fromJsonLd(json, options = {}) {
|
|
50109
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
50217
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
50110
50218
|
try {
|
|
50111
50219
|
const object = await this.__fromJsonLd__Follow__(json, span, options);
|
|
50112
50220
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -50227,6 +50335,7 @@ var Group = class Group extends Object$1 {
|
|
|
50227
50335
|
#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
50228
50336
|
#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
50229
50337
|
#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
50338
|
+
#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
50230
50339
|
#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
50231
50340
|
#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
|
|
50232
50341
|
#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
|
|
@@ -50444,6 +50553,33 @@ var Group = class Group extends Object$1 {
|
|
|
50444
50553
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
50445
50554
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
50446
50555
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
50556
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
50557
|
+
let copied;
|
|
50558
|
+
let valid = false;
|
|
50559
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
50560
|
+
const array = values.attributionDomains;
|
|
50561
|
+
const test = (v) => typeof v === "string";
|
|
50562
|
+
let checked;
|
|
50563
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
50564
|
+
const input = values.attributionDomains;
|
|
50565
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
50566
|
+
copied = input.slice();
|
|
50567
|
+
valid = true;
|
|
50568
|
+
} else {
|
|
50569
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
50570
|
+
valid: true,
|
|
50571
|
+
sparse: false
|
|
50572
|
+
});
|
|
50573
|
+
if (result.ok) {
|
|
50574
|
+
copied = result.array;
|
|
50575
|
+
valid = true;
|
|
50576
|
+
}
|
|
50577
|
+
}
|
|
50578
|
+
}
|
|
50579
|
+
}
|
|
50580
|
+
if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
50581
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
50582
|
+
}
|
|
50447
50583
|
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) {
|
|
50448
50584
|
this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
50449
50585
|
this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
|
|
@@ -50803,6 +50939,34 @@ var Group = class Group extends Object$1 {
|
|
|
50803
50939
|
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
|
|
50804
50940
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
50805
50941
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
50942
|
+
clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
|
|
50943
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
50944
|
+
let copied;
|
|
50945
|
+
let valid = false;
|
|
50946
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
50947
|
+
const array = values.attributionDomains;
|
|
50948
|
+
const test = (v) => typeof v === "string";
|
|
50949
|
+
let checked;
|
|
50950
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
50951
|
+
const input = values.attributionDomains;
|
|
50952
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
50953
|
+
copied = input.slice();
|
|
50954
|
+
valid = true;
|
|
50955
|
+
} else {
|
|
50956
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
50957
|
+
valid: true,
|
|
50958
|
+
sparse: false
|
|
50959
|
+
});
|
|
50960
|
+
if (result.ok) {
|
|
50961
|
+
copied = result.array;
|
|
50962
|
+
valid = true;
|
|
50963
|
+
}
|
|
50964
|
+
}
|
|
50965
|
+
}
|
|
50966
|
+
}
|
|
50967
|
+
if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
50968
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
50969
|
+
}
|
|
50806
50970
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
50807
50971
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
50808
50972
|
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) {
|
|
@@ -51191,7 +51355,7 @@ var Group = class Group extends Object$1 {
|
|
|
51191
51355
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
51192
51356
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
51193
51357
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
51194
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
51358
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
51195
51359
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
51196
51360
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
51197
51361
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -51489,7 +51653,7 @@ var Group = class Group extends Object$1 {
|
|
|
51489
51653
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
51490
51654
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
51491
51655
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
51492
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
51656
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
51493
51657
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
51494
51658
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
51495
51659
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -51823,7 +51987,7 @@ var Group = class Group extends Object$1 {
|
|
|
51823
51987
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
51824
51988
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
51825
51989
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
51826
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
51990
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
51827
51991
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
51828
51992
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
51829
51993
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -52071,7 +52235,7 @@ var Group = class Group extends Object$1 {
|
|
|
52071
52235
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
52072
52236
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
52073
52237
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
52074
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
52238
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
52075
52239
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
52076
52240
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
52077
52241
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -52316,7 +52480,7 @@ var Group = class Group extends Object$1 {
|
|
|
52316
52480
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
52317
52481
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
52318
52482
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
52319
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
52483
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
52320
52484
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
52321
52485
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
52322
52486
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -52545,7 +52709,7 @@ var Group = class Group extends Object$1 {
|
|
|
52545
52709
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
52546
52710
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
52547
52711
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
52548
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
52712
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
52549
52713
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
52550
52714
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
52551
52715
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -52777,7 +52941,7 @@ var Group = class Group extends Object$1 {
|
|
|
52777
52941
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
52778
52942
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
52779
52943
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
52780
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
52944
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
52781
52945
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
52782
52946
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
52783
52947
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -53007,7 +53171,7 @@ var Group = class Group extends Object$1 {
|
|
|
53007
53171
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
53008
53172
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
53009
53173
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
53010
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
53174
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
53011
53175
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
53012
53176
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
53013
53177
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -53235,7 +53399,7 @@ var Group = class Group extends Object$1 {
|
|
|
53235
53399
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
53236
53400
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
53237
53401
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
53238
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
53402
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
53239
53403
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
53240
53404
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
53241
53405
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -53463,7 +53627,7 @@ var Group = class Group extends Object$1 {
|
|
|
53463
53627
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
53464
53628
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
53465
53629
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
53466
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
53630
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
53467
53631
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
53468
53632
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
53469
53633
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -53688,7 +53852,7 @@ var Group = class Group extends Object$1 {
|
|
|
53688
53852
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
53689
53853
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
53690
53854
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
53691
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
53855
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
53692
53856
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
53693
53857
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
53694
53858
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -53955,11 +54119,20 @@ var Group = class Group extends Object$1 {
|
|
|
53955
54119
|
if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
|
|
53956
54120
|
return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
53957
54121
|
}
|
|
54122
|
+
/** Domains this actor claims as its own, so that Mastodon can credit the
|
|
54123
|
+
* actor on link preview cards that point at one of them. Each value is a
|
|
54124
|
+
* bare host name, without a scheme, port, path, or leading `*.`. Fedify
|
|
54125
|
+
* treats the values as opaque strings and does not normalize or validate
|
|
54126
|
+
* them; applications are responsible for producing normalized host names.
|
|
54127
|
+
*/
|
|
54128
|
+
get attributionDomains() {
|
|
54129
|
+
return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
54130
|
+
}
|
|
53958
54131
|
async #fetchSuccessor(url, options = {}) {
|
|
53959
54132
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
53960
54133
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
53961
54134
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
53962
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
54135
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
53963
54136
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
53964
54137
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
53965
54138
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -54234,7 +54407,7 @@ var Group = class Group extends Object$1 {
|
|
|
54234
54407
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
54235
54408
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
54236
54409
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
54237
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
54410
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
54238
54411
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
54239
54412
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
54240
54413
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -54588,7 +54761,7 @@ var Group = class Group extends Object$1 {
|
|
|
54588
54761
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
54589
54762
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
54590
54763
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
54591
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
54764
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
54592
54765
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
54593
54766
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
54594
54767
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -55115,6 +55288,12 @@ var Group = class Group extends Object$1 {
|
|
|
55115
55288
|
}
|
|
55116
55289
|
if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
55117
55290
|
compactItems = [];
|
|
55291
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
55292
|
+
const item = v;
|
|
55293
|
+
compactItems.push(item);
|
|
55294
|
+
}
|
|
55295
|
+
if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
55296
|
+
compactItems = [];
|
|
55118
55297
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
55119
55298
|
const item = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? formatIri(v) : v instanceof Application ? await v.toJsonLd({
|
|
55120
55299
|
...options,
|
|
@@ -55233,6 +55412,10 @@ var Group = class Group extends Object$1 {
|
|
|
55233
55412
|
"suspended": "toot:suspended",
|
|
55234
55413
|
"memorial": "toot:memorial",
|
|
55235
55414
|
"indexable": "toot:indexable",
|
|
55415
|
+
"attributionDomains": {
|
|
55416
|
+
"@id": "toot:attributionDomains",
|
|
55417
|
+
"@container": "@set"
|
|
55418
|
+
},
|
|
55236
55419
|
"schema": "http://schema.org#",
|
|
55237
55420
|
"PropertyValue": "schema:PropertyValue",
|
|
55238
55421
|
"value": "schema:value",
|
|
@@ -55462,6 +55645,17 @@ var Group = class Group extends Object$1 {
|
|
|
55462
55645
|
}
|
|
55463
55646
|
if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
|
|
55464
55647
|
array = [];
|
|
55648
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
55649
|
+
let element = { "@value": v };
|
|
55650
|
+
if (Array.isArray(element)) {
|
|
55651
|
+
if (element.length < 1) continue;
|
|
55652
|
+
if (element.length == 1) element = element[0];
|
|
55653
|
+
}
|
|
55654
|
+
if (typeof element === "undefined") continue;
|
|
55655
|
+
array.push(element);
|
|
55656
|
+
}
|
|
55657
|
+
if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
|
|
55658
|
+
array = [];
|
|
55465
55659
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
55466
55660
|
let element = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? { "@id": 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));
|
|
55467
55661
|
if (Array.isArray(element)) {
|
|
@@ -55570,6 +55764,10 @@ var Group = class Group extends Object$1 {
|
|
|
55570
55764
|
"suspended": "toot:suspended",
|
|
55571
55765
|
"memorial": "toot:memorial",
|
|
55572
55766
|
"indexable": "toot:indexable",
|
|
55767
|
+
"attributionDomains": {
|
|
55768
|
+
"@id": "toot:attributionDomains",
|
|
55769
|
+
"@container": "@set"
|
|
55770
|
+
},
|
|
55573
55771
|
"schema": "http://schema.org#",
|
|
55574
55772
|
"PropertyValue": "schema:PropertyValue",
|
|
55575
55773
|
"value": "schema:value",
|
|
@@ -55620,7 +55818,7 @@ var Group = class Group extends Object$1 {
|
|
|
55620
55818
|
* @throws {TypeError} If the given `json` is invalid.
|
|
55621
55819
|
*/
|
|
55622
55820
|
static async fromJsonLd(json, options = {}) {
|
|
55623
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
55821
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
55624
55822
|
try {
|
|
55625
55823
|
const object = await this.__fromJsonLd__Group__(json, span, options);
|
|
55626
55824
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -56023,6 +56221,19 @@ var Group = class Group extends Object$1 {
|
|
|
56023
56221
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
56024
56222
|
}
|
|
56025
56223
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
56224
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
56225
|
+
let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
|
|
56226
|
+
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) {
|
|
56227
|
+
if (v == null) continue;
|
|
56228
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
56229
|
+
if (typeof decoded === "undefined") {
|
|
56230
|
+
shouldCacheJsonLd = false;
|
|
56231
|
+
continue;
|
|
56232
|
+
}
|
|
56233
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
56234
|
+
_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
|
|
56235
|
+
}
|
|
56236
|
+
instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
56026
56237
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
56027
56238
|
let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
|
|
56028
56239
|
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) {
|
|
@@ -56114,7 +56325,7 @@ var Group = class Group extends Object$1 {
|
|
|
56114
56325
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
56115
56326
|
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) {
|
|
56116
56327
|
if (v == null) continue;
|
|
56117
|
-
const decoded = v["@value"];
|
|
56328
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
56118
56329
|
if (typeof decoded === "undefined") {
|
|
56119
56330
|
shouldCacheJsonLd = false;
|
|
56120
56331
|
continue;
|
|
@@ -56263,6 +56474,11 @@ var Group = class Group extends Object$1 {
|
|
|
56263
56474
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
56264
56475
|
} : v);
|
|
56265
56476
|
if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
56477
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
|
|
56478
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
56479
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
56480
|
+
} : v);
|
|
56481
|
+
if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
56266
56482
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
|
|
56267
56483
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
56268
56484
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
@@ -56897,7 +57113,7 @@ var Link = class Link {
|
|
|
56897
57113
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
56898
57114
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
56899
57115
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
56900
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
57116
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
56901
57117
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
56902
57118
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
56903
57119
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -57411,7 +57627,7 @@ var Link = class Link {
|
|
|
57411
57627
|
* @throws {TypeError} If the given `json` is invalid.
|
|
57412
57628
|
*/
|
|
57413
57629
|
static async fromJsonLd(json, options = {}) {
|
|
57414
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
57630
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
57415
57631
|
try {
|
|
57416
57632
|
const object = await this.__fromJsonLd__Link__(json, span, options);
|
|
57417
57633
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -57483,7 +57699,7 @@ var Link = class Link {
|
|
|
57483
57699
|
let _2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel__array = values["https://www.w3.org/ns/activitystreams#rel"];
|
|
57484
57700
|
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) {
|
|
57485
57701
|
if (v == null) continue;
|
|
57486
|
-
const decoded = v["@value"];
|
|
57702
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
57487
57703
|
if (typeof decoded === "undefined") {
|
|
57488
57704
|
shouldCacheJsonLd = false;
|
|
57489
57705
|
continue;
|
|
@@ -57496,7 +57712,7 @@ var Link = class Link {
|
|
|
57496
57712
|
let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
|
|
57497
57713
|
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) {
|
|
57498
57714
|
if (v == null) continue;
|
|
57499
|
-
const decoded = v["@value"];
|
|
57715
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
57500
57716
|
if (typeof decoded === "undefined") {
|
|
57501
57717
|
shouldCacheJsonLd = false;
|
|
57502
57718
|
continue;
|
|
@@ -57509,7 +57725,7 @@ var Link = class Link {
|
|
|
57509
57725
|
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
|
|
57510
57726
|
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) {
|
|
57511
57727
|
if (v == null) continue;
|
|
57512
|
-
const decoded = v["@value"];
|
|
57728
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
57513
57729
|
if (typeof decoded === "undefined") {
|
|
57514
57730
|
shouldCacheJsonLd = false;
|
|
57515
57731
|
continue;
|
|
@@ -57941,7 +58157,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
57941
58157
|
* @throws {TypeError} If the given `json` is invalid.
|
|
57942
58158
|
*/
|
|
57943
58159
|
static async fromJsonLd(json, options = {}) {
|
|
57944
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
58160
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
57945
58161
|
try {
|
|
57946
58162
|
const object = await this.__fromJsonLd__Hashtag__(json, span, options);
|
|
57947
58163
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -58212,7 +58428,7 @@ var Image = class Image extends Document {
|
|
|
58212
58428
|
* @throws {TypeError} If the given `json` is invalid.
|
|
58213
58429
|
*/
|
|
58214
58430
|
static async fromJsonLd(json, options = {}) {
|
|
58215
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
58431
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
58216
58432
|
try {
|
|
58217
58433
|
const object = await this.__fromJsonLd__Image__(json, span, options);
|
|
58218
58434
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -58469,7 +58685,7 @@ var Offer = class Offer extends Activity {
|
|
|
58469
58685
|
* @throws {TypeError} If the given `json` is invalid.
|
|
58470
58686
|
*/
|
|
58471
58687
|
static async fromJsonLd(json, options = {}) {
|
|
58472
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
58688
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
58473
58689
|
try {
|
|
58474
58690
|
const object = await this.__fromJsonLd__Offer__(json, span, options);
|
|
58475
58691
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -58726,7 +58942,7 @@ var Invite = class Invite extends Offer {
|
|
|
58726
58942
|
* @throws {TypeError} If the given `json` is invalid.
|
|
58727
58943
|
*/
|
|
58728
58944
|
static async fromJsonLd(json, options = {}) {
|
|
58729
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
58945
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
58730
58946
|
try {
|
|
58731
58947
|
const object = await this.__fromJsonLd__Invite__(json, span, options);
|
|
58732
58948
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -58982,7 +59198,7 @@ var Join = class Join extends Activity {
|
|
|
58982
59198
|
* @throws {TypeError} If the given `json` is invalid.
|
|
58983
59199
|
*/
|
|
58984
59200
|
static async fromJsonLd(json, options = {}) {
|
|
58985
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
59201
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
58986
59202
|
try {
|
|
58987
59203
|
const object = await this.__fromJsonLd__Join__(json, span, options);
|
|
58988
59204
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -59238,7 +59454,7 @@ var Leave = class Leave extends Activity {
|
|
|
59238
59454
|
* @throws {TypeError} If the given `json` is invalid.
|
|
59239
59455
|
*/
|
|
59240
59456
|
static async fromJsonLd(json, options = {}) {
|
|
59241
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
59457
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
59242
59458
|
try {
|
|
59243
59459
|
const object = await this.__fromJsonLd__Leave__(json, span, options);
|
|
59244
59460
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -59498,7 +59714,7 @@ var Like = class Like extends Activity {
|
|
|
59498
59714
|
* @throws {TypeError} If the given `json` is invalid.
|
|
59499
59715
|
*/
|
|
59500
59716
|
static async fromJsonLd(json, options = {}) {
|
|
59501
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
59717
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
59502
59718
|
try {
|
|
59503
59719
|
const object = await this.__fromJsonLd__Like__(json, span, options);
|
|
59504
59720
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -59753,7 +59969,7 @@ var Listen = class Listen extends Activity {
|
|
|
59753
59969
|
* @throws {TypeError} If the given `json` is invalid.
|
|
59754
59970
|
*/
|
|
59755
59971
|
static async fromJsonLd(json, options = {}) {
|
|
59756
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
59972
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
59757
59973
|
try {
|
|
59758
59974
|
const object = await this.__fromJsonLd__Listen__(json, span, options);
|
|
59759
59975
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -60011,7 +60227,7 @@ var Mention = class Mention extends Link {
|
|
|
60011
60227
|
* @throws {TypeError} If the given `json` is invalid.
|
|
60012
60228
|
*/
|
|
60013
60229
|
static async fromJsonLd(json, options = {}) {
|
|
60014
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
60230
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
60015
60231
|
try {
|
|
60016
60232
|
const object = await this.__fromJsonLd__Mention__(json, span, options);
|
|
60017
60233
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -60268,7 +60484,7 @@ var Move = class Move extends Activity {
|
|
|
60268
60484
|
* @throws {TypeError} If the given `json` is invalid.
|
|
60269
60485
|
*/
|
|
60270
60486
|
static async fromJsonLd(json, options = {}) {
|
|
60271
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
60487
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
60272
60488
|
try {
|
|
60273
60489
|
const object = await this.__fromJsonLd__Move__(json, span, options);
|
|
60274
60490
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -60536,7 +60752,7 @@ var Note = class Note extends Object$1 {
|
|
|
60536
60752
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
60537
60753
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
60538
60754
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
60539
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
60755
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
60540
60756
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
60541
60757
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
60542
60758
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -60779,7 +60995,7 @@ var Note = class Note extends Object$1 {
|
|
|
60779
60995
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
60780
60996
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
60781
60997
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
60782
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
60998
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
60783
60999
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
60784
61000
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
60785
61001
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -61206,7 +61422,7 @@ var Note = class Note extends Object$1 {
|
|
|
61206
61422
|
* @throws {TypeError} If the given `json` is invalid.
|
|
61207
61423
|
*/
|
|
61208
61424
|
static async fromJsonLd(json, options = {}) {
|
|
61209
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
61425
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
61210
61426
|
try {
|
|
61211
61427
|
const object = await this.__fromJsonLd__Note__(json, span, options);
|
|
61212
61428
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -61559,7 +61775,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
61559
61775
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
61560
61776
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
61561
61777
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
61562
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
61778
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
61563
61779
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
61564
61780
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
61565
61781
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -61993,7 +62209,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
61993
62209
|
* @throws {TypeError} If the given `json` is invalid.
|
|
61994
62210
|
*/
|
|
61995
62211
|
static async fromJsonLd(json, options = {}) {
|
|
61996
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
62212
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
61997
62213
|
try {
|
|
61998
62214
|
const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
|
|
61999
62215
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -62236,6 +62452,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
62236
62452
|
#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
62237
62453
|
#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
62238
62454
|
#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
62455
|
+
#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
62239
62456
|
#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
62240
62457
|
#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
|
|
62241
62458
|
#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
|
|
@@ -62453,6 +62670,33 @@ var Organization = class Organization extends Object$1 {
|
|
|
62453
62670
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
62454
62671
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
62455
62672
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
62673
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
62674
|
+
let copied;
|
|
62675
|
+
let valid = false;
|
|
62676
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
62677
|
+
const array = values.attributionDomains;
|
|
62678
|
+
const test = (v) => typeof v === "string";
|
|
62679
|
+
let checked;
|
|
62680
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
62681
|
+
const input = values.attributionDomains;
|
|
62682
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
62683
|
+
copied = input.slice();
|
|
62684
|
+
valid = true;
|
|
62685
|
+
} else {
|
|
62686
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
62687
|
+
valid: true,
|
|
62688
|
+
sparse: false
|
|
62689
|
+
});
|
|
62690
|
+
if (result.ok) {
|
|
62691
|
+
copied = result.array;
|
|
62692
|
+
valid = true;
|
|
62693
|
+
}
|
|
62694
|
+
}
|
|
62695
|
+
}
|
|
62696
|
+
}
|
|
62697
|
+
if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
62698
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
62699
|
+
}
|
|
62456
62700
|
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) {
|
|
62457
62701
|
this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
62458
62702
|
this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
|
|
@@ -62812,6 +63056,34 @@ var Organization = class Organization extends Object$1 {
|
|
|
62812
63056
|
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
|
|
62813
63057
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
62814
63058
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
63059
|
+
clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
|
|
63060
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
63061
|
+
let copied;
|
|
63062
|
+
let valid = false;
|
|
63063
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
63064
|
+
const array = values.attributionDomains;
|
|
63065
|
+
const test = (v) => typeof v === "string";
|
|
63066
|
+
let checked;
|
|
63067
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
63068
|
+
const input = values.attributionDomains;
|
|
63069
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
63070
|
+
copied = input.slice();
|
|
63071
|
+
valid = true;
|
|
63072
|
+
} else {
|
|
63073
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
63074
|
+
valid: true,
|
|
63075
|
+
sparse: false
|
|
63076
|
+
});
|
|
63077
|
+
if (result.ok) {
|
|
63078
|
+
copied = result.array;
|
|
63079
|
+
valid = true;
|
|
63080
|
+
}
|
|
63081
|
+
}
|
|
63082
|
+
}
|
|
63083
|
+
}
|
|
63084
|
+
if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
63085
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
63086
|
+
}
|
|
62815
63087
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
62816
63088
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
62817
63089
|
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) {
|
|
@@ -63200,7 +63472,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
63200
63472
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
63201
63473
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
63202
63474
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
63203
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
63475
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
63204
63476
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
63205
63477
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
63206
63478
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -63498,7 +63770,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
63498
63770
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
63499
63771
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
63500
63772
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
63501
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
63773
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
63502
63774
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
63503
63775
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
63504
63776
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -63832,7 +64104,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
63832
64104
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
63833
64105
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
63834
64106
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
63835
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
64107
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
63836
64108
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
63837
64109
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
63838
64110
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -64080,7 +64352,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
64080
64352
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
64081
64353
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
64082
64354
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
64083
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
64355
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
64084
64356
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
64085
64357
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
64086
64358
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -64325,7 +64597,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
64325
64597
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
64326
64598
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
64327
64599
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
64328
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
64600
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
64329
64601
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
64330
64602
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
64331
64603
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -64554,7 +64826,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
64554
64826
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
64555
64827
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
64556
64828
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
64557
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
64829
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
64558
64830
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
64559
64831
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
64560
64832
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -64786,7 +65058,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
64786
65058
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
64787
65059
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
64788
65060
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
64789
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
65061
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
64790
65062
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
64791
65063
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
64792
65064
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -65016,7 +65288,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
65016
65288
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
65017
65289
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
65018
65290
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
65019
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
65291
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
65020
65292
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
65021
65293
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
65022
65294
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -65244,7 +65516,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
65244
65516
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
65245
65517
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
65246
65518
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
65247
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
65519
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
65248
65520
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
65249
65521
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
65250
65522
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -65472,7 +65744,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
65472
65744
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
65473
65745
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
65474
65746
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
65475
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
65747
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
65476
65748
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
65477
65749
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
65478
65750
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -65697,7 +65969,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
65697
65969
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
65698
65970
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
65699
65971
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
65700
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
65972
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
65701
65973
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
65702
65974
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
65703
65975
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -65964,11 +66236,20 @@ var Organization = class Organization extends Object$1 {
|
|
|
65964
66236
|
if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
|
|
65965
66237
|
return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
65966
66238
|
}
|
|
66239
|
+
/** Domains this actor claims as its own, so that Mastodon can credit the
|
|
66240
|
+
* actor on link preview cards that point at one of them. Each value is a
|
|
66241
|
+
* bare host name, without a scheme, port, path, or leading `*.`. Fedify
|
|
66242
|
+
* treats the values as opaque strings and does not normalize or validate
|
|
66243
|
+
* them; applications are responsible for producing normalized host names.
|
|
66244
|
+
*/
|
|
66245
|
+
get attributionDomains() {
|
|
66246
|
+
return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
66247
|
+
}
|
|
65967
66248
|
async #fetchSuccessor(url, options = {}) {
|
|
65968
66249
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
65969
66250
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
65970
66251
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
65971
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
66252
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
65972
66253
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
65973
66254
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
65974
66255
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -66243,7 +66524,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
66243
66524
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
66244
66525
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
66245
66526
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
66246
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
66527
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
66247
66528
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
66248
66529
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
66249
66530
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -66597,7 +66878,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
66597
66878
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
66598
66879
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
66599
66880
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
66600
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
66881
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
66601
66882
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
66602
66883
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
66603
66884
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -67124,6 +67405,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
67124
67405
|
}
|
|
67125
67406
|
if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
67126
67407
|
compactItems = [];
|
|
67408
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
67409
|
+
const item = v;
|
|
67410
|
+
compactItems.push(item);
|
|
67411
|
+
}
|
|
67412
|
+
if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
67413
|
+
compactItems = [];
|
|
67127
67414
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
67128
67415
|
const item = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? formatIri(v) : v instanceof Application ? await v.toJsonLd({
|
|
67129
67416
|
...options,
|
|
@@ -67242,6 +67529,10 @@ var Organization = class Organization extends Object$1 {
|
|
|
67242
67529
|
"suspended": "toot:suspended",
|
|
67243
67530
|
"memorial": "toot:memorial",
|
|
67244
67531
|
"indexable": "toot:indexable",
|
|
67532
|
+
"attributionDomains": {
|
|
67533
|
+
"@id": "toot:attributionDomains",
|
|
67534
|
+
"@container": "@set"
|
|
67535
|
+
},
|
|
67245
67536
|
"schema": "http://schema.org#",
|
|
67246
67537
|
"PropertyValue": "schema:PropertyValue",
|
|
67247
67538
|
"value": "schema:value",
|
|
@@ -67471,6 +67762,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
67471
67762
|
}
|
|
67472
67763
|
if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
|
|
67473
67764
|
array = [];
|
|
67765
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
67766
|
+
let element = { "@value": v };
|
|
67767
|
+
if (Array.isArray(element)) {
|
|
67768
|
+
if (element.length < 1) continue;
|
|
67769
|
+
if (element.length == 1) element = element[0];
|
|
67770
|
+
}
|
|
67771
|
+
if (typeof element === "undefined") continue;
|
|
67772
|
+
array.push(element);
|
|
67773
|
+
}
|
|
67774
|
+
if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
|
|
67775
|
+
array = [];
|
|
67474
67776
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
67475
67777
|
let element = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? { "@id": 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));
|
|
67476
67778
|
if (Array.isArray(element)) {
|
|
@@ -67579,6 +67881,10 @@ var Organization = class Organization extends Object$1 {
|
|
|
67579
67881
|
"suspended": "toot:suspended",
|
|
67580
67882
|
"memorial": "toot:memorial",
|
|
67581
67883
|
"indexable": "toot:indexable",
|
|
67884
|
+
"attributionDomains": {
|
|
67885
|
+
"@id": "toot:attributionDomains",
|
|
67886
|
+
"@container": "@set"
|
|
67887
|
+
},
|
|
67582
67888
|
"schema": "http://schema.org#",
|
|
67583
67889
|
"PropertyValue": "schema:PropertyValue",
|
|
67584
67890
|
"value": "schema:value",
|
|
@@ -67629,7 +67935,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
67629
67935
|
* @throws {TypeError} If the given `json` is invalid.
|
|
67630
67936
|
*/
|
|
67631
67937
|
static async fromJsonLd(json, options = {}) {
|
|
67632
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
67938
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
67633
67939
|
try {
|
|
67634
67940
|
const object = await this.__fromJsonLd__Organization__(json, span, options);
|
|
67635
67941
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -68032,6 +68338,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
68032
68338
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
68033
68339
|
}
|
|
68034
68340
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
68341
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
68342
|
+
let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
|
|
68343
|
+
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) {
|
|
68344
|
+
if (v == null) continue;
|
|
68345
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
68346
|
+
if (typeof decoded === "undefined") {
|
|
68347
|
+
shouldCacheJsonLd = false;
|
|
68348
|
+
continue;
|
|
68349
|
+
}
|
|
68350
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
68351
|
+
_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
|
|
68352
|
+
}
|
|
68353
|
+
instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
68035
68354
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
68036
68355
|
let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
|
|
68037
68356
|
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) {
|
|
@@ -68123,7 +68442,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
68123
68442
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
68124
68443
|
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) {
|
|
68125
68444
|
if (v == null) continue;
|
|
68126
|
-
const decoded = v["@value"];
|
|
68445
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
68127
68446
|
if (typeof decoded === "undefined") {
|
|
68128
68447
|
shouldCacheJsonLd = false;
|
|
68129
68448
|
continue;
|
|
@@ -68272,6 +68591,11 @@ var Organization = class Organization extends Object$1 {
|
|
|
68272
68591
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
68273
68592
|
} : v);
|
|
68274
68593
|
if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
68594
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
|
|
68595
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
68596
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
68597
|
+
} : v);
|
|
68598
|
+
if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
68275
68599
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
|
|
68276
68600
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
68277
68601
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
@@ -68502,7 +68826,7 @@ var Page = class Page extends Document {
|
|
|
68502
68826
|
* @throws {TypeError} If the given `json` is invalid.
|
|
68503
68827
|
*/
|
|
68504
68828
|
static async fromJsonLd(json, options = {}) {
|
|
68505
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
68829
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
68506
68830
|
try {
|
|
68507
68831
|
const object = await this.__fromJsonLd__Page__(json, span, options);
|
|
68508
68832
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -68623,6 +68947,7 @@ var Person = class Person extends Object$1 {
|
|
|
68623
68947
|
#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
68624
68948
|
#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
68625
68949
|
#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
68950
|
+
#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
68626
68951
|
#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
68627
68952
|
#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
|
|
68628
68953
|
#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
|
|
@@ -68840,6 +69165,33 @@ var Person = class Person extends Object$1 {
|
|
|
68840
69165
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
68841
69166
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
68842
69167
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
69168
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
69169
|
+
let copied;
|
|
69170
|
+
let valid = false;
|
|
69171
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
69172
|
+
const array = values.attributionDomains;
|
|
69173
|
+
const test = (v) => typeof v === "string";
|
|
69174
|
+
let checked;
|
|
69175
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
69176
|
+
const input = values.attributionDomains;
|
|
69177
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
69178
|
+
copied = input.slice();
|
|
69179
|
+
valid = true;
|
|
69180
|
+
} else {
|
|
69181
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
69182
|
+
valid: true,
|
|
69183
|
+
sparse: false
|
|
69184
|
+
});
|
|
69185
|
+
if (result.ok) {
|
|
69186
|
+
copied = result.array;
|
|
69187
|
+
valid = true;
|
|
69188
|
+
}
|
|
69189
|
+
}
|
|
69190
|
+
}
|
|
69191
|
+
}
|
|
69192
|
+
if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
69193
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
69194
|
+
}
|
|
68843
69195
|
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) {
|
|
68844
69196
|
this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
68845
69197
|
this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
|
|
@@ -69199,6 +69551,34 @@ var Person = class Person extends Object$1 {
|
|
|
69199
69551
|
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
|
|
69200
69552
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
69201
69553
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
69554
|
+
clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
|
|
69555
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
69556
|
+
let copied;
|
|
69557
|
+
let valid = false;
|
|
69558
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
69559
|
+
const array = values.attributionDomains;
|
|
69560
|
+
const test = (v) => typeof v === "string";
|
|
69561
|
+
let checked;
|
|
69562
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
69563
|
+
const input = values.attributionDomains;
|
|
69564
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
69565
|
+
copied = input.slice();
|
|
69566
|
+
valid = true;
|
|
69567
|
+
} else {
|
|
69568
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
69569
|
+
valid: true,
|
|
69570
|
+
sparse: false
|
|
69571
|
+
});
|
|
69572
|
+
if (result.ok) {
|
|
69573
|
+
copied = result.array;
|
|
69574
|
+
valid = true;
|
|
69575
|
+
}
|
|
69576
|
+
}
|
|
69577
|
+
}
|
|
69578
|
+
}
|
|
69579
|
+
if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
69580
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
69581
|
+
}
|
|
69202
69582
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
69203
69583
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
69204
69584
|
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) {
|
|
@@ -69587,7 +69967,7 @@ var Person = class Person extends Object$1 {
|
|
|
69587
69967
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
69588
69968
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
69589
69969
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
69590
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
69970
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
69591
69971
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
69592
69972
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
69593
69973
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -69885,7 +70265,7 @@ var Person = class Person extends Object$1 {
|
|
|
69885
70265
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
69886
70266
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
69887
70267
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
69888
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
70268
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
69889
70269
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
69890
70270
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
69891
70271
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -70219,7 +70599,7 @@ var Person = class Person extends Object$1 {
|
|
|
70219
70599
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
70220
70600
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
70221
70601
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
70222
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
70602
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
70223
70603
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
70224
70604
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
70225
70605
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -70467,7 +70847,7 @@ var Person = class Person extends Object$1 {
|
|
|
70467
70847
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
70468
70848
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
70469
70849
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
70470
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
70850
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
70471
70851
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
70472
70852
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
70473
70853
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -70712,7 +71092,7 @@ var Person = class Person extends Object$1 {
|
|
|
70712
71092
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
70713
71093
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
70714
71094
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
70715
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
71095
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
70716
71096
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
70717
71097
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
70718
71098
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -70941,7 +71321,7 @@ var Person = class Person extends Object$1 {
|
|
|
70941
71321
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
70942
71322
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
70943
71323
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
70944
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
71324
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
70945
71325
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
70946
71326
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
70947
71327
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -71173,7 +71553,7 @@ var Person = class Person extends Object$1 {
|
|
|
71173
71553
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
71174
71554
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
71175
71555
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
71176
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
71556
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
71177
71557
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
71178
71558
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
71179
71559
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -71403,7 +71783,7 @@ var Person = class Person extends Object$1 {
|
|
|
71403
71783
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
71404
71784
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
71405
71785
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
71406
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
71786
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
71407
71787
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
71408
71788
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
71409
71789
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -71631,7 +72011,7 @@ var Person = class Person extends Object$1 {
|
|
|
71631
72011
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
71632
72012
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
71633
72013
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
71634
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
72014
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
71635
72015
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
71636
72016
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
71637
72017
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -71859,7 +72239,7 @@ var Person = class Person extends Object$1 {
|
|
|
71859
72239
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
71860
72240
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
71861
72241
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
71862
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
72242
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
71863
72243
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
71864
72244
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
71865
72245
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -72084,7 +72464,7 @@ var Person = class Person extends Object$1 {
|
|
|
72084
72464
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
72085
72465
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
72086
72466
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
72087
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
72467
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
72088
72468
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
72089
72469
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
72090
72470
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -72351,11 +72731,20 @@ var Person = class Person extends Object$1 {
|
|
|
72351
72731
|
if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
|
|
72352
72732
|
return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
72353
72733
|
}
|
|
72734
|
+
/** Domains this actor claims as its own, so that Mastodon can credit the
|
|
72735
|
+
* actor on link preview cards that point at one of them. Each value is a
|
|
72736
|
+
* bare host name, without a scheme, port, path, or leading `*.`. Fedify
|
|
72737
|
+
* treats the values as opaque strings and does not normalize or validate
|
|
72738
|
+
* them; applications are responsible for producing normalized host names.
|
|
72739
|
+
*/
|
|
72740
|
+
get attributionDomains() {
|
|
72741
|
+
return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
72742
|
+
}
|
|
72354
72743
|
async #fetchSuccessor(url, options = {}) {
|
|
72355
72744
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
72356
72745
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
72357
72746
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
72358
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
72747
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
72359
72748
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
72360
72749
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
72361
72750
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -72630,7 +73019,7 @@ var Person = class Person extends Object$1 {
|
|
|
72630
73019
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
72631
73020
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
72632
73021
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
72633
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
73022
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
72634
73023
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
72635
73024
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
72636
73025
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -72984,7 +73373,7 @@ var Person = class Person extends Object$1 {
|
|
|
72984
73373
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
72985
73374
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
72986
73375
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
72987
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
73376
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
72988
73377
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
72989
73378
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
72990
73379
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -73511,6 +73900,12 @@ var Person = class Person extends Object$1 {
|
|
|
73511
73900
|
}
|
|
73512
73901
|
if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
73513
73902
|
compactItems = [];
|
|
73903
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
73904
|
+
const item = v;
|
|
73905
|
+
compactItems.push(item);
|
|
73906
|
+
}
|
|
73907
|
+
if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
73908
|
+
compactItems = [];
|
|
73514
73909
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
73515
73910
|
const item = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? formatIri(v) : v instanceof Application ? await v.toJsonLd({
|
|
73516
73911
|
...options,
|
|
@@ -73629,6 +74024,10 @@ var Person = class Person extends Object$1 {
|
|
|
73629
74024
|
"suspended": "toot:suspended",
|
|
73630
74025
|
"memorial": "toot:memorial",
|
|
73631
74026
|
"indexable": "toot:indexable",
|
|
74027
|
+
"attributionDomains": {
|
|
74028
|
+
"@id": "toot:attributionDomains",
|
|
74029
|
+
"@container": "@set"
|
|
74030
|
+
},
|
|
73632
74031
|
"schema": "http://schema.org#",
|
|
73633
74032
|
"PropertyValue": "schema:PropertyValue",
|
|
73634
74033
|
"value": "schema:value",
|
|
@@ -73858,6 +74257,17 @@ var Person = class Person extends Object$1 {
|
|
|
73858
74257
|
}
|
|
73859
74258
|
if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
|
|
73860
74259
|
array = [];
|
|
74260
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
74261
|
+
let element = { "@value": v };
|
|
74262
|
+
if (Array.isArray(element)) {
|
|
74263
|
+
if (element.length < 1) continue;
|
|
74264
|
+
if (element.length == 1) element = element[0];
|
|
74265
|
+
}
|
|
74266
|
+
if (typeof element === "undefined") continue;
|
|
74267
|
+
array.push(element);
|
|
74268
|
+
}
|
|
74269
|
+
if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
|
|
74270
|
+
array = [];
|
|
73861
74271
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
73862
74272
|
let element = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? { "@id": 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));
|
|
73863
74273
|
if (Array.isArray(element)) {
|
|
@@ -73966,6 +74376,10 @@ var Person = class Person extends Object$1 {
|
|
|
73966
74376
|
"suspended": "toot:suspended",
|
|
73967
74377
|
"memorial": "toot:memorial",
|
|
73968
74378
|
"indexable": "toot:indexable",
|
|
74379
|
+
"attributionDomains": {
|
|
74380
|
+
"@id": "toot:attributionDomains",
|
|
74381
|
+
"@container": "@set"
|
|
74382
|
+
},
|
|
73969
74383
|
"schema": "http://schema.org#",
|
|
73970
74384
|
"PropertyValue": "schema:PropertyValue",
|
|
73971
74385
|
"value": "schema:value",
|
|
@@ -74016,7 +74430,7 @@ var Person = class Person extends Object$1 {
|
|
|
74016
74430
|
* @throws {TypeError} If the given `json` is invalid.
|
|
74017
74431
|
*/
|
|
74018
74432
|
static async fromJsonLd(json, options = {}) {
|
|
74019
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
74433
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
74020
74434
|
try {
|
|
74021
74435
|
const object = await this.__fromJsonLd__Person__(json, span, options);
|
|
74022
74436
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -74419,6 +74833,19 @@ var Person = class Person extends Object$1 {
|
|
|
74419
74833
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
74420
74834
|
}
|
|
74421
74835
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
74836
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
74837
|
+
let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
|
|
74838
|
+
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) {
|
|
74839
|
+
if (v == null) continue;
|
|
74840
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
74841
|
+
if (typeof decoded === "undefined") {
|
|
74842
|
+
shouldCacheJsonLd = false;
|
|
74843
|
+
continue;
|
|
74844
|
+
}
|
|
74845
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
74846
|
+
_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
|
|
74847
|
+
}
|
|
74848
|
+
instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
74422
74849
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
74423
74850
|
let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
|
|
74424
74851
|
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) {
|
|
@@ -74510,7 +74937,7 @@ var Person = class Person extends Object$1 {
|
|
|
74510
74937
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
74511
74938
|
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) {
|
|
74512
74939
|
if (v == null) continue;
|
|
74513
|
-
const decoded = v["@value"];
|
|
74940
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
74514
74941
|
if (typeof decoded === "undefined") {
|
|
74515
74942
|
shouldCacheJsonLd = false;
|
|
74516
74943
|
continue;
|
|
@@ -74659,6 +75086,11 @@ var Person = class Person extends Object$1 {
|
|
|
74659
75086
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
74660
75087
|
} : v);
|
|
74661
75088
|
if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
75089
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
|
|
75090
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
75091
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
75092
|
+
} : v);
|
|
75093
|
+
if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
74662
75094
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
|
|
74663
75095
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
74664
75096
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
@@ -75117,7 +75549,7 @@ var Place = class Place extends Object$1 {
|
|
|
75117
75549
|
* @throws {TypeError} If the given `json` is invalid.
|
|
75118
75550
|
*/
|
|
75119
75551
|
static async fromJsonLd(json, options = {}) {
|
|
75120
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
75552
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
75121
75553
|
try {
|
|
75122
75554
|
const object = await this.__fromJsonLd__Place__(json, span, options);
|
|
75123
75555
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -75452,7 +75884,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
75452
75884
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
75453
75885
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
75454
75886
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
75455
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
75887
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
75456
75888
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
75457
75889
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
75458
75890
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -75784,7 +76216,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
75784
76216
|
* @throws {TypeError} If the given `json` is invalid.
|
|
75785
76217
|
*/
|
|
75786
76218
|
static async fromJsonLd(json, options = {}) {
|
|
75787
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
76219
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
75788
76220
|
try {
|
|
75789
76221
|
const object = await this.__fromJsonLd__Profile__(json, span, options);
|
|
75790
76222
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -76249,7 +76681,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
76249
76681
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
76250
76682
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
76251
76683
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
76252
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
76684
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
76253
76685
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
76254
76686
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
76255
76687
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -76480,7 +76912,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
76480
76912
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
76481
76913
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
76482
76914
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
76483
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
76915
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
76484
76916
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
76485
76917
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
76486
76918
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -76727,7 +77159,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
76727
77159
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
76728
77160
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
76729
77161
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
76730
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
77162
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
76731
77163
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
76732
77164
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
76733
77165
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -76970,7 +77402,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
76970
77402
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
76971
77403
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
76972
77404
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
76973
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
77405
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
76974
77406
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
76975
77407
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
76976
77408
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -77383,7 +77815,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
77383
77815
|
* @throws {TypeError} If the given `json` is invalid.
|
|
77384
77816
|
*/
|
|
77385
77817
|
static async fromJsonLd(json, options = {}) {
|
|
77386
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
77818
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
77387
77819
|
try {
|
|
77388
77820
|
const object = await this.__fromJsonLd__Question__(json, span, options);
|
|
77389
77821
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -77799,7 +78231,7 @@ var Read = class Read extends Activity {
|
|
|
77799
78231
|
* @throws {TypeError} If the given `json` is invalid.
|
|
77800
78232
|
*/
|
|
77801
78233
|
static async fromJsonLd(json, options = {}) {
|
|
77802
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
78234
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
77803
78235
|
try {
|
|
77804
78236
|
const object = await this.__fromJsonLd__Read__(json, span, options);
|
|
77805
78237
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -78055,7 +78487,7 @@ var Reject = class Reject extends Activity {
|
|
|
78055
78487
|
* @throws {TypeError} If the given `json` is invalid.
|
|
78056
78488
|
*/
|
|
78057
78489
|
static async fromJsonLd(json, options = {}) {
|
|
78058
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
78490
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
78059
78491
|
try {
|
|
78060
78492
|
const object = await this.__fromJsonLd__Reject__(json, span, options);
|
|
78061
78493
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -78458,7 +78890,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
78458
78890
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
78459
78891
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
78460
78892
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
78461
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
78893
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
78462
78894
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
78463
78895
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
78464
78896
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -78686,7 +79118,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
78686
79118
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
78687
79119
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
78688
79120
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
78689
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
79121
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
78690
79122
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
78691
79123
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
78692
79124
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -78984,7 +79416,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
78984
79416
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
78985
79417
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
78986
79418
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
78987
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
79419
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
78988
79420
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
78989
79421
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
78990
79422
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -79434,7 +79866,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
79434
79866
|
* @throws {TypeError} If the given `json` is invalid.
|
|
79435
79867
|
*/
|
|
79436
79868
|
static async fromJsonLd(json, options = {}) {
|
|
79437
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
79869
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
79438
79870
|
try {
|
|
79439
79871
|
const object = await this.__fromJsonLd__Relationship__(json, span, options);
|
|
79440
79872
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -79771,7 +80203,7 @@ var Remove = class Remove extends Activity {
|
|
|
79771
80203
|
* @throws {TypeError} If the given `json` is invalid.
|
|
79772
80204
|
*/
|
|
79773
80205
|
static async fromJsonLd(json, options = {}) {
|
|
79774
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
80206
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
79775
80207
|
try {
|
|
79776
80208
|
const object = await this.__fromJsonLd__Remove__(json, span, options);
|
|
79777
80209
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -79892,6 +80324,7 @@ var Service = class Service extends Object$1 {
|
|
|
79892
80324
|
#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [];
|
|
79893
80325
|
#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
|
|
79894
80326
|
#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
|
|
80327
|
+
#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
79895
80328
|
#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
79896
80329
|
#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set();
|
|
79897
80330
|
#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
|
|
@@ -80109,6 +80542,33 @@ var Service = class Service extends Object$1 {
|
|
|
80109
80542
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
80110
80543
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
80111
80544
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
80545
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
80546
|
+
let copied;
|
|
80547
|
+
let valid = false;
|
|
80548
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
80549
|
+
const array = values.attributionDomains;
|
|
80550
|
+
const test = (v) => typeof v === "string";
|
|
80551
|
+
let checked;
|
|
80552
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
80553
|
+
const input = values.attributionDomains;
|
|
80554
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
80555
|
+
copied = input.slice();
|
|
80556
|
+
valid = true;
|
|
80557
|
+
} else {
|
|
80558
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
80559
|
+
valid: true,
|
|
80560
|
+
sparse: false
|
|
80561
|
+
});
|
|
80562
|
+
if (result.ok) {
|
|
80563
|
+
copied = result.array;
|
|
80564
|
+
valid = true;
|
|
80565
|
+
}
|
|
80566
|
+
}
|
|
80567
|
+
}
|
|
80568
|
+
}
|
|
80569
|
+
if (valid) this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
80570
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
80571
|
+
}
|
|
80112
80572
|
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) {
|
|
80113
80573
|
this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
80114
80574
|
this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.add(0);
|
|
@@ -80468,6 +80928,34 @@ var Service = class Service extends Object$1 {
|
|
|
80468
80928
|
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < vocabSparseArrayMinimumLength ? this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice() : vocabCopyPropertyArray(this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable);
|
|
80469
80929
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
80470
80930
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
80931
|
+
clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length < vocabSparseArrayMinimumLength ? this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.slice() : vocabCopyPropertyArray(this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains);
|
|
80932
|
+
if ("attributionDomains" in values && values.attributionDomains != null) {
|
|
80933
|
+
let copied;
|
|
80934
|
+
let valid = false;
|
|
80935
|
+
if (Array.isArray(values.attributionDomains)) {
|
|
80936
|
+
const array = values.attributionDomains;
|
|
80937
|
+
const test = (v) => typeof v === "string";
|
|
80938
|
+
let checked;
|
|
80939
|
+
if (array.length < vocabSparseArrayMinimumLength ? array.every(test) : (checked = vocabValidatePropertyArray(array, test)).valid) {
|
|
80940
|
+
const input = values.attributionDomains;
|
|
80941
|
+
if (input.length < vocabSparseArrayMinimumLength && !checked?.sparse) {
|
|
80942
|
+
copied = input.slice();
|
|
80943
|
+
valid = true;
|
|
80944
|
+
} else {
|
|
80945
|
+
const result = vocabCopyValidatedPropertyArray(input, test, checked ?? {
|
|
80946
|
+
valid: true,
|
|
80947
|
+
sparse: false
|
|
80948
|
+
});
|
|
80949
|
+
if (result.ok) {
|
|
80950
|
+
copied = result.array;
|
|
80951
|
+
valid = true;
|
|
80952
|
+
}
|
|
80953
|
+
}
|
|
80954
|
+
}
|
|
80955
|
+
}
|
|
80956
|
+
if (valid) clone.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = copied;
|
|
80957
|
+
else throw new TypeError("The attributionDomains must be an array of type string.");
|
|
80958
|
+
}
|
|
80471
80959
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.length < vocabSparseArrayMinimumLength ? this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice() : vocabCopyPropertyArray(this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
80472
80960
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = vocabCopyTrustSet(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo, clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
80473
80961
|
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) {
|
|
@@ -80856,7 +81344,7 @@ var Service = class Service extends Object$1 {
|
|
|
80856
81344
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
80857
81345
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
80858
81346
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
80859
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
81347
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
80860
81348
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
80861
81349
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
80862
81350
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -81154,7 +81642,7 @@ var Service = class Service extends Object$1 {
|
|
|
81154
81642
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
81155
81643
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
81156
81644
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
81157
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
81645
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
81158
81646
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
81159
81647
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
81160
81648
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -81488,7 +81976,7 @@ var Service = class Service extends Object$1 {
|
|
|
81488
81976
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
81489
81977
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
81490
81978
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
81491
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
81979
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
81492
81980
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
81493
81981
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
81494
81982
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -81736,7 +82224,7 @@ var Service = class Service extends Object$1 {
|
|
|
81736
82224
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
81737
82225
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
81738
82226
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
81739
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
82227
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
81740
82228
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
81741
82229
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
81742
82230
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -81981,7 +82469,7 @@ var Service = class Service extends Object$1 {
|
|
|
81981
82469
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
81982
82470
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
81983
82471
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
81984
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
82472
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
81985
82473
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
81986
82474
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
81987
82475
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -82210,7 +82698,7 @@ var Service = class Service extends Object$1 {
|
|
|
82210
82698
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
82211
82699
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
82212
82700
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
82213
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
82701
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
82214
82702
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
82215
82703
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
82216
82704
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -82442,7 +82930,7 @@ var Service = class Service extends Object$1 {
|
|
|
82442
82930
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
82443
82931
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
82444
82932
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
82445
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
82933
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
82446
82934
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
82447
82935
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
82448
82936
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -82672,7 +83160,7 @@ var Service = class Service extends Object$1 {
|
|
|
82672
83160
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
82673
83161
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
82674
83162
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
82675
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
83163
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
82676
83164
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
82677
83165
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
82678
83166
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -82900,7 +83388,7 @@ var Service = class Service extends Object$1 {
|
|
|
82900
83388
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
82901
83389
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
82902
83390
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
82903
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
83391
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
82904
83392
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
82905
83393
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
82906
83394
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -83128,7 +83616,7 @@ var Service = class Service extends Object$1 {
|
|
|
83128
83616
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
83129
83617
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
83130
83618
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
83131
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
83619
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
83132
83620
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
83133
83621
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
83134
83622
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -83353,7 +83841,7 @@ var Service = class Service extends Object$1 {
|
|
|
83353
83841
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
83354
83842
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
83355
83843
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
83356
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
83844
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
83357
83845
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
83358
83846
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
83359
83847
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -83620,11 +84108,20 @@ var Service = class Service extends Object$1 {
|
|
|
83620
84108
|
if (this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length < 1) return null;
|
|
83621
84109
|
return this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
83622
84110
|
}
|
|
84111
|
+
/** Domains this actor claims as its own, so that Mastodon can credit the
|
|
84112
|
+
* actor on link preview cards that point at one of them. Each value is a
|
|
84113
|
+
* bare host name, without a scheme, port, path, or leading `*.`. Fedify
|
|
84114
|
+
* treats the values as opaque strings and does not normalize or validate
|
|
84115
|
+
* them; applications are responsible for producing normalized host names.
|
|
84116
|
+
*/
|
|
84117
|
+
get attributionDomains() {
|
|
84118
|
+
return this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
84119
|
+
}
|
|
83623
84120
|
async #fetchSuccessor(url, options = {}) {
|
|
83624
84121
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
83625
84122
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
83626
84123
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
83627
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
84124
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
83628
84125
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
83629
84126
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
83630
84127
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -83899,7 +84396,7 @@ var Service = class Service extends Object$1 {
|
|
|
83899
84396
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
83900
84397
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
83901
84398
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
83902
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
84399
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
83903
84400
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
83904
84401
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
83905
84402
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -84253,7 +84750,7 @@ var Service = class Service extends Object$1 {
|
|
|
84253
84750
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? getDocumentLoader();
|
|
84254
84751
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? getDocumentLoader();
|
|
84255
84752
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? trace.getTracerProvider();
|
|
84256
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
84753
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b");
|
|
84257
84754
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
84258
84755
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
84259
84756
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -84780,6 +85277,12 @@ var Service = class Service extends Object$1 {
|
|
|
84780
85277
|
}
|
|
84781
85278
|
if (compactItems.length > 0) result["indexable"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
84782
85279
|
compactItems = [];
|
|
85280
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
85281
|
+
const item = v;
|
|
85282
|
+
compactItems.push(item);
|
|
85283
|
+
}
|
|
85284
|
+
if (compactItems.length > 0) result["attributionDomains"] = compactItems.length > 1 ? compactItems : compactItems[0];
|
|
85285
|
+
compactItems = [];
|
|
84783
85286
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
84784
85287
|
const item = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? formatIri(v) : v instanceof Application ? await v.toJsonLd({
|
|
84785
85288
|
...options,
|
|
@@ -84898,6 +85401,10 @@ var Service = class Service extends Object$1 {
|
|
|
84898
85401
|
"suspended": "toot:suspended",
|
|
84899
85402
|
"memorial": "toot:memorial",
|
|
84900
85403
|
"indexable": "toot:indexable",
|
|
85404
|
+
"attributionDomains": {
|
|
85405
|
+
"@id": "toot:attributionDomains",
|
|
85406
|
+
"@container": "@set"
|
|
85407
|
+
},
|
|
84901
85408
|
"schema": "http://schema.org#",
|
|
84902
85409
|
"PropertyValue": "schema:PropertyValue",
|
|
84903
85410
|
"value": "schema:value",
|
|
@@ -85127,6 +85634,17 @@ var Service = class Service extends Object$1 {
|
|
|
85127
85634
|
}
|
|
85128
85635
|
if (array.length > 0) values["http://joinmastodon.org/ns#indexable"] = array;
|
|
85129
85636
|
array = [];
|
|
85637
|
+
for (const v of this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains) {
|
|
85638
|
+
let element = { "@value": v };
|
|
85639
|
+
if (Array.isArray(element)) {
|
|
85640
|
+
if (element.length < 1) continue;
|
|
85641
|
+
if (element.length == 1) element = element[0];
|
|
85642
|
+
}
|
|
85643
|
+
if (typeof element === "undefined") continue;
|
|
85644
|
+
array.push(element);
|
|
85645
|
+
}
|
|
85646
|
+
if (array.length > 0) values["http://joinmastodon.org/ns#attributionDomains"] = array;
|
|
85647
|
+
array = [];
|
|
85130
85648
|
for (const v of this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo) {
|
|
85131
85649
|
let element = retainedSignedValueRef(v, signedValues.scope) ?? (v instanceof URL ? { "@id": 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));
|
|
85132
85650
|
if (Array.isArray(element)) {
|
|
@@ -85235,6 +85753,10 @@ var Service = class Service extends Object$1 {
|
|
|
85235
85753
|
"suspended": "toot:suspended",
|
|
85236
85754
|
"memorial": "toot:memorial",
|
|
85237
85755
|
"indexable": "toot:indexable",
|
|
85756
|
+
"attributionDomains": {
|
|
85757
|
+
"@id": "toot:attributionDomains",
|
|
85758
|
+
"@container": "@set"
|
|
85759
|
+
},
|
|
85238
85760
|
"schema": "http://schema.org#",
|
|
85239
85761
|
"PropertyValue": "schema:PropertyValue",
|
|
85240
85762
|
"value": "schema:value",
|
|
@@ -85285,7 +85807,7 @@ var Service = class Service extends Object$1 {
|
|
|
85285
85807
|
* @throws {TypeError} If the given `json` is invalid.
|
|
85286
85808
|
*/
|
|
85287
85809
|
static async fromJsonLd(json, options = {}) {
|
|
85288
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
85810
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
85289
85811
|
try {
|
|
85290
85812
|
const object = await this.__fromJsonLd__Service__(json, span, options);
|
|
85291
85813
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -85688,6 +86210,19 @@ var Service = class Service extends Object$1 {
|
|
|
85688
86210
|
_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.push(decoded);
|
|
85689
86211
|
}
|
|
85690
86212
|
instance.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
86213
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = [];
|
|
86214
|
+
let _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains__array = values["http://joinmastodon.org/ns#attributionDomains"];
|
|
86215
|
+
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) {
|
|
86216
|
+
if (v == null) continue;
|
|
86217
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
86218
|
+
if (typeof decoded === "undefined") {
|
|
86219
|
+
shouldCacheJsonLd = false;
|
|
86220
|
+
continue;
|
|
86221
|
+
}
|
|
86222
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) shouldCacheJsonLd = false;
|
|
86223
|
+
_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.push(decoded);
|
|
86224
|
+
}
|
|
86225
|
+
instance.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
85691
86226
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [];
|
|
85692
86227
|
let _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo__array = values["https://www.w3.org/ns/activitystreams#movedTo"];
|
|
85693
86228
|
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) {
|
|
@@ -85779,7 +86314,7 @@ var Service = class Service extends Object$1 {
|
|
|
85779
86314
|
let _QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage__array = values["https://misskey-hub.net/ns#_misskey_followedMessage"];
|
|
85780
86315
|
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) {
|
|
85781
86316
|
if (v == null) continue;
|
|
85782
|
-
const decoded = v["@value"];
|
|
86317
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
85783
86318
|
if (typeof decoded === "undefined") {
|
|
85784
86319
|
shouldCacheJsonLd = false;
|
|
85785
86320
|
continue;
|
|
@@ -85928,6 +86463,11 @@ var Service = class Service extends Object$1 {
|
|
|
85928
86463
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
85929
86464
|
} : v);
|
|
85930
86465
|
if (_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.length == 1) proxy.indexable = _2diCorzqPGQQqftp6e4SrCEwEnyk_indexable[0];
|
|
86466
|
+
const _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains = this.#_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.map((v) => v instanceof URL ? {
|
|
86467
|
+
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
86468
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
86469
|
+
} : v);
|
|
86470
|
+
if (_4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 1 || !("attributionDomain" in proxy) && _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains.length > 0) proxy.attributionDomains = _4QMetaJKCxkz7wX64M2TuXRgNjB6_attributionDomains;
|
|
85931
86471
|
const _2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.map((v) => v instanceof URL ? {
|
|
85932
86472
|
[Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(inspectIri(v), options),
|
|
85933
86473
|
[Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(inspectIri(v), options)
|
|
@@ -86342,7 +86882,7 @@ var Source = class {
|
|
|
86342
86882
|
* @throws {TypeError} If the given `json` is invalid.
|
|
86343
86883
|
*/
|
|
86344
86884
|
static async fromJsonLd(json, options = {}) {
|
|
86345
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
86885
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
86346
86886
|
try {
|
|
86347
86887
|
const object = await this.__fromJsonLd__Source__(json, span, options);
|
|
86348
86888
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -86412,7 +86952,7 @@ var Source = class {
|
|
|
86412
86952
|
let _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType__array = values["https://www.w3.org/ns/activitystreams#mediaType"];
|
|
86413
86953
|
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) {
|
|
86414
86954
|
if (v == null) continue;
|
|
86415
|
-
const decoded = v["@value"];
|
|
86955
|
+
const decoded = typeof v === "object" && "@value" in v && typeof v["@value"] === "string" && !("@language" in v) ? v["@value"] : void 0;
|
|
86416
86956
|
if (typeof decoded === "undefined") {
|
|
86417
86957
|
shouldCacheJsonLd = false;
|
|
86418
86958
|
continue;
|
|
@@ -86634,7 +87174,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
86634
87174
|
* @throws {TypeError} If the given `json` is invalid.
|
|
86635
87175
|
*/
|
|
86636
87176
|
static async fromJsonLd(json, options = {}) {
|
|
86637
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
87177
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
86638
87178
|
try {
|
|
86639
87179
|
const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
|
|
86640
87180
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -86890,7 +87430,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
86890
87430
|
* @throws {TypeError} If the given `json` is invalid.
|
|
86891
87431
|
*/
|
|
86892
87432
|
static async fromJsonLd(json, options = {}) {
|
|
86893
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
87433
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
86894
87434
|
try {
|
|
86895
87435
|
const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
|
|
86896
87436
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -87291,7 +87831,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
87291
87831
|
* @throws {TypeError} If the given `json` is invalid.
|
|
87292
87832
|
*/
|
|
87293
87833
|
static async fromJsonLd(json, options = {}) {
|
|
87294
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
87834
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
87295
87835
|
try {
|
|
87296
87836
|
const object = await this.__fromJsonLd__Tombstone__(json, span, options);
|
|
87297
87837
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -87592,7 +88132,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
87592
88132
|
* @throws {TypeError} If the given `json` is invalid.
|
|
87593
88133
|
*/
|
|
87594
88134
|
static async fromJsonLd(json, options = {}) {
|
|
87595
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
88135
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
87596
88136
|
try {
|
|
87597
88137
|
const object = await this.__fromJsonLd__Travel__(json, span, options);
|
|
87598
88138
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -87862,7 +88402,7 @@ var Undo = class Undo extends Activity {
|
|
|
87862
88402
|
* @throws {TypeError} If the given `json` is invalid.
|
|
87863
88403
|
*/
|
|
87864
88404
|
static async fromJsonLd(json, options = {}) {
|
|
87865
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
88405
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
87866
88406
|
try {
|
|
87867
88407
|
const object = await this.__fromJsonLd__Undo__(json, span, options);
|
|
87868
88408
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -88109,6 +88649,10 @@ var Update = class Update extends Activity {
|
|
|
88109
88649
|
"suspended": "toot:suspended",
|
|
88110
88650
|
"memorial": "toot:memorial",
|
|
88111
88651
|
"indexable": "toot:indexable",
|
|
88652
|
+
"attributionDomains": {
|
|
88653
|
+
"@id": "toot:attributionDomains",
|
|
88654
|
+
"@container": "@set"
|
|
88655
|
+
},
|
|
88112
88656
|
"votersCount": {
|
|
88113
88657
|
"@id": "toot:votersCount",
|
|
88114
88658
|
"@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
|
@@ -88180,7 +88724,7 @@ var Update = class Update extends Activity {
|
|
|
88180
88724
|
* @throws {TypeError} If the given `json` is invalid.
|
|
88181
88725
|
*/
|
|
88182
88726
|
static async fromJsonLd(json, options = {}) {
|
|
88183
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
88727
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
88184
88728
|
try {
|
|
88185
88729
|
const object = await this.__fromJsonLd__Update__(json, span, options);
|
|
88186
88730
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -88451,7 +88995,7 @@ var Video = class Video extends Document {
|
|
|
88451
88995
|
* @throws {TypeError} If the given `json` is invalid.
|
|
88452
88996
|
*/
|
|
88453
88997
|
static async fromJsonLd(json, options = {}) {
|
|
88454
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
88998
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
88455
88999
|
try {
|
|
88456
89000
|
const object = await this.__fromJsonLd__Video__(json, span, options);
|
|
88457
89001
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -88706,7 +89250,7 @@ var View = class View extends Activity {
|
|
|
88706
89250
|
* @throws {TypeError} If the given `json` is invalid.
|
|
88707
89251
|
*/
|
|
88708
89252
|
static async fromJsonLd(json, options = {}) {
|
|
88709
|
-
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.
|
|
89253
|
+
return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.5.0-dev.2597+7bed9e2b").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
88710
89254
|
try {
|
|
88711
89255
|
const object = await this.__fromJsonLd__View__(json, span, options);
|
|
88712
89256
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|