@fedify/fedify 1.0.0-dev.412 → 1.0.0-dev.414

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. package/CHANGES.md +18 -0
  2. package/esm/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/encoding.js +1 -1
  3. package/esm/federation/handler.js +1 -1
  4. package/esm/vocab/application.yaml +14 -0
  5. package/esm/vocab/group.yaml +14 -0
  6. package/esm/vocab/organization.yaml +14 -0
  7. package/esm/vocab/person.yaml +14 -0
  8. package/esm/vocab/service.yaml +14 -0
  9. package/esm/vocab/update.yaml +14 -0
  10. package/esm/vocab/vocab.js +430 -0
  11. package/package.json +2 -2
  12. package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/common.d.ts.map +1 -1
  13. package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/encoding.d.ts.map +1 -1
  14. package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/language.d.ts.map +1 -1
  15. package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/media_type.d.ts.map +1 -1
  16. package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/negotiation.d.ts.map +1 -1
  17. package/types/vocab/vocab.d.ts +40 -0
  18. package/types/vocab/vocab.d.ts.map +1 -1
  19. /package/esm/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/common.js +0 -0
  20. /package/esm/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/language.js +0 -0
  21. /package/esm/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/media_type.js +0 -0
  22. /package/esm/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/negotiation.js +0 -0
  23. /package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/common.d.ts +0 -0
  24. /package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/encoding.d.ts +0 -0
  25. /package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/language.d.ts +0 -0
  26. /package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/_negotiation/media_type.d.ts +0 -0
  27. /package/types/deps/jsr.io/@std/http/{1.0.6 → 1.0.7}/negotiation.d.ts +0 -0
@@ -9890,6 +9890,7 @@ export class Application extends Object {
9890
9890
  #_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
9891
9891
  #_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
9892
9892
  #_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
9893
+ #_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
9893
9894
  /**
9894
9895
  * Constructs a new instance of Application with the given values.
9895
9896
  * @param values The values to initialize the instance with.
@@ -10165,6 +10166,16 @@ export class Application extends Object {
10165
10166
  "Application | Group | Organization | Person | Service | URL" + ".");
10166
10167
  }
10167
10168
  }
10169
+ if ("cat" in values && values.cat != null) {
10170
+ if (typeof values.cat === "boolean") {
10171
+ // @ts-ignore: type is checked above.
10172
+ this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
10173
+ }
10174
+ else {
10175
+ throw new TypeError("The cat must be of type " +
10176
+ "boolean" + ".");
10177
+ }
10178
+ }
10168
10179
  }
10169
10180
  /**
10170
10181
  * Clones this instance, optionally updating it with the given values.
@@ -10480,6 +10491,18 @@ export class Application extends Object {
10480
10491
  "Application | Group | Organization | Person | Service | URL" + ".");
10481
10492
  }
10482
10493
  }
10494
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat =
10495
+ this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
10496
+ if ("cat" in values && values.cat != null) {
10497
+ if (typeof values.cat === "boolean") {
10498
+ // @ts-ignore: type is checked above.
10499
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
10500
+ }
10501
+ else {
10502
+ throw new TypeError("The cat must be of type " +
10503
+ "boolean" + ".");
10504
+ }
10505
+ }
10483
10506
  return clone;
10484
10507
  }
10485
10508
  /** A short username which may be used to refer to the actor,
@@ -11321,6 +11344,16 @@ export class Application extends Object {
11321
11344
  yield v;
11322
11345
  }
11323
11346
  }
11347
+ /** Used on actors to indicate that they in some way identify as a cat,
11348
+ * expressed as a boolean value. If this property is set to `true`,
11349
+ * displaying the actor or their notes will have some special effects
11350
+ * attached in some clients.
11351
+ */
11352
+ get cat() {
11353
+ if (this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length < 1)
11354
+ return null;
11355
+ return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
11356
+ }
11324
11357
  /**
11325
11358
  * Converts this object to a JSON-LD structure.
11326
11359
  * @param options The options to use.
@@ -11610,6 +11643,16 @@ export class Application extends Object {
11610
11643
  ? compactItems
11611
11644
  : compactItems[0];
11612
11645
  }
11646
+ compactItems = [];
11647
+ for (const v of this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat) {
11648
+ const item = v;
11649
+ compactItems.push(item);
11650
+ }
11651
+ if (compactItems.length > 0) {
11652
+ result["isCat"] = compactItems.length > 1
11653
+ ? compactItems
11654
+ : compactItems[0];
11655
+ }
11613
11656
  result["type"] = "Application";
11614
11657
  if (this.id != null)
11615
11658
  result["id"] = this.id.href;
@@ -11631,6 +11674,8 @@ export class Application extends Object {
11631
11674
  "schema": "http://schema.org#",
11632
11675
  "PropertyValue": "schema:PropertyValue",
11633
11676
  "value": "schema:value",
11677
+ "misskey": "https://misskey-hub.net/ns#",
11678
+ "isCat": "misskey:isCat",
11634
11679
  },
11635
11680
  ];
11636
11681
  return result;
@@ -11839,6 +11884,15 @@ export class Application extends Object {
11839
11884
  const propValue = array;
11840
11885
  values["https://www.w3.org/ns/activitystreams#alsoKnownAs"] = propValue;
11841
11886
  }
11887
+ array = [];
11888
+ for (const v of this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat) {
11889
+ const element = { "@value": v };
11890
+ array.push(element);
11891
+ }
11892
+ if (array.length > 0) {
11893
+ const propValue = array;
11894
+ values["https://misskey-hub.net/ns#isCat"] = propValue;
11895
+ }
11842
11896
  values["@type"] = ["https://www.w3.org/ns/activitystreams#Application"];
11843
11897
  if (this.id != null)
11844
11898
  values["@id"] = this.id.href;
@@ -11864,6 +11918,8 @@ export class Application extends Object {
11864
11918
  "schema": "http://schema.org#",
11865
11919
  "PropertyValue": "schema:PropertyValue",
11866
11920
  "value": "schema:value",
11921
+ "misskey": "https://misskey-hub.net/ns#",
11922
+ "isCat": "misskey:isCat",
11867
11923
  },
11868
11924
  ];
11869
11925
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
@@ -12270,6 +12326,20 @@ export class Application extends Object {
12270
12326
  }
12271
12327
  instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs =
12272
12328
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
12329
+ const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
12330
+ let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
12331
+ for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null
12332
+ ? []
12333
+ : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 &&
12334
+ "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]
12335
+ ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"]
12336
+ : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
12337
+ if (v == null)
12338
+ continue;
12339
+ _2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(v["@value"]);
12340
+ }
12341
+ instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat =
12342
+ _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
12273
12343
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
12274
12344
  try {
12275
12345
  instance.#cachedJsonLd = structuredClone(json);
@@ -12523,6 +12593,18 @@ export class Application extends Object {
12523
12593
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.length > 0) {
12524
12594
  proxy.aliases = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
12525
12595
  }
12596
+ const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this
12597
+ .#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat
12598
+ // deno-lint-ignore no-explicit-any
12599
+ .map((v) => v instanceof URL
12600
+ ? {
12601
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
12602
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options),
12603
+ }
12604
+ : v);
12605
+ if (_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length == 1) {
12606
+ proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
12607
+ }
12526
12608
  return proxy;
12527
12609
  }
12528
12610
  [Symbol.for("Deno.customInspect")](inspect, options) {
@@ -17329,6 +17411,7 @@ export class Group extends Object {
17329
17411
  #_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
17330
17412
  #_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
17331
17413
  #_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
17414
+ #_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
17332
17415
  /**
17333
17416
  * Constructs a new instance of Group with the given values.
17334
17417
  * @param values The values to initialize the instance with.
@@ -17604,6 +17687,16 @@ export class Group extends Object {
17604
17687
  "Application | Group | Organization | Person | Service | URL" + ".");
17605
17688
  }
17606
17689
  }
17690
+ if ("cat" in values && values.cat != null) {
17691
+ if (typeof values.cat === "boolean") {
17692
+ // @ts-ignore: type is checked above.
17693
+ this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
17694
+ }
17695
+ else {
17696
+ throw new TypeError("The cat must be of type " +
17697
+ "boolean" + ".");
17698
+ }
17699
+ }
17607
17700
  }
17608
17701
  /**
17609
17702
  * Clones this instance, optionally updating it with the given values.
@@ -17919,6 +18012,18 @@ export class Group extends Object {
17919
18012
  "Application | Group | Organization | Person | Service | URL" + ".");
17920
18013
  }
17921
18014
  }
18015
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat =
18016
+ this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
18017
+ if ("cat" in values && values.cat != null) {
18018
+ if (typeof values.cat === "boolean") {
18019
+ // @ts-ignore: type is checked above.
18020
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
18021
+ }
18022
+ else {
18023
+ throw new TypeError("The cat must be of type " +
18024
+ "boolean" + ".");
18025
+ }
18026
+ }
17922
18027
  return clone;
17923
18028
  }
17924
18029
  /** A short username which may be used to refer to the actor,
@@ -18760,6 +18865,16 @@ export class Group extends Object {
18760
18865
  yield v;
18761
18866
  }
18762
18867
  }
18868
+ /** Used on actors to indicate that they in some way identify as a cat,
18869
+ * expressed as a boolean value. If this property is set to `true`,
18870
+ * displaying the actor or their notes will have some special effects
18871
+ * attached in some clients.
18872
+ */
18873
+ get cat() {
18874
+ if (this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length < 1)
18875
+ return null;
18876
+ return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
18877
+ }
18763
18878
  /**
18764
18879
  * Converts this object to a JSON-LD structure.
18765
18880
  * @param options The options to use.
@@ -19049,6 +19164,16 @@ export class Group extends Object {
19049
19164
  ? compactItems
19050
19165
  : compactItems[0];
19051
19166
  }
19167
+ compactItems = [];
19168
+ for (const v of this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat) {
19169
+ const item = v;
19170
+ compactItems.push(item);
19171
+ }
19172
+ if (compactItems.length > 0) {
19173
+ result["isCat"] = compactItems.length > 1
19174
+ ? compactItems
19175
+ : compactItems[0];
19176
+ }
19052
19177
  result["type"] = "Group";
19053
19178
  if (this.id != null)
19054
19179
  result["id"] = this.id.href;
@@ -19070,6 +19195,8 @@ export class Group extends Object {
19070
19195
  "schema": "http://schema.org#",
19071
19196
  "PropertyValue": "schema:PropertyValue",
19072
19197
  "value": "schema:value",
19198
+ "misskey": "https://misskey-hub.net/ns#",
19199
+ "isCat": "misskey:isCat",
19073
19200
  },
19074
19201
  ];
19075
19202
  return result;
@@ -19278,6 +19405,15 @@ export class Group extends Object {
19278
19405
  const propValue = array;
19279
19406
  values["https://www.w3.org/ns/activitystreams#alsoKnownAs"] = propValue;
19280
19407
  }
19408
+ array = [];
19409
+ for (const v of this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat) {
19410
+ const element = { "@value": v };
19411
+ array.push(element);
19412
+ }
19413
+ if (array.length > 0) {
19414
+ const propValue = array;
19415
+ values["https://misskey-hub.net/ns#isCat"] = propValue;
19416
+ }
19281
19417
  values["@type"] = ["https://www.w3.org/ns/activitystreams#Group"];
19282
19418
  if (this.id != null)
19283
19419
  values["@id"] = this.id.href;
@@ -19303,6 +19439,8 @@ export class Group extends Object {
19303
19439
  "schema": "http://schema.org#",
19304
19440
  "PropertyValue": "schema:PropertyValue",
19305
19441
  "value": "schema:value",
19442
+ "misskey": "https://misskey-hub.net/ns#",
19443
+ "isCat": "misskey:isCat",
19306
19444
  },
19307
19445
  ];
19308
19446
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
@@ -19709,6 +19847,20 @@ export class Group extends Object {
19709
19847
  }
19710
19848
  instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs =
19711
19849
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
19850
+ const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
19851
+ let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
19852
+ for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null
19853
+ ? []
19854
+ : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 &&
19855
+ "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]
19856
+ ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"]
19857
+ : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
19858
+ if (v == null)
19859
+ continue;
19860
+ _2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(v["@value"]);
19861
+ }
19862
+ instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat =
19863
+ _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
19712
19864
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
19713
19865
  try {
19714
19866
  instance.#cachedJsonLd = structuredClone(json);
@@ -19962,6 +20114,18 @@ export class Group extends Object {
19962
20114
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.length > 0) {
19963
20115
  proxy.aliases = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
19964
20116
  }
20117
+ const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this
20118
+ .#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat
20119
+ // deno-lint-ignore no-explicit-any
20120
+ .map((v) => v instanceof URL
20121
+ ? {
20122
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
20123
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options),
20124
+ }
20125
+ : v);
20126
+ if (_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length == 1) {
20127
+ proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
20128
+ }
19965
20129
  return proxy;
19966
20130
  }
19967
20131
  [Symbol.for("Deno.customInspect")](inspect, options) {
@@ -23955,6 +24119,7 @@ export class Organization extends Object {
23955
24119
  #_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
23956
24120
  #_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
23957
24121
  #_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
24122
+ #_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
23958
24123
  /**
23959
24124
  * Constructs a new instance of Organization with the given values.
23960
24125
  * @param values The values to initialize the instance with.
@@ -24230,6 +24395,16 @@ export class Organization extends Object {
24230
24395
  "Application | Group | Organization | Person | Service | URL" + ".");
24231
24396
  }
24232
24397
  }
24398
+ if ("cat" in values && values.cat != null) {
24399
+ if (typeof values.cat === "boolean") {
24400
+ // @ts-ignore: type is checked above.
24401
+ this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
24402
+ }
24403
+ else {
24404
+ throw new TypeError("The cat must be of type " +
24405
+ "boolean" + ".");
24406
+ }
24407
+ }
24233
24408
  }
24234
24409
  /**
24235
24410
  * Clones this instance, optionally updating it with the given values.
@@ -24545,6 +24720,18 @@ export class Organization extends Object {
24545
24720
  "Application | Group | Organization | Person | Service | URL" + ".");
24546
24721
  }
24547
24722
  }
24723
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat =
24724
+ this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
24725
+ if ("cat" in values && values.cat != null) {
24726
+ if (typeof values.cat === "boolean") {
24727
+ // @ts-ignore: type is checked above.
24728
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
24729
+ }
24730
+ else {
24731
+ throw new TypeError("The cat must be of type " +
24732
+ "boolean" + ".");
24733
+ }
24734
+ }
24548
24735
  return clone;
24549
24736
  }
24550
24737
  /** A short username which may be used to refer to the actor,
@@ -25386,6 +25573,16 @@ export class Organization extends Object {
25386
25573
  yield v;
25387
25574
  }
25388
25575
  }
25576
+ /** Used on actors to indicate that they in some way identify as a cat,
25577
+ * expressed as a boolean value. If this property is set to `true`,
25578
+ * displaying the actor or their notes will have some special effects
25579
+ * attached in some clients.
25580
+ */
25581
+ get cat() {
25582
+ if (this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length < 1)
25583
+ return null;
25584
+ return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
25585
+ }
25389
25586
  /**
25390
25587
  * Converts this object to a JSON-LD structure.
25391
25588
  * @param options The options to use.
@@ -25675,6 +25872,16 @@ export class Organization extends Object {
25675
25872
  ? compactItems
25676
25873
  : compactItems[0];
25677
25874
  }
25875
+ compactItems = [];
25876
+ for (const v of this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat) {
25877
+ const item = v;
25878
+ compactItems.push(item);
25879
+ }
25880
+ if (compactItems.length > 0) {
25881
+ result["isCat"] = compactItems.length > 1
25882
+ ? compactItems
25883
+ : compactItems[0];
25884
+ }
25678
25885
  result["type"] = "Organization";
25679
25886
  if (this.id != null)
25680
25887
  result["id"] = this.id.href;
@@ -25696,6 +25903,8 @@ export class Organization extends Object {
25696
25903
  "schema": "http://schema.org#",
25697
25904
  "PropertyValue": "schema:PropertyValue",
25698
25905
  "value": "schema:value",
25906
+ "misskey": "https://misskey-hub.net/ns#",
25907
+ "isCat": "misskey:isCat",
25699
25908
  },
25700
25909
  ];
25701
25910
  return result;
@@ -25904,6 +26113,15 @@ export class Organization extends Object {
25904
26113
  const propValue = array;
25905
26114
  values["https://www.w3.org/ns/activitystreams#alsoKnownAs"] = propValue;
25906
26115
  }
26116
+ array = [];
26117
+ for (const v of this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat) {
26118
+ const element = { "@value": v };
26119
+ array.push(element);
26120
+ }
26121
+ if (array.length > 0) {
26122
+ const propValue = array;
26123
+ values["https://misskey-hub.net/ns#isCat"] = propValue;
26124
+ }
25907
26125
  values["@type"] = ["https://www.w3.org/ns/activitystreams#Organization"];
25908
26126
  if (this.id != null)
25909
26127
  values["@id"] = this.id.href;
@@ -25929,6 +26147,8 @@ export class Organization extends Object {
25929
26147
  "schema": "http://schema.org#",
25930
26148
  "PropertyValue": "schema:PropertyValue",
25931
26149
  "value": "schema:value",
26150
+ "misskey": "https://misskey-hub.net/ns#",
26151
+ "isCat": "misskey:isCat",
25932
26152
  },
25933
26153
  ];
25934
26154
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
@@ -26335,6 +26555,20 @@ export class Organization extends Object {
26335
26555
  }
26336
26556
  instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs =
26337
26557
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
26558
+ const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
26559
+ let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
26560
+ for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null
26561
+ ? []
26562
+ : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 &&
26563
+ "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]
26564
+ ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"]
26565
+ : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
26566
+ if (v == null)
26567
+ continue;
26568
+ _2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(v["@value"]);
26569
+ }
26570
+ instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat =
26571
+ _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
26338
26572
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
26339
26573
  try {
26340
26574
  instance.#cachedJsonLd = structuredClone(json);
@@ -26588,6 +26822,18 @@ export class Organization extends Object {
26588
26822
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.length > 0) {
26589
26823
  proxy.aliases = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
26590
26824
  }
26825
+ const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this
26826
+ .#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat
26827
+ // deno-lint-ignore no-explicit-any
26828
+ .map((v) => v instanceof URL
26829
+ ? {
26830
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
26831
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options),
26832
+ }
26833
+ : v);
26834
+ if (_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length == 1) {
26835
+ proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
26836
+ }
26591
26837
  return proxy;
26592
26838
  }
26593
26839
  [Symbol.for("Deno.customInspect")](inspect, options) {
@@ -26799,6 +27045,7 @@ export class Person extends Object {
26799
27045
  #_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
26800
27046
  #_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
26801
27047
  #_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
27048
+ #_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
26802
27049
  /**
26803
27050
  * Constructs a new instance of Person with the given values.
26804
27051
  * @param values The values to initialize the instance with.
@@ -27074,6 +27321,16 @@ export class Person extends Object {
27074
27321
  "Application | Group | Organization | Person | Service | URL" + ".");
27075
27322
  }
27076
27323
  }
27324
+ if ("cat" in values && values.cat != null) {
27325
+ if (typeof values.cat === "boolean") {
27326
+ // @ts-ignore: type is checked above.
27327
+ this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
27328
+ }
27329
+ else {
27330
+ throw new TypeError("The cat must be of type " +
27331
+ "boolean" + ".");
27332
+ }
27333
+ }
27077
27334
  }
27078
27335
  /**
27079
27336
  * Clones this instance, optionally updating it with the given values.
@@ -27389,6 +27646,18 @@ export class Person extends Object {
27389
27646
  "Application | Group | Organization | Person | Service | URL" + ".");
27390
27647
  }
27391
27648
  }
27649
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat =
27650
+ this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
27651
+ if ("cat" in values && values.cat != null) {
27652
+ if (typeof values.cat === "boolean") {
27653
+ // @ts-ignore: type is checked above.
27654
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
27655
+ }
27656
+ else {
27657
+ throw new TypeError("The cat must be of type " +
27658
+ "boolean" + ".");
27659
+ }
27660
+ }
27392
27661
  return clone;
27393
27662
  }
27394
27663
  /** A short username which may be used to refer to the actor,
@@ -28230,6 +28499,16 @@ export class Person extends Object {
28230
28499
  yield v;
28231
28500
  }
28232
28501
  }
28502
+ /** Used on actors to indicate that they in some way identify as a cat,
28503
+ * expressed as a boolean value. If this property is set to `true`,
28504
+ * displaying the actor or their notes will have some special effects
28505
+ * attached in some clients.
28506
+ */
28507
+ get cat() {
28508
+ if (this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length < 1)
28509
+ return null;
28510
+ return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
28511
+ }
28233
28512
  /**
28234
28513
  * Converts this object to a JSON-LD structure.
28235
28514
  * @param options The options to use.
@@ -28519,6 +28798,16 @@ export class Person extends Object {
28519
28798
  ? compactItems
28520
28799
  : compactItems[0];
28521
28800
  }
28801
+ compactItems = [];
28802
+ for (const v of this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat) {
28803
+ const item = v;
28804
+ compactItems.push(item);
28805
+ }
28806
+ if (compactItems.length > 0) {
28807
+ result["isCat"] = compactItems.length > 1
28808
+ ? compactItems
28809
+ : compactItems[0];
28810
+ }
28522
28811
  result["type"] = "Person";
28523
28812
  if (this.id != null)
28524
28813
  result["id"] = this.id.href;
@@ -28540,6 +28829,8 @@ export class Person extends Object {
28540
28829
  "schema": "http://schema.org#",
28541
28830
  "PropertyValue": "schema:PropertyValue",
28542
28831
  "value": "schema:value",
28832
+ "misskey": "https://misskey-hub.net/ns#",
28833
+ "isCat": "misskey:isCat",
28543
28834
  },
28544
28835
  ];
28545
28836
  return result;
@@ -28748,6 +29039,15 @@ export class Person extends Object {
28748
29039
  const propValue = array;
28749
29040
  values["https://www.w3.org/ns/activitystreams#alsoKnownAs"] = propValue;
28750
29041
  }
29042
+ array = [];
29043
+ for (const v of this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat) {
29044
+ const element = { "@value": v };
29045
+ array.push(element);
29046
+ }
29047
+ if (array.length > 0) {
29048
+ const propValue = array;
29049
+ values["https://misskey-hub.net/ns#isCat"] = propValue;
29050
+ }
28751
29051
  values["@type"] = ["https://www.w3.org/ns/activitystreams#Person"];
28752
29052
  if (this.id != null)
28753
29053
  values["@id"] = this.id.href;
@@ -28773,6 +29073,8 @@ export class Person extends Object {
28773
29073
  "schema": "http://schema.org#",
28774
29074
  "PropertyValue": "schema:PropertyValue",
28775
29075
  "value": "schema:value",
29076
+ "misskey": "https://misskey-hub.net/ns#",
29077
+ "isCat": "misskey:isCat",
28776
29078
  },
28777
29079
  ];
28778
29080
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
@@ -29179,6 +29481,20 @@ export class Person extends Object {
29179
29481
  }
29180
29482
  instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs =
29181
29483
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
29484
+ const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
29485
+ let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
29486
+ for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null
29487
+ ? []
29488
+ : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 &&
29489
+ "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]
29490
+ ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"]
29491
+ : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
29492
+ if (v == null)
29493
+ continue;
29494
+ _2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(v["@value"]);
29495
+ }
29496
+ instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat =
29497
+ _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
29182
29498
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
29183
29499
  try {
29184
29500
  instance.#cachedJsonLd = structuredClone(json);
@@ -29432,6 +29748,18 @@ export class Person extends Object {
29432
29748
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.length > 0) {
29433
29749
  proxy.aliases = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
29434
29750
  }
29751
+ const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this
29752
+ .#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat
29753
+ // deno-lint-ignore no-explicit-any
29754
+ .map((v) => v instanceof URL
29755
+ ? {
29756
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
29757
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options),
29758
+ }
29759
+ : v);
29760
+ if (_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length == 1) {
29761
+ proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
29762
+ }
29435
29763
  return proxy;
29436
29764
  }
29437
29765
  [Symbol.for("Deno.customInspect")](inspect, options) {
@@ -32449,6 +32777,7 @@ export class Service extends Object {
32449
32777
  #_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [];
32450
32778
  #_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [];
32451
32779
  #_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [];
32780
+ #_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
32452
32781
  /**
32453
32782
  * Constructs a new instance of Service with the given values.
32454
32783
  * @param values The values to initialize the instance with.
@@ -32724,6 +33053,16 @@ export class Service extends Object {
32724
33053
  "Application | Group | Organization | Person | Service | URL" + ".");
32725
33054
  }
32726
33055
  }
33056
+ if ("cat" in values && values.cat != null) {
33057
+ if (typeof values.cat === "boolean") {
33058
+ // @ts-ignore: type is checked above.
33059
+ this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
33060
+ }
33061
+ else {
33062
+ throw new TypeError("The cat must be of type " +
33063
+ "boolean" + ".");
33064
+ }
33065
+ }
32727
33066
  }
32728
33067
  /**
32729
33068
  * Clones this instance, optionally updating it with the given values.
@@ -33039,6 +33378,18 @@ export class Service extends Object {
33039
33378
  "Application | Group | Organization | Person | Service | URL" + ".");
33040
33379
  }
33041
33380
  }
33381
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat =
33382
+ this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
33383
+ if ("cat" in values && values.cat != null) {
33384
+ if (typeof values.cat === "boolean") {
33385
+ // @ts-ignore: type is checked above.
33386
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
33387
+ }
33388
+ else {
33389
+ throw new TypeError("The cat must be of type " +
33390
+ "boolean" + ".");
33391
+ }
33392
+ }
33042
33393
  return clone;
33043
33394
  }
33044
33395
  /** A short username which may be used to refer to the actor,
@@ -33880,6 +34231,16 @@ export class Service extends Object {
33880
34231
  yield v;
33881
34232
  }
33882
34233
  }
34234
+ /** Used on actors to indicate that they in some way identify as a cat,
34235
+ * expressed as a boolean value. If this property is set to `true`,
34236
+ * displaying the actor or their notes will have some special effects
34237
+ * attached in some clients.
34238
+ */
34239
+ get cat() {
34240
+ if (this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length < 1)
34241
+ return null;
34242
+ return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
34243
+ }
33883
34244
  /**
33884
34245
  * Converts this object to a JSON-LD structure.
33885
34246
  * @param options The options to use.
@@ -34169,6 +34530,16 @@ export class Service extends Object {
34169
34530
  ? compactItems
34170
34531
  : compactItems[0];
34171
34532
  }
34533
+ compactItems = [];
34534
+ for (const v of this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat) {
34535
+ const item = v;
34536
+ compactItems.push(item);
34537
+ }
34538
+ if (compactItems.length > 0) {
34539
+ result["isCat"] = compactItems.length > 1
34540
+ ? compactItems
34541
+ : compactItems[0];
34542
+ }
34172
34543
  result["type"] = "Service";
34173
34544
  if (this.id != null)
34174
34545
  result["id"] = this.id.href;
@@ -34190,6 +34561,8 @@ export class Service extends Object {
34190
34561
  "schema": "http://schema.org#",
34191
34562
  "PropertyValue": "schema:PropertyValue",
34192
34563
  "value": "schema:value",
34564
+ "misskey": "https://misskey-hub.net/ns#",
34565
+ "isCat": "misskey:isCat",
34193
34566
  },
34194
34567
  ];
34195
34568
  return result;
@@ -34398,6 +34771,15 @@ export class Service extends Object {
34398
34771
  const propValue = array;
34399
34772
  values["https://www.w3.org/ns/activitystreams#alsoKnownAs"] = propValue;
34400
34773
  }
34774
+ array = [];
34775
+ for (const v of this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat) {
34776
+ const element = { "@value": v };
34777
+ array.push(element);
34778
+ }
34779
+ if (array.length > 0) {
34780
+ const propValue = array;
34781
+ values["https://misskey-hub.net/ns#isCat"] = propValue;
34782
+ }
34401
34783
  values["@type"] = ["https://www.w3.org/ns/activitystreams#Service"];
34402
34784
  if (this.id != null)
34403
34785
  values["@id"] = this.id.href;
@@ -34423,6 +34805,8 @@ export class Service extends Object {
34423
34805
  "schema": "http://schema.org#",
34424
34806
  "PropertyValue": "schema:PropertyValue",
34425
34807
  "value": "schema:value",
34808
+ "misskey": "https://misskey-hub.net/ns#",
34809
+ "isCat": "misskey:isCat",
34426
34810
  },
34427
34811
  ];
34428
34812
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
@@ -34829,6 +35213,20 @@ export class Service extends Object {
34829
35213
  }
34830
35214
  instance.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs =
34831
35215
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
35216
+ const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [];
35217
+ let _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array = values["https://misskey-hub.net/ns#isCat"];
35218
+ for (const v of _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array == null
35219
+ ? []
35220
+ : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array.length === 1 &&
35221
+ "@list" in _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]
35222
+ ? _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array[0]["@list"]
35223
+ : _2xEU4QtkC53RAun67T81Egqt9vmL_isCat__array) {
35224
+ if (v == null)
35225
+ continue;
35226
+ _2xEU4QtkC53RAun67T81Egqt9vmL_isCat.push(v["@value"]);
35227
+ }
35228
+ instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat =
35229
+ _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
34832
35230
  if (!("_fromSubclass" in options) || !options._fromSubclass) {
34833
35231
  try {
34834
35232
  instance.#cachedJsonLd = structuredClone(json);
@@ -35082,6 +35480,18 @@ export class Service extends Object {
35082
35480
  _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.length > 0) {
35083
35481
  proxy.aliases = _3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
35084
35482
  }
35483
+ const _2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this
35484
+ .#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat
35485
+ // deno-lint-ignore no-explicit-any
35486
+ .map((v) => v instanceof URL
35487
+ ? {
35488
+ [Symbol.for("Deno.customInspect")]: (inspect, options) => "URL " + inspect(v.href, options),
35489
+ [Symbol.for("nodejs.util.inspect.custom")]: (_depth, options, inspect) => "URL " + inspect(v.href, options),
35490
+ }
35491
+ : v);
35492
+ if (_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.length == 1) {
35493
+ proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
35494
+ }
35085
35495
  return proxy;
35086
35496
  }
35087
35497
  [Symbol.for("Deno.customInspect")](inspect, options) {
@@ -36492,16 +36902,26 @@ export class Update extends Activity {
36492
36902
  "https://w3id.org/identity/v1",
36493
36903
  {
36494
36904
  "toot": "http://joinmastodon.org/ns#",
36905
+ "schema": "http://schema.org#",
36495
36906
  "misskey": "https://misskey-hub.net/ns#",
36496
36907
  "fedibird": "http://fedibird.com/ns#",
36908
+ "PropertyValue": "schema:PropertyValue",
36909
+ "value": "schema:value",
36497
36910
  "sensitive": "as:sensitive",
36498
36911
  "votersCount": "toot:votersCount",
36912
+ "featured": { "@id": "toot:featured", "@type": "@id" },
36913
+ "featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
36914
+ "discoverable": "toot:discoverable",
36915
+ "suspended": "toot:suspended",
36916
+ "memorial": "toot:memorial",
36917
+ "indexable": "toot:indexable",
36499
36918
  "Emoji": "toot:Emoji",
36500
36919
  "Hashtag": "as:Hashtag",
36501
36920
  "ChatMessage": "http://litepub.social/ns#ChatMessage",
36502
36921
  "quoteUrl": "as:quoteUrl",
36503
36922
  "_misskey_quote": "misskey:_misskey_quote",
36504
36923
  "quoteUri": "fedibird:quoteUri",
36924
+ "isCat": "misskey:isCat",
36505
36925
  },
36506
36926
  ];
36507
36927
  return result;
@@ -36527,16 +36947,26 @@ export class Update extends Activity {
36527
36947
  "https://w3id.org/identity/v1",
36528
36948
  {
36529
36949
  "toot": "http://joinmastodon.org/ns#",
36950
+ "schema": "http://schema.org#",
36530
36951
  "misskey": "https://misskey-hub.net/ns#",
36531
36952
  "fedibird": "http://fedibird.com/ns#",
36953
+ "PropertyValue": "schema:PropertyValue",
36954
+ "value": "schema:value",
36532
36955
  "sensitive": "as:sensitive",
36533
36956
  "votersCount": "toot:votersCount",
36957
+ "featured": { "@id": "toot:featured", "@type": "@id" },
36958
+ "featuredTags": { "@id": "toot:featuredTags", "@type": "@id" },
36959
+ "discoverable": "toot:discoverable",
36960
+ "suspended": "toot:suspended",
36961
+ "memorial": "toot:memorial",
36962
+ "indexable": "toot:indexable",
36534
36963
  "Emoji": "toot:Emoji",
36535
36964
  "Hashtag": "as:Hashtag",
36536
36965
  "ChatMessage": "http://litepub.social/ns#ChatMessage",
36537
36966
  "quoteUrl": "as:quoteUrl",
36538
36967
  "_misskey_quote": "misskey:_misskey_quote",
36539
36968
  "quoteUri": "fedibird:quoteUri",
36969
+ "isCat": "misskey:isCat",
36540
36970
  },
36541
36971
  ];
36542
36972
  const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });