@fedify/vocab 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.
package/dist/mod.d.cts CHANGED
@@ -21228,6 +21228,29 @@ interface TraverseCollectionOptions {
21228
21228
  * @default `{ seconds: 0 }`
21229
21229
  */
21230
21230
  interval?: Temporal.Duration | Temporal.DurationLike;
21231
+ /**
21232
+ * Whether to trust objects whose origin differs from the collection or page
21233
+ * that refers to them. See the `crossOrigin` option of property accessors
21234
+ * such as `Collection.getItems()`.
21235
+ * @since 2.4.0
21236
+ */
21237
+ crossOrigin?: "ignore" | "throw" | "trust";
21238
+ /**
21239
+ * The [FEP-ef61] gateways to fetch portable (`ap:`/`ap+ef61:`) pages and
21240
+ * items through, in order. See the `gateways` option of property
21241
+ * accessors.
21242
+ *
21243
+ * [FEP-ef61]: https://w3id.org/fep/ef61
21244
+ * @since 2.4.0
21245
+ */
21246
+ gateways?: readonly (string | URL)[];
21247
+ /**
21248
+ * The policy to apply to portable pages and items fetched through
21249
+ * gateways, typically `verifyPortableObject()` from `@fedify/fedify`.
21250
+ * Portable pages and items are not fetched without it.
21251
+ * @since 2.4.0
21252
+ */
21253
+ verifyPortableObject?: PortableObjectVerifier;
21231
21254
  }
21232
21255
  /**
21233
21256
  * Traverses a collection, yielding each item in the collection.
package/dist/mod.d.ts CHANGED
@@ -21228,6 +21228,29 @@ interface TraverseCollectionOptions {
21228
21228
  * @default `{ seconds: 0 }`
21229
21229
  */
21230
21230
  interval?: Temporal.Duration | Temporal.DurationLike;
21231
+ /**
21232
+ * Whether to trust objects whose origin differs from the collection or page
21233
+ * that refers to them. See the `crossOrigin` option of property accessors
21234
+ * such as `Collection.getItems()`.
21235
+ * @since 2.4.0
21236
+ */
21237
+ crossOrigin?: "ignore" | "throw" | "trust";
21238
+ /**
21239
+ * The [FEP-ef61] gateways to fetch portable (`ap:`/`ap+ef61:`) pages and
21240
+ * items through, in order. See the `gateways` option of property
21241
+ * accessors.
21242
+ *
21243
+ * [FEP-ef61]: https://w3id.org/fep/ef61
21244
+ * @since 2.4.0
21245
+ */
21246
+ gateways?: readonly (string | URL)[];
21247
+ /**
21248
+ * The policy to apply to portable pages and items fetched through
21249
+ * gateways, typically `verifyPortableObject()` from `@fedify/fedify`.
21250
+ * Portable pages and items are not fetched without it.
21251
+ * @since 2.4.0
21252
+ */
21253
+ verifyPortableObject?: PortableObjectVerifier;
21231
21254
  }
21232
21255
  /**
21233
21256
  * Traverses a collection, yielding each item in the collection.