@fedify/fedify 2.4.0-dev.2056 → 2.4.0-dev.2063

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.
Files changed (71) hide show
  1. package/dist/{builder-D_XU_Fw2.mjs → builder-BzS4brdy.mjs} +2 -2
  2. package/dist/compat/transformers.test.mjs +1 -1
  3. package/dist/{compound-proof-CwTySDnn.mjs → compound-proof-BrSXP5so.mjs} +1 -1
  4. package/dist/{deno-BtpLWN2L.mjs → deno-CVZgG4sc.mjs} +1 -1
  5. package/dist/{docloader-CJADEtqb.mjs → docloader-DBb8z7_l.mjs} +2 -2
  6. package/dist/federation/builder.test.mjs +1 -1
  7. package/dist/federation/compound-fanout.test.mjs +3 -3
  8. package/dist/federation/handler-compound-proof.test.mjs +3 -3
  9. package/dist/federation/handler.test.mjs +5 -5
  10. package/dist/federation/hashlink-media.test.mjs +2 -2
  11. package/dist/federation/idempotency.test.mjs +2 -2
  12. package/dist/federation/metrics.test.mjs +1 -1
  13. package/dist/federation/middleware.test.mjs +7 -7
  14. package/dist/federation/mod.cjs +1 -1
  15. package/dist/federation/mod.js +1 -1
  16. package/dist/federation/outgoing-proof.test.mjs +5 -5
  17. package/dist/federation/portable.test.mjs +3 -3
  18. package/dist/federation/send.test.mjs +3 -3
  19. package/dist/federation/tasks/enqueue.test.mjs +1 -1
  20. package/dist/federation/tasks/tasks.test.mjs +2 -2
  21. package/dist/federation/temporal.test.mjs +1 -1
  22. package/dist/federation/webfinger.test.mjs +1 -1
  23. package/dist/{federation-DDwszIrk.cjs → federation-BrsIzNK5.cjs} +3 -3
  24. package/dist/{http-iLCx9vk-.js → http-99KVDtMr.js} +1 -1
  25. package/dist/{http-DW5mt8FG.cjs → http-CVjwUCCu.cjs} +1 -1
  26. package/dist/{http-CotELN-4.mjs → http-znjq5j6a.mjs} +3 -3
  27. package/dist/{key-DrCNkH3Y.mjs → key-BnMA6vpl.mjs} +2 -2
  28. package/dist/{kv-cache-a1ghEA4h.mjs → kv-cache--REpvHgG.mjs} +1 -1
  29. package/dist/{kv-cache-LOyq_Ty6.cjs → kv-cache-D2O0JspA.cjs} +1 -1
  30. package/dist/{kv-cache-bXLDSaRu.js → kv-cache-aijDx_jN.js} +1 -1
  31. package/dist/{ld-BPG92sC0.mjs → ld-BBVP8ock.mjs} +3 -3
  32. package/dist/{metrics-DxVi0UJD.mjs → metrics-B5spFq82.mjs} +1 -1
  33. package/dist/{middleware-BIPftTly.mjs → middleware-ClrGS1xy.mjs} +1 -1
  34. package/dist/{middleware-DohUu-Tz.mjs → middleware-Cw8EWwAT.mjs} +13 -13
  35. package/dist/{middleware-1nes8_U-.js → middleware-CzYM4cJI.js} +3 -3
  36. package/dist/{mod-CNRAxXEb.d.ts → mod-Dhm7SqyE.d.ts} +150 -2
  37. package/dist/{mod-CVQFWefn.d.cts → mod-pLbeNwcC.d.cts} +150 -2
  38. package/dist/mod.cjs +6 -5
  39. package/dist/mod.d.cts +3 -3
  40. package/dist/mod.d.ts +3 -3
  41. package/dist/mod.js +6 -6
  42. package/dist/nodeinfo/handler.test.mjs +1 -1
  43. package/dist/{owner-C2ER4VD7.cjs → owner-CHBQ0sSj.cjs} +34 -2
  44. package/dist/{owner-SBgt2USF.js → owner-Cu_KMvQN.js} +29 -3
  45. package/dist/{owner-BN7Mqjso.mjs → owner-Hc0hvbbX.mjs} +2 -2
  46. package/dist/{proof-BigVZwkl.mjs → proof-B69bJaSn.mjs} +32 -6
  47. package/dist/{send-CvatEhyY.mjs → send-BB5rBhvN.mjs} +3 -3
  48. package/dist/sig/compound-proof-discovery.test.mjs +1 -1
  49. package/dist/sig/compound-proof-producer.test.mjs +1 -1
  50. package/dist/sig/compound-proof-verification.test.mjs +2 -2
  51. package/dist/sig/compound-proof.test.mjs +2 -2
  52. package/dist/sig/http.test.mjs +2 -2
  53. package/dist/sig/key.test.mjs +1 -1
  54. package/dist/sig/ld.test.mjs +2 -2
  55. package/dist/sig/mod.cjs +4 -2
  56. package/dist/sig/mod.d.cts +2 -2
  57. package/dist/sig/mod.d.ts +2 -2
  58. package/dist/sig/mod.js +4 -3
  59. package/dist/sig/owner.test.mjs +1 -1
  60. package/dist/sig/portable-collection.test.d.mts +2 -0
  61. package/dist/sig/portable-collection.test.mjs +971 -0
  62. package/dist/sig/proof.test.mjs +3 -3
  63. package/dist/sig-B8WDBV-h.js +401 -0
  64. package/dist/sig-dut4BzEW.cjs +405 -0
  65. package/dist/{temporal-DV5jeBbR.mjs → temporal-CcRkOx3C.mjs} +1 -1
  66. package/dist/testing/kv.test.mjs +1 -1
  67. package/dist/utils/docloader.test.mjs +2 -2
  68. package/dist/utils/kv-cache.test.mjs +1 -1
  69. package/dist/utils/mod.cjs +1 -1
  70. package/dist/utils/mod.js +1 -1
  71. package/package.json +7 -7
@@ -9,11 +9,11 @@ import { t as assertInstanceOf } from "../assert_instance_of-mrXWWNY-.mjs";
9
9
  import "../std__assert-DvMDRPes.mjs";
10
10
  import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
11
11
  import { t as assert } from "../assert-D1Eafmd_.mjs";
12
- import { l as verifyRequest } from "../http-CotELN-4.mjs";
12
+ import { l as verifyRequest } from "../http-znjq5j6a.mjs";
13
13
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
14
- import { t as getAuthenticatedDocumentLoader } from "../docloader-CJADEtqb.mjs";
14
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-DBb8z7_l.mjs";
15
15
  import { r as normalizeOutgoingActivityJsonLd } from "../outgoing-jsonld-4IJqPYos.mjs";
16
- import { a as verifyObject, c as verifyProof, n as hasProofLike, o as verifyPortableObjectProof, r as signObject, t as createProof } from "../proof-BigVZwkl.mjs";
16
+ import { a as verifyObject, l as verifyProof, n as hasProofLike, o as verifyPortableObjectProof, r as signObject, t as createProof } from "../proof-B69bJaSn.mjs";
17
17
  import { Create, DataIntegrityProof, Document, Multikey, Note, PUBLIC_COLLECTION, Place, Translation } from "@fedify/vocab";
18
18
  import { createTestMeterProvider, mockDocumentLoader, test } from "@fedify/fixture";
19
19
  import { decodeMultibase, encodeMultibase, exportDidKey, exportMultibaseKey, formatIri, importMultibaseKey, parseIri } from "@fedify/vocab-runtime";
@@ -0,0 +1,401 @@
1
+ import { Temporal } from "temporal-polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
+ import { I as name, L as version } from "./http-99KVDtMr.js";
4
+ import { c as verifyPortableObjectProof, u as verifyPortableObjectProofWithRoot } from "./owner-Cu_KMvQN.js";
5
+ import { getLogger } from "@logtape/logtape";
6
+ import { CollectionPage, Object as Object$1, isActor } from "@fedify/vocab";
7
+ import { trace } from "@opentelemetry/api";
8
+ import { canonicalizePortableUri, formatIri, fromCompatibleEf61Id, getDocumentLoader, getFe34Origin, parseIri } from "@fedify/vocab-runtime";
9
+ import { dereferencePortableIri, getPortableGatewayCandidates } from "@fedify/vocab-runtime/internal/portable-dereference";
10
+ //#region src/sig/portable-collection.ts
11
+ const logger = getLogger([
12
+ "fedify",
13
+ "sig",
14
+ "proof"
15
+ ]);
16
+ const AS_NAMESPACE = "https://www.w3.org/ns/activitystreams#";
17
+ const AS_ATTRIBUTED_TO = `${AS_NAMESPACE}attributedTo`;
18
+ const AS_PART_OF = `${AS_NAMESPACE}partOf`;
19
+ /**
20
+ * The properties through which a collection refers to its pages, and a page
21
+ * to other pages of the same collection.
22
+ */
23
+ const PAGING_PROPERTIES = new Set([
24
+ "first",
25
+ "last",
26
+ "current",
27
+ "next",
28
+ "prev"
29
+ ].map((p) => AS_NAMESPACE + p));
30
+ /**
31
+ * The properties through which an actor refers to its own collections.
32
+ */
33
+ const ACTOR_COLLECTION_PROPERTIES = /* @__PURE__ */ new Set([
34
+ "http://www.w3.org/ns/ldp#inbox",
35
+ `${AS_NAMESPACE}outbox`,
36
+ `${AS_NAMESPACE}followers`,
37
+ `${AS_NAMESPACE}following`,
38
+ `${AS_NAMESPACE}liked`
39
+ ]);
40
+ const contextStates = /* @__PURE__ */ new WeakMap();
41
+ function createContext(state) {
42
+ const token = Object.freeze(Object.create(null));
43
+ contextStates.set(token, state);
44
+ return token;
45
+ }
46
+ function getContextState(context) {
47
+ if (context == null || typeof context !== "object") return void 0;
48
+ return contextStates.get(context);
49
+ }
50
+ function canonicalize(id) {
51
+ try {
52
+ return canonicalizePortableUri(typeof id === "string" ? id : formatIri(id));
53
+ } catch (error) {
54
+ if (error instanceof TypeError) return null;
55
+ throw error;
56
+ }
57
+ }
58
+ function toUrl(canonicalId) {
59
+ return parseIri(canonicalId);
60
+ }
61
+ function canonicalizeAll(ids) {
62
+ const result = [];
63
+ for (const id of ids) {
64
+ const canonical = canonicalize(id);
65
+ if (canonical == null) return null;
66
+ result.push(canonical);
67
+ }
68
+ return result;
69
+ }
70
+ function getExpandedIds(node, property) {
71
+ const values = node[property];
72
+ if (values == null) return [];
73
+ if (!Array.isArray(values)) return null;
74
+ const ids = [];
75
+ for (const value of values) {
76
+ if (value == null || typeof value !== "object" || Array.isArray(value) || typeof value["@id"] !== "string") return null;
77
+ ids.push(value["@id"]);
78
+ }
79
+ return ids;
80
+ }
81
+ function parseAll(ids) {
82
+ const result = [];
83
+ for (const id of ids) try {
84
+ result.push(parseIri(id));
85
+ } catch (error) {
86
+ if (error instanceof TypeError) return null;
87
+ throw error;
88
+ }
89
+ return result;
90
+ }
91
+ function describeRoot(root) {
92
+ const rawId = root["@id"];
93
+ if (typeof rawId !== "string") return null;
94
+ const id = canonicalize(rawId);
95
+ if (id == null) return null;
96
+ const partOf = getExpandedIds(root, AS_PART_OF);
97
+ const attributedTo = getExpandedIds(root, AS_ATTRIBUTED_TO);
98
+ return {
99
+ id,
100
+ url: toUrl(id),
101
+ origin: getFe34Origin(id),
102
+ partOf: partOf == null ? null : canonicalizeAll(partOf),
103
+ attributedTo: attributedTo == null ? null : canonicalizeAll(attributedTo),
104
+ attributedToUrls: attributedTo == null ? null : parseAll(attributedTo)
105
+ };
106
+ }
107
+ function describeObject(object) {
108
+ if (!(object instanceof Object$1) || object.id == null) return null;
109
+ const id = canonicalize(object.id);
110
+ if (id == null) return null;
111
+ const partOfId = object instanceof CollectionPage ? object.partOfId : null;
112
+ return {
113
+ id,
114
+ url: toUrl(id),
115
+ origin: getFe34Origin(id),
116
+ partOf: canonicalizeAll(partOfId == null ? [] : [partOfId]),
117
+ attributedTo: canonicalizeAll(object.attributionIds),
118
+ attributedToUrls: object.attributionIds
119
+ };
120
+ }
121
+ function fail(reason) {
122
+ return {
123
+ verified: false,
124
+ reason
125
+ };
126
+ }
127
+ /**
128
+ * Walks the referrer chain of a collection or page to find the root
129
+ * collection and its owner candidate, checking every page on the way.
130
+ */
131
+ function resolveChain(node, referrer) {
132
+ const pages = [];
133
+ let top = node;
134
+ let link = referrer;
135
+ let state;
136
+ while (link != null && PAGING_PROPERTIES.has(link.property)) {
137
+ pages.push(top);
138
+ state = getContextState(link.collectionContext);
139
+ if (state != null) break;
140
+ const parent = describeObject(link.object);
141
+ if (parent == null || link.truncated) return fail({ type: "unknownCollectionOwner" });
142
+ top = parent;
143
+ link = link.referrer;
144
+ }
145
+ let rootId;
146
+ let rootOrigin;
147
+ let candidate;
148
+ if (state != null) {
149
+ rootId = state.rootId;
150
+ rootOrigin = state.rootOrigin;
151
+ const ownerCandidate = state.owner == null ? state.ownerCandidate : { id: canonicalize(state.owner.id) };
152
+ if (ownerCandidate == null) return fail({ type: "unknownCollectionOwner" });
153
+ candidate = ownerCandidate;
154
+ } else {
155
+ rootId = top.id;
156
+ rootOrigin = top.origin;
157
+ const attributedTo = top.attributedTo;
158
+ if (attributedTo == null) return fail({ type: "unknownCollectionOwner" });
159
+ if (link != null && ACTOR_COLLECTION_PROPERTIES.has(link.property)) {
160
+ const id = link.id == null ? null : canonicalize(link.id);
161
+ if (id == null) return fail({ type: "unknownCollectionOwner" });
162
+ candidate = {
163
+ id,
164
+ object: link.object,
165
+ acceptance: link.acceptance
166
+ };
167
+ } else if (attributedTo.length === 1) candidate = {
168
+ id: attributedTo[0],
169
+ url: top.attributedToUrls?.[0]
170
+ };
171
+ else if (attributedTo.length > 1) return fail({
172
+ type: "conflictingCollectionOwners",
173
+ candidates: attributedTo.map(toUrl)
174
+ });
175
+ else return fail({ type: "unknownCollectionOwner" });
176
+ const conflict = attributedTo.find((id) => id !== candidate.id);
177
+ if (conflict != null) return fail({
178
+ type: "conflictingCollectionOwners",
179
+ candidates: [toUrl(candidate.id), toUrl(conflict)]
180
+ });
181
+ }
182
+ if (getFe34Origin(candidate.id) !== rootOrigin) return fail({ type: "unknownCollectionOwner" });
183
+ for (const page of pages) {
184
+ if (page.origin !== rootOrigin) return fail({
185
+ type: "collectionPageMismatch",
186
+ pageId: page.url,
187
+ collectionId: toUrl(rootId),
188
+ partOf: null
189
+ });
190
+ if (page.partOf == null) return fail({ type: "unknownCollectionOwner" });
191
+ const partOf = page.partOf.find((id) => id !== rootId);
192
+ if (partOf != null) return fail({
193
+ type: "collectionPageMismatch",
194
+ pageId: page.url,
195
+ collectionId: toUrl(rootId),
196
+ partOf: toUrl(partOf)
197
+ });
198
+ if (page.attributedTo == null) return fail({ type: "unknownCollectionOwner" });
199
+ const conflict = page.attributedTo.find((id) => id !== candidate.id);
200
+ if (conflict != null) return fail({
201
+ type: "conflictingCollectionOwners",
202
+ candidates: [toUrl(candidate.id), toUrl(conflict)]
203
+ });
204
+ }
205
+ return {
206
+ rootId,
207
+ rootOrigin,
208
+ owner: state?.owner ?? null,
209
+ candidate
210
+ };
211
+ }
212
+ function getActorCollectionIds(actor) {
213
+ const ids = [];
214
+ for (const id of [
215
+ actor.inboxId,
216
+ actor.outboxId,
217
+ actor.followersId,
218
+ actor.followingId,
219
+ actor.likedId
220
+ ]) {
221
+ if (id == null) continue;
222
+ const canonical = canonicalize(id);
223
+ if (canonical != null) ids.push(canonical);
224
+ }
225
+ return ids;
226
+ }
227
+ async function fetchOwner(candidate, options) {
228
+ const documentLoader = options.documentLoader ?? getDocumentLoader();
229
+ const contextLoader = options.contextLoader ?? getDocumentLoader();
230
+ const tracerProvider = options.tracerProvider ?? trace.getTracerProvider();
231
+ const tracer = tracerProvider.getTracer(name, version);
232
+ const gateways = options.gateways ?? (getPortableGatewayCandidates(candidate).length > 0 ? void 0 : options.gatewayHints);
233
+ const span = tracer.startSpan("activitypub.lookup_object");
234
+ try {
235
+ const object = await dereferencePortableIri(candidate, {
236
+ documentLoader,
237
+ contextLoader,
238
+ tracerProvider,
239
+ gateways,
240
+ verifyPortableObject: (document, verifierOptions) => verifyPortableObjectProof(document, {
241
+ ...options,
242
+ ...verifierOptions
243
+ }),
244
+ suppressError: true,
245
+ span,
246
+ parse: (document, parseOptions) => Object$1.fromJsonLd(document, {
247
+ documentLoader,
248
+ contextLoader: parseOptions.contextLoader,
249
+ tracerProvider,
250
+ baseUrl: parseOptions.baseUrl
251
+ })
252
+ });
253
+ return isActor(object) ? object : null;
254
+ } catch (error) {
255
+ logger.debug("Failed to fetch the owner {owner} of a portable collection: {error}", {
256
+ owner: formatIri(candidate),
257
+ error
258
+ });
259
+ return null;
260
+ } finally {
261
+ span.end();
262
+ }
263
+ }
264
+ async function resolveOwner(chain, options) {
265
+ if (chain.owner != null) return chain.owner;
266
+ const { candidate } = chain;
267
+ const candidateUrl = toUrl(candidate.id);
268
+ let actor = null;
269
+ if (candidate.acceptance === "verified" && isActor(candidate.object) && candidate.object.id != null && canonicalize(candidate.object.id) === candidate.id) actor = candidate.object;
270
+ else actor = await fetchOwner(candidate.url ?? (candidate.object instanceof Object$1 && candidate.object.id != null ? candidate.object.id : candidateUrl), options);
271
+ if (actor == null || actor.id == null) return fail({
272
+ type: "collectionOwnerUnavailable",
273
+ owner: candidateUrl
274
+ });
275
+ const gateways = actor.gateways;
276
+ if (gateways.length < 1) return fail({
277
+ type: "collectionOwnerUnavailable",
278
+ owner: candidateUrl
279
+ });
280
+ if (!getActorCollectionIds(actor).includes(chain.rootId)) return fail({
281
+ type: "collectionNotListedByOwner",
282
+ owner: candidateUrl,
283
+ collectionId: toUrl(chain.rootId)
284
+ });
285
+ return {
286
+ id: candidateUrl,
287
+ gateways
288
+ };
289
+ }
290
+ function getSourceGateway(node, documentUrl) {
291
+ if (documentUrl == null || documentUrl.protocol !== "http:" && documentUrl.protocol !== "https:") return null;
292
+ let portableId;
293
+ try {
294
+ portableId = fromCompatibleEf61Id(documentUrl);
295
+ } catch (error) {
296
+ if (error instanceof TypeError) return null;
297
+ throw error;
298
+ }
299
+ if (portableId == null || canonicalize(portableId) !== node.id) return null;
300
+ return new URL(documentUrl.origin);
301
+ }
302
+ /**
303
+ * Applies the [FEP-ef61] trust policy to a portable object fetched through
304
+ * a gateway.
305
+ *
306
+ * Portable actors, activities, objects, and collections with proofs are
307
+ * verified by {@link verifyPortableObjectProof}. A portable collection or
308
+ * collection page without a proof is accepted only if all of the following
309
+ * hold:
310
+ *
311
+ * - It was retrieved from a gateway: its final URL (`documentUrl`) is
312
+ * a compatible identifier for the same portable collection.
313
+ * - Its owner is determined unambiguously: the actor whose `inbox`,
314
+ * `outbox`, `followers`, `following`, or `liked` property referred to
315
+ * the collection, or the single actor in its `attributedTo`. A page
316
+ * inherits the owner of the collection it was reached from through
317
+ * `first`, `last`, `current`, `next`, or `prev`, and must not name
318
+ * another collection in `partOf`.
319
+ * - The owner's actor document is verified by its proof and lists the
320
+ * collection as its `inbox`, `outbox`, `followers`, `following`, or
321
+ * `liked`.
322
+ * - The gateway that served the collection is in the owner's `gateways`.
323
+ *
324
+ * Where the document came from and which object referred to it are passed
325
+ * by property accessors when this function is used as their
326
+ * `verifyPortableObject` option. Objects embedded in an unsecured
327
+ * collection accepted this way are not trusted: accessors dereference and
328
+ * verify them one by one.
329
+ *
330
+ * Note that acceptance through the gateway policy does not verify anything
331
+ * cryptographically; it only means that the owner trusts the gateway.
332
+ *
333
+ * [FEP-ef61]: https://w3id.org/fep/ef61
334
+ *
335
+ * @param jsonLd The JSON-LD document to verify.
336
+ * @param options Additional options. See also
337
+ * {@link VerifyPortableObjectOptions}.
338
+ * @returns The detailed result.
339
+ * @throws {TypeError} If the input is not a single JSON-LD object or has a
340
+ * malformed portable ID.
341
+ * @since 2.4.0
342
+ */
343
+ async function verifyPortableObject(jsonLd, options = {}) {
344
+ const { result, root, objectType } = await verifyPortableObjectProofWithRoot(jsonLd, options);
345
+ if (result.verified) {
346
+ const node = objectType === "collection" && root != null ? describeRoot(root) : null;
347
+ const chain = node == null ? null : resolveChain(node, options.referrer);
348
+ if (chain == null || !("rootId" in chain)) return {
349
+ verified: true,
350
+ method: "proof",
351
+ keys: result.keys
352
+ };
353
+ return {
354
+ verified: true,
355
+ method: "proof",
356
+ keys: result.keys,
357
+ collectionContext: createContext({
358
+ rootId: chain.rootId,
359
+ rootOrigin: chain.rootOrigin,
360
+ owner: chain.owner,
361
+ ownerCandidate: chain.candidate
362
+ })
363
+ };
364
+ }
365
+ if (result.reason.type !== "unsecuredCollection") return {
366
+ verified: false,
367
+ reason: result.reason
368
+ };
369
+ const node = root == null ? null : describeRoot(root);
370
+ if (node == null) return fail({ type: "unknownCollectionOwner" });
371
+ const gateway = getSourceGateway(node, options.documentUrl);
372
+ if (gateway == null) return fail({
373
+ type: "unknownCollectionSource",
374
+ documentUrl: options.documentUrl ?? null
375
+ });
376
+ const chain = resolveChain(node, options.referrer);
377
+ if (!("rootId" in chain)) return chain;
378
+ const owner = await resolveOwner(chain, options);
379
+ if (!("gateways" in owner)) return owner;
380
+ if (!owner.gateways.some((g) => g.origin === gateway.origin)) return fail({
381
+ type: "untrustedGateway",
382
+ owner: owner.id,
383
+ gateway,
384
+ gateways: owner.gateways
385
+ });
386
+ return {
387
+ verified: true,
388
+ method: "gateway",
389
+ unsecured: true,
390
+ owner: owner.id,
391
+ gateway,
392
+ collectionContext: createContext({
393
+ rootId: chain.rootId,
394
+ rootOrigin: chain.rootOrigin,
395
+ owner,
396
+ ownerCandidate: null
397
+ })
398
+ };
399
+ }
400
+ //#endregion
401
+ export { verifyPortableObject as t };