@fedify/vocab-tools 2.4.0-dev.1634 → 2.4.0-pr.934.40
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 +2 -28
- package/dist/mod.js +2 -28
- package/package.json +1 -1
- package/src/__snapshots__/class.test.ts.deno.snap +53 -1150
- package/src/__snapshots__/class.test.ts.node.snap +53 -1150
- package/src/__snapshots__/class.test.ts.snap +53 -1150
- package/src/class.ts +0 -2
- package/src/type.ts +0 -24
|
@@ -19,10 +19,8 @@ import {
|
|
|
19
19
|
importMultibaseKey,
|
|
20
20
|
importPem,
|
|
21
21
|
isDecimal,
|
|
22
|
-
isGatewayUrl,
|
|
23
22
|
LanguageString,
|
|
24
23
|
parseDecimal,
|
|
25
|
-
parseGatewayUrl,
|
|
26
24
|
parseIri,
|
|
27
25
|
parseJsonLdId,
|
|
28
26
|
type RemoteDocument
|
|
@@ -43298,8 +43296,7 @@ export class Application extends Object {
|
|
|
43298
43296
|
|
|
43299
43297
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
43300
43298
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
43301
|
-
#
|
|
43302
|
-
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
43299
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
43303
43300
|
|
|
43304
43301
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
43305
43302
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -43372,8 +43369,7 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
43372
43369
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
43373
43370
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
43374
43371
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
43375
|
-
assertionMethods?: (Multikey | URL)[];
|
|
43376
|
-
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
43372
|
+
assertionMethods?: (Multikey | URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
43377
43373
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
43378
43374
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
43379
43375
|
,
|
|
@@ -43500,42 +43496,6 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
43500
43496
|
}
|
|
43501
43497
|
}
|
|
43502
43498
|
|
|
43503
|
-
if ("gateway" in values && values.gateway != null) {
|
|
43504
|
-
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
43505
|
-
// @ts-ignore: type is checked above.
|
|
43506
|
-
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
43507
|
-
|
|
43508
|
-
} else {
|
|
43509
|
-
throw new TypeError(
|
|
43510
|
-
"The gateway must be of type " +
|
|
43511
|
-
"URL" + ".",
|
|
43512
|
-
);
|
|
43513
|
-
}
|
|
43514
|
-
}
|
|
43515
|
-
|
|
43516
|
-
if ("gateways" in values && values.gateways != null) {
|
|
43517
|
-
|
|
43518
|
-
if ("gateway" in values &&
|
|
43519
|
-
values.gateway != null) {
|
|
43520
|
-
throw new TypeError(
|
|
43521
|
-
"Cannot initialize both gateway and " +
|
|
43522
|
-
"gateways at the same time.",
|
|
43523
|
-
);
|
|
43524
|
-
}
|
|
43525
|
-
|
|
43526
|
-
if (Array.isArray(values.gateways) &&
|
|
43527
|
-
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
43528
|
-
// @ts-ignore: type is checked above.
|
|
43529
|
-
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
43530
|
-
|
|
43531
|
-
} else {
|
|
43532
|
-
throw new TypeError(
|
|
43533
|
-
"The gateways must be an array of type " +
|
|
43534
|
-
"URL" + ".",
|
|
43535
|
-
);
|
|
43536
|
-
}
|
|
43537
|
-
}
|
|
43538
|
-
|
|
43539
43499
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
43540
43500
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
43541
43501
|
// @ts-ignore: type is checked above.
|
|
@@ -43886,8 +43846,7 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
43886
43846
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
43887
43847
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
43888
43848
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
43889
|
-
assertionMethods?: (Multikey | URL)[];
|
|
43890
|
-
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
43849
|
+
assertionMethods?: (Multikey | URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
43891
43850
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
43892
43851
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
43893
43852
|
|
|
@@ -44023,42 +43982,6 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
44023
43982
|
);
|
|
44024
43983
|
}
|
|
44025
43984
|
}
|
|
44026
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
44027
|
-
if ("gateway" in values && values.gateway != null) {
|
|
44028
|
-
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
44029
|
-
// @ts-ignore: type is checked above.
|
|
44030
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
44031
|
-
|
|
44032
|
-
} else {
|
|
44033
|
-
throw new TypeError(
|
|
44034
|
-
"The gateway must be of type " +
|
|
44035
|
-
"URL" + ".",
|
|
44036
|
-
);
|
|
44037
|
-
}
|
|
44038
|
-
}
|
|
44039
|
-
|
|
44040
|
-
if ("gateways" in values && values.gateways != null) {
|
|
44041
|
-
|
|
44042
|
-
if ("gateway" in values &&
|
|
44043
|
-
values.gateway != null) {
|
|
44044
|
-
throw new TypeError(
|
|
44045
|
-
"Cannot update both gateway and " +
|
|
44046
|
-
"gateways at the same time.",
|
|
44047
|
-
);
|
|
44048
|
-
}
|
|
44049
|
-
|
|
44050
|
-
if (Array.isArray(values.gateways) &&
|
|
44051
|
-
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
44052
|
-
// @ts-ignore: type is checked above.
|
|
44053
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
44054
|
-
|
|
44055
|
-
} else {
|
|
44056
|
-
throw new TypeError(
|
|
44057
|
-
"The gateways must be an array of type " +
|
|
44058
|
-
"URL" + ".",
|
|
44059
|
-
);
|
|
44060
|
-
}
|
|
44061
|
-
}
|
|
44062
43985
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
44063
43986
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
44064
43987
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
@@ -45081,33 +45004,6 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
45081
45004
|
}
|
|
45082
45005
|
}
|
|
45083
45006
|
|
|
45084
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
45085
|
-
* retrieved.
|
|
45086
|
-
*
|
|
45087
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
45088
|
-
*
|
|
45089
|
-
*/
|
|
45090
|
-
get gateway(): (URL | null) {
|
|
45091
|
-
if (this._warning != null) {
|
|
45092
|
-
getLogger(this._warning.category).warn(
|
|
45093
|
-
this._warning.message,
|
|
45094
|
-
this._warning.values
|
|
45095
|
-
);
|
|
45096
|
-
}
|
|
45097
|
-
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
45098
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
45099
|
-
}
|
|
45100
|
-
|
|
45101
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
45102
|
-
* retrieved.
|
|
45103
|
-
*
|
|
45104
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
45105
|
-
*
|
|
45106
|
-
*/
|
|
45107
|
-
get gateways(): (URL)[] {
|
|
45108
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
45109
|
-
}
|
|
45110
|
-
|
|
45111
45007
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
45112
45008
|
* automatically approved, but instead are examined by a person who may accept
|
|
45113
45009
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -48416,19 +48312,6 @@ get gateways(): (URL)[] {
|
|
|
48416
48312
|
|
|
48417
48313
|
}
|
|
48418
48314
|
|
|
48419
|
-
compactItems = [];
|
|
48420
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
48421
|
-
const item = (
|
|
48422
|
-
formatIri(v)
|
|
48423
|
-
);
|
|
48424
|
-
compactItems.push(item);
|
|
48425
|
-
}
|
|
48426
|
-
if (compactItems.length > 0) {
|
|
48427
|
-
|
|
48428
|
-
result["gateways"] = compactItems;
|
|
48429
|
-
|
|
48430
|
-
}
|
|
48431
|
-
|
|
48432
48315
|
compactItems = [];
|
|
48433
48316
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
48434
48317
|
const item = (
|
|
@@ -48843,7 +48726,7 @@ get gateways(): (URL)[] {
|
|
|
48843
48726
|
|
|
48844
48727
|
result["type"] = "Application";
|
|
48845
48728
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
48846
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/
|
|
48729
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
48847
48730
|
return result;
|
|
48848
48731
|
}
|
|
48849
48732
|
|
|
@@ -48908,21 +48791,6 @@ get gateways(): (URL)[] {
|
|
|
48908
48791
|
|
|
48909
48792
|
}
|
|
48910
48793
|
|
|
48911
|
-
array = [];
|
|
48912
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
48913
|
-
const element = (
|
|
48914
|
-
{ "@id": formatIri(v) }
|
|
48915
|
-
);
|
|
48916
|
-
array.push(element);;
|
|
48917
|
-
}
|
|
48918
|
-
if (array.length > 0) {
|
|
48919
|
-
const propValue = (
|
|
48920
|
-
{ "@list": array }
|
|
48921
|
-
);
|
|
48922
|
-
values["https://w3id.org/fep/ef61/gateways"] = propValue;
|
|
48923
|
-
|
|
48924
|
-
}
|
|
48925
|
-
|
|
48926
48794
|
array = [];
|
|
48927
48795
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
48928
48796
|
const element = (
|
|
@@ -49232,7 +49100,7 @@ get gateways(): (URL)[] {
|
|
|
49232
49100
|
);
|
|
49233
49101
|
}
|
|
49234
49102
|
const docContext = options.context ??
|
|
49235
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/
|
|
49103
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
49236
49104
|
const compacted = await jsonld.compact(
|
|
49237
49105
|
values,
|
|
49238
49106
|
docContext,
|
|
@@ -49474,24 +49342,6 @@ get gateways(): (URL)[] {
|
|
|
49474
49342
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
49475
49343
|
}
|
|
49476
49344
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
49477
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
49478
|
-
|
|
49479
|
-
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
49480
|
-
|
|
49481
|
-
for (
|
|
49482
|
-
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
49483
|
-
? []
|
|
49484
|
-
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
49485
|
-
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"]
|
|
49486
|
-
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
49487
|
-
) {
|
|
49488
|
-
if (v == null) continue;
|
|
49489
|
-
|
|
49490
|
-
const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
49491
|
-
if (typeof decoded === "undefined") continue;
|
|
49492
|
-
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
49493
|
-
}
|
|
49494
|
-
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
49495
49345
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
49496
49346
|
|
|
49497
49347
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
@@ -50163,32 +50013,6 @@ get gateways(): (URL)[] {
|
|
|
50163
50013
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
50164
50014
|
}
|
|
50165
50015
|
|
|
50166
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
50167
|
-
// deno-lint-ignore no-explicit-any
|
|
50168
|
-
.map((v: any) => v instanceof URL
|
|
50169
|
-
? {
|
|
50170
|
-
[Symbol.for("Deno.customInspect")]: (
|
|
50171
|
-
inspect: typeof Deno.inspect,
|
|
50172
|
-
options: Deno.InspectOptions,
|
|
50173
|
-
): string => "URL " + inspect(v.href, options),
|
|
50174
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
50175
|
-
_depth: number,
|
|
50176
|
-
options: unknown,
|
|
50177
|
-
inspect: (value: unknown, options: unknown) => string,
|
|
50178
|
-
): string => "URL " + inspect(v.href, options),
|
|
50179
|
-
}
|
|
50180
|
-
: v);
|
|
50181
|
-
|
|
50182
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
50183
|
-
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
50184
|
-
}
|
|
50185
|
-
|
|
50186
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
50187
|
-
|| !("gateway" in proxy)
|
|
50188
|
-
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
50189
|
-
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
50190
|
-
}
|
|
50191
|
-
|
|
50192
50016
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
50193
50017
|
// deno-lint-ignore no-explicit-any
|
|
50194
50018
|
.map((v: any) => v instanceof URL
|
|
@@ -52565,7 +52389,6 @@ export class Document extends Object {
|
|
|
52565
52389
|
}
|
|
52566
52390
|
#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width: (number)[] = [];
|
|
52567
52391
|
#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height: (number)[] = [];
|
|
52568
|
-
#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
52569
52392
|
|
|
52570
52393
|
/**
|
|
52571
52394
|
* Constructs a new instance of Document with the given values.
|
|
@@ -52592,7 +52415,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
52592
52415
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
52593
52416
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
52594
52417
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
52595
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;
|
|
52418
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
52596
52419
|
,
|
|
52597
52420
|
options: {
|
|
52598
52421
|
documentLoader?: DocumentLoader,
|
|
@@ -52626,19 +52449,6 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52626
52449
|
);
|
|
52627
52450
|
}
|
|
52628
52451
|
}
|
|
52629
|
-
|
|
52630
|
-
if ("digestMultibase" in values && values.digestMultibase != null) {
|
|
52631
|
-
if (typeof values.digestMultibase === "string") {
|
|
52632
|
-
// @ts-ignore: type is checked above.
|
|
52633
|
-
this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
52634
|
-
|
|
52635
|
-
} else {
|
|
52636
|
-
throw new TypeError(
|
|
52637
|
-
"The digestMultibase must be of type " +
|
|
52638
|
-
"string" + ".",
|
|
52639
|
-
);
|
|
52640
|
-
}
|
|
52641
|
-
}
|
|
52642
52452
|
}
|
|
52643
52453
|
|
|
52644
52454
|
/**
|
|
@@ -52667,7 +52477,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
52667
52477
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
52668
52478
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
52669
52479
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
52670
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;
|
|
52480
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
52671
52481
|
|
|
52672
52482
|
= {},
|
|
52673
52483
|
options: {
|
|
@@ -52709,19 +52519,6 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52709
52519
|
);
|
|
52710
52520
|
}
|
|
52711
52521
|
}
|
|
52712
|
-
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
52713
|
-
if ("digestMultibase" in values && values.digestMultibase != null) {
|
|
52714
|
-
if (typeof values.digestMultibase === "string") {
|
|
52715
|
-
// @ts-ignore: type is checked above.
|
|
52716
|
-
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
52717
|
-
|
|
52718
|
-
} else {
|
|
52719
|
-
throw new TypeError(
|
|
52720
|
-
"The digestMultibase must be of type " +
|
|
52721
|
-
"string" + ".",
|
|
52722
|
-
);
|
|
52723
|
-
}
|
|
52724
|
-
}
|
|
52725
52522
|
|
|
52726
52523
|
return clone;
|
|
52727
52524
|
}
|
|
@@ -52756,23 +52553,6 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52756
52553
|
return this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height[0];
|
|
52757
52554
|
}
|
|
52758
52555
|
|
|
52759
|
-
/** The multibase-encoded integrity digest of an external resource represented
|
|
52760
|
-
* by this document.
|
|
52761
|
-
*
|
|
52762
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
52763
|
-
*
|
|
52764
|
-
*/
|
|
52765
|
-
get digestMultibase(): (string | null) {
|
|
52766
|
-
if (this._warning != null) {
|
|
52767
|
-
getLogger(this._warning.category).warn(
|
|
52768
|
-
this._warning.message,
|
|
52769
|
-
this._warning.values
|
|
52770
|
-
);
|
|
52771
|
-
}
|
|
52772
|
-
if (this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length < 1) return null;
|
|
52773
|
-
return this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
52774
|
-
}
|
|
52775
|
-
|
|
52776
52556
|
/**
|
|
52777
52557
|
* Converts this object to a JSON-LD structure.
|
|
52778
52558
|
* @param options The options to use.
|
|
@@ -52845,25 +52625,9 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52845
52625
|
|
|
52846
52626
|
}
|
|
52847
52627
|
|
|
52848
|
-
compactItems = [];
|
|
52849
|
-
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
52850
|
-
const item = (
|
|
52851
|
-
v
|
|
52852
|
-
);
|
|
52853
|
-
compactItems.push(item);
|
|
52854
|
-
}
|
|
52855
|
-
if (compactItems.length > 0) {
|
|
52856
|
-
|
|
52857
|
-
result["digestMultibase"]
|
|
52858
|
-
= compactItems.length > 1
|
|
52859
|
-
? compactItems
|
|
52860
|
-
: compactItems[0];
|
|
52861
|
-
|
|
52862
|
-
}
|
|
52863
|
-
|
|
52864
52628
|
result["type"] = "Document";
|
|
52865
52629
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
52866
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
52630
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v1","https://gotosocial.org/ns"];
|
|
52867
52631
|
return result;
|
|
52868
52632
|
}
|
|
52869
52633
|
|
|
@@ -52916,21 +52680,6 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52916
52680
|
|
|
52917
52681
|
}
|
|
52918
52682
|
|
|
52919
|
-
array = [];
|
|
52920
|
-
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
52921
|
-
const element = (
|
|
52922
|
-
{ "@value": v }
|
|
52923
|
-
);
|
|
52924
|
-
array.push(element);;
|
|
52925
|
-
}
|
|
52926
|
-
if (array.length > 0) {
|
|
52927
|
-
const propValue = (
|
|
52928
|
-
array
|
|
52929
|
-
);
|
|
52930
|
-
values["https://www.w3.org/ns/credentials/v2#digestMultibase"] = propValue;
|
|
52931
|
-
|
|
52932
|
-
}
|
|
52933
|
-
|
|
52934
52683
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Document"];
|
|
52935
52684
|
if (this.id != null) values["@id"] = formatIri(this.id);
|
|
52936
52685
|
if (options.format === "expand") {
|
|
@@ -52940,7 +52689,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52940
52689
|
);
|
|
52941
52690
|
}
|
|
52942
52691
|
const docContext = options.context ??
|
|
52943
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
52692
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v1","https://gotosocial.org/ns"];
|
|
52944
52693
|
const compacted = await jsonld.compact(
|
|
52945
52694
|
values,
|
|
52946
52695
|
docContext,
|
|
@@ -53140,24 +52889,6 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
53140
52889
|
_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
|
|
53141
52890
|
}
|
|
53142
52891
|
instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
53143
|
-
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
53144
|
-
|
|
53145
|
-
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
|
|
53146
|
-
|
|
53147
|
-
for (
|
|
53148
|
-
const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null
|
|
53149
|
-
? []
|
|
53150
|
-
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && "@list" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]
|
|
53151
|
-
? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]["@list"]
|
|
53152
|
-
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array
|
|
53153
|
-
) {
|
|
53154
|
-
if (v == null) continue;
|
|
53155
|
-
|
|
53156
|
-
const decoded = v["@value"];
|
|
53157
|
-
if (typeof decoded === "undefined") continue;
|
|
53158
|
-
_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.push(decoded);
|
|
53159
|
-
}
|
|
53160
|
-
instance.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
53161
52892
|
|
|
53162
52893
|
if (!("_fromSubclass" in options) || !options._fromSubclass) {
|
|
53163
52894
|
try {
|
|
@@ -53226,26 +52957,6 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
53226
52957
|
proxy.height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height[0];
|
|
53227
52958
|
}
|
|
53228
52959
|
|
|
53229
|
-
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase
|
|
53230
|
-
// deno-lint-ignore no-explicit-any
|
|
53231
|
-
.map((v: any) => v instanceof URL
|
|
53232
|
-
? {
|
|
53233
|
-
[Symbol.for("Deno.customInspect")]: (
|
|
53234
|
-
inspect: typeof Deno.inspect,
|
|
53235
|
-
options: Deno.InspectOptions,
|
|
53236
|
-
): string => "URL " + inspect(v.href, options),
|
|
53237
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
53238
|
-
_depth: number,
|
|
53239
|
-
options: unknown,
|
|
53240
|
-
inspect: (value: unknown, options: unknown) => string,
|
|
53241
|
-
): string => "URL " + inspect(v.href, options),
|
|
53242
|
-
}
|
|
53243
|
-
: v);
|
|
53244
|
-
|
|
53245
|
-
if (_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length == 1) {
|
|
53246
|
-
proxy.digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
53247
|
-
}
|
|
53248
|
-
|
|
53249
52960
|
return proxy;
|
|
53250
52961
|
}
|
|
53251
52962
|
}
|
|
@@ -53309,7 +53020,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
53309
53020
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
53310
53021
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
53311
53022
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
53312
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;
|
|
53023
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
53313
53024
|
,
|
|
53314
53025
|
options: {
|
|
53315
53026
|
documentLoader?: DocumentLoader,
|
|
@@ -53345,7 +53056,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
53345
53056
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
53346
53057
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
53347
53058
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
53348
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;
|
|
53059
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
53349
53060
|
|
|
53350
53061
|
= {},
|
|
53351
53062
|
options: {
|
|
@@ -53407,7 +53118,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
53407
53118
|
|
|
53408
53119
|
result["type"] = "Audio";
|
|
53409
53120
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
53410
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
53121
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v1","https://gotosocial.org/ns"];
|
|
53411
53122
|
return result;
|
|
53412
53123
|
}
|
|
53413
53124
|
|
|
@@ -53433,7 +53144,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
53433
53144
|
);
|
|
53434
53145
|
}
|
|
53435
53146
|
const docContext = options.context ??
|
|
53436
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
53147
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v1","https://gotosocial.org/ns"];
|
|
53437
53148
|
const compacted = await jsonld.compact(
|
|
53438
53149
|
values,
|
|
53439
53150
|
docContext,
|
|
@@ -59116,8 +58827,7 @@ export class Group extends Object {
|
|
|
59116
58827
|
|
|
59117
58828
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
59118
58829
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
59119
|
-
#
|
|
59120
|
-
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
58830
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
59121
58831
|
|
|
59122
58832
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
59123
58833
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -59190,8 +58900,7 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
59190
58900
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
59191
58901
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
59192
58902
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
59193
|
-
assertionMethods?: (Multikey | URL)[];
|
|
59194
|
-
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
58903
|
+
assertionMethods?: (Multikey | URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
59195
58904
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
59196
58905
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
59197
58906
|
,
|
|
@@ -59318,42 +59027,6 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
59318
59027
|
}
|
|
59319
59028
|
}
|
|
59320
59029
|
|
|
59321
|
-
if ("gateway" in values && values.gateway != null) {
|
|
59322
|
-
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
59323
|
-
// @ts-ignore: type is checked above.
|
|
59324
|
-
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
59325
|
-
|
|
59326
|
-
} else {
|
|
59327
|
-
throw new TypeError(
|
|
59328
|
-
"The gateway must be of type " +
|
|
59329
|
-
"URL" + ".",
|
|
59330
|
-
);
|
|
59331
|
-
}
|
|
59332
|
-
}
|
|
59333
|
-
|
|
59334
|
-
if ("gateways" in values && values.gateways != null) {
|
|
59335
|
-
|
|
59336
|
-
if ("gateway" in values &&
|
|
59337
|
-
values.gateway != null) {
|
|
59338
|
-
throw new TypeError(
|
|
59339
|
-
"Cannot initialize both gateway and " +
|
|
59340
|
-
"gateways at the same time.",
|
|
59341
|
-
);
|
|
59342
|
-
}
|
|
59343
|
-
|
|
59344
|
-
if (Array.isArray(values.gateways) &&
|
|
59345
|
-
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
59346
|
-
// @ts-ignore: type is checked above.
|
|
59347
|
-
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
59348
|
-
|
|
59349
|
-
} else {
|
|
59350
|
-
throw new TypeError(
|
|
59351
|
-
"The gateways must be an array of type " +
|
|
59352
|
-
"URL" + ".",
|
|
59353
|
-
);
|
|
59354
|
-
}
|
|
59355
|
-
}
|
|
59356
|
-
|
|
59357
59030
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
59358
59031
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
59359
59032
|
// @ts-ignore: type is checked above.
|
|
@@ -59704,8 +59377,7 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
59704
59377
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
59705
59378
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
59706
59379
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
59707
|
-
assertionMethods?: (Multikey | URL)[];
|
|
59708
|
-
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
59380
|
+
assertionMethods?: (Multikey | URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
59709
59381
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
59710
59382
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
59711
59383
|
|
|
@@ -59841,42 +59513,6 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
59841
59513
|
);
|
|
59842
59514
|
}
|
|
59843
59515
|
}
|
|
59844
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
59845
|
-
if ("gateway" in values && values.gateway != null) {
|
|
59846
|
-
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
59847
|
-
// @ts-ignore: type is checked above.
|
|
59848
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
59849
|
-
|
|
59850
|
-
} else {
|
|
59851
|
-
throw new TypeError(
|
|
59852
|
-
"The gateway must be of type " +
|
|
59853
|
-
"URL" + ".",
|
|
59854
|
-
);
|
|
59855
|
-
}
|
|
59856
|
-
}
|
|
59857
|
-
|
|
59858
|
-
if ("gateways" in values && values.gateways != null) {
|
|
59859
|
-
|
|
59860
|
-
if ("gateway" in values &&
|
|
59861
|
-
values.gateway != null) {
|
|
59862
|
-
throw new TypeError(
|
|
59863
|
-
"Cannot update both gateway and " +
|
|
59864
|
-
"gateways at the same time.",
|
|
59865
|
-
);
|
|
59866
|
-
}
|
|
59867
|
-
|
|
59868
|
-
if (Array.isArray(values.gateways) &&
|
|
59869
|
-
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
59870
|
-
// @ts-ignore: type is checked above.
|
|
59871
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
59872
|
-
|
|
59873
|
-
} else {
|
|
59874
|
-
throw new TypeError(
|
|
59875
|
-
"The gateways must be an array of type " +
|
|
59876
|
-
"URL" + ".",
|
|
59877
|
-
);
|
|
59878
|
-
}
|
|
59879
|
-
}
|
|
59880
59516
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
59881
59517
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
59882
59518
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
@@ -60899,33 +60535,6 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
60899
60535
|
}
|
|
60900
60536
|
}
|
|
60901
60537
|
|
|
60902
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
60903
|
-
* retrieved.
|
|
60904
|
-
*
|
|
60905
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
60906
|
-
*
|
|
60907
|
-
*/
|
|
60908
|
-
get gateway(): (URL | null) {
|
|
60909
|
-
if (this._warning != null) {
|
|
60910
|
-
getLogger(this._warning.category).warn(
|
|
60911
|
-
this._warning.message,
|
|
60912
|
-
this._warning.values
|
|
60913
|
-
);
|
|
60914
|
-
}
|
|
60915
|
-
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
60916
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
60917
|
-
}
|
|
60918
|
-
|
|
60919
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
60920
|
-
* retrieved.
|
|
60921
|
-
*
|
|
60922
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
60923
|
-
*
|
|
60924
|
-
*/
|
|
60925
|
-
get gateways(): (URL)[] {
|
|
60926
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
60927
|
-
}
|
|
60928
|
-
|
|
60929
60538
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
60930
60539
|
* automatically approved, but instead are examined by a person who may accept
|
|
60931
60540
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -64234,19 +63843,6 @@ get gateways(): (URL)[] {
|
|
|
64234
63843
|
|
|
64235
63844
|
}
|
|
64236
63845
|
|
|
64237
|
-
compactItems = [];
|
|
64238
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
64239
|
-
const item = (
|
|
64240
|
-
formatIri(v)
|
|
64241
|
-
);
|
|
64242
|
-
compactItems.push(item);
|
|
64243
|
-
}
|
|
64244
|
-
if (compactItems.length > 0) {
|
|
64245
|
-
|
|
64246
|
-
result["gateways"] = compactItems;
|
|
64247
|
-
|
|
64248
|
-
}
|
|
64249
|
-
|
|
64250
63846
|
compactItems = [];
|
|
64251
63847
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
64252
63848
|
const item = (
|
|
@@ -64661,7 +64257,7 @@ get gateways(): (URL)[] {
|
|
|
64661
64257
|
|
|
64662
64258
|
result["type"] = "Group";
|
|
64663
64259
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
64664
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/
|
|
64260
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
64665
64261
|
return result;
|
|
64666
64262
|
}
|
|
64667
64263
|
|
|
@@ -64726,21 +64322,6 @@ get gateways(): (URL)[] {
|
|
|
64726
64322
|
|
|
64727
64323
|
}
|
|
64728
64324
|
|
|
64729
|
-
array = [];
|
|
64730
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
64731
|
-
const element = (
|
|
64732
|
-
{ "@id": formatIri(v) }
|
|
64733
|
-
);
|
|
64734
|
-
array.push(element);;
|
|
64735
|
-
}
|
|
64736
|
-
if (array.length > 0) {
|
|
64737
|
-
const propValue = (
|
|
64738
|
-
{ "@list": array }
|
|
64739
|
-
);
|
|
64740
|
-
values["https://w3id.org/fep/ef61/gateways"] = propValue;
|
|
64741
|
-
|
|
64742
|
-
}
|
|
64743
|
-
|
|
64744
64325
|
array = [];
|
|
64745
64326
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
64746
64327
|
const element = (
|
|
@@ -65050,7 +64631,7 @@ get gateways(): (URL)[] {
|
|
|
65050
64631
|
);
|
|
65051
64632
|
}
|
|
65052
64633
|
const docContext = options.context ??
|
|
65053
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/
|
|
64634
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
65054
64635
|
const compacted = await jsonld.compact(
|
|
65055
64636
|
values,
|
|
65056
64637
|
docContext,
|
|
@@ -65292,24 +64873,6 @@ get gateways(): (URL)[] {
|
|
|
65292
64873
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
65293
64874
|
}
|
|
65294
64875
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
65295
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
65296
|
-
|
|
65297
|
-
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
65298
|
-
|
|
65299
|
-
for (
|
|
65300
|
-
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
65301
|
-
? []
|
|
65302
|
-
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
65303
|
-
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"]
|
|
65304
|
-
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
65305
|
-
) {
|
|
65306
|
-
if (v == null) continue;
|
|
65307
|
-
|
|
65308
|
-
const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
65309
|
-
if (typeof decoded === "undefined") continue;
|
|
65310
|
-
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
65311
|
-
}
|
|
65312
|
-
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
65313
64876
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
65314
64877
|
|
|
65315
64878
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
@@ -65981,32 +65544,6 @@ get gateways(): (URL)[] {
|
|
|
65981
65544
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
65982
65545
|
}
|
|
65983
65546
|
|
|
65984
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
65985
|
-
// deno-lint-ignore no-explicit-any
|
|
65986
|
-
.map((v: any) => v instanceof URL
|
|
65987
|
-
? {
|
|
65988
|
-
[Symbol.for("Deno.customInspect")]: (
|
|
65989
|
-
inspect: typeof Deno.inspect,
|
|
65990
|
-
options: Deno.InspectOptions,
|
|
65991
|
-
): string => "URL " + inspect(v.href, options),
|
|
65992
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
65993
|
-
_depth: number,
|
|
65994
|
-
options: unknown,
|
|
65995
|
-
inspect: (value: unknown, options: unknown) => string,
|
|
65996
|
-
): string => "URL " + inspect(v.href, options),
|
|
65997
|
-
}
|
|
65998
|
-
: v);
|
|
65999
|
-
|
|
66000
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
66001
|
-
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
66002
|
-
}
|
|
66003
|
-
|
|
66004
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
66005
|
-
|| !("gateway" in proxy)
|
|
66006
|
-
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
66007
|
-
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
66008
|
-
}
|
|
66009
|
-
|
|
66010
65547
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
66011
65548
|
// deno-lint-ignore no-explicit-any
|
|
66012
65549
|
.map((v: any) => v instanceof URL
|
|
@@ -66513,7 +66050,6 @@ export class Link {
|
|
|
66513
66050
|
#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href: (URL)[] = [];
|
|
66514
66051
|
#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel: (string)[] = [];
|
|
66515
66052
|
#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType: (string)[] = [];
|
|
66516
|
-
#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
66517
66053
|
#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = [];
|
|
66518
66054
|
#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang: (Intl.Locale)[] = [];
|
|
66519
66055
|
#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height: (number)[] = [];
|
|
@@ -66532,7 +66068,7 @@ export class Link {
|
|
|
66532
66068
|
{
|
|
66533
66069
|
id?: URL | null;
|
|
66534
66070
|
href?: URL | null;rel?: string | null;
|
|
66535
|
-
rels?: (string)[];mediaType?: string | null;
|
|
66071
|
+
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
66536
66072
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
66537
66073
|
,
|
|
66538
66074
|
options: {
|
|
@@ -66622,19 +66158,6 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
66622
66158
|
}
|
|
66623
66159
|
}
|
|
66624
66160
|
|
|
66625
|
-
if ("digestMultibase" in values && values.digestMultibase != null) {
|
|
66626
|
-
if (typeof values.digestMultibase === "string") {
|
|
66627
|
-
// @ts-ignore: type is checked above.
|
|
66628
|
-
this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
66629
|
-
|
|
66630
|
-
} else {
|
|
66631
|
-
throw new TypeError(
|
|
66632
|
-
"The digestMultibase must be of type " +
|
|
66633
|
-
"string" + ".",
|
|
66634
|
-
);
|
|
66635
|
-
}
|
|
66636
|
-
}
|
|
66637
|
-
|
|
66638
66161
|
if ("name" in values && values.name != null) {
|
|
66639
66162
|
if (typeof values.name === "string" || values.name instanceof LanguageString) {
|
|
66640
66163
|
// @ts-ignore: type is checked above.
|
|
@@ -66741,7 +66264,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
66741
66264
|
{
|
|
66742
66265
|
id?: URL | null;
|
|
66743
66266
|
href?: URL | null;rel?: string | null;
|
|
66744
|
-
rels?: (string)[];mediaType?: string | null;
|
|
66267
|
+
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
66745
66268
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
66746
66269
|
|
|
66747
66270
|
= {},
|
|
@@ -66826,19 +66349,6 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
66826
66349
|
);
|
|
66827
66350
|
}
|
|
66828
66351
|
}
|
|
66829
|
-
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
66830
|
-
if ("digestMultibase" in values && values.digestMultibase != null) {
|
|
66831
|
-
if (typeof values.digestMultibase === "string") {
|
|
66832
|
-
// @ts-ignore: type is checked above.
|
|
66833
|
-
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
66834
|
-
|
|
66835
|
-
} else {
|
|
66836
|
-
throw new TypeError(
|
|
66837
|
-
"The digestMultibase must be of type " +
|
|
66838
|
-
"string" + ".",
|
|
66839
|
-
);
|
|
66840
|
-
}
|
|
66841
|
-
}
|
|
66842
66352
|
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
66843
66353
|
if ("name" in values && values.name != null) {
|
|
66844
66354
|
if (typeof values.name === "string" || values.name instanceof LanguageString) {
|
|
@@ -66997,22 +66507,6 @@ get rels(): (string)[] {
|
|
|
66997
66507
|
return this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType[0];
|
|
66998
66508
|
}
|
|
66999
66509
|
|
|
67000
|
-
/** The multibase-encoded integrity digest of the linked resource.
|
|
67001
|
-
*
|
|
67002
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
67003
|
-
*
|
|
67004
|
-
*/
|
|
67005
|
-
get digestMultibase(): (string | null) {
|
|
67006
|
-
if (this._warning != null) {
|
|
67007
|
-
getLogger(this._warning.category).warn(
|
|
67008
|
-
this._warning.message,
|
|
67009
|
-
this._warning.values
|
|
67010
|
-
);
|
|
67011
|
-
}
|
|
67012
|
-
if (this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length < 1) return null;
|
|
67013
|
-
return this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
67014
|
-
}
|
|
67015
|
-
|
|
67016
66510
|
/** A simple, human-readable, plain-text name for the object. HTML markup MUST
|
|
67017
66511
|
* NOT be included. The name MAY be expressed using multiple language-tagged
|
|
67018
66512
|
* values.
|
|
@@ -67402,22 +66896,6 @@ get names(): ((string | LanguageString))[] {
|
|
|
67402
66896
|
|
|
67403
66897
|
}
|
|
67404
66898
|
|
|
67405
|
-
compactItems = [];
|
|
67406
|
-
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
67407
|
-
const item = (
|
|
67408
|
-
v
|
|
67409
|
-
);
|
|
67410
|
-
compactItems.push(item);
|
|
67411
|
-
}
|
|
67412
|
-
if (compactItems.length > 0) {
|
|
67413
|
-
|
|
67414
|
-
result["digestMultibase"]
|
|
67415
|
-
= compactItems.length > 1
|
|
67416
|
-
? compactItems
|
|
67417
|
-
: compactItems[0];
|
|
67418
|
-
|
|
67419
|
-
}
|
|
67420
|
-
|
|
67421
66899
|
compactItems = [];
|
|
67422
66900
|
for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name) {
|
|
67423
66901
|
const item = (
|
|
@@ -67511,7 +66989,7 @@ get names(): ((string | LanguageString))[] {
|
|
|
67511
66989
|
|
|
67512
66990
|
result["type"] = "Link";
|
|
67513
66991
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
67514
|
-
result["@context"] =
|
|
66992
|
+
result["@context"] = "https://www.w3.org/ns/activitystreams";
|
|
67515
66993
|
return result;
|
|
67516
66994
|
}
|
|
67517
66995
|
|
|
@@ -67563,21 +67041,6 @@ get names(): ((string | LanguageString))[] {
|
|
|
67563
67041
|
|
|
67564
67042
|
}
|
|
67565
67043
|
|
|
67566
|
-
array = [];
|
|
67567
|
-
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
67568
|
-
const element = (
|
|
67569
|
-
{ "@value": v }
|
|
67570
|
-
);
|
|
67571
|
-
array.push(element);;
|
|
67572
|
-
}
|
|
67573
|
-
if (array.length > 0) {
|
|
67574
|
-
const propValue = (
|
|
67575
|
-
array
|
|
67576
|
-
);
|
|
67577
|
-
values["https://www.w3.org/ns/credentials/v2#digestMultibase"] = propValue;
|
|
67578
|
-
|
|
67579
|
-
}
|
|
67580
|
-
|
|
67581
67044
|
array = [];
|
|
67582
67045
|
for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name) {
|
|
67583
67046
|
const element = (
|
|
@@ -67671,7 +67134,7 @@ get names(): ((string | LanguageString))[] {
|
|
|
67671
67134
|
);
|
|
67672
67135
|
}
|
|
67673
67136
|
const docContext = options.context ??
|
|
67674
|
-
|
|
67137
|
+
"https://www.w3.org/ns/activitystreams";
|
|
67675
67138
|
const compacted = await jsonld.compact(
|
|
67676
67139
|
values,
|
|
67677
67140
|
docContext,
|
|
@@ -67872,24 +67335,6 @@ get names(): ((string | LanguageString))[] {
|
|
|
67872
67335
|
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
67873
67336
|
}
|
|
67874
67337
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
67875
|
-
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
67876
|
-
|
|
67877
|
-
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
|
|
67878
|
-
|
|
67879
|
-
for (
|
|
67880
|
-
const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null
|
|
67881
|
-
? []
|
|
67882
|
-
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && "@list" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]
|
|
67883
|
-
? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]["@list"]
|
|
67884
|
-
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array
|
|
67885
|
-
) {
|
|
67886
|
-
if (v == null) continue;
|
|
67887
|
-
|
|
67888
|
-
const decoded = v["@value"];
|
|
67889
|
-
if (typeof decoded === "undefined") continue;
|
|
67890
|
-
_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.push(decoded);
|
|
67891
|
-
}
|
|
67892
|
-
instance.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
67893
67338
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = [];
|
|
67894
67339
|
|
|
67895
67340
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
@@ -68117,26 +67562,6 @@ get names(): ((string | LanguageString))[] {
|
|
|
68117
67562
|
proxy.mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType[0];
|
|
68118
67563
|
}
|
|
68119
67564
|
|
|
68120
|
-
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase
|
|
68121
|
-
// deno-lint-ignore no-explicit-any
|
|
68122
|
-
.map((v: any) => v instanceof URL
|
|
68123
|
-
? {
|
|
68124
|
-
[Symbol.for("Deno.customInspect")]: (
|
|
68125
|
-
inspect: typeof Deno.inspect,
|
|
68126
|
-
options: Deno.InspectOptions,
|
|
68127
|
-
): string => "URL " + inspect(v.href, options),
|
|
68128
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
68129
|
-
_depth: number,
|
|
68130
|
-
options: unknown,
|
|
68131
|
-
inspect: (value: unknown, options: unknown) => string,
|
|
68132
|
-
): string => "URL " + inspect(v.href, options),
|
|
68133
|
-
}
|
|
68134
|
-
: v);
|
|
68135
|
-
|
|
68136
|
-
if (_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length == 1) {
|
|
68137
|
-
proxy.digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
68138
|
-
}
|
|
68139
|
-
|
|
68140
67565
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name
|
|
68141
67566
|
// deno-lint-ignore no-explicit-any
|
|
68142
67567
|
.map((v: any) => v instanceof URL
|
|
@@ -68296,7 +67721,7 @@ export class Hashtag extends Link {
|
|
|
68296
67721
|
{
|
|
68297
67722
|
id?: URL | null;
|
|
68298
67723
|
href?: URL | null;rel?: string | null;
|
|
68299
|
-
rels?: (string)[];mediaType?: string | null;
|
|
67724
|
+
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
68300
67725
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
68301
67726
|
,
|
|
68302
67727
|
options: {
|
|
@@ -68318,7 +67743,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
68318
67743
|
{
|
|
68319
67744
|
id?: URL | null;
|
|
68320
67745
|
href?: URL | null;rel?: string | null;
|
|
68321
|
-
rels?: (string)[];mediaType?: string | null;
|
|
67746
|
+
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
68322
67747
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
68323
67748
|
|
|
68324
67749
|
= {},
|
|
@@ -68635,7 +68060,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
68635
68060
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
68636
68061
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
68637
68062
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
68638
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;
|
|
68063
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
68639
68064
|
,
|
|
68640
68065
|
options: {
|
|
68641
68066
|
documentLoader?: DocumentLoader,
|
|
@@ -68671,7 +68096,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
68671
68096
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
68672
68097
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
68673
68098
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
68674
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;
|
|
68099
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
68675
68100
|
|
|
68676
68101
|
= {},
|
|
68677
68102
|
options: {
|
|
@@ -68733,7 +68158,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
68733
68158
|
|
|
68734
68159
|
result["type"] = "Image";
|
|
68735
68160
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
68736
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
68161
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v1","https://gotosocial.org/ns"];
|
|
68737
68162
|
return result;
|
|
68738
68163
|
}
|
|
68739
68164
|
|
|
@@ -68759,7 +68184,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
68759
68184
|
);
|
|
68760
68185
|
}
|
|
68761
68186
|
const docContext = options.context ??
|
|
68762
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
68187
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v1","https://gotosocial.org/ns"];
|
|
68763
68188
|
const compacted = await jsonld.compact(
|
|
68764
68189
|
values,
|
|
68765
68190
|
docContext,
|
|
@@ -71146,7 +70571,7 @@ export class Mention extends Link {
|
|
|
71146
70571
|
{
|
|
71147
70572
|
id?: URL | null;
|
|
71148
70573
|
href?: URL | null;rel?: string | null;
|
|
71149
|
-
rels?: (string)[];mediaType?: string | null;
|
|
70574
|
+
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
71150
70575
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
71151
70576
|
,
|
|
71152
70577
|
options: {
|
|
@@ -71168,7 +70593,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
71168
70593
|
{
|
|
71169
70594
|
id?: URL | null;
|
|
71170
70595
|
href?: URL | null;rel?: string | null;
|
|
71171
|
-
rels?: (string)[];mediaType?: string | null;
|
|
70596
|
+
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
71172
70597
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
71173
70598
|
|
|
71174
70599
|
= {},
|
|
@@ -73877,8 +73302,7 @@ export class Organization extends Object {
|
|
|
73877
73302
|
|
|
73878
73303
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
73879
73304
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
73880
|
-
#
|
|
73881
|
-
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
73305
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
73882
73306
|
|
|
73883
73307
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
73884
73308
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -73951,8 +73375,7 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
73951
73375
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
73952
73376
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
73953
73377
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
73954
|
-
assertionMethods?: (Multikey | URL)[];
|
|
73955
|
-
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
73378
|
+
assertionMethods?: (Multikey | URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
73956
73379
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
73957
73380
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
73958
73381
|
,
|
|
@@ -74079,42 +73502,6 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
74079
73502
|
}
|
|
74080
73503
|
}
|
|
74081
73504
|
|
|
74082
|
-
if ("gateway" in values && values.gateway != null) {
|
|
74083
|
-
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
74084
|
-
// @ts-ignore: type is checked above.
|
|
74085
|
-
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
74086
|
-
|
|
74087
|
-
} else {
|
|
74088
|
-
throw new TypeError(
|
|
74089
|
-
"The gateway must be of type " +
|
|
74090
|
-
"URL" + ".",
|
|
74091
|
-
);
|
|
74092
|
-
}
|
|
74093
|
-
}
|
|
74094
|
-
|
|
74095
|
-
if ("gateways" in values && values.gateways != null) {
|
|
74096
|
-
|
|
74097
|
-
if ("gateway" in values &&
|
|
74098
|
-
values.gateway != null) {
|
|
74099
|
-
throw new TypeError(
|
|
74100
|
-
"Cannot initialize both gateway and " +
|
|
74101
|
-
"gateways at the same time.",
|
|
74102
|
-
);
|
|
74103
|
-
}
|
|
74104
|
-
|
|
74105
|
-
if (Array.isArray(values.gateways) &&
|
|
74106
|
-
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
74107
|
-
// @ts-ignore: type is checked above.
|
|
74108
|
-
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
74109
|
-
|
|
74110
|
-
} else {
|
|
74111
|
-
throw new TypeError(
|
|
74112
|
-
"The gateways must be an array of type " +
|
|
74113
|
-
"URL" + ".",
|
|
74114
|
-
);
|
|
74115
|
-
}
|
|
74116
|
-
}
|
|
74117
|
-
|
|
74118
73505
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
74119
73506
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
74120
73507
|
// @ts-ignore: type is checked above.
|
|
@@ -74465,8 +73852,7 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
74465
73852
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
74466
73853
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
74467
73854
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
74468
|
-
assertionMethods?: (Multikey | URL)[];
|
|
74469
|
-
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
73855
|
+
assertionMethods?: (Multikey | URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
74470
73856
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
74471
73857
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
74472
73858
|
|
|
@@ -74602,42 +73988,6 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
74602
73988
|
);
|
|
74603
73989
|
}
|
|
74604
73990
|
}
|
|
74605
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
74606
|
-
if ("gateway" in values && values.gateway != null) {
|
|
74607
|
-
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
74608
|
-
// @ts-ignore: type is checked above.
|
|
74609
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
74610
|
-
|
|
74611
|
-
} else {
|
|
74612
|
-
throw new TypeError(
|
|
74613
|
-
"The gateway must be of type " +
|
|
74614
|
-
"URL" + ".",
|
|
74615
|
-
);
|
|
74616
|
-
}
|
|
74617
|
-
}
|
|
74618
|
-
|
|
74619
|
-
if ("gateways" in values && values.gateways != null) {
|
|
74620
|
-
|
|
74621
|
-
if ("gateway" in values &&
|
|
74622
|
-
values.gateway != null) {
|
|
74623
|
-
throw new TypeError(
|
|
74624
|
-
"Cannot update both gateway and " +
|
|
74625
|
-
"gateways at the same time.",
|
|
74626
|
-
);
|
|
74627
|
-
}
|
|
74628
|
-
|
|
74629
|
-
if (Array.isArray(values.gateways) &&
|
|
74630
|
-
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
74631
|
-
// @ts-ignore: type is checked above.
|
|
74632
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
74633
|
-
|
|
74634
|
-
} else {
|
|
74635
|
-
throw new TypeError(
|
|
74636
|
-
"The gateways must be an array of type " +
|
|
74637
|
-
"URL" + ".",
|
|
74638
|
-
);
|
|
74639
|
-
}
|
|
74640
|
-
}
|
|
74641
73991
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
74642
73992
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
74643
73993
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
@@ -75660,33 +75010,6 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
75660
75010
|
}
|
|
75661
75011
|
}
|
|
75662
75012
|
|
|
75663
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
75664
|
-
* retrieved.
|
|
75665
|
-
*
|
|
75666
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
75667
|
-
*
|
|
75668
|
-
*/
|
|
75669
|
-
get gateway(): (URL | null) {
|
|
75670
|
-
if (this._warning != null) {
|
|
75671
|
-
getLogger(this._warning.category).warn(
|
|
75672
|
-
this._warning.message,
|
|
75673
|
-
this._warning.values
|
|
75674
|
-
);
|
|
75675
|
-
}
|
|
75676
|
-
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
75677
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
75678
|
-
}
|
|
75679
|
-
|
|
75680
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
75681
|
-
* retrieved.
|
|
75682
|
-
*
|
|
75683
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
75684
|
-
*
|
|
75685
|
-
*/
|
|
75686
|
-
get gateways(): (URL)[] {
|
|
75687
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
75688
|
-
}
|
|
75689
|
-
|
|
75690
75013
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
75691
75014
|
* automatically approved, but instead are examined by a person who may accept
|
|
75692
75015
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -78995,19 +78318,6 @@ get gateways(): (URL)[] {
|
|
|
78995
78318
|
|
|
78996
78319
|
}
|
|
78997
78320
|
|
|
78998
|
-
compactItems = [];
|
|
78999
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
79000
|
-
const item = (
|
|
79001
|
-
formatIri(v)
|
|
79002
|
-
);
|
|
79003
|
-
compactItems.push(item);
|
|
79004
|
-
}
|
|
79005
|
-
if (compactItems.length > 0) {
|
|
79006
|
-
|
|
79007
|
-
result["gateways"] = compactItems;
|
|
79008
|
-
|
|
79009
|
-
}
|
|
79010
|
-
|
|
79011
78321
|
compactItems = [];
|
|
79012
78322
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
79013
78323
|
const item = (
|
|
@@ -79422,7 +78732,7 @@ get gateways(): (URL)[] {
|
|
|
79422
78732
|
|
|
79423
78733
|
result["type"] = "Organization";
|
|
79424
78734
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
79425
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/
|
|
78735
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
79426
78736
|
return result;
|
|
79427
78737
|
}
|
|
79428
78738
|
|
|
@@ -79487,21 +78797,6 @@ get gateways(): (URL)[] {
|
|
|
79487
78797
|
|
|
79488
78798
|
}
|
|
79489
78799
|
|
|
79490
|
-
array = [];
|
|
79491
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
79492
|
-
const element = (
|
|
79493
|
-
{ "@id": formatIri(v) }
|
|
79494
|
-
);
|
|
79495
|
-
array.push(element);;
|
|
79496
|
-
}
|
|
79497
|
-
if (array.length > 0) {
|
|
79498
|
-
const propValue = (
|
|
79499
|
-
{ "@list": array }
|
|
79500
|
-
);
|
|
79501
|
-
values["https://w3id.org/fep/ef61/gateways"] = propValue;
|
|
79502
|
-
|
|
79503
|
-
}
|
|
79504
|
-
|
|
79505
78800
|
array = [];
|
|
79506
78801
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
79507
78802
|
const element = (
|
|
@@ -79811,7 +79106,7 @@ get gateways(): (URL)[] {
|
|
|
79811
79106
|
);
|
|
79812
79107
|
}
|
|
79813
79108
|
const docContext = options.context ??
|
|
79814
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/
|
|
79109
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
79815
79110
|
const compacted = await jsonld.compact(
|
|
79816
79111
|
values,
|
|
79817
79112
|
docContext,
|
|
@@ -80053,24 +79348,6 @@ get gateways(): (URL)[] {
|
|
|
80053
79348
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
80054
79349
|
}
|
|
80055
79350
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
80056
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
80057
|
-
|
|
80058
|
-
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
80059
|
-
|
|
80060
|
-
for (
|
|
80061
|
-
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
80062
|
-
? []
|
|
80063
|
-
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
80064
|
-
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"]
|
|
80065
|
-
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
80066
|
-
) {
|
|
80067
|
-
if (v == null) continue;
|
|
80068
|
-
|
|
80069
|
-
const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
80070
|
-
if (typeof decoded === "undefined") continue;
|
|
80071
|
-
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
80072
|
-
}
|
|
80073
|
-
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
80074
79351
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
80075
79352
|
|
|
80076
79353
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
@@ -80742,32 +80019,6 @@ get gateways(): (URL)[] {
|
|
|
80742
80019
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
80743
80020
|
}
|
|
80744
80021
|
|
|
80745
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
80746
|
-
// deno-lint-ignore no-explicit-any
|
|
80747
|
-
.map((v: any) => v instanceof URL
|
|
80748
|
-
? {
|
|
80749
|
-
[Symbol.for("Deno.customInspect")]: (
|
|
80750
|
-
inspect: typeof Deno.inspect,
|
|
80751
|
-
options: Deno.InspectOptions,
|
|
80752
|
-
): string => "URL " + inspect(v.href, options),
|
|
80753
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
80754
|
-
_depth: number,
|
|
80755
|
-
options: unknown,
|
|
80756
|
-
inspect: (value: unknown, options: unknown) => string,
|
|
80757
|
-
): string => "URL " + inspect(v.href, options),
|
|
80758
|
-
}
|
|
80759
|
-
: v);
|
|
80760
|
-
|
|
80761
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
80762
|
-
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
80763
|
-
}
|
|
80764
|
-
|
|
80765
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
80766
|
-
|| !("gateway" in proxy)
|
|
80767
|
-
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
80768
|
-
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
80769
|
-
}
|
|
80770
|
-
|
|
80771
80022
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
80772
80023
|
// deno-lint-ignore no-explicit-any
|
|
80773
80024
|
.map((v: any) => v instanceof URL
|
|
@@ -81245,7 +80496,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
81245
80496
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
81246
80497
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
81247
80498
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
81248
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;
|
|
80499
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
81249
80500
|
,
|
|
81250
80501
|
options: {
|
|
81251
80502
|
documentLoader?: DocumentLoader,
|
|
@@ -81281,7 +80532,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
81281
80532
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
81282
80533
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
81283
80534
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
81284
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;
|
|
80535
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
81285
80536
|
|
|
81286
80537
|
= {},
|
|
81287
80538
|
options: {
|
|
@@ -81343,7 +80594,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
81343
80594
|
|
|
81344
80595
|
result["type"] = "Page";
|
|
81345
80596
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
81346
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
80597
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v1","https://gotosocial.org/ns"];
|
|
81347
80598
|
return result;
|
|
81348
80599
|
}
|
|
81349
80600
|
|
|
@@ -81369,7 +80620,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
81369
80620
|
);
|
|
81370
80621
|
}
|
|
81371
80622
|
const docContext = options.context ??
|
|
81372
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
80623
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v1","https://gotosocial.org/ns"];
|
|
81373
80624
|
const compacted = await jsonld.compact(
|
|
81374
80625
|
values,
|
|
81375
80626
|
docContext,
|
|
@@ -81589,8 +80840,7 @@ export class Person extends Object {
|
|
|
81589
80840
|
|
|
81590
80841
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
81591
80842
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
81592
|
-
#
|
|
81593
|
-
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
80843
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
81594
80844
|
|
|
81595
80845
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
81596
80846
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -81663,8 +80913,7 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
81663
80913
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
81664
80914
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
81665
80915
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
81666
|
-
assertionMethods?: (Multikey | URL)[];
|
|
81667
|
-
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
80916
|
+
assertionMethods?: (Multikey | URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
81668
80917
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
81669
80918
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
81670
80919
|
,
|
|
@@ -81791,42 +81040,6 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
81791
81040
|
}
|
|
81792
81041
|
}
|
|
81793
81042
|
|
|
81794
|
-
if ("gateway" in values && values.gateway != null) {
|
|
81795
|
-
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
81796
|
-
// @ts-ignore: type is checked above.
|
|
81797
|
-
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
81798
|
-
|
|
81799
|
-
} else {
|
|
81800
|
-
throw new TypeError(
|
|
81801
|
-
"The gateway must be of type " +
|
|
81802
|
-
"URL" + ".",
|
|
81803
|
-
);
|
|
81804
|
-
}
|
|
81805
|
-
}
|
|
81806
|
-
|
|
81807
|
-
if ("gateways" in values && values.gateways != null) {
|
|
81808
|
-
|
|
81809
|
-
if ("gateway" in values &&
|
|
81810
|
-
values.gateway != null) {
|
|
81811
|
-
throw new TypeError(
|
|
81812
|
-
"Cannot initialize both gateway and " +
|
|
81813
|
-
"gateways at the same time.",
|
|
81814
|
-
);
|
|
81815
|
-
}
|
|
81816
|
-
|
|
81817
|
-
if (Array.isArray(values.gateways) &&
|
|
81818
|
-
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
81819
|
-
// @ts-ignore: type is checked above.
|
|
81820
|
-
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
81821
|
-
|
|
81822
|
-
} else {
|
|
81823
|
-
throw new TypeError(
|
|
81824
|
-
"The gateways must be an array of type " +
|
|
81825
|
-
"URL" + ".",
|
|
81826
|
-
);
|
|
81827
|
-
}
|
|
81828
|
-
}
|
|
81829
|
-
|
|
81830
81043
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
81831
81044
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
81832
81045
|
// @ts-ignore: type is checked above.
|
|
@@ -82177,8 +81390,7 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
82177
81390
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
82178
81391
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
82179
81392
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
82180
|
-
assertionMethods?: (Multikey | URL)[];
|
|
82181
|
-
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
81393
|
+
assertionMethods?: (Multikey | URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
82182
81394
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
82183
81395
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
82184
81396
|
|
|
@@ -82314,42 +81526,6 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
82314
81526
|
);
|
|
82315
81527
|
}
|
|
82316
81528
|
}
|
|
82317
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
82318
|
-
if ("gateway" in values && values.gateway != null) {
|
|
82319
|
-
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
82320
|
-
// @ts-ignore: type is checked above.
|
|
82321
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
82322
|
-
|
|
82323
|
-
} else {
|
|
82324
|
-
throw new TypeError(
|
|
82325
|
-
"The gateway must be of type " +
|
|
82326
|
-
"URL" + ".",
|
|
82327
|
-
);
|
|
82328
|
-
}
|
|
82329
|
-
}
|
|
82330
|
-
|
|
82331
|
-
if ("gateways" in values && values.gateways != null) {
|
|
82332
|
-
|
|
82333
|
-
if ("gateway" in values &&
|
|
82334
|
-
values.gateway != null) {
|
|
82335
|
-
throw new TypeError(
|
|
82336
|
-
"Cannot update both gateway and " +
|
|
82337
|
-
"gateways at the same time.",
|
|
82338
|
-
);
|
|
82339
|
-
}
|
|
82340
|
-
|
|
82341
|
-
if (Array.isArray(values.gateways) &&
|
|
82342
|
-
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
82343
|
-
// @ts-ignore: type is checked above.
|
|
82344
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
82345
|
-
|
|
82346
|
-
} else {
|
|
82347
|
-
throw new TypeError(
|
|
82348
|
-
"The gateways must be an array of type " +
|
|
82349
|
-
"URL" + ".",
|
|
82350
|
-
);
|
|
82351
|
-
}
|
|
82352
|
-
}
|
|
82353
81529
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
82354
81530
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
82355
81531
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
@@ -83372,33 +82548,6 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
83372
82548
|
}
|
|
83373
82549
|
}
|
|
83374
82550
|
|
|
83375
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
83376
|
-
* retrieved.
|
|
83377
|
-
*
|
|
83378
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
83379
|
-
*
|
|
83380
|
-
*/
|
|
83381
|
-
get gateway(): (URL | null) {
|
|
83382
|
-
if (this._warning != null) {
|
|
83383
|
-
getLogger(this._warning.category).warn(
|
|
83384
|
-
this._warning.message,
|
|
83385
|
-
this._warning.values
|
|
83386
|
-
);
|
|
83387
|
-
}
|
|
83388
|
-
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
83389
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
83390
|
-
}
|
|
83391
|
-
|
|
83392
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
83393
|
-
* retrieved.
|
|
83394
|
-
*
|
|
83395
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
83396
|
-
*
|
|
83397
|
-
*/
|
|
83398
|
-
get gateways(): (URL)[] {
|
|
83399
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
83400
|
-
}
|
|
83401
|
-
|
|
83402
82551
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
83403
82552
|
* automatically approved, but instead are examined by a person who may accept
|
|
83404
82553
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -86707,19 +85856,6 @@ get gateways(): (URL)[] {
|
|
|
86707
85856
|
|
|
86708
85857
|
}
|
|
86709
85858
|
|
|
86710
|
-
compactItems = [];
|
|
86711
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
86712
|
-
const item = (
|
|
86713
|
-
formatIri(v)
|
|
86714
|
-
);
|
|
86715
|
-
compactItems.push(item);
|
|
86716
|
-
}
|
|
86717
|
-
if (compactItems.length > 0) {
|
|
86718
|
-
|
|
86719
|
-
result["gateways"] = compactItems;
|
|
86720
|
-
|
|
86721
|
-
}
|
|
86722
|
-
|
|
86723
85859
|
compactItems = [];
|
|
86724
85860
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
86725
85861
|
const item = (
|
|
@@ -87134,7 +86270,7 @@ get gateways(): (URL)[] {
|
|
|
87134
86270
|
|
|
87135
86271
|
result["type"] = "Person";
|
|
87136
86272
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
87137
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/
|
|
86273
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
87138
86274
|
return result;
|
|
87139
86275
|
}
|
|
87140
86276
|
|
|
@@ -87199,21 +86335,6 @@ get gateways(): (URL)[] {
|
|
|
87199
86335
|
|
|
87200
86336
|
}
|
|
87201
86337
|
|
|
87202
|
-
array = [];
|
|
87203
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
87204
|
-
const element = (
|
|
87205
|
-
{ "@id": formatIri(v) }
|
|
87206
|
-
);
|
|
87207
|
-
array.push(element);;
|
|
87208
|
-
}
|
|
87209
|
-
if (array.length > 0) {
|
|
87210
|
-
const propValue = (
|
|
87211
|
-
{ "@list": array }
|
|
87212
|
-
);
|
|
87213
|
-
values["https://w3id.org/fep/ef61/gateways"] = propValue;
|
|
87214
|
-
|
|
87215
|
-
}
|
|
87216
|
-
|
|
87217
86338
|
array = [];
|
|
87218
86339
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
87219
86340
|
const element = (
|
|
@@ -87523,7 +86644,7 @@ get gateways(): (URL)[] {
|
|
|
87523
86644
|
);
|
|
87524
86645
|
}
|
|
87525
86646
|
const docContext = options.context ??
|
|
87526
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/
|
|
86647
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
87527
86648
|
const compacted = await jsonld.compact(
|
|
87528
86649
|
values,
|
|
87529
86650
|
docContext,
|
|
@@ -87765,24 +86886,6 @@ get gateways(): (URL)[] {
|
|
|
87765
86886
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
87766
86887
|
}
|
|
87767
86888
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
87768
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
87769
|
-
|
|
87770
|
-
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
87771
|
-
|
|
87772
|
-
for (
|
|
87773
|
-
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
87774
|
-
? []
|
|
87775
|
-
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
87776
|
-
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"]
|
|
87777
|
-
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
87778
|
-
) {
|
|
87779
|
-
if (v == null) continue;
|
|
87780
|
-
|
|
87781
|
-
const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
87782
|
-
if (typeof decoded === "undefined") continue;
|
|
87783
|
-
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
87784
|
-
}
|
|
87785
|
-
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
87786
86889
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
87787
86890
|
|
|
87788
86891
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
@@ -88454,32 +87557,6 @@ get gateways(): (URL)[] {
|
|
|
88454
87557
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
88455
87558
|
}
|
|
88456
87559
|
|
|
88457
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
88458
|
-
// deno-lint-ignore no-explicit-any
|
|
88459
|
-
.map((v: any) => v instanceof URL
|
|
88460
|
-
? {
|
|
88461
|
-
[Symbol.for("Deno.customInspect")]: (
|
|
88462
|
-
inspect: typeof Deno.inspect,
|
|
88463
|
-
options: Deno.InspectOptions,
|
|
88464
|
-
): string => "URL " + inspect(v.href, options),
|
|
88465
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
88466
|
-
_depth: number,
|
|
88467
|
-
options: unknown,
|
|
88468
|
-
inspect: (value: unknown, options: unknown) => string,
|
|
88469
|
-
): string => "URL " + inspect(v.href, options),
|
|
88470
|
-
}
|
|
88471
|
-
: v);
|
|
88472
|
-
|
|
88473
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
88474
|
-
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
88475
|
-
}
|
|
88476
|
-
|
|
88477
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
88478
|
-
|| !("gateway" in proxy)
|
|
88479
|
-
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
88480
|
-
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
88481
|
-
}
|
|
88482
|
-
|
|
88483
87560
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
88484
87561
|
// deno-lint-ignore no-explicit-any
|
|
88485
87562
|
.map((v: any) => v instanceof URL
|
|
@@ -95539,8 +94616,7 @@ export class Service extends Object {
|
|
|
95539
94616
|
|
|
95540
94617
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
95541
94618
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
95542
|
-
#
|
|
95543
|
-
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
94619
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
95544
94620
|
|
|
95545
94621
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
95546
94622
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -95613,8 +94689,7 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
95613
94689
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
95614
94690
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
95615
94691
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
95616
|
-
assertionMethods?: (Multikey | URL)[];
|
|
95617
|
-
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
94692
|
+
assertionMethods?: (Multikey | URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
95618
94693
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
95619
94694
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
95620
94695
|
,
|
|
@@ -95741,42 +94816,6 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
95741
94816
|
}
|
|
95742
94817
|
}
|
|
95743
94818
|
|
|
95744
|
-
if ("gateway" in values && values.gateway != null) {
|
|
95745
|
-
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
95746
|
-
// @ts-ignore: type is checked above.
|
|
95747
|
-
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
95748
|
-
|
|
95749
|
-
} else {
|
|
95750
|
-
throw new TypeError(
|
|
95751
|
-
"The gateway must be of type " +
|
|
95752
|
-
"URL" + ".",
|
|
95753
|
-
);
|
|
95754
|
-
}
|
|
95755
|
-
}
|
|
95756
|
-
|
|
95757
|
-
if ("gateways" in values && values.gateways != null) {
|
|
95758
|
-
|
|
95759
|
-
if ("gateway" in values &&
|
|
95760
|
-
values.gateway != null) {
|
|
95761
|
-
throw new TypeError(
|
|
95762
|
-
"Cannot initialize both gateway and " +
|
|
95763
|
-
"gateways at the same time.",
|
|
95764
|
-
);
|
|
95765
|
-
}
|
|
95766
|
-
|
|
95767
|
-
if (Array.isArray(values.gateways) &&
|
|
95768
|
-
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
95769
|
-
// @ts-ignore: type is checked above.
|
|
95770
|
-
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
95771
|
-
|
|
95772
|
-
} else {
|
|
95773
|
-
throw new TypeError(
|
|
95774
|
-
"The gateways must be an array of type " +
|
|
95775
|
-
"URL" + ".",
|
|
95776
|
-
);
|
|
95777
|
-
}
|
|
95778
|
-
}
|
|
95779
|
-
|
|
95780
94819
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
95781
94820
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
95782
94821
|
// @ts-ignore: type is checked above.
|
|
@@ -96127,8 +95166,7 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
96127
95166
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
96128
95167
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
96129
95168
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
96130
|
-
assertionMethods?: (Multikey | URL)[];
|
|
96131
|
-
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
95169
|
+
assertionMethods?: (Multikey | URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
96132
95170
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
96133
95171
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
96134
95172
|
|
|
@@ -96264,42 +95302,6 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
96264
95302
|
);
|
|
96265
95303
|
}
|
|
96266
95304
|
}
|
|
96267
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
96268
|
-
if ("gateway" in values && values.gateway != null) {
|
|
96269
|
-
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
96270
|
-
// @ts-ignore: type is checked above.
|
|
96271
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
96272
|
-
|
|
96273
|
-
} else {
|
|
96274
|
-
throw new TypeError(
|
|
96275
|
-
"The gateway must be of type " +
|
|
96276
|
-
"URL" + ".",
|
|
96277
|
-
);
|
|
96278
|
-
}
|
|
96279
|
-
}
|
|
96280
|
-
|
|
96281
|
-
if ("gateways" in values && values.gateways != null) {
|
|
96282
|
-
|
|
96283
|
-
if ("gateway" in values &&
|
|
96284
|
-
values.gateway != null) {
|
|
96285
|
-
throw new TypeError(
|
|
96286
|
-
"Cannot update both gateway and " +
|
|
96287
|
-
"gateways at the same time.",
|
|
96288
|
-
);
|
|
96289
|
-
}
|
|
96290
|
-
|
|
96291
|
-
if (Array.isArray(values.gateways) &&
|
|
96292
|
-
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
96293
|
-
// @ts-ignore: type is checked above.
|
|
96294
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
96295
|
-
|
|
96296
|
-
} else {
|
|
96297
|
-
throw new TypeError(
|
|
96298
|
-
"The gateways must be an array of type " +
|
|
96299
|
-
"URL" + ".",
|
|
96300
|
-
);
|
|
96301
|
-
}
|
|
96302
|
-
}
|
|
96303
95305
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
96304
95306
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
96305
95307
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
@@ -97322,33 +96324,6 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
97322
96324
|
}
|
|
97323
96325
|
}
|
|
97324
96326
|
|
|
97325
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
97326
|
-
* retrieved.
|
|
97327
|
-
*
|
|
97328
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
97329
|
-
*
|
|
97330
|
-
*/
|
|
97331
|
-
get gateway(): (URL | null) {
|
|
97332
|
-
if (this._warning != null) {
|
|
97333
|
-
getLogger(this._warning.category).warn(
|
|
97334
|
-
this._warning.message,
|
|
97335
|
-
this._warning.values
|
|
97336
|
-
);
|
|
97337
|
-
}
|
|
97338
|
-
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
97339
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
97340
|
-
}
|
|
97341
|
-
|
|
97342
|
-
/** Gateways where the latest version of this portable actor object can be
|
|
97343
|
-
* retrieved.
|
|
97344
|
-
*
|
|
97345
|
-
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
97346
|
-
*
|
|
97347
|
-
*/
|
|
97348
|
-
get gateways(): (URL)[] {
|
|
97349
|
-
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
97350
|
-
}
|
|
97351
|
-
|
|
97352
96327
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
97353
96328
|
* automatically approved, but instead are examined by a person who may accept
|
|
97354
96329
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -100657,19 +99632,6 @@ get gateways(): (URL)[] {
|
|
|
100657
99632
|
|
|
100658
99633
|
}
|
|
100659
99634
|
|
|
100660
|
-
compactItems = [];
|
|
100661
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
100662
|
-
const item = (
|
|
100663
|
-
formatIri(v)
|
|
100664
|
-
);
|
|
100665
|
-
compactItems.push(item);
|
|
100666
|
-
}
|
|
100667
|
-
if (compactItems.length > 0) {
|
|
100668
|
-
|
|
100669
|
-
result["gateways"] = compactItems;
|
|
100670
|
-
|
|
100671
|
-
}
|
|
100672
|
-
|
|
100673
99635
|
compactItems = [];
|
|
100674
99636
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
100675
99637
|
const item = (
|
|
@@ -101084,7 +100046,7 @@ get gateways(): (URL)[] {
|
|
|
101084
100046
|
|
|
101085
100047
|
result["type"] = "Service";
|
|
101086
100048
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
101087
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/
|
|
100049
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
101088
100050
|
return result;
|
|
101089
100051
|
}
|
|
101090
100052
|
|
|
@@ -101149,21 +100111,6 @@ get gateways(): (URL)[] {
|
|
|
101149
100111
|
|
|
101150
100112
|
}
|
|
101151
100113
|
|
|
101152
|
-
array = [];
|
|
101153
|
-
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
101154
|
-
const element = (
|
|
101155
|
-
{ "@id": formatIri(v) }
|
|
101156
|
-
);
|
|
101157
|
-
array.push(element);;
|
|
101158
|
-
}
|
|
101159
|
-
if (array.length > 0) {
|
|
101160
|
-
const propValue = (
|
|
101161
|
-
{ "@list": array }
|
|
101162
|
-
);
|
|
101163
|
-
values["https://w3id.org/fep/ef61/gateways"] = propValue;
|
|
101164
|
-
|
|
101165
|
-
}
|
|
101166
|
-
|
|
101167
100114
|
array = [];
|
|
101168
100115
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
101169
100116
|
const element = (
|
|
@@ -101473,7 +100420,7 @@ get gateways(): (URL)[] {
|
|
|
101473
100420
|
);
|
|
101474
100421
|
}
|
|
101475
100422
|
const docContext = options.context ??
|
|
101476
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/
|
|
100423
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
101477
100424
|
const compacted = await jsonld.compact(
|
|
101478
100425
|
values,
|
|
101479
100426
|
docContext,
|
|
@@ -101715,24 +100662,6 @@ get gateways(): (URL)[] {
|
|
|
101715
100662
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
101716
100663
|
}
|
|
101717
100664
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
101718
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
101719
|
-
|
|
101720
|
-
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
101721
|
-
|
|
101722
|
-
for (
|
|
101723
|
-
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
101724
|
-
? []
|
|
101725
|
-
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
101726
|
-
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"]
|
|
101727
|
-
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
101728
|
-
) {
|
|
101729
|
-
if (v == null) continue;
|
|
101730
|
-
|
|
101731
|
-
const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
101732
|
-
if (typeof decoded === "undefined") continue;
|
|
101733
|
-
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
101734
|
-
}
|
|
101735
|
-
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
101736
100665
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
101737
100666
|
|
|
101738
100667
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
@@ -102404,32 +101333,6 @@ get gateways(): (URL)[] {
|
|
|
102404
101333
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
102405
101334
|
}
|
|
102406
101335
|
|
|
102407
|
-
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
102408
|
-
// deno-lint-ignore no-explicit-any
|
|
102409
|
-
.map((v: any) => v instanceof URL
|
|
102410
|
-
? {
|
|
102411
|
-
[Symbol.for("Deno.customInspect")]: (
|
|
102412
|
-
inspect: typeof Deno.inspect,
|
|
102413
|
-
options: Deno.InspectOptions,
|
|
102414
|
-
): string => "URL " + inspect(v.href, options),
|
|
102415
|
-
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
102416
|
-
_depth: number,
|
|
102417
|
-
options: unknown,
|
|
102418
|
-
inspect: (value: unknown, options: unknown) => string,
|
|
102419
|
-
): string => "URL " + inspect(v.href, options),
|
|
102420
|
-
}
|
|
102421
|
-
: v);
|
|
102422
|
-
|
|
102423
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
102424
|
-
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
102425
|
-
}
|
|
102426
|
-
|
|
102427
|
-
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
102428
|
-
|| !("gateway" in proxy)
|
|
102429
|
-
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
102430
|
-
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
102431
|
-
}
|
|
102432
|
-
|
|
102433
101336
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
102434
101337
|
// deno-lint-ignore no-explicit-any
|
|
102435
101338
|
.map((v: any) => v instanceof URL
|
|
@@ -106071,7 +104974,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
106071
104974
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
106072
104975
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
106073
104976
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
106074
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;
|
|
104977
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
106075
104978
|
,
|
|
106076
104979
|
options: {
|
|
106077
104980
|
documentLoader?: DocumentLoader,
|
|
@@ -106107,7 +105010,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
106107
105010
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
106108
105011
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
106109
105012
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
106110
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;
|
|
105013
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
106111
105014
|
|
|
106112
105015
|
= {},
|
|
106113
105016
|
options: {
|
|
@@ -106169,7 +105072,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
106169
105072
|
|
|
106170
105073
|
result["type"] = "Video";
|
|
106171
105074
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
106172
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
105075
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v1","https://gotosocial.org/ns"];
|
|
106173
105076
|
return result;
|
|
106174
105077
|
}
|
|
106175
105078
|
|
|
@@ -106195,7 +105098,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
106195
105098
|
);
|
|
106196
105099
|
}
|
|
106197
105100
|
const docContext = options.context ??
|
|
106198
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
105101
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v1","https://gotosocial.org/ns"];
|
|
106199
105102
|
const compacted = await jsonld.compact(
|
|
106200
105103
|
values,
|
|
106201
105104
|
docContext,
|