@fedify/vocab 2.4.0-dev.1599 → 2.4.0-dev.1634

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 (41) hide show
  1. package/deno.json +1 -1
  2. package/dist/mod.cjs +472 -16
  3. package/dist/mod.d.cts +119 -1
  4. package/dist/mod.d.ts +119 -1
  5. package/dist/mod.js +473 -17
  6. package/dist-tests/{actor-NhcklZK0.mjs → actor-BQd8S953.mjs} +2 -2
  7. package/dist-tests/actor.test.mjs +2 -2
  8. package/dist-tests/application.yaml +15 -0
  9. package/dist-tests/audio.yaml +2 -1
  10. package/dist-tests/document.yaml +14 -1
  11. package/dist-tests/endpoints.yaml +14 -0
  12. package/dist-tests/group.yaml +15 -0
  13. package/dist-tests/image.yaml +2 -1
  14. package/dist-tests/link.yaml +14 -1
  15. package/dist-tests/lookup.test.mjs +71 -4
  16. package/dist-tests/organization.yaml +15 -0
  17. package/dist-tests/page.yaml +2 -1
  18. package/dist-tests/person.yaml +15 -0
  19. package/dist-tests/service.yaml +15 -0
  20. package/dist-tests/type.test.mjs +1 -1
  21. package/dist-tests/video.yaml +2 -1
  22. package/dist-tests/{vocab-BQ8y6QS7.mjs → vocab-Bjwctrxn.mjs} +472 -16
  23. package/dist-tests/vocab.test.mjs +232 -2
  24. package/package.json +4 -4
  25. package/src/__snapshots__/vocab.test.ts.snap +60 -18
  26. package/src/application.yaml +15 -0
  27. package/src/audio.yaml +2 -1
  28. package/src/document.yaml +14 -1
  29. package/src/endpoints.yaml +14 -0
  30. package/src/group.yaml +15 -0
  31. package/src/image.yaml +2 -1
  32. package/src/link.yaml +14 -1
  33. package/src/lookup.test.ts +121 -0
  34. package/src/lookup.ts +3 -1
  35. package/src/organization.yaml +15 -0
  36. package/src/page.yaml +2 -1
  37. package/src/person.yaml +15 -0
  38. package/src/preprocessors.ts +3 -1
  39. package/src/service.yaml +15 -0
  40. package/src/video.yaml +2 -1
  41. package/src/vocab.test.ts +372 -0
package/dist/mod.d.ts CHANGED
@@ -7412,6 +7412,8 @@ declare class Application extends Object$1 {
7412
7412
  publicKeys?: (CryptographicKey | URL)[];
7413
7413
  assertionMethod?: Multikey | URL | null;
7414
7414
  assertionMethods?: (Multikey | URL)[];
7415
+ gateway?: URL | null;
7416
+ gateways?: (URL)[];
7415
7417
  manuallyApprovesFollowers?: boolean | null;
7416
7418
  inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
7417
7419
  outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
@@ -7506,6 +7508,8 @@ declare class Application extends Object$1 {
7506
7508
  publicKeys?: (CryptographicKey | URL)[];
7507
7509
  assertionMethod?: Multikey | URL | null;
7508
7510
  assertionMethods?: (Multikey | URL)[];
7511
+ gateway?: URL | null;
7512
+ gateways?: (URL)[];
7509
7513
  manuallyApprovesFollowers?: boolean | null;
7510
7514
  inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
7511
7515
  outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
@@ -7606,6 +7610,18 @@ declare class Application extends Object$1 {
7606
7610
  tracerProvider?: TracerProvider;
7607
7611
  crossOrigin?: "ignore" | "throw" | "trust";
7608
7612
  }): AsyncIterable<Multikey>;
7613
+ /** Gateways where the latest version of this portable actor object can be
7614
+ * retrieved.
7615
+ *
7616
+ * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
7617
+ */
7618
+ get gateway(): URL | null;
7619
+ /** Gateways where the latest version of this portable actor object can be
7620
+ * retrieved.
7621
+ *
7622
+ * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
7623
+ */
7624
+ get gateways(): (URL)[];
7609
7625
  /** When `true`, conveys that for this actor, follow requests are not usually
7610
7626
  * automatically approved, but instead are examined by a person who may accept
7611
7627
  * or reject the request, at some time in the future. Setting of `false`
@@ -8659,6 +8675,7 @@ declare class Document extends Object$1 {
8659
8675
  announceAuthorization?: AnnounceAuthorization | URL | null;
8660
8676
  width?: number | null;
8661
8677
  height?: number | null;
8678
+ digestMultibase?: string | null;
8662
8679
  }, options?: {
8663
8680
  documentLoader?: DocumentLoader$1;
8664
8681
  contextLoader?: DocumentLoader$1;
@@ -8727,6 +8744,7 @@ declare class Document extends Object$1 {
8727
8744
  announceAuthorization?: AnnounceAuthorization | URL | null;
8728
8745
  width?: number | null;
8729
8746
  height?: number | null;
8747
+ digestMultibase?: string | null;
8730
8748
  }, options?: {
8731
8749
  documentLoader?: DocumentLoader$1;
8732
8750
  contextLoader?: DocumentLoader$1;
@@ -8739,6 +8757,12 @@ declare class Document extends Object$1 {
8739
8757
  * device-independent pixels of the linked resource.
8740
8758
  */
8741
8759
  get height(): number | null;
8760
+ /** The multibase-encoded integrity digest of an external resource represented
8761
+ * by this document.
8762
+ *
8763
+ * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
8764
+ */
8765
+ get digestMultibase(): string | null;
8742
8766
  /**
8743
8767
  * Converts this object to a JSON-LD structure.
8744
8768
  * @param options The options to use.
@@ -8849,6 +8873,7 @@ declare class Audio extends Document {
8849
8873
  announceAuthorization?: AnnounceAuthorization | URL | null;
8850
8874
  width?: number | null;
8851
8875
  height?: number | null;
8876
+ digestMultibase?: string | null;
8852
8877
  }, options?: {
8853
8878
  documentLoader?: DocumentLoader$1;
8854
8879
  contextLoader?: DocumentLoader$1;
@@ -8917,6 +8942,7 @@ declare class Audio extends Document {
8917
8942
  announceAuthorization?: AnnounceAuthorization | URL | null;
8918
8943
  width?: number | null;
8919
8944
  height?: number | null;
8945
+ digestMultibase?: string | null;
8920
8946
  }, options?: {
8921
8947
  documentLoader?: DocumentLoader$1;
8922
8948
  contextLoader?: DocumentLoader$1;
@@ -10269,6 +10295,7 @@ declare class Endpoints {
10269
10295
  provideClientKey?: URL | null;
10270
10296
  signClientKey?: URL | null;
10271
10297
  sharedInbox?: URL | null;
10298
+ uploadMedia?: URL | null;
10272
10299
  }, options?: {
10273
10300
  documentLoader?: DocumentLoader$1;
10274
10301
  contextLoader?: DocumentLoader$1;
@@ -10288,6 +10315,7 @@ declare class Endpoints {
10288
10315
  provideClientKey?: URL | null;
10289
10316
  signClientKey?: URL | null;
10290
10317
  sharedInbox?: URL | null;
10318
+ uploadMedia?: URL | null;
10291
10319
  }, options?: {
10292
10320
  documentLoader?: DocumentLoader$1;
10293
10321
  contextLoader?: DocumentLoader$1;
@@ -10333,6 +10361,14 @@ declare class Endpoints {
10333
10361
  * objects which are not addressed to the `Public`` endpoint.
10334
10362
  */
10335
10363
  get sharedInbox(): URL | null;
10364
+ /** Upload endpoint URI for this user for binary data, such as an image or
10365
+ * video, as described in the [ActivityPub Media
10366
+ * Upload](https://www.w3.org/wiki/SocialCG/ActivityPub/MediaUpload) extension.
10367
+ * Clients `POST` a `multipart/form-data` request containing a `file` part
10368
+ * (the binary payload) and an `object` part (an ActivityStreams object shell)
10369
+ * to this endpoint.
10370
+ */
10371
+ get uploadMedia(): URL | null;
10336
10372
  /**
10337
10373
  * Converts this object to a JSON-LD structure.
10338
10374
  * @param options The options to use.
@@ -11035,6 +11071,8 @@ declare class Group extends Object$1 {
11035
11071
  publicKeys?: (CryptographicKey | URL)[];
11036
11072
  assertionMethod?: Multikey | URL | null;
11037
11073
  assertionMethods?: (Multikey | URL)[];
11074
+ gateway?: URL | null;
11075
+ gateways?: (URL)[];
11038
11076
  manuallyApprovesFollowers?: boolean | null;
11039
11077
  inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
11040
11078
  outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
@@ -11129,6 +11167,8 @@ declare class Group extends Object$1 {
11129
11167
  publicKeys?: (CryptographicKey | URL)[];
11130
11168
  assertionMethod?: Multikey | URL | null;
11131
11169
  assertionMethods?: (Multikey | URL)[];
11170
+ gateway?: URL | null;
11171
+ gateways?: (URL)[];
11132
11172
  manuallyApprovesFollowers?: boolean | null;
11133
11173
  inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
11134
11174
  outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
@@ -11229,6 +11269,18 @@ declare class Group extends Object$1 {
11229
11269
  tracerProvider?: TracerProvider;
11230
11270
  crossOrigin?: "ignore" | "throw" | "trust";
11231
11271
  }): AsyncIterable<Multikey>;
11272
+ /** Gateways where the latest version of this portable actor object can be
11273
+ * retrieved.
11274
+ *
11275
+ * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
11276
+ */
11277
+ get gateway(): URL | null;
11278
+ /** Gateways where the latest version of this portable actor object can be
11279
+ * retrieved.
11280
+ *
11281
+ * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
11282
+ */
11283
+ get gateways(): (URL)[];
11232
11284
  /** When `true`, conveys that for this actor, follow requests are not usually
11233
11285
  * automatically approved, but instead are examined by a person who may accept
11234
11286
  * or reject the request, at some time in the future. Setting of `false`
@@ -11612,6 +11664,7 @@ declare class Link {
11612
11664
  rel?: string | null;
11613
11665
  rels?: (string)[];
11614
11666
  mediaType?: string | null;
11667
+ digestMultibase?: string | null;
11615
11668
  name?: string | LanguageString$1 | null;
11616
11669
  names?: ((string | LanguageString$1))[];
11617
11670
  language?: Intl.Locale | null;
@@ -11635,6 +11688,7 @@ declare class Link {
11635
11688
  rel?: string | null;
11636
11689
  rels?: (string)[];
11637
11690
  mediaType?: string | null;
11691
+ digestMultibase?: string | null;
11638
11692
  name?: string | LanguageString$1 | null;
11639
11693
  names?: ((string | LanguageString$1))[];
11640
11694
  language?: Intl.Locale | null;
@@ -11668,6 +11722,11 @@ declare class Link {
11668
11722
  * referenced resource.
11669
11723
  */
11670
11724
  get mediaType(): string | null;
11725
+ /** The multibase-encoded integrity digest of the linked resource.
11726
+ *
11727
+ * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
11728
+ */
11729
+ get digestMultibase(): string | null;
11671
11730
  /** A simple, human-readable, plain-text name for the object. HTML markup MUST
11672
11731
  * NOT be included. The name MAY be expressed using multiple language-tagged
11673
11732
  * values.
@@ -11766,6 +11825,7 @@ declare class Hashtag extends Link {
11766
11825
  rel?: string | null;
11767
11826
  rels?: (string)[];
11768
11827
  mediaType?: string | null;
11828
+ digestMultibase?: string | null;
11769
11829
  name?: string | LanguageString$1 | null;
11770
11830
  names?: ((string | LanguageString$1))[];
11771
11831
  language?: Intl.Locale | null;
@@ -11789,6 +11849,7 @@ declare class Hashtag extends Link {
11789
11849
  rel?: string | null;
11790
11850
  rels?: (string)[];
11791
11851
  mediaType?: string | null;
11852
+ digestMultibase?: string | null;
11792
11853
  name?: string | LanguageString$1 | null;
11793
11854
  names?: ((string | LanguageString$1))[];
11794
11855
  language?: Intl.Locale | null;
@@ -11909,6 +11970,7 @@ declare class Image extends Document {
11909
11970
  announceAuthorization?: AnnounceAuthorization | URL | null;
11910
11971
  width?: number | null;
11911
11972
  height?: number | null;
11973
+ digestMultibase?: string | null;
11912
11974
  }, options?: {
11913
11975
  documentLoader?: DocumentLoader$1;
11914
11976
  contextLoader?: DocumentLoader$1;
@@ -11977,6 +12039,7 @@ declare class Image extends Document {
11977
12039
  announceAuthorization?: AnnounceAuthorization | URL | null;
11978
12040
  width?: number | null;
11979
12041
  height?: number | null;
12042
+ digestMultibase?: string | null;
11980
12043
  }, options?: {
11981
12044
  documentLoader?: DocumentLoader$1;
11982
12045
  contextLoader?: DocumentLoader$1;
@@ -13258,6 +13321,7 @@ declare class Mention extends Link {
13258
13321
  rel?: string | null;
13259
13322
  rels?: (string)[];
13260
13323
  mediaType?: string | null;
13324
+ digestMultibase?: string | null;
13261
13325
  name?: string | LanguageString$1 | null;
13262
13326
  names?: ((string | LanguageString$1))[];
13263
13327
  language?: Intl.Locale | null;
@@ -13281,6 +13345,7 @@ declare class Mention extends Link {
13281
13345
  rel?: string | null;
13282
13346
  rels?: (string)[];
13283
13347
  mediaType?: string | null;
13348
+ digestMultibase?: string | null;
13284
13349
  name?: string | LanguageString$1 | null;
13285
13350
  names?: ((string | LanguageString$1))[];
13286
13351
  language?: Intl.Locale | null;
@@ -14076,6 +14141,8 @@ declare class Organization extends Object$1 {
14076
14141
  publicKeys?: (CryptographicKey | URL)[];
14077
14142
  assertionMethod?: Multikey | URL | null;
14078
14143
  assertionMethods?: (Multikey | URL)[];
14144
+ gateway?: URL | null;
14145
+ gateways?: (URL)[];
14079
14146
  manuallyApprovesFollowers?: boolean | null;
14080
14147
  inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
14081
14148
  outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
@@ -14170,6 +14237,8 @@ declare class Organization extends Object$1 {
14170
14237
  publicKeys?: (CryptographicKey | URL)[];
14171
14238
  assertionMethod?: Multikey | URL | null;
14172
14239
  assertionMethods?: (Multikey | URL)[];
14240
+ gateway?: URL | null;
14241
+ gateways?: (URL)[];
14173
14242
  manuallyApprovesFollowers?: boolean | null;
14174
14243
  inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
14175
14244
  outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
@@ -14270,6 +14339,18 @@ declare class Organization extends Object$1 {
14270
14339
  tracerProvider?: TracerProvider;
14271
14340
  crossOrigin?: "ignore" | "throw" | "trust";
14272
14341
  }): AsyncIterable<Multikey>;
14342
+ /** Gateways where the latest version of this portable actor object can be
14343
+ * retrieved.
14344
+ *
14345
+ * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
14346
+ */
14347
+ get gateway(): URL | null;
14348
+ /** Gateways where the latest version of this portable actor object can be
14349
+ * retrieved.
14350
+ *
14351
+ * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
14352
+ */
14353
+ get gateways(): (URL)[];
14273
14354
  /** When `true`, conveys that for this actor, follow requests are not usually
14274
14355
  * automatically approved, but instead are examined by a person who may accept
14275
14356
  * or reject the request, at some time in the future. Setting of `false`
@@ -14684,6 +14765,7 @@ declare class Page extends Document {
14684
14765
  announceAuthorization?: AnnounceAuthorization | URL | null;
14685
14766
  width?: number | null;
14686
14767
  height?: number | null;
14768
+ digestMultibase?: string | null;
14687
14769
  }, options?: {
14688
14770
  documentLoader?: DocumentLoader$1;
14689
14771
  contextLoader?: DocumentLoader$1;
@@ -14752,6 +14834,7 @@ declare class Page extends Document {
14752
14834
  announceAuthorization?: AnnounceAuthorization | URL | null;
14753
14835
  width?: number | null;
14754
14836
  height?: number | null;
14837
+ digestMultibase?: string | null;
14755
14838
  }, options?: {
14756
14839
  documentLoader?: DocumentLoader$1;
14757
14840
  contextLoader?: DocumentLoader$1;
@@ -14871,6 +14954,8 @@ declare class Person extends Object$1 {
14871
14954
  publicKeys?: (CryptographicKey | URL)[];
14872
14955
  assertionMethod?: Multikey | URL | null;
14873
14956
  assertionMethods?: (Multikey | URL)[];
14957
+ gateway?: URL | null;
14958
+ gateways?: (URL)[];
14874
14959
  manuallyApprovesFollowers?: boolean | null;
14875
14960
  inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
14876
14961
  outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
@@ -14965,6 +15050,8 @@ declare class Person extends Object$1 {
14965
15050
  publicKeys?: (CryptographicKey | URL)[];
14966
15051
  assertionMethod?: Multikey | URL | null;
14967
15052
  assertionMethods?: (Multikey | URL)[];
15053
+ gateway?: URL | null;
15054
+ gateways?: (URL)[];
14968
15055
  manuallyApprovesFollowers?: boolean | null;
14969
15056
  inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
14970
15057
  outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
@@ -15065,6 +15152,18 @@ declare class Person extends Object$1 {
15065
15152
  tracerProvider?: TracerProvider;
15066
15153
  crossOrigin?: "ignore" | "throw" | "trust";
15067
15154
  }): AsyncIterable<Multikey>;
15155
+ /** Gateways where the latest version of this portable actor object can be
15156
+ * retrieved.
15157
+ *
15158
+ * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
15159
+ */
15160
+ get gateway(): URL | null;
15161
+ /** Gateways where the latest version of this portable actor object can be
15162
+ * retrieved.
15163
+ *
15164
+ * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
15165
+ */
15166
+ get gateways(): (URL)[];
15068
15167
  /** When `true`, conveys that for this actor, follow requests are not usually
15069
15168
  * automatically approved, but instead are examined by a person who may accept
15070
15169
  * or reject the request, at some time in the future. Setting of `false`
@@ -17100,6 +17199,8 @@ declare class Service extends Object$1 {
17100
17199
  publicKeys?: (CryptographicKey | URL)[];
17101
17200
  assertionMethod?: Multikey | URL | null;
17102
17201
  assertionMethods?: (Multikey | URL)[];
17202
+ gateway?: URL | null;
17203
+ gateways?: (URL)[];
17103
17204
  manuallyApprovesFollowers?: boolean | null;
17104
17205
  inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
17105
17206
  outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
@@ -17194,6 +17295,8 @@ declare class Service extends Object$1 {
17194
17295
  publicKeys?: (CryptographicKey | URL)[];
17195
17296
  assertionMethod?: Multikey | URL | null;
17196
17297
  assertionMethods?: (Multikey | URL)[];
17298
+ gateway?: URL | null;
17299
+ gateways?: (URL)[];
17197
17300
  manuallyApprovesFollowers?: boolean | null;
17198
17301
  inbox?: OrderedCollection | OrderedCollectionPage | URL | null;
17199
17302
  outbox?: OrderedCollection | OrderedCollectionPage | URL | null;
@@ -17294,6 +17397,18 @@ declare class Service extends Object$1 {
17294
17397
  tracerProvider?: TracerProvider;
17295
17398
  crossOrigin?: "ignore" | "throw" | "trust";
17296
17399
  }): AsyncIterable<Multikey>;
17400
+ /** Gateways where the latest version of this portable actor object can be
17401
+ * retrieved.
17402
+ *
17403
+ * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
17404
+ */
17405
+ get gateway(): URL | null;
17406
+ /** Gateways where the latest version of this portable actor object can be
17407
+ * retrieved.
17408
+ *
17409
+ * See [FEP-ef61](https://w3id.org/fep/ef61) for details.
17410
+ */
17411
+ get gateways(): (URL)[];
17297
17412
  /** When `true`, conveys that for this actor, follow requests are not usually
17298
17413
  * automatically approved, but instead are examined by a person who may accept
17299
17414
  * or reject the request, at some time in the future. Setting of `false`
@@ -19032,6 +19147,7 @@ declare class Video extends Document {
19032
19147
  announceAuthorization?: AnnounceAuthorization | URL | null;
19033
19148
  width?: number | null;
19034
19149
  height?: number | null;
19150
+ digestMultibase?: string | null;
19035
19151
  }, options?: {
19036
19152
  documentLoader?: DocumentLoader$1;
19037
19153
  contextLoader?: DocumentLoader$1;
@@ -19100,6 +19216,7 @@ declare class Video extends Document {
19100
19216
  announceAuthorization?: AnnounceAuthorization | URL | null;
19101
19217
  width?: number | null;
19102
19218
  height?: number | null;
19219
+ digestMultibase?: string | null;
19103
19220
  }, options?: {
19104
19221
  documentLoader?: DocumentLoader$1;
19105
19222
  contextLoader?: DocumentLoader$1;
@@ -19760,7 +19877,8 @@ declare function traverseCollection(collection: Collection, options?: TraverseCo
19760
19877
  * When an `icon` or `image` property on a vocabulary object contains an
19761
19878
  * explicit ActivityStreams `Link` rather than an `Image`, this preprocessor
19762
19879
  * converts it into an `Image` by mapping `href` to `url`, copying
19763
- * `mediaType`, `name`, `width`, and `height`, and discarding the rest.
19880
+ * `mediaType`, `name`, `width`, `height`, and `digestMultibase`, and
19881
+ * discarding the rest.
19764
19882
  *
19765
19883
  * If the value is not a Link, or the Link has no `href`, it returns
19766
19884
  * `undefined` so the normal range decoder continues.