@fedify/vocab 2.4.1 → 2.4.2-dev.2357
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 +1352 -234
- package/dist/mod.d.cts +1118 -0
- package/dist/mod.d.ts +1118 -0
- package/dist/mod.js +1352 -234
- package/dist-tests/{actor-D_QaCMro.mjs → actor-BPnKtgsQ.mjs} +2 -2
- package/dist-tests/actor.test.mjs +3 -3
- package/dist-tests/{esm-YWo4aQQe.mjs → esm-BbQ2gmys.mjs} +1 -1
- package/dist-tests/gateway.test.mjs +3 -3
- package/dist-tests/{lookup-BevjwZhB.mjs → lookup-A3ieYSOf.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +3 -3
- package/dist-tests/portable-lookup.test.mjs +4 -4
- package/dist-tests/signed-representation.test.mjs +1 -1
- package/dist-tests/translation.test.mjs +3 -3
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-DaniQwU7.mjs → vocab-DseKnZ6v.mjs} +1351 -233
- package/dist-tests/vocab.test.mjs +2 -2
- package/package.json +4 -4
package/dist/mod.cjs
CHANGED
|
@@ -36,7 +36,7 @@ let _fedify_vocab_runtime_temporal = require("@fedify/vocab-runtime/temporal");
|
|
|
36
36
|
let es_toolkit = require("es-toolkit");
|
|
37
37
|
//#region deno.json
|
|
38
38
|
var name = "@fedify/vocab";
|
|
39
|
-
var version = "2.4.
|
|
39
|
+
var version = "2.4.2-dev.2357+064a9794";
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/type.ts
|
|
42
42
|
function getTypeId(object) {
|
|
@@ -4249,6 +4249,19 @@ var Object$1 = class Object$1 {
|
|
|
4249
4249
|
/**
|
|
4250
4250
|
* Clones this instance, optionally updating it with the given values.
|
|
4251
4251
|
*
|
|
4252
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
4253
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
4254
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
4255
|
+
* shared nested object through the clone can affect the original as well,
|
|
4256
|
+
* and can change JSON-LD output when either is embedded in another
|
|
4257
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
4258
|
+
* instance's property.
|
|
4259
|
+
*
|
|
4260
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
4261
|
+
* re-parse the instance before hydration rather than using this method.
|
|
4262
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
4263
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
4264
|
+
*
|
|
4252
4265
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
4253
4266
|
* `signObject()`: the clone may differ from the document that the proof
|
|
4254
4267
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -4579,7 +4592,7 @@ var Object$1 = class Object$1 {
|
|
|
4579
4592
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
4580
4593
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
4581
4594
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
4582
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
4595
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
4583
4596
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
4584
4597
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4585
4598
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -4836,7 +4849,7 @@ var Object$1 = class Object$1 {
|
|
|
4836
4849
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
4837
4850
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
4838
4851
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
4839
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
4852
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
4840
4853
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
4841
4854
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
4842
4855
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -5188,7 +5201,7 @@ var Object$1 = class Object$1 {
|
|
|
5188
5201
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
5189
5202
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
5190
5203
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
5191
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
5204
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
5192
5205
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
5193
5206
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
5194
5207
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -5508,7 +5521,7 @@ var Object$1 = class Object$1 {
|
|
|
5508
5521
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
5509
5522
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
5510
5523
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
5511
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
5524
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
5512
5525
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
5513
5526
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
5514
5527
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -5780,7 +5793,7 @@ var Object$1 = class Object$1 {
|
|
|
5780
5793
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
5781
5794
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
5782
5795
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
5783
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
5796
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
5784
5797
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
5785
5798
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
5786
5799
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -6020,7 +6033,7 @@ var Object$1 = class Object$1 {
|
|
|
6020
6033
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6021
6034
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6022
6035
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
6023
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
6036
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
6024
6037
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
6025
6038
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6026
6039
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -6339,7 +6352,7 @@ var Object$1 = class Object$1 {
|
|
|
6339
6352
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6340
6353
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6341
6354
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
6342
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
6355
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
6343
6356
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
6344
6357
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6345
6358
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -6658,7 +6671,7 @@ var Object$1 = class Object$1 {
|
|
|
6658
6671
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6659
6672
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6660
6673
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
6661
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
6674
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
6662
6675
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
6663
6676
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6664
6677
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -6969,7 +6982,7 @@ var Object$1 = class Object$1 {
|
|
|
6969
6982
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6970
6983
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
6971
6984
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
6972
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
6985
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
6973
6986
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
6974
6987
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
6975
6988
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -7280,7 +7293,7 @@ var Object$1 = class Object$1 {
|
|
|
7280
7293
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
7281
7294
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
7282
7295
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
7283
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
7296
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
7284
7297
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
7285
7298
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7286
7299
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -7596,7 +7609,7 @@ var Object$1 = class Object$1 {
|
|
|
7596
7609
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
7597
7610
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
7598
7611
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
7599
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
7612
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
7600
7613
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
7601
7614
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7602
7615
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -7822,7 +7835,7 @@ var Object$1 = class Object$1 {
|
|
|
7822
7835
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
7823
7836
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
7824
7837
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
7825
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
7838
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
7826
7839
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
7827
7840
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
7828
7841
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -8054,7 +8067,7 @@ var Object$1 = class Object$1 {
|
|
|
8054
8067
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8055
8068
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8056
8069
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
8057
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
8070
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
8058
8071
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
8059
8072
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8060
8073
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -8286,7 +8299,7 @@ var Object$1 = class Object$1 {
|
|
|
8286
8299
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8287
8300
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8288
8301
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
8289
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
8302
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
8290
8303
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
8291
8304
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8292
8305
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -8536,7 +8549,7 @@ var Object$1 = class Object$1 {
|
|
|
8536
8549
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8537
8550
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8538
8551
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
8539
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
8552
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
8540
8553
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
8541
8554
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8542
8555
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -8798,7 +8811,7 @@ var Object$1 = class Object$1 {
|
|
|
8798
8811
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8799
8812
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
8800
8813
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
8801
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
8814
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
8802
8815
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
8803
8816
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
8804
8817
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -9098,7 +9111,7 @@ var Object$1 = class Object$1 {
|
|
|
9098
9111
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9099
9112
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9100
9113
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
9101
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
9114
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
9102
9115
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
9103
9116
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9104
9117
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -9398,7 +9411,7 @@ var Object$1 = class Object$1 {
|
|
|
9398
9411
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9399
9412
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9400
9413
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
9401
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
9414
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
9402
9415
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
9403
9416
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9404
9417
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -9698,7 +9711,7 @@ var Object$1 = class Object$1 {
|
|
|
9698
9711
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9699
9712
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
9700
9713
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
9701
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
9714
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
9702
9715
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
9703
9716
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
9704
9717
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -10035,7 +10048,7 @@ var Object$1 = class Object$1 {
|
|
|
10035
10048
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10036
10049
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10037
10050
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
10038
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
10051
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
10039
10052
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
10040
10053
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10041
10054
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -10358,7 +10371,7 @@ var Object$1 = class Object$1 {
|
|
|
10358
10371
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10359
10372
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10360
10373
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
10361
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
10374
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
10362
10375
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
10363
10376
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10364
10377
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -10584,7 +10597,7 @@ var Object$1 = class Object$1 {
|
|
|
10584
10597
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10585
10598
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10586
10599
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
10587
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
10600
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
10588
10601
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
10589
10602
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10590
10603
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -10810,7 +10823,7 @@ var Object$1 = class Object$1 {
|
|
|
10810
10823
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10811
10824
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
10812
10825
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
10813
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
10826
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
10814
10827
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
10815
10828
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
10816
10829
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -11975,7 +11988,7 @@ var Object$1 = class Object$1 {
|
|
|
11975
11988
|
* @throws {TypeError} If the given `json` is invalid.
|
|
11976
11989
|
*/
|
|
11977
11990
|
static async fromJsonLd(json, options = {}) {
|
|
11978
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
11991
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
11979
11992
|
try {
|
|
11980
11993
|
const object = await this.__fromJsonLd__Object__(json, span, options);
|
|
11981
11994
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13634,6 +13647,19 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
13634
13647
|
/**
|
|
13635
13648
|
* Clones this instance, optionally updating it with the given values.
|
|
13636
13649
|
*
|
|
13650
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
13651
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
13652
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
13653
|
+
* shared nested object through the clone can affect the original as well,
|
|
13654
|
+
* and can change JSON-LD output when either is embedded in another
|
|
13655
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
13656
|
+
* instance's property.
|
|
13657
|
+
*
|
|
13658
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
13659
|
+
* re-parse the instance before hydration rather than using this method.
|
|
13660
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
13661
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
13662
|
+
*
|
|
13637
13663
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
13638
13664
|
* `signObject()`: the clone may differ from the document that the proof
|
|
13639
13665
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -13736,7 +13762,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
13736
13762
|
* @throws {TypeError} If the given `json` is invalid.
|
|
13737
13763
|
*/
|
|
13738
13764
|
static async fromJsonLd(json, options = {}) {
|
|
13739
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
13765
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
13740
13766
|
try {
|
|
13741
13767
|
const object = await this.__fromJsonLd__Emoji__(json, span, options);
|
|
13742
13768
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -13857,6 +13883,19 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
13857
13883
|
/**
|
|
13858
13884
|
* Clones this instance, optionally updating it with the given values.
|
|
13859
13885
|
*
|
|
13886
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
13887
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
13888
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
13889
|
+
* shared nested object through the clone can affect the original as well,
|
|
13890
|
+
* and can change JSON-LD output when either is embedded in another
|
|
13891
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
13892
|
+
* instance's property.
|
|
13893
|
+
*
|
|
13894
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
13895
|
+
* re-parse the instance before hydration rather than using this method.
|
|
13896
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
13897
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
13898
|
+
*
|
|
13860
13899
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
13861
13900
|
* `signObject()`: the clone may differ from the document that the proof
|
|
13862
13901
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -13898,7 +13937,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
13898
13937
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
13899
13938
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
13900
13939
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
13901
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
13940
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
13902
13941
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
13903
13942
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
13904
13943
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -14141,7 +14180,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
14141
14180
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
14142
14181
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
14143
14182
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
14144
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
14183
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
14145
14184
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
14146
14185
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14147
14186
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -14561,7 +14600,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
14561
14600
|
* @throws {TypeError} If the given `json` is invalid.
|
|
14562
14601
|
*/
|
|
14563
14602
|
static async fromJsonLd(json, options = {}) {
|
|
14564
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
14603
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
14565
14604
|
try {
|
|
14566
14605
|
const object = await this.__fromJsonLd__ChatMessage__(json, span, options);
|
|
14567
14606
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -14818,6 +14857,19 @@ var Activity = class Activity extends Object$1 {
|
|
|
14818
14857
|
/**
|
|
14819
14858
|
* Clones this instance, optionally updating it with the given values.
|
|
14820
14859
|
*
|
|
14860
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
14861
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
14862
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
14863
|
+
* shared nested object through the clone can affect the original as well,
|
|
14864
|
+
* and can change JSON-LD output when either is embedded in another
|
|
14865
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
14866
|
+
* instance's property.
|
|
14867
|
+
*
|
|
14868
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
14869
|
+
* re-parse the instance before hydration rather than using this method.
|
|
14870
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
14871
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
14872
|
+
*
|
|
14821
14873
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
14822
14874
|
* `signObject()`: the clone may differ from the document that the proof
|
|
14823
14875
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -14928,7 +14980,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
14928
14980
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
14929
14981
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
14930
14982
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
14931
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
14983
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
14932
14984
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
14933
14985
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
14934
14986
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -15280,7 +15332,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
15280
15332
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
15281
15333
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
15282
15334
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
15283
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
15335
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
15284
15336
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
15285
15337
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15286
15338
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -15582,7 +15634,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
15582
15634
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
15583
15635
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
15584
15636
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
15585
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
15637
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
15586
15638
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
15587
15639
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15588
15640
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -15890,7 +15942,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
15890
15942
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
15891
15943
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
15892
15944
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
15893
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
15945
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
15894
15946
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
15895
15947
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
15896
15948
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -16192,7 +16244,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
16192
16244
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
16193
16245
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
16194
16246
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
16195
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
16247
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
16196
16248
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
16197
16249
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16198
16250
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -16496,7 +16548,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
16496
16548
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
16497
16549
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
16498
16550
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
16499
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
16551
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
16500
16552
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
16501
16553
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
16502
16554
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -16929,7 +16981,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
16929
16981
|
* @throws {TypeError} If the given `json` is invalid.
|
|
16930
16982
|
*/
|
|
16931
16983
|
static async fromJsonLd(json, options = {}) {
|
|
16932
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
16984
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
16933
16985
|
try {
|
|
16934
16986
|
const object = await this.__fromJsonLd__Activity__(json, span, options);
|
|
16935
16987
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17241,6 +17293,19 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
17241
17293
|
/**
|
|
17242
17294
|
* Clones this instance, optionally updating it with the given values.
|
|
17243
17295
|
*
|
|
17296
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
17297
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
17298
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
17299
|
+
* shared nested object through the clone can affect the original as well,
|
|
17300
|
+
* and can change JSON-LD output when either is embedded in another
|
|
17301
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
17302
|
+
* instance's property.
|
|
17303
|
+
*
|
|
17304
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
17305
|
+
* re-parse the instance before hydration rather than using this method.
|
|
17306
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
17307
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
17308
|
+
*
|
|
17244
17309
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
17245
17310
|
* `signObject()`: the clone may differ from the document that the proof
|
|
17246
17311
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -17337,7 +17402,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
17337
17402
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17338
17403
|
*/
|
|
17339
17404
|
static async fromJsonLd(json, options = {}) {
|
|
17340
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
17405
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17341
17406
|
try {
|
|
17342
17407
|
const object = await this.__fromJsonLd__EmojiReact__(json, span, options);
|
|
17343
17408
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17497,6 +17562,19 @@ var PropertyValue = class {
|
|
|
17497
17562
|
/**
|
|
17498
17563
|
* Clones this instance, optionally updating it with the given values.
|
|
17499
17564
|
*
|
|
17565
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
17566
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
17567
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
17568
|
+
* shared nested object through the clone can affect the original as well,
|
|
17569
|
+
* and can change JSON-LD output when either is embedded in another
|
|
17570
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
17571
|
+
* instance's property.
|
|
17572
|
+
*
|
|
17573
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
17574
|
+
* re-parse the instance before hydration rather than using this method.
|
|
17575
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
17576
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
17577
|
+
*
|
|
17500
17578
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
17501
17579
|
* `signObject()`: the clone may differ from the document that the proof
|
|
17502
17580
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -17661,7 +17739,7 @@ var PropertyValue = class {
|
|
|
17661
17739
|
* @throws {TypeError} If the given `json` is invalid.
|
|
17662
17740
|
*/
|
|
17663
17741
|
static async fromJsonLd(json, options = {}) {
|
|
17664
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
17742
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
17665
17743
|
try {
|
|
17666
17744
|
const object = await this.__fromJsonLd__PropertyValue__(json, span, options);
|
|
17667
17745
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -17856,6 +17934,19 @@ var Measure = class {
|
|
|
17856
17934
|
/**
|
|
17857
17935
|
* Clones this instance, optionally updating it with the given values.
|
|
17858
17936
|
*
|
|
17937
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
17938
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
17939
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
17940
|
+
* shared nested object through the clone can affect the original as well,
|
|
17941
|
+
* and can change JSON-LD output when either is embedded in another
|
|
17942
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
17943
|
+
* instance's property.
|
|
17944
|
+
*
|
|
17945
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
17946
|
+
* re-parse the instance before hydration rather than using this method.
|
|
17947
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
17948
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
17949
|
+
*
|
|
17859
17950
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
17860
17951
|
* `signObject()`: the clone may differ from the document that the proof
|
|
17861
17952
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -18011,7 +18102,7 @@ var Measure = class {
|
|
|
18011
18102
|
* @throws {TypeError} If the given `json` is invalid.
|
|
18012
18103
|
*/
|
|
18013
18104
|
static async fromJsonLd(json, options = {}) {
|
|
18014
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
18105
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
18015
18106
|
try {
|
|
18016
18107
|
const object = await this.__fromJsonLd__Measure__(json, span, options);
|
|
18017
18108
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18168,6 +18259,19 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
18168
18259
|
/**
|
|
18169
18260
|
* Clones this instance, optionally updating it with the given values.
|
|
18170
18261
|
*
|
|
18262
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
18263
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
18264
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
18265
|
+
* shared nested object through the clone can affect the original as well,
|
|
18266
|
+
* and can change JSON-LD output when either is embedded in another
|
|
18267
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
18268
|
+
* instance's property.
|
|
18269
|
+
*
|
|
18270
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
18271
|
+
* re-parse the instance before hydration rather than using this method.
|
|
18272
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
18273
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
18274
|
+
*
|
|
18171
18275
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
18172
18276
|
* `signObject()`: the clone may differ from the document that the proof
|
|
18173
18277
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -18206,7 +18310,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
18206
18310
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
18207
18311
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
18208
18312
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
18209
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
18313
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
18210
18314
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
18211
18315
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18212
18316
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -18432,7 +18536,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
18432
18536
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
18433
18537
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
18434
18538
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
18435
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
18539
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
18436
18540
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
18437
18541
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
18438
18542
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -18779,7 +18883,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
18779
18883
|
* @throws {TypeError} If the given `json` is invalid.
|
|
18780
18884
|
*/
|
|
18781
18885
|
static async fromJsonLd(json, options = {}) {
|
|
18782
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
18886
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
18783
18887
|
try {
|
|
18784
18888
|
const object = await this.__fromJsonLd__AnnounceAuthorization__(json, span, options);
|
|
18785
18889
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -18944,6 +19048,19 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
18944
19048
|
/**
|
|
18945
19049
|
* Clones this instance, optionally updating it with the given values.
|
|
18946
19050
|
*
|
|
19051
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
19052
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
19053
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
19054
|
+
* shared nested object through the clone can affect the original as well,
|
|
19055
|
+
* and can change JSON-LD output when either is embedded in another
|
|
19056
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
19057
|
+
* instance's property.
|
|
19058
|
+
*
|
|
19059
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
19060
|
+
* re-parse the instance before hydration rather than using this method.
|
|
19061
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
19062
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
19063
|
+
*
|
|
18947
19064
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
18948
19065
|
* `signObject()`: the clone may differ from the document that the proof
|
|
18949
19066
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -19034,7 +19151,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
19034
19151
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19035
19152
|
*/
|
|
19036
19153
|
static async fromJsonLd(json, options = {}) {
|
|
19037
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
19154
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19038
19155
|
try {
|
|
19039
19156
|
const object = await this.__fromJsonLd__AnnounceRequest__(json, span, options);
|
|
19040
19157
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19209,6 +19326,19 @@ var InteractionPolicy = class {
|
|
|
19209
19326
|
/**
|
|
19210
19327
|
* Clones this instance, optionally updating it with the given values.
|
|
19211
19328
|
*
|
|
19329
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
19330
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
19331
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
19332
|
+
* shared nested object through the clone can affect the original as well,
|
|
19333
|
+
* and can change JSON-LD output when either is embedded in another
|
|
19334
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
19335
|
+
* instance's property.
|
|
19336
|
+
*
|
|
19337
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
19338
|
+
* re-parse the instance before hydration rather than using this method.
|
|
19339
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
19340
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
19341
|
+
*
|
|
19212
19342
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
19213
19343
|
* `signObject()`: the clone may differ from the document that the proof
|
|
19214
19344
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -19414,7 +19544,7 @@ var InteractionPolicy = class {
|
|
|
19414
19544
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19415
19545
|
*/
|
|
19416
19546
|
static async fromJsonLd(json, options = {}) {
|
|
19417
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
19547
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19418
19548
|
try {
|
|
19419
19549
|
const object = await this.__fromJsonLd__InteractionPolicy__(json, span, options);
|
|
19420
19550
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -19705,6 +19835,19 @@ var InteractionRule = class {
|
|
|
19705
19835
|
/**
|
|
19706
19836
|
* Clones this instance, optionally updating it with the given values.
|
|
19707
19837
|
*
|
|
19838
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
19839
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
19840
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
19841
|
+
* shared nested object through the clone can affect the original as well,
|
|
19842
|
+
* and can change JSON-LD output when either is embedded in another
|
|
19843
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
19844
|
+
* instance's property.
|
|
19845
|
+
*
|
|
19846
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
19847
|
+
* re-parse the instance before hydration rather than using this method.
|
|
19848
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
19849
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
19850
|
+
*
|
|
19708
19851
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
19709
19852
|
* `signObject()`: the clone may differ from the document that the proof
|
|
19710
19853
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -19853,7 +19996,7 @@ var InteractionRule = class {
|
|
|
19853
19996
|
* @throws {TypeError} If the given `json` is invalid.
|
|
19854
19997
|
*/
|
|
19855
19998
|
static async fromJsonLd(json, options = {}) {
|
|
19856
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
19999
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
19857
20000
|
try {
|
|
19858
20001
|
const object = await this.__fromJsonLd__InteractionRule__(json, span, options);
|
|
19859
20002
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20011,6 +20154,19 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
20011
20154
|
/**
|
|
20012
20155
|
* Clones this instance, optionally updating it with the given values.
|
|
20013
20156
|
*
|
|
20157
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
20158
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
20159
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
20160
|
+
* shared nested object through the clone can affect the original as well,
|
|
20161
|
+
* and can change JSON-LD output when either is embedded in another
|
|
20162
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
20163
|
+
* instance's property.
|
|
20164
|
+
*
|
|
20165
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
20166
|
+
* re-parse the instance before hydration rather than using this method.
|
|
20167
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
20168
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
20169
|
+
*
|
|
20014
20170
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
20015
20171
|
* `signObject()`: the clone may differ from the document that the proof
|
|
20016
20172
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -20049,7 +20205,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
20049
20205
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
20050
20206
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
20051
20207
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
20052
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
20208
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
20053
20209
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
20054
20210
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20055
20211
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -20275,7 +20431,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
20275
20431
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
20276
20432
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
20277
20433
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
20278
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
20434
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
20279
20435
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
20280
20436
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
20281
20437
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -20622,7 +20778,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
20622
20778
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20623
20779
|
*/
|
|
20624
20780
|
static async fromJsonLd(json, options = {}) {
|
|
20625
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
20781
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20626
20782
|
try {
|
|
20627
20783
|
const object = await this.__fromJsonLd__LikeAuthorization__(json, span, options);
|
|
20628
20784
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20786,6 +20942,19 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
20786
20942
|
/**
|
|
20787
20943
|
* Clones this instance, optionally updating it with the given values.
|
|
20788
20944
|
*
|
|
20945
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
20946
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
20947
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
20948
|
+
* shared nested object through the clone can affect the original as well,
|
|
20949
|
+
* and can change JSON-LD output when either is embedded in another
|
|
20950
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
20951
|
+
* instance's property.
|
|
20952
|
+
*
|
|
20953
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
20954
|
+
* re-parse the instance before hydration rather than using this method.
|
|
20955
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
20956
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
20957
|
+
*
|
|
20789
20958
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
20790
20959
|
* `signObject()`: the clone may differ from the document that the proof
|
|
20791
20960
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -20876,7 +21045,7 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
20876
21045
|
* @throws {TypeError} If the given `json` is invalid.
|
|
20877
21046
|
*/
|
|
20878
21047
|
static async fromJsonLd(json, options = {}) {
|
|
20879
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
21048
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
20880
21049
|
try {
|
|
20881
21050
|
const object = await this.__fromJsonLd__LikeRequest__(json, span, options);
|
|
20882
21051
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -20997,6 +21166,19 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
20997
21166
|
/**
|
|
20998
21167
|
* Clones this instance, optionally updating it with the given values.
|
|
20999
21168
|
*
|
|
21169
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
21170
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
21171
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
21172
|
+
* shared nested object through the clone can affect the original as well,
|
|
21173
|
+
* and can change JSON-LD output when either is embedded in another
|
|
21174
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
21175
|
+
* instance's property.
|
|
21176
|
+
*
|
|
21177
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
21178
|
+
* re-parse the instance before hydration rather than using this method.
|
|
21179
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
21180
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
21181
|
+
*
|
|
21000
21182
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
21001
21183
|
* `signObject()`: the clone may differ from the document that the proof
|
|
21002
21184
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -21035,7 +21217,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
21035
21217
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
21036
21218
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
21037
21219
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
21038
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
21220
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
21039
21221
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
21040
21222
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21041
21223
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -21261,7 +21443,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
21261
21443
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
21262
21444
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
21263
21445
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
21264
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
21446
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
21265
21447
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
21266
21448
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
21267
21449
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -21608,7 +21790,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
21608
21790
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21609
21791
|
*/
|
|
21610
21792
|
static async fromJsonLd(json, options = {}) {
|
|
21611
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
21793
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21612
21794
|
try {
|
|
21613
21795
|
const object = await this.__fromJsonLd__ReplyAuthorization__(json, span, options);
|
|
21614
21796
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21772,6 +21954,19 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
21772
21954
|
/**
|
|
21773
21955
|
* Clones this instance, optionally updating it with the given values.
|
|
21774
21956
|
*
|
|
21957
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
21958
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
21959
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
21960
|
+
* shared nested object through the clone can affect the original as well,
|
|
21961
|
+
* and can change JSON-LD output when either is embedded in another
|
|
21962
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
21963
|
+
* instance's property.
|
|
21964
|
+
*
|
|
21965
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
21966
|
+
* re-parse the instance before hydration rather than using this method.
|
|
21967
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
21968
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
21969
|
+
*
|
|
21775
21970
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
21776
21971
|
* `signObject()`: the clone may differ from the document that the proof
|
|
21777
21972
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -21862,7 +22057,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
21862
22057
|
* @throws {TypeError} If the given `json` is invalid.
|
|
21863
22058
|
*/
|
|
21864
22059
|
static async fromJsonLd(json, options = {}) {
|
|
21865
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
22060
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
21866
22061
|
try {
|
|
21867
22062
|
const object = await this.__fromJsonLd__ReplyRequest__(json, span, options);
|
|
21868
22063
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -21983,6 +22178,19 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
21983
22178
|
/**
|
|
21984
22179
|
* Clones this instance, optionally updating it with the given values.
|
|
21985
22180
|
*
|
|
22181
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
22182
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
22183
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
22184
|
+
* shared nested object through the clone can affect the original as well,
|
|
22185
|
+
* and can change JSON-LD output when either is embedded in another
|
|
22186
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
22187
|
+
* instance's property.
|
|
22188
|
+
*
|
|
22189
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
22190
|
+
* re-parse the instance before hydration rather than using this method.
|
|
22191
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
22192
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
22193
|
+
*
|
|
21986
22194
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
21987
22195
|
* `signObject()`: the clone may differ from the document that the proof
|
|
21988
22196
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -22021,7 +22229,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
22021
22229
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
22022
22230
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
22023
22231
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
22024
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
22232
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
22025
22233
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
22026
22234
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22027
22235
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -22246,7 +22454,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
22246
22454
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
22247
22455
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
22248
22456
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
22249
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
22457
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
22250
22458
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
22251
22459
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
22252
22460
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -22595,7 +22803,7 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
22595
22803
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22596
22804
|
*/
|
|
22597
22805
|
static async fromJsonLd(json, options = {}) {
|
|
22598
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
22806
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22599
22807
|
try {
|
|
22600
22808
|
const object = await this.__fromJsonLd__QuoteAuthorization__(json, span, options);
|
|
22601
22809
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -22759,6 +22967,19 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
22759
22967
|
/**
|
|
22760
22968
|
* Clones this instance, optionally updating it with the given values.
|
|
22761
22969
|
*
|
|
22970
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
22971
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
22972
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
22973
|
+
* shared nested object through the clone can affect the original as well,
|
|
22974
|
+
* and can change JSON-LD output when either is embedded in another
|
|
22975
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
22976
|
+
* instance's property.
|
|
22977
|
+
*
|
|
22978
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
22979
|
+
* re-parse the instance before hydration rather than using this method.
|
|
22980
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
22981
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
22982
|
+
*
|
|
22762
22983
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
22763
22984
|
* `signObject()`: the clone may differ from the document that the proof
|
|
22764
22985
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -22879,7 +23100,7 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
22879
23100
|
* @throws {TypeError} If the given `json` is invalid.
|
|
22880
23101
|
*/
|
|
22881
23102
|
static async fromJsonLd(json, options = {}) {
|
|
22882
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
23103
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
22883
23104
|
try {
|
|
22884
23105
|
const object = await this.__fromJsonLd__QuoteRequest__(json, span, options);
|
|
22885
23106
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23072,6 +23293,19 @@ var Translation = class {
|
|
|
23072
23293
|
/**
|
|
23073
23294
|
* Clones this instance, optionally updating it with the given values.
|
|
23074
23295
|
*
|
|
23296
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
23297
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
23298
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
23299
|
+
* shared nested object through the clone can affect the original as well,
|
|
23300
|
+
* and can change JSON-LD output when either is embedded in another
|
|
23301
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
23302
|
+
* instance's property.
|
|
23303
|
+
*
|
|
23304
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
23305
|
+
* re-parse the instance before hydration rather than using this method.
|
|
23306
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
23307
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
23308
|
+
*
|
|
23075
23309
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
23076
23310
|
* `signObject()`: the clone may differ from the document that the proof
|
|
23077
23311
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -23141,7 +23375,7 @@ var Translation = class {
|
|
|
23141
23375
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
23142
23376
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
23143
23377
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
23144
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
23378
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
23145
23379
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
23146
23380
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
23147
23381
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -23730,7 +23964,7 @@ var Translation = class {
|
|
|
23730
23964
|
* @throws {TypeError} If the given `json` is invalid.
|
|
23731
23965
|
*/
|
|
23732
23966
|
static async fromJsonLd(json, options = {}) {
|
|
23733
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
23967
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
23734
23968
|
try {
|
|
23735
23969
|
const object = await this.__fromJsonLd__Translation__(json, span, options);
|
|
23736
23970
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -23983,6 +24217,19 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
|
|
|
23983
24217
|
/**
|
|
23984
24218
|
* Clones this instance, optionally updating it with the given values.
|
|
23985
24219
|
*
|
|
24220
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
24221
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
24222
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
24223
|
+
* shared nested object through the clone can affect the original as well,
|
|
24224
|
+
* and can change JSON-LD output when either is embedded in another
|
|
24225
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
24226
|
+
* instance's property.
|
|
24227
|
+
*
|
|
24228
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
24229
|
+
* re-parse the instance before hydration rather than using this method.
|
|
24230
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
24231
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
24232
|
+
*
|
|
23986
24233
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
23987
24234
|
* `signObject()`: the clone may differ from the document that the proof
|
|
23988
24235
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -24021,7 +24268,7 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
|
|
|
24021
24268
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
24022
24269
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
24023
24270
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
24024
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
24271
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
24025
24272
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
24026
24273
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24027
24274
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -24246,7 +24493,7 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
|
|
|
24246
24493
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
24247
24494
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
24248
24495
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
24249
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
24496
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
24250
24497
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
24251
24498
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
24252
24499
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -24595,7 +24842,7 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
|
|
|
24595
24842
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24596
24843
|
*/
|
|
24597
24844
|
static async fromJsonLd(json, options = {}) {
|
|
24598
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
24845
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24599
24846
|
try {
|
|
24600
24847
|
const object = await this.__fromJsonLd__FeatureAuthorization__(json, span, options);
|
|
24601
24848
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -24756,6 +25003,19 @@ var FeatureRequest = class FeatureRequest extends Activity {
|
|
|
24756
25003
|
/**
|
|
24757
25004
|
* Clones this instance, optionally updating it with the given values.
|
|
24758
25005
|
*
|
|
25006
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
25007
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
25008
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
25009
|
+
* shared nested object through the clone can affect the original as well,
|
|
25010
|
+
* and can change JSON-LD output when either is embedded in another
|
|
25011
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
25012
|
+
* instance's property.
|
|
25013
|
+
*
|
|
25014
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
25015
|
+
* re-parse the instance before hydration rather than using this method.
|
|
25016
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
25017
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
25018
|
+
*
|
|
24759
25019
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
24760
25020
|
* `signObject()`: the clone may differ from the document that the proof
|
|
24761
25021
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -24847,7 +25107,7 @@ var FeatureRequest = class FeatureRequest extends Activity {
|
|
|
24847
25107
|
* @throws {TypeError} If the given `json` is invalid.
|
|
24848
25108
|
*/
|
|
24849
25109
|
static async fromJsonLd(json, options = {}) {
|
|
24850
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
25110
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
24851
25111
|
try {
|
|
24852
25112
|
const object = await this.__fromJsonLd__FeatureRequest__(json, span, options);
|
|
24853
25113
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -25028,6 +25288,19 @@ var Collection = class Collection extends Object$1 {
|
|
|
25028
25288
|
/**
|
|
25029
25289
|
* Clones this instance, optionally updating it with the given values.
|
|
25030
25290
|
*
|
|
25291
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
25292
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
25293
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
25294
|
+
* shared nested object through the clone can affect the original as well,
|
|
25295
|
+
* and can change JSON-LD output when either is embedded in another
|
|
25296
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
25297
|
+
* instance's property.
|
|
25298
|
+
*
|
|
25299
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
25300
|
+
* re-parse the instance before hydration rather than using this method.
|
|
25301
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
25302
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
25303
|
+
*
|
|
25031
25304
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
25032
25305
|
* `signObject()`: the clone may differ from the document that the proof
|
|
25033
25306
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -25139,7 +25412,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
25139
25412
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
25140
25413
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
25141
25414
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
25142
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
25415
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
25143
25416
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
25144
25417
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25145
25418
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -25365,7 +25638,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
25365
25638
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
25366
25639
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
25367
25640
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
25368
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
25641
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
25369
25642
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
25370
25643
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25371
25644
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -25591,7 +25864,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
25591
25864
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
25592
25865
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
25593
25866
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
25594
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
25867
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
25595
25868
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
25596
25869
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25597
25870
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -25817,7 +26090,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
25817
26090
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
25818
26091
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
25819
26092
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
25820
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
26093
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
25821
26094
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
25822
26095
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
25823
26096
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -26058,7 +26331,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
26058
26331
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
26059
26332
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
26060
26333
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
26061
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
26334
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
26062
26335
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
26063
26336
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26064
26337
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -26283,7 +26556,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
26283
26556
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
26284
26557
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
26285
26558
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
26286
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
26559
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
26287
26560
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
26288
26561
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26289
26562
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -26508,7 +26781,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
26508
26781
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
26509
26782
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
26510
26783
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
26511
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
26784
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
26512
26785
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
26513
26786
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26514
26787
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -26733,7 +27006,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
26733
27006
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
26734
27007
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
26735
27008
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
26736
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
27009
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
26737
27010
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
26738
27011
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26739
27012
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -26958,7 +27231,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
26958
27231
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
26959
27232
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
26960
27233
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
26961
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
27234
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
26962
27235
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
26963
27236
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
26964
27237
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -27183,7 +27456,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
27183
27456
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
27184
27457
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
27185
27458
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
27186
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
27459
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
27187
27460
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
27188
27461
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27189
27462
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -27408,7 +27681,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
27408
27681
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
27409
27682
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
27410
27683
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
27411
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
27684
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
27412
27685
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
27413
27686
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27414
27687
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -27633,7 +27906,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
27633
27906
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
27634
27907
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
27635
27908
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
27636
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
27909
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
27637
27910
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
27638
27911
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
27639
27912
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -28268,7 +28541,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
28268
28541
|
* @throws {TypeError} If the given `json` is invalid.
|
|
28269
28542
|
*/
|
|
28270
28543
|
static async fromJsonLd(json, options = {}) {
|
|
28271
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
28544
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
28272
28545
|
try {
|
|
28273
28546
|
const object = await this.__fromJsonLd__Collection__(json, span, options);
|
|
28274
28547
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -28789,6 +29062,19 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
28789
29062
|
/**
|
|
28790
29063
|
* Clones this instance, optionally updating it with the given values.
|
|
28791
29064
|
*
|
|
29065
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
29066
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
29067
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
29068
|
+
* shared nested object through the clone can affect the original as well,
|
|
29069
|
+
* and can change JSON-LD output when either is embedded in another
|
|
29070
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
29071
|
+
* instance's property.
|
|
29072
|
+
*
|
|
29073
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
29074
|
+
* re-parse the instance before hydration rather than using this method.
|
|
29075
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
29076
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
29077
|
+
*
|
|
28792
29078
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
28793
29079
|
* `signObject()`: the clone may differ from the document that the proof
|
|
28794
29080
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -28822,7 +29108,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
28822
29108
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
28823
29109
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
28824
29110
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
28825
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
29111
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
28826
29112
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
28827
29113
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
28828
29114
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -29223,7 +29509,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
29223
29509
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29224
29510
|
*/
|
|
29225
29511
|
static async fromJsonLd(json, options = {}) {
|
|
29226
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
29512
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29227
29513
|
try {
|
|
29228
29514
|
const object = await this.__fromJsonLd__OrderedCollection__(json, span, options);
|
|
29229
29515
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29438,6 +29724,19 @@ var FeaturedCollection = class FeaturedCollection extends OrderedCollection {
|
|
|
29438
29724
|
/**
|
|
29439
29725
|
* Clones this instance, optionally updating it with the given values.
|
|
29440
29726
|
*
|
|
29727
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
29728
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
29729
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
29730
|
+
* shared nested object through the clone can affect the original as well,
|
|
29731
|
+
* and can change JSON-LD output when either is embedded in another
|
|
29732
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
29733
|
+
* instance's property.
|
|
29734
|
+
*
|
|
29735
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
29736
|
+
* re-parse the instance before hydration rather than using this method.
|
|
29737
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
29738
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
29739
|
+
*
|
|
29441
29740
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
29442
29741
|
* `signObject()`: the clone may differ from the document that the proof
|
|
29443
29742
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -29619,7 +29918,7 @@ var FeaturedCollection = class FeaturedCollection extends OrderedCollection {
|
|
|
29619
29918
|
* @throws {TypeError} If the given `json` is invalid.
|
|
29620
29919
|
*/
|
|
29621
29920
|
static async fromJsonLd(json, options = {}) {
|
|
29622
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
29921
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
29623
29922
|
try {
|
|
29624
29923
|
const object = await this.__fromJsonLd__FeaturedCollection__(json, span, options);
|
|
29625
29924
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -29775,6 +30074,19 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
|
|
|
29775
30074
|
/**
|
|
29776
30075
|
* Clones this instance, optionally updating it with the given values.
|
|
29777
30076
|
*
|
|
30077
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
30078
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
30079
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
30080
|
+
* shared nested object through the clone can affect the original as well,
|
|
30081
|
+
* and can change JSON-LD output when either is embedded in another
|
|
30082
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
30083
|
+
* instance's property.
|
|
30084
|
+
*
|
|
30085
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
30086
|
+
* re-parse the instance before hydration rather than using this method.
|
|
30087
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
30088
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
30089
|
+
*
|
|
29778
30090
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
29779
30091
|
* `signObject()`: the clone may differ from the document that the proof
|
|
29780
30092
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -29813,7 +30125,7 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
|
|
|
29813
30125
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
29814
30126
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
29815
30127
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
29816
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
30128
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
29817
30129
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
29818
30130
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
29819
30131
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -30038,7 +30350,7 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
|
|
|
30038
30350
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
30039
30351
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
30040
30352
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
30041
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
30353
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
30042
30354
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
30043
30355
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
30044
30356
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -30388,7 +30700,7 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
|
|
|
30388
30700
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30389
30701
|
*/
|
|
30390
30702
|
static async fromJsonLd(json, options = {}) {
|
|
30391
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
30703
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30392
30704
|
try {
|
|
30393
30705
|
const object = await this.__fromJsonLd__FeaturedItem__(json, span, options);
|
|
30394
30706
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30606,6 +30918,19 @@ var DidService = class {
|
|
|
30606
30918
|
/**
|
|
30607
30919
|
* Clones this instance, optionally updating it with the given values.
|
|
30608
30920
|
*
|
|
30921
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
30922
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
30923
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
30924
|
+
* shared nested object through the clone can affect the original as well,
|
|
30925
|
+
* and can change JSON-LD output when either is embedded in another
|
|
30926
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
30927
|
+
* instance's property.
|
|
30928
|
+
*
|
|
30929
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
30930
|
+
* re-parse the instance before hydration rather than using this method.
|
|
30931
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
30932
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
30933
|
+
*
|
|
30609
30934
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
30610
30935
|
* `signObject()`: the clone may differ from the document that the proof
|
|
30611
30936
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -30720,7 +31045,7 @@ var DidService = class {
|
|
|
30720
31045
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30721
31046
|
*/
|
|
30722
31047
|
static async fromJsonLd(json, options = {}) {
|
|
30723
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
31048
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30724
31049
|
try {
|
|
30725
31050
|
const object = await this.__fromJsonLd__DidService__(json, span, options);
|
|
30726
31051
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -30841,6 +31166,19 @@ var Export = class Export extends DidService {
|
|
|
30841
31166
|
/**
|
|
30842
31167
|
* Clones this instance, optionally updating it with the given values.
|
|
30843
31168
|
*
|
|
31169
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
31170
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
31171
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
31172
|
+
* shared nested object through the clone can affect the original as well,
|
|
31173
|
+
* and can change JSON-LD output when either is embedded in another
|
|
31174
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
31175
|
+
* instance's property.
|
|
31176
|
+
*
|
|
31177
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
31178
|
+
* re-parse the instance before hydration rather than using this method.
|
|
31179
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
31180
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
31181
|
+
*
|
|
30844
31182
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
30845
31183
|
* `signObject()`: the clone may differ from the document that the proof
|
|
30846
31184
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -30923,7 +31261,7 @@ var Export = class Export extends DidService {
|
|
|
30923
31261
|
* @throws {TypeError} If the given `json` is invalid.
|
|
30924
31262
|
*/
|
|
30925
31263
|
static async fromJsonLd(json, options = {}) {
|
|
30926
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
31264
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
30927
31265
|
try {
|
|
30928
31266
|
const object = await this.__fromJsonLd__Export__(json, span, options);
|
|
30929
31267
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31096,6 +31434,19 @@ var DataIntegrityProof = class {
|
|
|
31096
31434
|
/**
|
|
31097
31435
|
* Clones this instance, optionally updating it with the given values.
|
|
31098
31436
|
*
|
|
31437
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
31438
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
31439
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
31440
|
+
* shared nested object through the clone can affect the original as well,
|
|
31441
|
+
* and can change JSON-LD output when either is embedded in another
|
|
31442
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
31443
|
+
* instance's property.
|
|
31444
|
+
*
|
|
31445
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
31446
|
+
* re-parse the instance before hydration rather than using this method.
|
|
31447
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
31448
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
31449
|
+
*
|
|
31099
31450
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
31100
31451
|
* `signObject()`: the clone may differ from the document that the proof
|
|
31101
31452
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -31148,7 +31499,7 @@ var DataIntegrityProof = class {
|
|
|
31148
31499
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31149
31500
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31150
31501
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
31151
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
31502
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
31152
31503
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
31153
31504
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31154
31505
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -31500,7 +31851,7 @@ var DataIntegrityProof = class {
|
|
|
31500
31851
|
* @throws {TypeError} If the given `json` is invalid.
|
|
31501
31852
|
*/
|
|
31502
31853
|
static async fromJsonLd(json, options = {}) {
|
|
31503
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
31854
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
31504
31855
|
try {
|
|
31505
31856
|
const object = await this.__fromJsonLd__DataIntegrityProof__(json, span, options);
|
|
31506
31857
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -31760,6 +32111,19 @@ var CryptographicKey = class {
|
|
|
31760
32111
|
/**
|
|
31761
32112
|
* Clones this instance, optionally updating it with the given values.
|
|
31762
32113
|
*
|
|
32114
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
32115
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
32116
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
32117
|
+
* shared nested object through the clone can affect the original as well,
|
|
32118
|
+
* and can change JSON-LD output when either is embedded in another
|
|
32119
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
32120
|
+
* instance's property.
|
|
32121
|
+
*
|
|
32122
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
32123
|
+
* re-parse the instance before hydration rather than using this method.
|
|
32124
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
32125
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
32126
|
+
*
|
|
31763
32127
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
31764
32128
|
* `signObject()`: the clone may differ from the document that the proof
|
|
31765
32129
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -31796,7 +32160,7 @@ var CryptographicKey = class {
|
|
|
31796
32160
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31797
32161
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
31798
32162
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
31799
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
32163
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
31800
32164
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
31801
32165
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
31802
32166
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -32193,7 +32557,7 @@ var CryptographicKey = class {
|
|
|
32193
32557
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32194
32558
|
*/
|
|
32195
32559
|
static async fromJsonLd(json, options = {}) {
|
|
32196
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
32560
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32197
32561
|
try {
|
|
32198
32562
|
const object = await this.__fromJsonLd__CryptographicKey__(json, span, options);
|
|
32199
32563
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -32414,6 +32778,19 @@ var Multikey = class {
|
|
|
32414
32778
|
/**
|
|
32415
32779
|
* Clones this instance, optionally updating it with the given values.
|
|
32416
32780
|
*
|
|
32781
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
32782
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
32783
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
32784
|
+
* shared nested object through the clone can affect the original as well,
|
|
32785
|
+
* and can change JSON-LD output when either is embedded in another
|
|
32786
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
32787
|
+
* instance's property.
|
|
32788
|
+
*
|
|
32789
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
32790
|
+
* re-parse the instance before hydration rather than using this method.
|
|
32791
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
32792
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
32793
|
+
*
|
|
32417
32794
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
32418
32795
|
* `signObject()`: the clone may differ from the document that the proof
|
|
32419
32796
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -32450,7 +32827,7 @@ var Multikey = class {
|
|
|
32450
32827
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
32451
32828
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
32452
32829
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
32453
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
32830
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
32454
32831
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
32455
32832
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
32456
32833
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -32853,7 +33230,7 @@ var Multikey = class {
|
|
|
32853
33230
|
* @throws {TypeError} If the given `json` is invalid.
|
|
32854
33231
|
*/
|
|
32855
33232
|
static async fromJsonLd(json, options = {}) {
|
|
32856
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
33233
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
32857
33234
|
try {
|
|
32858
33235
|
const object = await this.__fromJsonLd__Multikey__(json, span, options);
|
|
32859
33236
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33027,6 +33404,19 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
33027
33404
|
/**
|
|
33028
33405
|
* Clones this instance, optionally updating it with the given values.
|
|
33029
33406
|
*
|
|
33407
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
33408
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
33409
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
33410
|
+
* shared nested object through the clone can affect the original as well,
|
|
33411
|
+
* and can change JSON-LD output when either is embedded in another
|
|
33412
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
33413
|
+
* instance's property.
|
|
33414
|
+
*
|
|
33415
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
33416
|
+
* re-parse the instance before hydration rather than using this method.
|
|
33417
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
33418
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
33419
|
+
*
|
|
33030
33420
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
33031
33421
|
* `signObject()`: the clone may differ from the document that the proof
|
|
33032
33422
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -33241,7 +33631,7 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
33241
33631
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33242
33632
|
*/
|
|
33243
33633
|
static async fromJsonLd(json, options = {}) {
|
|
33244
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
33634
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33245
33635
|
try {
|
|
33246
33636
|
const object = await this.__fromJsonLd__Agreement__(json, span, options);
|
|
33247
33637
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33447,6 +33837,19 @@ var Commitment = class {
|
|
|
33447
33837
|
/**
|
|
33448
33838
|
* Clones this instance, optionally updating it with the given values.
|
|
33449
33839
|
*
|
|
33840
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
33841
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
33842
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
33843
|
+
* shared nested object through the clone can affect the original as well,
|
|
33844
|
+
* and can change JSON-LD output when either is embedded in another
|
|
33845
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
33846
|
+
* instance's property.
|
|
33847
|
+
*
|
|
33848
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
33849
|
+
* re-parse the instance before hydration rather than using this method.
|
|
33850
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
33851
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
33852
|
+
*
|
|
33450
33853
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
33451
33854
|
* `signObject()`: the clone may differ from the document that the proof
|
|
33452
33855
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -33621,7 +34024,7 @@ var Commitment = class {
|
|
|
33621
34024
|
* @throws {TypeError} If the given `json` is invalid.
|
|
33622
34025
|
*/
|
|
33623
34026
|
static async fromJsonLd(json, options = {}) {
|
|
33624
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
34027
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
33625
34028
|
try {
|
|
33626
34029
|
const object = await this.__fromJsonLd__Commitment__(json, span, options);
|
|
33627
34030
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -33829,6 +34232,19 @@ var Intent = class {
|
|
|
33829
34232
|
/**
|
|
33830
34233
|
* Clones this instance, optionally updating it with the given values.
|
|
33831
34234
|
*
|
|
34235
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
34236
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
34237
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
34238
|
+
* shared nested object through the clone can affect the original as well,
|
|
34239
|
+
* and can change JSON-LD output when either is embedded in another
|
|
34240
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
34241
|
+
* instance's property.
|
|
34242
|
+
*
|
|
34243
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
34244
|
+
* re-parse the instance before hydration rather than using this method.
|
|
34245
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
34246
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
34247
|
+
*
|
|
33832
34248
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
33833
34249
|
* `signObject()`: the clone may differ from the document that the proof
|
|
33834
34250
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -34093,7 +34509,7 @@ var Intent = class {
|
|
|
34093
34509
|
* @throws {TypeError} If the given `json` is invalid.
|
|
34094
34510
|
*/
|
|
34095
34511
|
static async fromJsonLd(json, options = {}) {
|
|
34096
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
34512
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
34097
34513
|
try {
|
|
34098
34514
|
const object = await this.__fromJsonLd__Intent__(json, span, options);
|
|
34099
34515
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34316,6 +34732,19 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
34316
34732
|
/**
|
|
34317
34733
|
* Clones this instance, optionally updating it with the given values.
|
|
34318
34734
|
*
|
|
34735
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
34736
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
34737
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
34738
|
+
* shared nested object through the clone can affect the original as well,
|
|
34739
|
+
* and can change JSON-LD output when either is embedded in another
|
|
34740
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
34741
|
+
* instance's property.
|
|
34742
|
+
*
|
|
34743
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
34744
|
+
* re-parse the instance before hydration rather than using this method.
|
|
34745
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
34746
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
34747
|
+
*
|
|
34319
34748
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
34320
34749
|
* `signObject()`: the clone may differ from the document that the proof
|
|
34321
34750
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -34593,7 +35022,7 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
34593
35022
|
* @throws {TypeError} If the given `json` is invalid.
|
|
34594
35023
|
*/
|
|
34595
35024
|
static async fromJsonLd(json, options = {}) {
|
|
34596
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
35025
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
34597
35026
|
try {
|
|
34598
35027
|
const object = await this.__fromJsonLd__Proposal__(json, span, options);
|
|
34599
35028
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34776,6 +35205,19 @@ var Accept = class Accept extends Activity {
|
|
|
34776
35205
|
/**
|
|
34777
35206
|
* Clones this instance, optionally updating it with the given values.
|
|
34778
35207
|
*
|
|
35208
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
35209
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
35210
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
35211
|
+
* shared nested object through the clone can affect the original as well,
|
|
35212
|
+
* and can change JSON-LD output when either is embedded in another
|
|
35213
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
35214
|
+
* instance's property.
|
|
35215
|
+
*
|
|
35216
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
35217
|
+
* re-parse the instance before hydration rather than using this method.
|
|
35218
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
35219
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
35220
|
+
*
|
|
34779
35221
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
34780
35222
|
* `signObject()`: the clone may differ from the document that the proof
|
|
34781
35223
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -34866,7 +35308,7 @@ var Accept = class Accept extends Activity {
|
|
|
34866
35308
|
* @throws {TypeError} If the given `json` is invalid.
|
|
34867
35309
|
*/
|
|
34868
35310
|
static async fromJsonLd(json, options = {}) {
|
|
34869
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
35311
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
34870
35312
|
try {
|
|
34871
35313
|
const object = await this.__fromJsonLd__Accept__(json, span, options);
|
|
34872
35314
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -34972,6 +35414,19 @@ var Add = class Add extends Activity {
|
|
|
34972
35414
|
/**
|
|
34973
35415
|
* Clones this instance, optionally updating it with the given values.
|
|
34974
35416
|
*
|
|
35417
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
35418
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
35419
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
35420
|
+
* shared nested object through the clone can affect the original as well,
|
|
35421
|
+
* and can change JSON-LD output when either is embedded in another
|
|
35422
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
35423
|
+
* instance's property.
|
|
35424
|
+
*
|
|
35425
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
35426
|
+
* re-parse the instance before hydration rather than using this method.
|
|
35427
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
35428
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
35429
|
+
*
|
|
34975
35430
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
34976
35431
|
* `signObject()`: the clone may differ from the document that the proof
|
|
34977
35432
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -35062,7 +35517,7 @@ var Add = class Add extends Activity {
|
|
|
35062
35517
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35063
35518
|
*/
|
|
35064
35519
|
static async fromJsonLd(json, options = {}) {
|
|
35065
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
35520
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35066
35521
|
try {
|
|
35067
35522
|
const object = await this.__fromJsonLd__Add__(json, span, options);
|
|
35068
35523
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -35166,6 +35621,19 @@ var Announce = class Announce extends Activity {
|
|
|
35166
35621
|
/**
|
|
35167
35622
|
* Clones this instance, optionally updating it with the given values.
|
|
35168
35623
|
*
|
|
35624
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
35625
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
35626
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
35627
|
+
* shared nested object through the clone can affect the original as well,
|
|
35628
|
+
* and can change JSON-LD output when either is embedded in another
|
|
35629
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
35630
|
+
* instance's property.
|
|
35631
|
+
*
|
|
35632
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
35633
|
+
* re-parse the instance before hydration rather than using this method.
|
|
35634
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
35635
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
35636
|
+
*
|
|
35169
35637
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
35170
35638
|
* `signObject()`: the clone may differ from the document that the proof
|
|
35171
35639
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -35285,7 +35753,7 @@ var Announce = class Announce extends Activity {
|
|
|
35285
35753
|
* @throws {TypeError} If the given `json` is invalid.
|
|
35286
35754
|
*/
|
|
35287
35755
|
static async fromJsonLd(json, options = {}) {
|
|
35288
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
35756
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
35289
35757
|
try {
|
|
35290
35758
|
const object = await this.__fromJsonLd__Announce__(json, span, options);
|
|
35291
35759
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -35539,6 +36007,19 @@ var Application = class Application extends Object$1 {
|
|
|
35539
36007
|
/**
|
|
35540
36008
|
* Clones this instance, optionally updating it with the given values.
|
|
35541
36009
|
*
|
|
36010
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
36011
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
36012
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
36013
|
+
* shared nested object through the clone can affect the original as well,
|
|
36014
|
+
* and can change JSON-LD output when either is embedded in another
|
|
36015
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
36016
|
+
* instance's property.
|
|
36017
|
+
*
|
|
36018
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
36019
|
+
* re-parse the instance before hydration rather than using this method.
|
|
36020
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
36021
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
36022
|
+
*
|
|
35542
36023
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
35543
36024
|
* `signObject()`: the clone may differ from the document that the proof
|
|
35544
36025
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -35736,7 +36217,7 @@ var Application = class Application extends Object$1 {
|
|
|
35736
36217
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
35737
36218
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
35738
36219
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
35739
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
36220
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
35740
36221
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
35741
36222
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
35742
36223
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -36034,7 +36515,7 @@ var Application = class Application extends Object$1 {
|
|
|
36034
36515
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
36035
36516
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
36036
36517
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
36037
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
36518
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
36038
36519
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
36039
36520
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36040
36521
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -36368,7 +36849,7 @@ var Application = class Application extends Object$1 {
|
|
|
36368
36849
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
36369
36850
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
36370
36851
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
36371
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
36852
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
36372
36853
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
36373
36854
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36374
36855
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -36616,7 +37097,7 @@ var Application = class Application extends Object$1 {
|
|
|
36616
37097
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
36617
37098
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
36618
37099
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
36619
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
37100
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
36620
37101
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
36621
37102
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36622
37103
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -36861,7 +37342,7 @@ var Application = class Application extends Object$1 {
|
|
|
36861
37342
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
36862
37343
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
36863
37344
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
36864
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
37345
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
36865
37346
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
36866
37347
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
36867
37348
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -37090,7 +37571,7 @@ var Application = class Application extends Object$1 {
|
|
|
37090
37571
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
37091
37572
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
37092
37573
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
37093
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
37574
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
37094
37575
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
37095
37576
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37096
37577
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -37322,7 +37803,7 @@ var Application = class Application extends Object$1 {
|
|
|
37322
37803
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
37323
37804
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
37324
37805
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
37325
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
37806
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
37326
37807
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
37327
37808
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37328
37809
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -37552,7 +38033,7 @@ var Application = class Application extends Object$1 {
|
|
|
37552
38033
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
37553
38034
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
37554
38035
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
37555
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
38036
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
37556
38037
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
37557
38038
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37558
38039
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -37780,7 +38261,7 @@ var Application = class Application extends Object$1 {
|
|
|
37780
38261
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
37781
38262
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
37782
38263
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
37783
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
38264
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
37784
38265
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
37785
38266
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
37786
38267
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -38008,7 +38489,7 @@ var Application = class Application extends Object$1 {
|
|
|
38008
38489
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
38009
38490
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
38010
38491
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
38011
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
38492
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
38012
38493
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
38013
38494
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38014
38495
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -38233,7 +38714,7 @@ var Application = class Application extends Object$1 {
|
|
|
38233
38714
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
38234
38715
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
38235
38716
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
38236
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
38717
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
38237
38718
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
38238
38719
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38239
38720
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -38504,7 +38985,7 @@ var Application = class Application extends Object$1 {
|
|
|
38504
38985
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
38505
38986
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
38506
38987
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
38507
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
38988
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
38508
38989
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
38509
38990
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38510
38991
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -38779,7 +39260,7 @@ var Application = class Application extends Object$1 {
|
|
|
38779
39260
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
38780
39261
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
38781
39262
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
38782
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
39263
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
38783
39264
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
38784
39265
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
38785
39266
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -39133,7 +39614,7 @@ var Application = class Application extends Object$1 {
|
|
|
39133
39614
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
39134
39615
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
39135
39616
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
39136
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
39617
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
39137
39618
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
39138
39619
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
39139
39620
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -40130,7 +40611,7 @@ var Application = class Application extends Object$1 {
|
|
|
40130
40611
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40131
40612
|
*/
|
|
40132
40613
|
static async fromJsonLd(json, options = {}) {
|
|
40133
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
40614
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40134
40615
|
try {
|
|
40135
40616
|
const object = await this.__fromJsonLd__Application__(json, span, options);
|
|
40136
40617
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -40818,6 +41299,19 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
40818
41299
|
/**
|
|
40819
41300
|
* Clones this instance, optionally updating it with the given values.
|
|
40820
41301
|
*
|
|
41302
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
41303
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
41304
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
41305
|
+
* shared nested object through the clone can affect the original as well,
|
|
41306
|
+
* and can change JSON-LD output when either is embedded in another
|
|
41307
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
41308
|
+
* instance's property.
|
|
41309
|
+
*
|
|
41310
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
41311
|
+
* re-parse the instance before hydration rather than using this method.
|
|
41312
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
41313
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
41314
|
+
*
|
|
40821
41315
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
40822
41316
|
* `signObject()`: the clone may differ from the document that the proof
|
|
40823
41317
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -40908,7 +41402,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
40908
41402
|
* @throws {TypeError} If the given `json` is invalid.
|
|
40909
41403
|
*/
|
|
40910
41404
|
static async fromJsonLd(json, options = {}) {
|
|
40911
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
41405
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
40912
41406
|
try {
|
|
40913
41407
|
const object = await this.__fromJsonLd__IntransitiveActivity__(json, span, options);
|
|
40914
41408
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41015,6 +41509,19 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
41015
41509
|
/**
|
|
41016
41510
|
* Clones this instance, optionally updating it with the given values.
|
|
41017
41511
|
*
|
|
41512
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
41513
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
41514
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
41515
|
+
* shared nested object through the clone can affect the original as well,
|
|
41516
|
+
* and can change JSON-LD output when either is embedded in another
|
|
41517
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
41518
|
+
* instance's property.
|
|
41519
|
+
*
|
|
41520
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
41521
|
+
* re-parse the instance before hydration rather than using this method.
|
|
41522
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
41523
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
41524
|
+
*
|
|
41018
41525
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
41019
41526
|
* `signObject()`: the clone may differ from the document that the proof
|
|
41020
41527
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -41105,7 +41612,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
41105
41612
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41106
41613
|
*/
|
|
41107
41614
|
static async fromJsonLd(json, options = {}) {
|
|
41108
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
41615
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41109
41616
|
try {
|
|
41110
41617
|
const object = await this.__fromJsonLd__Arrive__(json, span, options);
|
|
41111
41618
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -41222,6 +41729,19 @@ var Article = class Article extends Object$1 {
|
|
|
41222
41729
|
/**
|
|
41223
41730
|
* Clones this instance, optionally updating it with the given values.
|
|
41224
41731
|
*
|
|
41732
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
41733
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
41734
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
41735
|
+
* shared nested object through the clone can affect the original as well,
|
|
41736
|
+
* and can change JSON-LD output when either is embedded in another
|
|
41737
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
41738
|
+
* instance's property.
|
|
41739
|
+
*
|
|
41740
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
41741
|
+
* re-parse the instance before hydration rather than using this method.
|
|
41742
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
41743
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
41744
|
+
*
|
|
41225
41745
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
41226
41746
|
* `signObject()`: the clone may differ from the document that the proof
|
|
41227
41747
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -41263,7 +41783,7 @@ var Article = class Article extends Object$1 {
|
|
|
41263
41783
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
41264
41784
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
41265
41785
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
41266
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
41786
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
41267
41787
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
41268
41788
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41269
41789
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -41506,7 +42026,7 @@ var Article = class Article extends Object$1 {
|
|
|
41506
42026
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
41507
42027
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
41508
42028
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
41509
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
42029
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
41510
42030
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
41511
42031
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
41512
42032
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -41928,7 +42448,7 @@ var Article = class Article extends Object$1 {
|
|
|
41928
42448
|
* @throws {TypeError} If the given `json` is invalid.
|
|
41929
42449
|
*/
|
|
41930
42450
|
static async fromJsonLd(json, options = {}) {
|
|
41931
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
42451
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
41932
42452
|
try {
|
|
41933
42453
|
const object = await this.__fromJsonLd__Article__(json, span, options);
|
|
41934
42454
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42112,6 +42632,19 @@ var Document = class Document extends Object$1 {
|
|
|
42112
42632
|
/**
|
|
42113
42633
|
* Clones this instance, optionally updating it with the given values.
|
|
42114
42634
|
*
|
|
42635
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
42636
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
42637
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
42638
|
+
* shared nested object through the clone can affect the original as well,
|
|
42639
|
+
* and can change JSON-LD output when either is embedded in another
|
|
42640
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
42641
|
+
* instance's property.
|
|
42642
|
+
*
|
|
42643
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
42644
|
+
* re-parse the instance before hydration rather than using this method.
|
|
42645
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
42646
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
42647
|
+
*
|
|
42115
42648
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
42116
42649
|
* `signObject()`: the clone may differ from the document that the proof
|
|
42117
42650
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -42312,7 +42845,7 @@ var Document = class Document extends Object$1 {
|
|
|
42312
42845
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42313
42846
|
*/
|
|
42314
42847
|
static async fromJsonLd(json, options = {}) {
|
|
42315
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
42848
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42316
42849
|
try {
|
|
42317
42850
|
const object = await this.__fromJsonLd__Document__(json, span, options);
|
|
42318
42851
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42473,6 +43006,19 @@ var Audio = class Audio extends Document {
|
|
|
42473
43006
|
/**
|
|
42474
43007
|
* Clones this instance, optionally updating it with the given values.
|
|
42475
43008
|
*
|
|
43009
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
43010
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
43011
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
43012
|
+
* shared nested object through the clone can affect the original as well,
|
|
43013
|
+
* and can change JSON-LD output when either is embedded in another
|
|
43014
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
43015
|
+
* instance's property.
|
|
43016
|
+
*
|
|
43017
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
43018
|
+
* re-parse the instance before hydration rather than using this method.
|
|
43019
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
43020
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
43021
|
+
*
|
|
42476
43022
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
42477
43023
|
* `signObject()`: the clone may differ from the document that the proof
|
|
42478
43024
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -42579,7 +43125,7 @@ var Audio = class Audio extends Document {
|
|
|
42579
43125
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42580
43126
|
*/
|
|
42581
43127
|
static async fromJsonLd(json, options = {}) {
|
|
42582
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
43128
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42583
43129
|
try {
|
|
42584
43130
|
const object = await this.__fromJsonLd__Audio__(json, span, options);
|
|
42585
43131
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42682,6 +43228,19 @@ var Ignore = class Ignore extends Activity {
|
|
|
42682
43228
|
/**
|
|
42683
43229
|
* Clones this instance, optionally updating it with the given values.
|
|
42684
43230
|
*
|
|
43231
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
43232
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
43233
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
43234
|
+
* shared nested object through the clone can affect the original as well,
|
|
43235
|
+
* and can change JSON-LD output when either is embedded in another
|
|
43236
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
43237
|
+
* instance's property.
|
|
43238
|
+
*
|
|
43239
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
43240
|
+
* re-parse the instance before hydration rather than using this method.
|
|
43241
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
43242
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
43243
|
+
*
|
|
42685
43244
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
42686
43245
|
* `signObject()`: the clone may differ from the document that the proof
|
|
42687
43246
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -42772,7 +43331,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
42772
43331
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42773
43332
|
*/
|
|
42774
43333
|
static async fromJsonLd(json, options = {}) {
|
|
42775
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
43334
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42776
43335
|
try {
|
|
42777
43336
|
const object = await this.__fromJsonLd__Ignore__(json, span, options);
|
|
42778
43337
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -42878,6 +43437,19 @@ var Block = class Block extends Ignore {
|
|
|
42878
43437
|
/**
|
|
42879
43438
|
* Clones this instance, optionally updating it with the given values.
|
|
42880
43439
|
*
|
|
43440
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
43441
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
43442
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
43443
|
+
* shared nested object through the clone can affect the original as well,
|
|
43444
|
+
* and can change JSON-LD output when either is embedded in another
|
|
43445
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
43446
|
+
* instance's property.
|
|
43447
|
+
*
|
|
43448
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
43449
|
+
* re-parse the instance before hydration rather than using this method.
|
|
43450
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
43451
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
43452
|
+
*
|
|
42881
43453
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
42882
43454
|
* `signObject()`: the clone may differ from the document that the proof
|
|
42883
43455
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -42968,7 +43540,7 @@ var Block = class Block extends Ignore {
|
|
|
42968
43540
|
* @throws {TypeError} If the given `json` is invalid.
|
|
42969
43541
|
*/
|
|
42970
43542
|
static async fromJsonLd(json, options = {}) {
|
|
42971
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
43543
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
42972
43544
|
try {
|
|
42973
43545
|
const object = await this.__fromJsonLd__Block__(json, span, options);
|
|
42974
43546
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -43090,6 +43662,19 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
43090
43662
|
/**
|
|
43091
43663
|
* Clones this instance, optionally updating it with the given values.
|
|
43092
43664
|
*
|
|
43665
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
43666
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
43667
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
43668
|
+
* shared nested object through the clone can affect the original as well,
|
|
43669
|
+
* and can change JSON-LD output when either is embedded in another
|
|
43670
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
43671
|
+
* instance's property.
|
|
43672
|
+
*
|
|
43673
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
43674
|
+
* re-parse the instance before hydration rather than using this method.
|
|
43675
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
43676
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
43677
|
+
*
|
|
43093
43678
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
43094
43679
|
* `signObject()`: the clone may differ from the document that the proof
|
|
43095
43680
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -43134,7 +43719,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
43134
43719
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43135
43720
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43136
43721
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
43137
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
43722
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
43138
43723
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
43139
43724
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43140
43725
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -43360,7 +43945,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
43360
43945
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43361
43946
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43362
43947
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
43363
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
43948
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
43364
43949
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
43365
43950
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43366
43951
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -43585,7 +44170,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
43585
44170
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43586
44171
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
43587
44172
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
43588
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
44173
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
43589
44174
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
43590
44175
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
43591
44176
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -44007,7 +44592,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
44007
44592
|
* @throws {TypeError} If the given `json` is invalid.
|
|
44008
44593
|
*/
|
|
44009
44594
|
static async fromJsonLd(json, options = {}) {
|
|
44010
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
44595
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
44011
44596
|
try {
|
|
44012
44597
|
const object = await this.__fromJsonLd__CollectionPage__(json, span, options);
|
|
44013
44598
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -44189,6 +44774,19 @@ var Create = class Create extends Activity {
|
|
|
44189
44774
|
/**
|
|
44190
44775
|
* Clones this instance, optionally updating it with the given values.
|
|
44191
44776
|
*
|
|
44777
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
44778
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
44779
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
44780
|
+
* shared nested object through the clone can affect the original as well,
|
|
44781
|
+
* and can change JSON-LD output when either is embedded in another
|
|
44782
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
44783
|
+
* instance's property.
|
|
44784
|
+
*
|
|
44785
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
44786
|
+
* re-parse the instance before hydration rather than using this method.
|
|
44787
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
44788
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
44789
|
+
*
|
|
44192
44790
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
44193
44791
|
* `signObject()`: the clone may differ from the document that the proof
|
|
44194
44792
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -44309,7 +44907,7 @@ var Create = class Create extends Activity {
|
|
|
44309
44907
|
* @throws {TypeError} If the given `json` is invalid.
|
|
44310
44908
|
*/
|
|
44311
44909
|
static async fromJsonLd(json, options = {}) {
|
|
44312
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
44910
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
44313
44911
|
try {
|
|
44314
44912
|
const object = await this.__fromJsonLd__Create__(json, span, options);
|
|
44315
44913
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -44412,6 +45010,19 @@ var Delete = class Delete extends Activity {
|
|
|
44412
45010
|
/**
|
|
44413
45011
|
* Clones this instance, optionally updating it with the given values.
|
|
44414
45012
|
*
|
|
45013
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
45014
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
45015
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
45016
|
+
* shared nested object through the clone can affect the original as well,
|
|
45017
|
+
* and can change JSON-LD output when either is embedded in another
|
|
45018
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
45019
|
+
* instance's property.
|
|
45020
|
+
*
|
|
45021
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
45022
|
+
* re-parse the instance before hydration rather than using this method.
|
|
45023
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
45024
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
45025
|
+
*
|
|
44415
45026
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
44416
45027
|
* `signObject()`: the clone may differ from the document that the proof
|
|
44417
45028
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -44528,7 +45139,7 @@ var Delete = class Delete extends Activity {
|
|
|
44528
45139
|
* @throws {TypeError} If the given `json` is invalid.
|
|
44529
45140
|
*/
|
|
44530
45141
|
static async fromJsonLd(json, options = {}) {
|
|
44531
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
45142
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
44532
45143
|
try {
|
|
44533
45144
|
const object = await this.__fromJsonLd__Delete__(json, span, options);
|
|
44534
45145
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -44630,6 +45241,19 @@ var Dislike = class Dislike extends Activity {
|
|
|
44630
45241
|
/**
|
|
44631
45242
|
* Clones this instance, optionally updating it with the given values.
|
|
44632
45243
|
*
|
|
45244
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
45245
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
45246
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
45247
|
+
* shared nested object through the clone can affect the original as well,
|
|
45248
|
+
* and can change JSON-LD output when either is embedded in another
|
|
45249
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
45250
|
+
* instance's property.
|
|
45251
|
+
*
|
|
45252
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
45253
|
+
* re-parse the instance before hydration rather than using this method.
|
|
45254
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
45255
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
45256
|
+
*
|
|
44633
45257
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
44634
45258
|
* `signObject()`: the clone may differ from the document that the proof
|
|
44635
45259
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -44724,7 +45348,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
44724
45348
|
* @throws {TypeError} If the given `json` is invalid.
|
|
44725
45349
|
*/
|
|
44726
45350
|
static async fromJsonLd(json, options = {}) {
|
|
44727
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
45351
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
44728
45352
|
try {
|
|
44729
45353
|
const object = await this.__fromJsonLd__Dislike__(json, span, options);
|
|
44730
45354
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -44899,6 +45523,19 @@ var Endpoints = class {
|
|
|
44899
45523
|
/**
|
|
44900
45524
|
* Clones this instance, optionally updating it with the given values.
|
|
44901
45525
|
*
|
|
45526
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
45527
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
45528
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
45529
|
+
* shared nested object through the clone can affect the original as well,
|
|
45530
|
+
* and can change JSON-LD output when either is embedded in another
|
|
45531
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
45532
|
+
* instance's property.
|
|
45533
|
+
*
|
|
45534
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
45535
|
+
* re-parse the instance before hydration rather than using this method.
|
|
45536
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
45537
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
45538
|
+
*
|
|
44902
45539
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
44903
45540
|
* `signObject()`: the clone may differ from the document that the proof
|
|
44904
45541
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -45202,7 +45839,7 @@ var Endpoints = class {
|
|
|
45202
45839
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45203
45840
|
*/
|
|
45204
45841
|
static async fromJsonLd(json, options = {}) {
|
|
45205
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
45842
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45206
45843
|
try {
|
|
45207
45844
|
const object = await this.__fromJsonLd__Endpoints__(json, span, options);
|
|
45208
45845
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45429,6 +46066,19 @@ var Event = class Event extends Object$1 {
|
|
|
45429
46066
|
/**
|
|
45430
46067
|
* Clones this instance, optionally updating it with the given values.
|
|
45431
46068
|
*
|
|
46069
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
46070
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
46071
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
46072
|
+
* shared nested object through the clone can affect the original as well,
|
|
46073
|
+
* and can change JSON-LD output when either is embedded in another
|
|
46074
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
46075
|
+
* instance's property.
|
|
46076
|
+
*
|
|
46077
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
46078
|
+
* re-parse the instance before hydration rather than using this method.
|
|
46079
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
46080
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
46081
|
+
*
|
|
45432
46082
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
45433
46083
|
* `signObject()`: the clone may differ from the document that the proof
|
|
45434
46084
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -45533,7 +46183,7 @@ var Event = class Event extends Object$1 {
|
|
|
45533
46183
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45534
46184
|
*/
|
|
45535
46185
|
static async fromJsonLd(json, options = {}) {
|
|
45536
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
46186
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45537
46187
|
try {
|
|
45538
46188
|
const object = await this.__fromJsonLd__Event__(json, span, options);
|
|
45539
46189
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45637,6 +46287,19 @@ var Flag = class Flag extends Activity {
|
|
|
45637
46287
|
/**
|
|
45638
46288
|
* Clones this instance, optionally updating it with the given values.
|
|
45639
46289
|
*
|
|
46290
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
46291
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
46292
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
46293
|
+
* shared nested object through the clone can affect the original as well,
|
|
46294
|
+
* and can change JSON-LD output when either is embedded in another
|
|
46295
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
46296
|
+
* instance's property.
|
|
46297
|
+
*
|
|
46298
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
46299
|
+
* re-parse the instance before hydration rather than using this method.
|
|
46300
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
46301
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
46302
|
+
*
|
|
45640
46303
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
45641
46304
|
* `signObject()`: the clone may differ from the document that the proof
|
|
45642
46305
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -45727,7 +46390,7 @@ var Flag = class Flag extends Activity {
|
|
|
45727
46390
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45728
46391
|
*/
|
|
45729
46392
|
static async fromJsonLd(json, options = {}) {
|
|
45730
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
46393
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45731
46394
|
try {
|
|
45732
46395
|
const object = await this.__fromJsonLd__Flag__(json, span, options);
|
|
45733
46396
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -45832,6 +46495,19 @@ var Follow = class Follow extends Activity {
|
|
|
45832
46495
|
/**
|
|
45833
46496
|
* Clones this instance, optionally updating it with the given values.
|
|
45834
46497
|
*
|
|
46498
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
46499
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
46500
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
46501
|
+
* shared nested object through the clone can affect the original as well,
|
|
46502
|
+
* and can change JSON-LD output when either is embedded in another
|
|
46503
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
46504
|
+
* instance's property.
|
|
46505
|
+
*
|
|
46506
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
46507
|
+
* re-parse the instance before hydration rather than using this method.
|
|
46508
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
46509
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
46510
|
+
*
|
|
45835
46511
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
45836
46512
|
* `signObject()`: the clone may differ from the document that the proof
|
|
45837
46513
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -45925,7 +46601,7 @@ var Follow = class Follow extends Activity {
|
|
|
45925
46601
|
* @throws {TypeError} If the given `json` is invalid.
|
|
45926
46602
|
*/
|
|
45927
46603
|
static async fromJsonLd(json, options = {}) {
|
|
45928
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
46604
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
45929
46605
|
try {
|
|
45930
46606
|
const object = await this.__fromJsonLd__Follow__(json, span, options);
|
|
45931
46607
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -46179,6 +46855,19 @@ var Group = class Group extends Object$1 {
|
|
|
46179
46855
|
/**
|
|
46180
46856
|
* Clones this instance, optionally updating it with the given values.
|
|
46181
46857
|
*
|
|
46858
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
46859
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
46860
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
46861
|
+
* shared nested object through the clone can affect the original as well,
|
|
46862
|
+
* and can change JSON-LD output when either is embedded in another
|
|
46863
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
46864
|
+
* instance's property.
|
|
46865
|
+
*
|
|
46866
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
46867
|
+
* re-parse the instance before hydration rather than using this method.
|
|
46868
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
46869
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
46870
|
+
*
|
|
46182
46871
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
46183
46872
|
* `signObject()`: the clone may differ from the document that the proof
|
|
46184
46873
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -46376,7 +47065,7 @@ var Group = class Group extends Object$1 {
|
|
|
46376
47065
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
46377
47066
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
46378
47067
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
46379
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
47068
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
46380
47069
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
46381
47070
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
46382
47071
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -46674,7 +47363,7 @@ var Group = class Group extends Object$1 {
|
|
|
46674
47363
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
46675
47364
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
46676
47365
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
46677
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
47366
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
46678
47367
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
46679
47368
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
46680
47369
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -47008,7 +47697,7 @@ var Group = class Group extends Object$1 {
|
|
|
47008
47697
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
47009
47698
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
47010
47699
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
47011
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
47700
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
47012
47701
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
47013
47702
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47014
47703
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -47256,7 +47945,7 @@ var Group = class Group extends Object$1 {
|
|
|
47256
47945
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
47257
47946
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
47258
47947
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
47259
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
47948
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
47260
47949
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
47261
47950
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47262
47951
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -47501,7 +48190,7 @@ var Group = class Group extends Object$1 {
|
|
|
47501
48190
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
47502
48191
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
47503
48192
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
47504
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
48193
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
47505
48194
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
47506
48195
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47507
48196
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -47730,7 +48419,7 @@ var Group = class Group extends Object$1 {
|
|
|
47730
48419
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
47731
48420
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
47732
48421
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
47733
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
48422
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
47734
48423
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
47735
48424
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47736
48425
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -47962,7 +48651,7 @@ var Group = class Group extends Object$1 {
|
|
|
47962
48651
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
47963
48652
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
47964
48653
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
47965
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
48654
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
47966
48655
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
47967
48656
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
47968
48657
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -48192,7 +48881,7 @@ var Group = class Group extends Object$1 {
|
|
|
48192
48881
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
48193
48882
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
48194
48883
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
48195
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
48884
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
48196
48885
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
48197
48886
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
48198
48887
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -48420,7 +49109,7 @@ var Group = class Group extends Object$1 {
|
|
|
48420
49109
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
48421
49110
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
48422
49111
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
48423
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
49112
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
48424
49113
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
48425
49114
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
48426
49115
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -48648,7 +49337,7 @@ var Group = class Group extends Object$1 {
|
|
|
48648
49337
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
48649
49338
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
48650
49339
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
48651
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
49340
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
48652
49341
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
48653
49342
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
48654
49343
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -48873,7 +49562,7 @@ var Group = class Group extends Object$1 {
|
|
|
48873
49562
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
48874
49563
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
48875
49564
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
48876
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
49565
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
48877
49566
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
48878
49567
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
48879
49568
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -49144,7 +49833,7 @@ var Group = class Group extends Object$1 {
|
|
|
49144
49833
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
49145
49834
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
49146
49835
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
49147
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
49836
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
49148
49837
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
49149
49838
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
49150
49839
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -49419,7 +50108,7 @@ var Group = class Group extends Object$1 {
|
|
|
49419
50108
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
49420
50109
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
49421
50110
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
49422
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
50111
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
49423
50112
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
49424
50113
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
49425
50114
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -49773,7 +50462,7 @@ var Group = class Group extends Object$1 {
|
|
|
49773
50462
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
49774
50463
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
49775
50464
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
49776
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
50465
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
49777
50466
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
49778
50467
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
49779
50468
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -50770,7 +51459,7 @@ var Group = class Group extends Object$1 {
|
|
|
50770
51459
|
* @throws {TypeError} If the given `json` is invalid.
|
|
50771
51460
|
*/
|
|
50772
51461
|
static async fromJsonLd(json, options = {}) {
|
|
50773
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
51462
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
50774
51463
|
try {
|
|
50775
51464
|
const object = await this.__fromJsonLd__Group__(json, span, options);
|
|
50776
51465
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -51555,6 +52244,19 @@ var Link = class Link {
|
|
|
51555
52244
|
/**
|
|
51556
52245
|
* Clones this instance, optionally updating it with the given values.
|
|
51557
52246
|
*
|
|
52247
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
52248
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
52249
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
52250
|
+
* shared nested object through the clone can affect the original as well,
|
|
52251
|
+
* and can change JSON-LD output when either is embedded in another
|
|
52252
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
52253
|
+
* instance's property.
|
|
52254
|
+
*
|
|
52255
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
52256
|
+
* re-parse the instance before hydration rather than using this method.
|
|
52257
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
52258
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
52259
|
+
*
|
|
51558
52260
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
51559
52261
|
* `signObject()`: the clone may differ from the document that the proof
|
|
51560
52262
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -51709,7 +52411,7 @@ var Link = class Link {
|
|
|
51709
52411
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
51710
52412
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
51711
52413
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
51712
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
52414
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
51713
52415
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
51714
52416
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
51715
52417
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -52184,7 +52886,7 @@ var Link = class Link {
|
|
|
52184
52886
|
* @throws {TypeError} If the given `json` is invalid.
|
|
52185
52887
|
*/
|
|
52186
52888
|
static async fromJsonLd(json, options = {}) {
|
|
52187
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
52889
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
52188
52890
|
try {
|
|
52189
52891
|
const object = await this.__fromJsonLd__Link__(json, span, options);
|
|
52190
52892
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -52538,6 +53240,19 @@ var Hashtag = class Hashtag extends Link {
|
|
|
52538
53240
|
/**
|
|
52539
53241
|
* Clones this instance, optionally updating it with the given values.
|
|
52540
53242
|
*
|
|
53243
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
53244
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
53245
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
53246
|
+
* shared nested object through the clone can affect the original as well,
|
|
53247
|
+
* and can change JSON-LD output when either is embedded in another
|
|
53248
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
53249
|
+
* instance's property.
|
|
53250
|
+
*
|
|
53251
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
53252
|
+
* re-parse the instance before hydration rather than using this method.
|
|
53253
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
53254
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
53255
|
+
*
|
|
52541
53256
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
52542
53257
|
* `signObject()`: the clone may differ from the document that the proof
|
|
52543
53258
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -52631,7 +53346,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
52631
53346
|
* @throws {TypeError} If the given `json` is invalid.
|
|
52632
53347
|
*/
|
|
52633
53348
|
static async fromJsonLd(json, options = {}) {
|
|
52634
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
53349
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
52635
53350
|
try {
|
|
52636
53351
|
const object = await this.__fromJsonLd__Hashtag__(json, span, options);
|
|
52637
53352
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -52733,6 +53448,19 @@ var Image = class Image extends Document {
|
|
|
52733
53448
|
/**
|
|
52734
53449
|
* Clones this instance, optionally updating it with the given values.
|
|
52735
53450
|
*
|
|
53451
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
53452
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
53453
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
53454
|
+
* shared nested object through the clone can affect the original as well,
|
|
53455
|
+
* and can change JSON-LD output when either is embedded in another
|
|
53456
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
53457
|
+
* instance's property.
|
|
53458
|
+
*
|
|
53459
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
53460
|
+
* re-parse the instance before hydration rather than using this method.
|
|
53461
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
53462
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
53463
|
+
*
|
|
52736
53464
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
52737
53465
|
* `signObject()`: the clone may differ from the document that the proof
|
|
52738
53466
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -52839,7 +53567,7 @@ var Image = class Image extends Document {
|
|
|
52839
53567
|
* @throws {TypeError} If the given `json` is invalid.
|
|
52840
53568
|
*/
|
|
52841
53569
|
static async fromJsonLd(json, options = {}) {
|
|
52842
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
53570
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
52843
53571
|
try {
|
|
52844
53572
|
const object = await this.__fromJsonLd__Image__(json, span, options);
|
|
52845
53573
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -52943,6 +53671,19 @@ var Offer = class Offer extends Activity {
|
|
|
52943
53671
|
/**
|
|
52944
53672
|
* Clones this instance, optionally updating it with the given values.
|
|
52945
53673
|
*
|
|
53674
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
53675
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
53676
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
53677
|
+
* shared nested object through the clone can affect the original as well,
|
|
53678
|
+
* and can change JSON-LD output when either is embedded in another
|
|
53679
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
53680
|
+
* instance's property.
|
|
53681
|
+
*
|
|
53682
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
53683
|
+
* re-parse the instance before hydration rather than using this method.
|
|
53684
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
53685
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
53686
|
+
*
|
|
52946
53687
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
52947
53688
|
* `signObject()`: the clone may differ from the document that the proof
|
|
52948
53689
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -53033,7 +53774,7 @@ var Offer = class Offer extends Activity {
|
|
|
53033
53774
|
* @throws {TypeError} If the given `json` is invalid.
|
|
53034
53775
|
*/
|
|
53035
53776
|
static async fromJsonLd(json, options = {}) {
|
|
53036
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
53777
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
53037
53778
|
try {
|
|
53038
53779
|
const object = await this.__fromJsonLd__Offer__(json, span, options);
|
|
53039
53780
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -53137,6 +53878,19 @@ var Invite = class Invite extends Offer {
|
|
|
53137
53878
|
/**
|
|
53138
53879
|
* Clones this instance, optionally updating it with the given values.
|
|
53139
53880
|
*
|
|
53881
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
53882
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
53883
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
53884
|
+
* shared nested object through the clone can affect the original as well,
|
|
53885
|
+
* and can change JSON-LD output when either is embedded in another
|
|
53886
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
53887
|
+
* instance's property.
|
|
53888
|
+
*
|
|
53889
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
53890
|
+
* re-parse the instance before hydration rather than using this method.
|
|
53891
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
53892
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
53893
|
+
*
|
|
53140
53894
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
53141
53895
|
* `signObject()`: the clone may differ from the document that the proof
|
|
53142
53896
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -53227,7 +53981,7 @@ var Invite = class Invite extends Offer {
|
|
|
53227
53981
|
* @throws {TypeError} If the given `json` is invalid.
|
|
53228
53982
|
*/
|
|
53229
53983
|
static async fromJsonLd(json, options = {}) {
|
|
53230
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
53984
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
53231
53985
|
try {
|
|
53232
53986
|
const object = await this.__fromJsonLd__Invite__(json, span, options);
|
|
53233
53987
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -53330,6 +54084,19 @@ var Join = class Join extends Activity {
|
|
|
53330
54084
|
/**
|
|
53331
54085
|
* Clones this instance, optionally updating it with the given values.
|
|
53332
54086
|
*
|
|
54087
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
54088
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
54089
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
54090
|
+
* shared nested object through the clone can affect the original as well,
|
|
54091
|
+
* and can change JSON-LD output when either is embedded in another
|
|
54092
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
54093
|
+
* instance's property.
|
|
54094
|
+
*
|
|
54095
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
54096
|
+
* re-parse the instance before hydration rather than using this method.
|
|
54097
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
54098
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
54099
|
+
*
|
|
53333
54100
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
53334
54101
|
* `signObject()`: the clone may differ from the document that the proof
|
|
53335
54102
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -53420,7 +54187,7 @@ var Join = class Join extends Activity {
|
|
|
53420
54187
|
* @throws {TypeError} If the given `json` is invalid.
|
|
53421
54188
|
*/
|
|
53422
54189
|
static async fromJsonLd(json, options = {}) {
|
|
53423
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
54190
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
53424
54191
|
try {
|
|
53425
54192
|
const object = await this.__fromJsonLd__Join__(json, span, options);
|
|
53426
54193
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -53523,6 +54290,19 @@ var Leave = class Leave extends Activity {
|
|
|
53523
54290
|
/**
|
|
53524
54291
|
* Clones this instance, optionally updating it with the given values.
|
|
53525
54292
|
*
|
|
54293
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
54294
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
54295
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
54296
|
+
* shared nested object through the clone can affect the original as well,
|
|
54297
|
+
* and can change JSON-LD output when either is embedded in another
|
|
54298
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
54299
|
+
* instance's property.
|
|
54300
|
+
*
|
|
54301
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
54302
|
+
* re-parse the instance before hydration rather than using this method.
|
|
54303
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
54304
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
54305
|
+
*
|
|
53526
54306
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
53527
54307
|
* `signObject()`: the clone may differ from the document that the proof
|
|
53528
54308
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -53613,7 +54393,7 @@ var Leave = class Leave extends Activity {
|
|
|
53613
54393
|
* @throws {TypeError} If the given `json` is invalid.
|
|
53614
54394
|
*/
|
|
53615
54395
|
static async fromJsonLd(json, options = {}) {
|
|
53616
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
54396
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
53617
54397
|
try {
|
|
53618
54398
|
const object = await this.__fromJsonLd__Leave__(json, span, options);
|
|
53619
54399
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -53716,6 +54496,19 @@ var Like = class Like extends Activity {
|
|
|
53716
54496
|
/**
|
|
53717
54497
|
* Clones this instance, optionally updating it with the given values.
|
|
53718
54498
|
*
|
|
54499
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
54500
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
54501
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
54502
|
+
* shared nested object through the clone can affect the original as well,
|
|
54503
|
+
* and can change JSON-LD output when either is embedded in another
|
|
54504
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
54505
|
+
* instance's property.
|
|
54506
|
+
*
|
|
54507
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
54508
|
+
* re-parse the instance before hydration rather than using this method.
|
|
54509
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
54510
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
54511
|
+
*
|
|
53719
54512
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
53720
54513
|
* `signObject()`: the clone may differ from the document that the proof
|
|
53721
54514
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -53810,7 +54603,7 @@ var Like = class Like extends Activity {
|
|
|
53810
54603
|
* @throws {TypeError} If the given `json` is invalid.
|
|
53811
54604
|
*/
|
|
53812
54605
|
static async fromJsonLd(json, options = {}) {
|
|
53813
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
54606
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
53814
54607
|
try {
|
|
53815
54608
|
const object = await this.__fromJsonLd__Like__(json, span, options);
|
|
53816
54609
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -53912,6 +54705,19 @@ var Listen = class Listen extends Activity {
|
|
|
53912
54705
|
/**
|
|
53913
54706
|
* Clones this instance, optionally updating it with the given values.
|
|
53914
54707
|
*
|
|
54708
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
54709
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
54710
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
54711
|
+
* shared nested object through the clone can affect the original as well,
|
|
54712
|
+
* and can change JSON-LD output when either is embedded in another
|
|
54713
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
54714
|
+
* instance's property.
|
|
54715
|
+
*
|
|
54716
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
54717
|
+
* re-parse the instance before hydration rather than using this method.
|
|
54718
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
54719
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
54720
|
+
*
|
|
53915
54721
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
53916
54722
|
* `signObject()`: the clone may differ from the document that the proof
|
|
53917
54723
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -54002,7 +54808,7 @@ var Listen = class Listen extends Activity {
|
|
|
54002
54808
|
* @throws {TypeError} If the given `json` is invalid.
|
|
54003
54809
|
*/
|
|
54004
54810
|
static async fromJsonLd(json, options = {}) {
|
|
54005
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
54811
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
54006
54812
|
try {
|
|
54007
54813
|
const object = await this.__fromJsonLd__Listen__(json, span, options);
|
|
54008
54814
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -54104,6 +54910,19 @@ var Mention = class Mention extends Link {
|
|
|
54104
54910
|
/**
|
|
54105
54911
|
* Clones this instance, optionally updating it with the given values.
|
|
54106
54912
|
*
|
|
54913
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
54914
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
54915
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
54916
|
+
* shared nested object through the clone can affect the original as well,
|
|
54917
|
+
* and can change JSON-LD output when either is embedded in another
|
|
54918
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
54919
|
+
* instance's property.
|
|
54920
|
+
*
|
|
54921
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
54922
|
+
* re-parse the instance before hydration rather than using this method.
|
|
54923
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
54924
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
54925
|
+
*
|
|
54107
54926
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
54108
54927
|
* `signObject()`: the clone may differ from the document that the proof
|
|
54109
54928
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -54197,7 +55016,7 @@ var Mention = class Mention extends Link {
|
|
|
54197
55016
|
* @throws {TypeError} If the given `json` is invalid.
|
|
54198
55017
|
*/
|
|
54199
55018
|
static async fromJsonLd(json, options = {}) {
|
|
54200
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
55019
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
54201
55020
|
try {
|
|
54202
55021
|
const object = await this.__fromJsonLd__Mention__(json, span, options);
|
|
54203
55022
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -54301,6 +55120,19 @@ var Move = class Move extends Activity {
|
|
|
54301
55120
|
/**
|
|
54302
55121
|
* Clones this instance, optionally updating it with the given values.
|
|
54303
55122
|
*
|
|
55123
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
55124
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
55125
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
55126
|
+
* shared nested object through the clone can affect the original as well,
|
|
55127
|
+
* and can change JSON-LD output when either is embedded in another
|
|
55128
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
55129
|
+
* instance's property.
|
|
55130
|
+
*
|
|
55131
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
55132
|
+
* re-parse the instance before hydration rather than using this method.
|
|
55133
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
55134
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
55135
|
+
*
|
|
54304
55136
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
54305
55137
|
* `signObject()`: the clone may differ from the document that the proof
|
|
54306
55138
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -54391,7 +55223,7 @@ var Move = class Move extends Activity {
|
|
|
54391
55223
|
* @throws {TypeError} If the given `json` is invalid.
|
|
54392
55224
|
*/
|
|
54393
55225
|
static async fromJsonLd(json, options = {}) {
|
|
54394
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
55226
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
54395
55227
|
try {
|
|
54396
55228
|
const object = await this.__fromJsonLd__Move__(json, span, options);
|
|
54397
55229
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -54509,6 +55341,19 @@ var Note = class Note extends Object$1 {
|
|
|
54509
55341
|
/**
|
|
54510
55342
|
* Clones this instance, optionally updating it with the given values.
|
|
54511
55343
|
*
|
|
55344
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
55345
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
55346
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
55347
|
+
* shared nested object through the clone can affect the original as well,
|
|
55348
|
+
* and can change JSON-LD output when either is embedded in another
|
|
55349
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
55350
|
+
* instance's property.
|
|
55351
|
+
*
|
|
55352
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
55353
|
+
* re-parse the instance before hydration rather than using this method.
|
|
55354
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
55355
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
55356
|
+
*
|
|
54512
55357
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
54513
55358
|
* `signObject()`: the clone may differ from the document that the proof
|
|
54514
55359
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -54550,7 +55395,7 @@ var Note = class Note extends Object$1 {
|
|
|
54550
55395
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
54551
55396
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
54552
55397
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
54553
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
55398
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
54554
55399
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
54555
55400
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
54556
55401
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -54793,7 +55638,7 @@ var Note = class Note extends Object$1 {
|
|
|
54793
55638
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
54794
55639
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
54795
55640
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
54796
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
55641
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
54797
55642
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
54798
55643
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
54799
55644
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -55215,7 +56060,7 @@ var Note = class Note extends Object$1 {
|
|
|
55215
56060
|
* @throws {TypeError} If the given `json` is invalid.
|
|
55216
56061
|
*/
|
|
55217
56062
|
static async fromJsonLd(json, options = {}) {
|
|
55218
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
56063
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
55219
56064
|
try {
|
|
55220
56065
|
const object = await this.__fromJsonLd__Note__(json, span, options);
|
|
55221
56066
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -55401,6 +56246,19 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
55401
56246
|
/**
|
|
55402
56247
|
* Clones this instance, optionally updating it with the given values.
|
|
55403
56248
|
*
|
|
56249
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
56250
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
56251
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
56252
|
+
* shared nested object through the clone can affect the original as well,
|
|
56253
|
+
* and can change JSON-LD output when either is embedded in another
|
|
56254
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
56255
|
+
* instance's property.
|
|
56256
|
+
*
|
|
56257
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
56258
|
+
* re-parse the instance before hydration rather than using this method.
|
|
56259
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
56260
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
56261
|
+
*
|
|
55404
56262
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
55405
56263
|
* `signObject()`: the clone may differ from the document that the proof
|
|
55406
56264
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -55437,7 +56295,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
55437
56295
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
55438
56296
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
55439
56297
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
55440
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
56298
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
55441
56299
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
55442
56300
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
55443
56301
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -55866,7 +56724,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
55866
56724
|
* @throws {TypeError} If the given `json` is invalid.
|
|
55867
56725
|
*/
|
|
55868
56726
|
static async fromJsonLd(json, options = {}) {
|
|
55869
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
56727
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
55870
56728
|
try {
|
|
55871
56729
|
const object = await this.__fromJsonLd__OrderedCollectionPage__(json, span, options);
|
|
55872
56730
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -56242,6 +57100,19 @@ var Organization = class Organization extends Object$1 {
|
|
|
56242
57100
|
/**
|
|
56243
57101
|
* Clones this instance, optionally updating it with the given values.
|
|
56244
57102
|
*
|
|
57103
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
57104
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
57105
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
57106
|
+
* shared nested object through the clone can affect the original as well,
|
|
57107
|
+
* and can change JSON-LD output when either is embedded in another
|
|
57108
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
57109
|
+
* instance's property.
|
|
57110
|
+
*
|
|
57111
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
57112
|
+
* re-parse the instance before hydration rather than using this method.
|
|
57113
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
57114
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
57115
|
+
*
|
|
56245
57116
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
56246
57117
|
* `signObject()`: the clone may differ from the document that the proof
|
|
56247
57118
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -56439,7 +57310,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
56439
57310
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56440
57311
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56441
57312
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
56442
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
57313
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
56443
57314
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
56444
57315
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
56445
57316
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -56737,7 +57608,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
56737
57608
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56738
57609
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
56739
57610
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
56740
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
57611
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
56741
57612
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
56742
57613
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
56743
57614
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -57071,7 +57942,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
57071
57942
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57072
57943
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57073
57944
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
57074
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
57945
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
57075
57946
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
57076
57947
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
57077
57948
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -57319,7 +58190,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
57319
58190
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57320
58191
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57321
58192
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
57322
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
58193
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
57323
58194
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
57324
58195
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
57325
58196
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -57564,7 +58435,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
57564
58435
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57565
58436
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57566
58437
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
57567
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
58438
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
57568
58439
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
57569
58440
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
57570
58441
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -57793,7 +58664,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
57793
58664
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57794
58665
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
57795
58666
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
57796
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
58667
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
57797
58668
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
57798
58669
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
57799
58670
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -58025,7 +58896,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
58025
58896
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
58026
58897
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
58027
58898
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
58028
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
58899
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
58029
58900
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
58030
58901
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
58031
58902
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -58255,7 +59126,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
58255
59126
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
58256
59127
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
58257
59128
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
58258
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
59129
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
58259
59130
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
58260
59131
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
58261
59132
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -58483,7 +59354,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
58483
59354
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
58484
59355
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
58485
59356
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
58486
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
59357
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
58487
59358
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
58488
59359
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
58489
59360
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -58711,7 +59582,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
58711
59582
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
58712
59583
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
58713
59584
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
58714
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
59585
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
58715
59586
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
58716
59587
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
58717
59588
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -58936,7 +59807,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
58936
59807
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
58937
59808
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
58938
59809
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
58939
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
59810
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
58940
59811
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
58941
59812
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
58942
59813
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -59207,7 +60078,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
59207
60078
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
59208
60079
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
59209
60080
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
59210
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
60081
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
59211
60082
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
59212
60083
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
59213
60084
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -59482,7 +60353,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
59482
60353
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
59483
60354
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
59484
60355
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
59485
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
60356
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
59486
60357
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
59487
60358
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
59488
60359
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -59836,7 +60707,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
59836
60707
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
59837
60708
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
59838
60709
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
59839
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
60710
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
59840
60711
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
59841
60712
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
59842
60713
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -60833,7 +61704,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
60833
61704
|
* @throws {TypeError} If the given `json` is invalid.
|
|
60834
61705
|
*/
|
|
60835
61706
|
static async fromJsonLd(json, options = {}) {
|
|
60836
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
61707
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
60837
61708
|
try {
|
|
60838
61709
|
const object = await this.__fromJsonLd__Organization__(json, span, options);
|
|
60839
61710
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -61519,6 +62390,19 @@ var Page = class Page extends Document {
|
|
|
61519
62390
|
/**
|
|
61520
62391
|
* Clones this instance, optionally updating it with the given values.
|
|
61521
62392
|
*
|
|
62393
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
62394
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
62395
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
62396
|
+
* shared nested object through the clone can affect the original as well,
|
|
62397
|
+
* and can change JSON-LD output when either is embedded in another
|
|
62398
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
62399
|
+
* instance's property.
|
|
62400
|
+
*
|
|
62401
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
62402
|
+
* re-parse the instance before hydration rather than using this method.
|
|
62403
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
62404
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
62405
|
+
*
|
|
61522
62406
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
61523
62407
|
* `signObject()`: the clone may differ from the document that the proof
|
|
61524
62408
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -61625,7 +62509,7 @@ var Page = class Page extends Document {
|
|
|
61625
62509
|
* @throws {TypeError} If the given `json` is invalid.
|
|
61626
62510
|
*/
|
|
61627
62511
|
static async fromJsonLd(json, options = {}) {
|
|
61628
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
62512
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
61629
62513
|
try {
|
|
61630
62514
|
const object = await this.__fromJsonLd__Page__(json, span, options);
|
|
61631
62515
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -61879,6 +62763,19 @@ var Person = class Person extends Object$1 {
|
|
|
61879
62763
|
/**
|
|
61880
62764
|
* Clones this instance, optionally updating it with the given values.
|
|
61881
62765
|
*
|
|
62766
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
62767
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
62768
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
62769
|
+
* shared nested object through the clone can affect the original as well,
|
|
62770
|
+
* and can change JSON-LD output when either is embedded in another
|
|
62771
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
62772
|
+
* instance's property.
|
|
62773
|
+
*
|
|
62774
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
62775
|
+
* re-parse the instance before hydration rather than using this method.
|
|
62776
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
62777
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
62778
|
+
*
|
|
61882
62779
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
61883
62780
|
* `signObject()`: the clone may differ from the document that the proof
|
|
61884
62781
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -62076,7 +62973,7 @@ var Person = class Person extends Object$1 {
|
|
|
62076
62973
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
62077
62974
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
62078
62975
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
62079
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
62976
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
62080
62977
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
62081
62978
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
62082
62979
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -62374,7 +63271,7 @@ var Person = class Person extends Object$1 {
|
|
|
62374
63271
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
62375
63272
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
62376
63273
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
62377
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
63274
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
62378
63275
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
62379
63276
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
62380
63277
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -62708,7 +63605,7 @@ var Person = class Person extends Object$1 {
|
|
|
62708
63605
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
62709
63606
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
62710
63607
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
62711
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
63608
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
62712
63609
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
62713
63610
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
62714
63611
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -62956,7 +63853,7 @@ var Person = class Person extends Object$1 {
|
|
|
62956
63853
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
62957
63854
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
62958
63855
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
62959
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
63856
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
62960
63857
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
62961
63858
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
62962
63859
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -63201,7 +64098,7 @@ var Person = class Person extends Object$1 {
|
|
|
63201
64098
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
63202
64099
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
63203
64100
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
63204
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
64101
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
63205
64102
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
63206
64103
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
63207
64104
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -63430,7 +64327,7 @@ var Person = class Person extends Object$1 {
|
|
|
63430
64327
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
63431
64328
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
63432
64329
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
63433
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
64330
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
63434
64331
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
63435
64332
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
63436
64333
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -63662,7 +64559,7 @@ var Person = class Person extends Object$1 {
|
|
|
63662
64559
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
63663
64560
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
63664
64561
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
63665
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
64562
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
63666
64563
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
63667
64564
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
63668
64565
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -63892,7 +64789,7 @@ var Person = class Person extends Object$1 {
|
|
|
63892
64789
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
63893
64790
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
63894
64791
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
63895
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
64792
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
63896
64793
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
63897
64794
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
63898
64795
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -64120,7 +65017,7 @@ var Person = class Person extends Object$1 {
|
|
|
64120
65017
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
64121
65018
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
64122
65019
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
64123
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
65020
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
64124
65021
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
64125
65022
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
64126
65023
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -64348,7 +65245,7 @@ var Person = class Person extends Object$1 {
|
|
|
64348
65245
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
64349
65246
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
64350
65247
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
64351
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
65248
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
64352
65249
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
64353
65250
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
64354
65251
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -64573,7 +65470,7 @@ var Person = class Person extends Object$1 {
|
|
|
64573
65470
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
64574
65471
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
64575
65472
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
64576
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
65473
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
64577
65474
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
64578
65475
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
64579
65476
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -64844,7 +65741,7 @@ var Person = class Person extends Object$1 {
|
|
|
64844
65741
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
64845
65742
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
64846
65743
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
64847
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
65744
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
64848
65745
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
64849
65746
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
64850
65747
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -65119,7 +66016,7 @@ var Person = class Person extends Object$1 {
|
|
|
65119
66016
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
65120
66017
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
65121
66018
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
65122
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
66019
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
65123
66020
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
65124
66021
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
65125
66022
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -65473,7 +66370,7 @@ var Person = class Person extends Object$1 {
|
|
|
65473
66370
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
65474
66371
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
65475
66372
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
65476
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
66373
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
65477
66374
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
65478
66375
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
65479
66376
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -66470,7 +67367,7 @@ var Person = class Person extends Object$1 {
|
|
|
66470
67367
|
* @throws {TypeError} If the given `json` is invalid.
|
|
66471
67368
|
*/
|
|
66472
67369
|
static async fromJsonLd(json, options = {}) {
|
|
66473
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
67370
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
66474
67371
|
try {
|
|
66475
67372
|
const object = await this.__fromJsonLd__Person__(json, span, options);
|
|
66476
67373
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -67176,6 +68073,19 @@ var Place = class Place extends Object$1 {
|
|
|
67176
68073
|
/**
|
|
67177
68074
|
* Clones this instance, optionally updating it with the given values.
|
|
67178
68075
|
*
|
|
68076
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
68077
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
68078
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
68079
|
+
* shared nested object through the clone can affect the original as well,
|
|
68080
|
+
* and can change JSON-LD output when either is embedded in another
|
|
68081
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
68082
|
+
* instance's property.
|
|
68083
|
+
*
|
|
68084
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
68085
|
+
* re-parse the instance before hydration rather than using this method.
|
|
68086
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
68087
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
68088
|
+
*
|
|
67179
68089
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
67180
68090
|
* `signObject()`: the clone may differ from the document that the proof
|
|
67181
68091
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -67467,7 +68377,7 @@ var Place = class Place extends Object$1 {
|
|
|
67467
68377
|
* @throws {TypeError} If the given `json` is invalid.
|
|
67468
68378
|
*/
|
|
67469
68379
|
static async fromJsonLd(json, options = {}) {
|
|
67470
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
68380
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
67471
68381
|
try {
|
|
67472
68382
|
const object = await this.__fromJsonLd__Place__(json, span, options);
|
|
67473
68383
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -67688,6 +68598,19 @@ var Profile = class Profile extends Object$1 {
|
|
|
67688
68598
|
/**
|
|
67689
68599
|
* Clones this instance, optionally updating it with the given values.
|
|
67690
68600
|
*
|
|
68601
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
68602
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
68603
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
68604
|
+
* shared nested object through the clone can affect the original as well,
|
|
68605
|
+
* and can change JSON-LD output when either is embedded in another
|
|
68606
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
68607
|
+
* instance's property.
|
|
68608
|
+
*
|
|
68609
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
68610
|
+
* re-parse the instance before hydration rather than using this method.
|
|
68611
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
68612
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
68613
|
+
*
|
|
67691
68614
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
67692
68615
|
* `signObject()`: the clone may differ from the document that the proof
|
|
67693
68616
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -67720,7 +68643,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
67720
68643
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
67721
68644
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
67722
68645
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
67723
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
68646
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
67724
68647
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
67725
68648
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
67726
68649
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -68047,7 +68970,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
68047
68970
|
* @throws {TypeError} If the given `json` is invalid.
|
|
68048
68971
|
*/
|
|
68049
68972
|
static async fromJsonLd(json, options = {}) {
|
|
68050
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
68973
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
68051
68974
|
try {
|
|
68052
68975
|
const object = await this.__fromJsonLd__Profile__(json, span, options);
|
|
68053
68976
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -68216,6 +69139,19 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
68216
69139
|
/**
|
|
68217
69140
|
* Clones this instance, optionally updating it with the given values.
|
|
68218
69141
|
*
|
|
69142
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
69143
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
69144
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
69145
|
+
* shared nested object through the clone can affect the original as well,
|
|
69146
|
+
* and can change JSON-LD output when either is embedded in another
|
|
69147
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
69148
|
+
* instance's property.
|
|
69149
|
+
*
|
|
69150
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
69151
|
+
* re-parse the instance before hydration rather than using this method.
|
|
69152
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
69153
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
69154
|
+
*
|
|
68219
69155
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
68220
69156
|
* `signObject()`: the clone may differ from the document that the proof
|
|
68221
69157
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -68277,7 +69213,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
68277
69213
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68278
69214
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68279
69215
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
68280
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
69216
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
68281
69217
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
68282
69218
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
68283
69219
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -68508,7 +69444,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
68508
69444
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68509
69445
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68510
69446
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
68511
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
69447
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
68512
69448
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
68513
69449
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
68514
69450
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -68755,7 +69691,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
68755
69691
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68756
69692
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68757
69693
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
68758
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
69694
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
68759
69695
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
68760
69696
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
68761
69697
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -68998,7 +69934,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
68998
69934
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
68999
69935
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
69000
69936
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
69001
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
69937
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
69002
69938
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
69003
69939
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
69004
69940
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -69406,7 +70342,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
69406
70342
|
* @throws {TypeError} If the given `json` is invalid.
|
|
69407
70343
|
*/
|
|
69408
70344
|
static async fromJsonLd(json, options = {}) {
|
|
69409
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
70345
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
69410
70346
|
try {
|
|
69411
70347
|
const object = await this.__fromJsonLd__Question__(json, span, options);
|
|
69412
70348
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -69669,6 +70605,19 @@ var Read = class Read extends Activity {
|
|
|
69669
70605
|
/**
|
|
69670
70606
|
* Clones this instance, optionally updating it with the given values.
|
|
69671
70607
|
*
|
|
70608
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
70609
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
70610
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
70611
|
+
* shared nested object through the clone can affect the original as well,
|
|
70612
|
+
* and can change JSON-LD output when either is embedded in another
|
|
70613
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
70614
|
+
* instance's property.
|
|
70615
|
+
*
|
|
70616
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
70617
|
+
* re-parse the instance before hydration rather than using this method.
|
|
70618
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
70619
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
70620
|
+
*
|
|
69672
70621
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
69673
70622
|
* `signObject()`: the clone may differ from the document that the proof
|
|
69674
70623
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -69759,7 +70708,7 @@ var Read = class Read extends Activity {
|
|
|
69759
70708
|
* @throws {TypeError} If the given `json` is invalid.
|
|
69760
70709
|
*/
|
|
69761
70710
|
static async fromJsonLd(json, options = {}) {
|
|
69762
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
70711
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
69763
70712
|
try {
|
|
69764
70713
|
const object = await this.__fromJsonLd__Read__(json, span, options);
|
|
69765
70714
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -69862,6 +70811,19 @@ var Reject = class Reject extends Activity {
|
|
|
69862
70811
|
/**
|
|
69863
70812
|
* Clones this instance, optionally updating it with the given values.
|
|
69864
70813
|
*
|
|
70814
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
70815
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
70816
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
70817
|
+
* shared nested object through the clone can affect the original as well,
|
|
70818
|
+
* and can change JSON-LD output when either is embedded in another
|
|
70819
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
70820
|
+
* instance's property.
|
|
70821
|
+
*
|
|
70822
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
70823
|
+
* re-parse the instance before hydration rather than using this method.
|
|
70824
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
70825
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
70826
|
+
*
|
|
69865
70827
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
69866
70828
|
* `signObject()`: the clone may differ from the document that the proof
|
|
69867
70829
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -69952,7 +70914,7 @@ var Reject = class Reject extends Activity {
|
|
|
69952
70914
|
* @throws {TypeError} If the given `json` is invalid.
|
|
69953
70915
|
*/
|
|
69954
70916
|
static async fromJsonLd(json, options = {}) {
|
|
69955
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
70917
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
69956
70918
|
try {
|
|
69957
70919
|
const object = await this.__fromJsonLd__Reject__(json, span, options);
|
|
69958
70920
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -70093,6 +71055,19 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
70093
71055
|
/**
|
|
70094
71056
|
* Clones this instance, optionally updating it with the given values.
|
|
70095
71057
|
*
|
|
71058
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
71059
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
71060
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
71061
|
+
* shared nested object through the clone can affect the original as well,
|
|
71062
|
+
* and can change JSON-LD output when either is embedded in another
|
|
71063
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
71064
|
+
* instance's property.
|
|
71065
|
+
*
|
|
71066
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
71067
|
+
* re-parse the instance before hydration rather than using this method.
|
|
71068
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
71069
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
71070
|
+
*
|
|
70096
71071
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
70097
71072
|
* `signObject()`: the clone may differ from the document that the proof
|
|
70098
71073
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -70153,7 +71128,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
70153
71128
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
70154
71129
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
70155
71130
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
70156
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
71131
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
70157
71132
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
70158
71133
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
70159
71134
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -70381,7 +71356,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
70381
71356
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
70382
71357
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
70383
71358
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
70384
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
71359
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
70385
71360
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
70386
71361
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
70387
71362
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -70679,7 +71654,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
70679
71654
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
70680
71655
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
70681
71656
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
70682
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
71657
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
70683
71658
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
70684
71659
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
70685
71660
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -71124,7 +72099,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
71124
72099
|
* @throws {TypeError} If the given `json` is invalid.
|
|
71125
72100
|
*/
|
|
71126
72101
|
static async fromJsonLd(json, options = {}) {
|
|
71127
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
72102
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
71128
72103
|
try {
|
|
71129
72104
|
const object = await this.__fromJsonLd__Relationship__(json, span, options);
|
|
71130
72105
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -71308,6 +72283,19 @@ var Remove = class Remove extends Activity {
|
|
|
71308
72283
|
/**
|
|
71309
72284
|
* Clones this instance, optionally updating it with the given values.
|
|
71310
72285
|
*
|
|
72286
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
72287
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
72288
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
72289
|
+
* shared nested object through the clone can affect the original as well,
|
|
72290
|
+
* and can change JSON-LD output when either is embedded in another
|
|
72291
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
72292
|
+
* instance's property.
|
|
72293
|
+
*
|
|
72294
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
72295
|
+
* re-parse the instance before hydration rather than using this method.
|
|
72296
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
72297
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
72298
|
+
*
|
|
71311
72299
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
71312
72300
|
* `signObject()`: the clone may differ from the document that the proof
|
|
71313
72301
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -71398,7 +72386,7 @@ var Remove = class Remove extends Activity {
|
|
|
71398
72386
|
* @throws {TypeError} If the given `json` is invalid.
|
|
71399
72387
|
*/
|
|
71400
72388
|
static async fromJsonLd(json, options = {}) {
|
|
71401
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
72389
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
71402
72390
|
try {
|
|
71403
72391
|
const object = await this.__fromJsonLd__Remove__(json, span, options);
|
|
71404
72392
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -71652,6 +72640,19 @@ var Service = class Service extends Object$1 {
|
|
|
71652
72640
|
/**
|
|
71653
72641
|
* Clones this instance, optionally updating it with the given values.
|
|
71654
72642
|
*
|
|
72643
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
72644
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
72645
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
72646
|
+
* shared nested object through the clone can affect the original as well,
|
|
72647
|
+
* and can change JSON-LD output when either is embedded in another
|
|
72648
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
72649
|
+
* instance's property.
|
|
72650
|
+
*
|
|
72651
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
72652
|
+
* re-parse the instance before hydration rather than using this method.
|
|
72653
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
72654
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
72655
|
+
*
|
|
71655
72656
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
71656
72657
|
* `signObject()`: the clone may differ from the document that the proof
|
|
71657
72658
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -71849,7 +72850,7 @@ var Service = class Service extends Object$1 {
|
|
|
71849
72850
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
71850
72851
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
71851
72852
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
71852
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
72853
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
71853
72854
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
71854
72855
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
71855
72856
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -72147,7 +73148,7 @@ var Service = class Service extends Object$1 {
|
|
|
72147
73148
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
72148
73149
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
72149
73150
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
72150
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
73151
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
72151
73152
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
72152
73153
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
72153
73154
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -72481,7 +73482,7 @@ var Service = class Service extends Object$1 {
|
|
|
72481
73482
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
72482
73483
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
72483
73484
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
72484
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
73485
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
72485
73486
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
72486
73487
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
72487
73488
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -72729,7 +73730,7 @@ var Service = class Service extends Object$1 {
|
|
|
72729
73730
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
72730
73731
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
72731
73732
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
72732
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
73733
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
72733
73734
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
72734
73735
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
72735
73736
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -72974,7 +73975,7 @@ var Service = class Service extends Object$1 {
|
|
|
72974
73975
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
72975
73976
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
72976
73977
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
72977
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
73978
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
72978
73979
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
72979
73980
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
72980
73981
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -73203,7 +74204,7 @@ var Service = class Service extends Object$1 {
|
|
|
73203
74204
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73204
74205
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73205
74206
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
73206
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
74207
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
73207
74208
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
73208
74209
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
73209
74210
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -73435,7 +74436,7 @@ var Service = class Service extends Object$1 {
|
|
|
73435
74436
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73436
74437
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73437
74438
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
73438
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
74439
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
73439
74440
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
73440
74441
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
73441
74442
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -73665,7 +74666,7 @@ var Service = class Service extends Object$1 {
|
|
|
73665
74666
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73666
74667
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73667
74668
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
73668
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
74669
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
73669
74670
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
73670
74671
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
73671
74672
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -73893,7 +74894,7 @@ var Service = class Service extends Object$1 {
|
|
|
73893
74894
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73894
74895
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
73895
74896
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
73896
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
74897
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
73897
74898
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
73898
74899
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
73899
74900
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -74121,7 +75122,7 @@ var Service = class Service extends Object$1 {
|
|
|
74121
75122
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74122
75123
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74123
75124
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
74124
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
75125
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
74125
75126
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
74126
75127
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
74127
75128
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -74346,7 +75347,7 @@ var Service = class Service extends Object$1 {
|
|
|
74346
75347
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74347
75348
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74348
75349
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
74349
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
75350
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
74350
75351
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
74351
75352
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
74352
75353
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -74617,7 +75618,7 @@ var Service = class Service extends Object$1 {
|
|
|
74617
75618
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74618
75619
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74619
75620
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
74620
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
75621
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
74621
75622
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
74622
75623
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
74623
75624
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -74892,7 +75893,7 @@ var Service = class Service extends Object$1 {
|
|
|
74892
75893
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74893
75894
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
74894
75895
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
74895
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
75896
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
74896
75897
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
74897
75898
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
74898
75899
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -75246,7 +76247,7 @@ var Service = class Service extends Object$1 {
|
|
|
75246
76247
|
const documentLoader = options.documentLoader ?? this._documentLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
75247
76248
|
const contextLoader = options.contextLoader ?? this._contextLoader ?? (0, _fedify_vocab_runtime.getDocumentLoader)();
|
|
75248
76249
|
const tracerProvider = options.tracerProvider ?? this._tracerProvider ?? _opentelemetry_api.trace.getTracerProvider();
|
|
75249
|
-
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.
|
|
76250
|
+
const tracer = tracerProvider.getTracer("@fedify/vocab-tools", "2.4.2");
|
|
75250
76251
|
const childVerifier = options.inheritPortableObjectVerifier === false ? this._verifyPortableObject : options.verifyPortableObject;
|
|
75251
76252
|
return await tracer.startActiveSpan("activitypub.lookup_object", async (span) => {
|
|
75252
76253
|
const dereferencePortable = async (portableUrl, extra = {}) => {
|
|
@@ -76243,7 +77244,7 @@ var Service = class Service extends Object$1 {
|
|
|
76243
77244
|
* @throws {TypeError} If the given `json` is invalid.
|
|
76244
77245
|
*/
|
|
76245
77246
|
static async fromJsonLd(json, options = {}) {
|
|
76246
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
77247
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
76247
77248
|
try {
|
|
76248
77249
|
const object = await this.__fromJsonLd__Service__(json, span, options);
|
|
76249
77250
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -76992,6 +77993,19 @@ var Source = class {
|
|
|
76992
77993
|
/**
|
|
76993
77994
|
* Clones this instance, optionally updating it with the given values.
|
|
76994
77995
|
*
|
|
77996
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
77997
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
77998
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
77999
|
+
* shared nested object through the clone can affect the original as well,
|
|
78000
|
+
* and can change JSON-LD output when either is embedded in another
|
|
78001
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
78002
|
+
* instance's property.
|
|
78003
|
+
*
|
|
78004
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
78005
|
+
* re-parse the instance before hydration rather than using this method.
|
|
78006
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
78007
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
78008
|
+
*
|
|
76995
78009
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
76996
78010
|
* `signObject()`: the clone may differ from the document that the proof
|
|
76997
78011
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -77149,7 +78163,7 @@ var Source = class {
|
|
|
77149
78163
|
* @throws {TypeError} If the given `json` is invalid.
|
|
77150
78164
|
*/
|
|
77151
78165
|
static async fromJsonLd(json, options = {}) {
|
|
77152
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
78166
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
77153
78167
|
try {
|
|
77154
78168
|
const object = await this.__fromJsonLd__Source__(json, span, options);
|
|
77155
78169
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -77288,6 +78302,19 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
77288
78302
|
/**
|
|
77289
78303
|
* Clones this instance, optionally updating it with the given values.
|
|
77290
78304
|
*
|
|
78305
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
78306
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
78307
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
78308
|
+
* shared nested object through the clone can affect the original as well,
|
|
78309
|
+
* and can change JSON-LD output when either is embedded in another
|
|
78310
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
78311
|
+
* instance's property.
|
|
78312
|
+
*
|
|
78313
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
78314
|
+
* re-parse the instance before hydration rather than using this method.
|
|
78315
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
78316
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
78317
|
+
*
|
|
77291
78318
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
77292
78319
|
* `signObject()`: the clone may differ from the document that the proof
|
|
77293
78320
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -77378,7 +78405,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
77378
78405
|
* @throws {TypeError} If the given `json` is invalid.
|
|
77379
78406
|
*/
|
|
77380
78407
|
static async fromJsonLd(json, options = {}) {
|
|
77381
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
78408
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
77382
78409
|
try {
|
|
77383
78410
|
const object = await this.__fromJsonLd__TentativeAccept__(json, span, options);
|
|
77384
78411
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -77481,6 +78508,19 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
77481
78508
|
/**
|
|
77482
78509
|
* Clones this instance, optionally updating it with the given values.
|
|
77483
78510
|
*
|
|
78511
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
78512
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
78513
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
78514
|
+
* shared nested object through the clone can affect the original as well,
|
|
78515
|
+
* and can change JSON-LD output when either is embedded in another
|
|
78516
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
78517
|
+
* instance's property.
|
|
78518
|
+
*
|
|
78519
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
78520
|
+
* re-parse the instance before hydration rather than using this method.
|
|
78521
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
78522
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
78523
|
+
*
|
|
77484
78524
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
77485
78525
|
* `signObject()`: the clone may differ from the document that the proof
|
|
77486
78526
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -77571,7 +78611,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
77571
78611
|
* @throws {TypeError} If the given `json` is invalid.
|
|
77572
78612
|
*/
|
|
77573
78613
|
static async fromJsonLd(json, options = {}) {
|
|
77574
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
78614
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
77575
78615
|
try {
|
|
77576
78616
|
const object = await this.__fromJsonLd__TentativeReject__(json, span, options);
|
|
77577
78617
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -77686,6 +78726,19 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
77686
78726
|
/**
|
|
77687
78727
|
* Clones this instance, optionally updating it with the given values.
|
|
77688
78728
|
*
|
|
78729
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
78730
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
78731
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
78732
|
+
* shared nested object through the clone can affect the original as well,
|
|
78733
|
+
* and can change JSON-LD output when either is embedded in another
|
|
78734
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
78735
|
+
* instance's property.
|
|
78736
|
+
*
|
|
78737
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
78738
|
+
* re-parse the instance before hydration rather than using this method.
|
|
78739
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
78740
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
78741
|
+
*
|
|
77689
78742
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
77690
78743
|
* `signObject()`: the clone may differ from the document that the proof
|
|
77691
78744
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -77863,7 +78916,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
77863
78916
|
* @throws {TypeError} If the given `json` is invalid.
|
|
77864
78917
|
*/
|
|
77865
78918
|
static async fromJsonLd(json, options = {}) {
|
|
77866
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
78919
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
77867
78920
|
try {
|
|
77868
78921
|
const object = await this.__fromJsonLd__Tombstone__(json, span, options);
|
|
77869
78922
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -78011,6 +79064,19 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
78011
79064
|
/**
|
|
78012
79065
|
* Clones this instance, optionally updating it with the given values.
|
|
78013
79066
|
*
|
|
79067
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
79068
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
79069
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
79070
|
+
* shared nested object through the clone can affect the original as well,
|
|
79071
|
+
* and can change JSON-LD output when either is embedded in another
|
|
79072
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
79073
|
+
* instance's property.
|
|
79074
|
+
*
|
|
79075
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
79076
|
+
* re-parse the instance before hydration rather than using this method.
|
|
79077
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
79078
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
79079
|
+
*
|
|
78014
79080
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
78015
79081
|
* `signObject()`: the clone may differ from the document that the proof
|
|
78016
79082
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -78101,7 +79167,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
78101
79167
|
* @throws {TypeError} If the given `json` is invalid.
|
|
78102
79168
|
*/
|
|
78103
79169
|
static async fromJsonLd(json, options = {}) {
|
|
78104
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
79170
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
78105
79171
|
try {
|
|
78106
79172
|
const object = await this.__fromJsonLd__Travel__(json, span, options);
|
|
78107
79173
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -78209,6 +79275,19 @@ var Undo = class Undo extends Activity {
|
|
|
78209
79275
|
/**
|
|
78210
79276
|
* Clones this instance, optionally updating it with the given values.
|
|
78211
79277
|
*
|
|
79278
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
79279
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
79280
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
79281
|
+
* shared nested object through the clone can affect the original as well,
|
|
79282
|
+
* and can change JSON-LD output when either is embedded in another
|
|
79283
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
79284
|
+
* instance's property.
|
|
79285
|
+
*
|
|
79286
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
79287
|
+
* re-parse the instance before hydration rather than using this method.
|
|
79288
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
79289
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
79290
|
+
*
|
|
78212
79291
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
78213
79292
|
* `signObject()`: the clone may differ from the document that the proof
|
|
78214
79293
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -78308,7 +79387,7 @@ var Undo = class Undo extends Activity {
|
|
|
78308
79387
|
* @throws {TypeError} If the given `json` is invalid.
|
|
78309
79388
|
*/
|
|
78310
79389
|
static async fromJsonLd(json, options = {}) {
|
|
78311
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
79390
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
78312
79391
|
try {
|
|
78313
79392
|
const object = await this.__fromJsonLd__Undo__(json, span, options);
|
|
78314
79393
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -78414,6 +79493,19 @@ var Update = class Update extends Activity {
|
|
|
78414
79493
|
/**
|
|
78415
79494
|
* Clones this instance, optionally updating it with the given values.
|
|
78416
79495
|
*
|
|
79496
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
79497
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
79498
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
79499
|
+
* shared nested object through the clone can affect the original as well,
|
|
79500
|
+
* and can change JSON-LD output when either is embedded in another
|
|
79501
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
79502
|
+
* instance's property.
|
|
79503
|
+
*
|
|
79504
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
79505
|
+
* re-parse the instance before hydration rather than using this method.
|
|
79506
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
79507
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
79508
|
+
*
|
|
78417
79509
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
78418
79510
|
* `signObject()`: the clone may differ from the document that the proof
|
|
78419
79511
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -78563,7 +79655,7 @@ var Update = class Update extends Activity {
|
|
|
78563
79655
|
* @throws {TypeError} If the given `json` is invalid.
|
|
78564
79656
|
*/
|
|
78565
79657
|
static async fromJsonLd(json, options = {}) {
|
|
78566
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
79658
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
78567
79659
|
try {
|
|
78568
79660
|
const object = await this.__fromJsonLd__Update__(json, span, options);
|
|
78569
79661
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -78665,6 +79757,19 @@ var Video = class Video extends Document {
|
|
|
78665
79757
|
/**
|
|
78666
79758
|
* Clones this instance, optionally updating it with the given values.
|
|
78667
79759
|
*
|
|
79760
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
79761
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
79762
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
79763
|
+
* shared nested object through the clone can affect the original as well,
|
|
79764
|
+
* and can change JSON-LD output when either is embedded in another
|
|
79765
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
79766
|
+
* instance's property.
|
|
79767
|
+
*
|
|
79768
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
79769
|
+
* re-parse the instance before hydration rather than using this method.
|
|
79770
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
79771
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
79772
|
+
*
|
|
78668
79773
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
78669
79774
|
* `signObject()`: the clone may differ from the document that the proof
|
|
78670
79775
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -78771,7 +79876,7 @@ var Video = class Video extends Document {
|
|
|
78771
79876
|
* @throws {TypeError} If the given `json` is invalid.
|
|
78772
79877
|
*/
|
|
78773
79878
|
static async fromJsonLd(json, options = {}) {
|
|
78774
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
79879
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
78775
79880
|
try {
|
|
78776
79881
|
const object = await this.__fromJsonLd__Video__(json, span, options);
|
|
78777
79882
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|
|
@@ -78873,6 +79978,19 @@ var View = class View extends Activity {
|
|
|
78873
79978
|
/**
|
|
78874
79979
|
* Clones this instance, optionally updating it with the given values.
|
|
78875
79980
|
*
|
|
79981
|
+
* This is a shallow copy: property arrays are copied, but nested objects
|
|
79982
|
+
* and URLs are shared with this instance. Dereferencing accessors can cache
|
|
79983
|
+
* fetched objects in the instance whose accessor is called. Hydrating a
|
|
79984
|
+
* shared nested object through the clone can affect the original as well,
|
|
79985
|
+
* and can change JSON-LD output when either is embedded in another
|
|
79986
|
+
* object. Hydrating a top-level property of the clone does not update this
|
|
79987
|
+
* instance's property.
|
|
79988
|
+
*
|
|
79989
|
+
* To resolve properties without sharing nested objects, serialize and
|
|
79990
|
+
* re-parse the instance before hydration rather than using this method.
|
|
79991
|
+
* See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
|
|
79992
|
+
* for details, including how cached JSON-LD affects serialization.
|
|
79993
|
+
*
|
|
78876
79994
|
* A clone never inherits a signed JSON-LD representation retained by
|
|
78877
79995
|
* `signObject()`: the clone may differ from the document that the proof
|
|
78878
79996
|
* covers, so embedding the original secured JSON in a parent document
|
|
@@ -78963,7 +80081,7 @@ var View = class View extends Activity {
|
|
|
78963
80081
|
* @throws {TypeError} If the given `json` is invalid.
|
|
78964
80082
|
*/
|
|
78965
80083
|
static async fromJsonLd(json, options = {}) {
|
|
78966
|
-
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.
|
|
80084
|
+
return await (options.tracerProvider ?? _opentelemetry_api.trace.getTracerProvider()).getTracer("@fedify/vocab-tools", "2.4.2").startActiveSpan("activitypub.parse_object", async (span) => {
|
|
78967
80085
|
try {
|
|
78968
80086
|
const object = await this.__fromJsonLd__View__(json, span, options);
|
|
78969
80087
|
if (object.id != null) span.setAttribute("activitypub.object.id", object.id.href);
|