@fedify/vocab-tools 2.4.0-dev.1618 → 2.4.0-dev.1655
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 +28 -2
- package/dist/mod.js +28 -2
- package/package.json +1 -1
- package/src/__snapshots__/class.test.ts.deno.snap +1150 -53
- package/src/__snapshots__/class.test.ts.node.snap +1150 -53
- package/src/__snapshots__/class.test.ts.snap +1150 -53
- package/src/class.ts +2 -0
- package/src/type.ts +24 -0
|
@@ -17,8 +17,10 @@ import {
|
|
|
17
17
|
importMultibaseKey,
|
|
18
18
|
importPem,
|
|
19
19
|
isDecimal,
|
|
20
|
+
isGatewayUrl,
|
|
20
21
|
LanguageString,
|
|
21
22
|
parseDecimal,
|
|
23
|
+
parseGatewayUrl,
|
|
22
24
|
parseIri,
|
|
23
25
|
parseJsonLdId,
|
|
24
26
|
type RemoteDocument
|
|
@@ -43294,7 +43296,8 @@ export class Application extends Object {
|
|
|
43294
43296
|
|
|
43295
43297
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
43296
43298
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
43297
|
-
#
|
|
43299
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
43300
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
43298
43301
|
|
|
43299
43302
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
43300
43303
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -43367,7 +43370,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
43367
43370
|
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;
|
|
43368
43371
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
43369
43372
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
43370
|
-
assertionMethods?: (Multikey | URL)[];
|
|
43373
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
43374
|
+
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;
|
|
43371
43375
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
43372
43376
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
43373
43377
|
,
|
|
@@ -43494,6 +43498,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
43494
43498
|
}
|
|
43495
43499
|
}
|
|
43496
43500
|
|
|
43501
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
43502
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
43503
|
+
// @ts-ignore: type is checked above.
|
|
43504
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
43505
|
+
|
|
43506
|
+
} else {
|
|
43507
|
+
throw new TypeError(
|
|
43508
|
+
\\"The gateway must be of type \\" +
|
|
43509
|
+
\\"URL\\" + \\".\\",
|
|
43510
|
+
);
|
|
43511
|
+
}
|
|
43512
|
+
}
|
|
43513
|
+
|
|
43514
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
43515
|
+
|
|
43516
|
+
if (\\"gateway\\" in values &&
|
|
43517
|
+
values.gateway != null) {
|
|
43518
|
+
throw new TypeError(
|
|
43519
|
+
\\"Cannot initialize both gateway and \\" +
|
|
43520
|
+
\\"gateways at the same time.\\",
|
|
43521
|
+
);
|
|
43522
|
+
}
|
|
43523
|
+
|
|
43524
|
+
if (Array.isArray(values.gateways) &&
|
|
43525
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
43526
|
+
// @ts-ignore: type is checked above.
|
|
43527
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
43528
|
+
|
|
43529
|
+
} else {
|
|
43530
|
+
throw new TypeError(
|
|
43531
|
+
\\"The gateways must be an array of type \\" +
|
|
43532
|
+
\\"URL\\" + \\".\\",
|
|
43533
|
+
);
|
|
43534
|
+
}
|
|
43535
|
+
}
|
|
43536
|
+
|
|
43497
43537
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
43498
43538
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
43499
43539
|
// @ts-ignore: type is checked above.
|
|
@@ -43844,7 +43884,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
43844
43884
|
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;
|
|
43845
43885
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
43846
43886
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
43847
|
-
assertionMethods?: (Multikey | URL)[];
|
|
43887
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
43888
|
+
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;
|
|
43848
43889
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
43849
43890
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
43850
43891
|
|
|
@@ -43980,6 +44021,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
43980
44021
|
);
|
|
43981
44022
|
}
|
|
43982
44023
|
}
|
|
44024
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
44025
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
44026
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
44027
|
+
// @ts-ignore: type is checked above.
|
|
44028
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
44029
|
+
|
|
44030
|
+
} else {
|
|
44031
|
+
throw new TypeError(
|
|
44032
|
+
\\"The gateway must be of type \\" +
|
|
44033
|
+
\\"URL\\" + \\".\\",
|
|
44034
|
+
);
|
|
44035
|
+
}
|
|
44036
|
+
}
|
|
44037
|
+
|
|
44038
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
44039
|
+
|
|
44040
|
+
if (\\"gateway\\" in values &&
|
|
44041
|
+
values.gateway != null) {
|
|
44042
|
+
throw new TypeError(
|
|
44043
|
+
\\"Cannot update both gateway and \\" +
|
|
44044
|
+
\\"gateways at the same time.\\",
|
|
44045
|
+
);
|
|
44046
|
+
}
|
|
44047
|
+
|
|
44048
|
+
if (Array.isArray(values.gateways) &&
|
|
44049
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
44050
|
+
// @ts-ignore: type is checked above.
|
|
44051
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
44052
|
+
|
|
44053
|
+
} else {
|
|
44054
|
+
throw new TypeError(
|
|
44055
|
+
\\"The gateways must be an array of type \\" +
|
|
44056
|
+
\\"URL\\" + \\".\\",
|
|
44057
|
+
);
|
|
44058
|
+
}
|
|
44059
|
+
}
|
|
43983
44060
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
43984
44061
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
43985
44062
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
@@ -45002,6 +45079,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
45002
45079
|
}
|
|
45003
45080
|
}
|
|
45004
45081
|
|
|
45082
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
45083
|
+
* retrieved.
|
|
45084
|
+
*
|
|
45085
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
45086
|
+
*
|
|
45087
|
+
*/
|
|
45088
|
+
get gateway(): (URL | null) {
|
|
45089
|
+
if (this._warning != null) {
|
|
45090
|
+
getLogger(this._warning.category).warn(
|
|
45091
|
+
this._warning.message,
|
|
45092
|
+
this._warning.values
|
|
45093
|
+
);
|
|
45094
|
+
}
|
|
45095
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
45096
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
45097
|
+
}
|
|
45098
|
+
|
|
45099
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
45100
|
+
* retrieved.
|
|
45101
|
+
*
|
|
45102
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
45103
|
+
*
|
|
45104
|
+
*/
|
|
45105
|
+
get gateways(): (URL)[] {
|
|
45106
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
45107
|
+
}
|
|
45108
|
+
|
|
45005
45109
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
45006
45110
|
* automatically approved, but instead are examined by a person who may accept
|
|
45007
45111
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -48310,6 +48414,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48310
48414
|
|
|
48311
48415
|
}
|
|
48312
48416
|
|
|
48417
|
+
compactItems = [];
|
|
48418
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
48419
|
+
const item = (
|
|
48420
|
+
formatIri(v)
|
|
48421
|
+
);
|
|
48422
|
+
compactItems.push(item);
|
|
48423
|
+
}
|
|
48424
|
+
if (compactItems.length > 0) {
|
|
48425
|
+
|
|
48426
|
+
result[\\"gateways\\"] = compactItems;
|
|
48427
|
+
|
|
48428
|
+
}
|
|
48429
|
+
|
|
48313
48430
|
compactItems = [];
|
|
48314
48431
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
48315
48432
|
const item = (
|
|
@@ -48724,7 +48841,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48724
48841
|
|
|
48725
48842
|
result[\\"type\\"] = \\"Application\\";
|
|
48726
48843
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
48727
|
-
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\\"}];
|
|
48844
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"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\\"}];
|
|
48728
48845
|
return result;
|
|
48729
48846
|
}
|
|
48730
48847
|
|
|
@@ -48789,6 +48906,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48789
48906
|
|
|
48790
48907
|
}
|
|
48791
48908
|
|
|
48909
|
+
array = [];
|
|
48910
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
48911
|
+
const element = (
|
|
48912
|
+
{ \\"@id\\": formatIri(v) }
|
|
48913
|
+
);
|
|
48914
|
+
array.push(element);;
|
|
48915
|
+
}
|
|
48916
|
+
if (array.length > 0) {
|
|
48917
|
+
const propValue = (
|
|
48918
|
+
{ \\"@list\\": array }
|
|
48919
|
+
);
|
|
48920
|
+
values[\\"https://w3id.org/fep/ef61/gateways\\"] = propValue;
|
|
48921
|
+
|
|
48922
|
+
}
|
|
48923
|
+
|
|
48792
48924
|
array = [];
|
|
48793
48925
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
48794
48926
|
const element = (
|
|
@@ -49098,7 +49230,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
49098
49230
|
);
|
|
49099
49231
|
}
|
|
49100
49232
|
const docContext = options.context ??
|
|
49101
|
-
[\\"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\\"}];
|
|
49233
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"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\\"}];
|
|
49102
49234
|
const compacted = await jsonld.compact(
|
|
49103
49235
|
values,
|
|
49104
49236
|
docContext,
|
|
@@ -49340,6 +49472,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
49340
49472
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
49341
49473
|
}
|
|
49342
49474
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
49475
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
49476
|
+
|
|
49477
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values[\\"https://w3id.org/fep/ef61/gateways\\"];
|
|
49478
|
+
|
|
49479
|
+
for (
|
|
49480
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
49481
|
+
? []
|
|
49482
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && \\"@list\\" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
49483
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0][\\"@list\\"]
|
|
49484
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
49485
|
+
) {
|
|
49486
|
+
if (v == null) continue;
|
|
49487
|
+
|
|
49488
|
+
const decoded = parseGatewayUrl(typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]);
|
|
49489
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
49490
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
49491
|
+
}
|
|
49492
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
49343
49493
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
49344
49494
|
|
|
49345
49495
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values[\\"https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers\\"];
|
|
@@ -50011,6 +50161,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
50011
50161
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
50012
50162
|
}
|
|
50013
50163
|
|
|
50164
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
50165
|
+
// deno-lint-ignore no-explicit-any
|
|
50166
|
+
.map((v: any) => v instanceof URL
|
|
50167
|
+
? {
|
|
50168
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
50169
|
+
inspect: typeof Deno.inspect,
|
|
50170
|
+
options: Deno.InspectOptions,
|
|
50171
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
50172
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
50173
|
+
_depth: number,
|
|
50174
|
+
options: unknown,
|
|
50175
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
50176
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
50177
|
+
}
|
|
50178
|
+
: v);
|
|
50179
|
+
|
|
50180
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
50181
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
50182
|
+
}
|
|
50183
|
+
|
|
50184
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
50185
|
+
|| !(\\"gateway\\" in proxy)
|
|
50186
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
50187
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
50188
|
+
}
|
|
50189
|
+
|
|
50014
50190
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
50015
50191
|
// deno-lint-ignore no-explicit-any
|
|
50016
50192
|
.map((v: any) => v instanceof URL
|
|
@@ -52387,6 +52563,7 @@ export class Document extends Object {
|
|
|
52387
52563
|
}
|
|
52388
52564
|
#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width: (number)[] = [];
|
|
52389
52565
|
#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height: (number)[] = [];
|
|
52566
|
+
#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
52390
52567
|
|
|
52391
52568
|
/**
|
|
52392
52569
|
* Constructs a new instance of Document with the given values.
|
|
@@ -52413,7 +52590,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
52413
52590
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
52414
52591
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
52415
52592
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
52416
|
-
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;}
|
|
52593
|
+
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;digestMultibase?: string | null;}
|
|
52417
52594
|
,
|
|
52418
52595
|
options: {
|
|
52419
52596
|
documentLoader?: DocumentLoader,
|
|
@@ -52447,6 +52624,19 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52447
52624
|
);
|
|
52448
52625
|
}
|
|
52449
52626
|
}
|
|
52627
|
+
|
|
52628
|
+
if (\\"digestMultibase\\" in values && values.digestMultibase != null) {
|
|
52629
|
+
if (typeof values.digestMultibase === \\"string\\") {
|
|
52630
|
+
// @ts-ignore: type is checked above.
|
|
52631
|
+
this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
52632
|
+
|
|
52633
|
+
} else {
|
|
52634
|
+
throw new TypeError(
|
|
52635
|
+
\\"The digestMultibase must be of type \\" +
|
|
52636
|
+
\\"string\\" + \\".\\",
|
|
52637
|
+
);
|
|
52638
|
+
}
|
|
52639
|
+
}
|
|
52450
52640
|
}
|
|
52451
52641
|
|
|
52452
52642
|
/**
|
|
@@ -52475,7 +52665,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
52475
52665
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
52476
52666
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
52477
52667
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
52478
|
-
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;}
|
|
52668
|
+
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;digestMultibase?: string | null;}
|
|
52479
52669
|
|
|
52480
52670
|
= {},
|
|
52481
52671
|
options: {
|
|
@@ -52517,6 +52707,19 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52517
52707
|
);
|
|
52518
52708
|
}
|
|
52519
52709
|
}
|
|
52710
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
52711
|
+
if (\\"digestMultibase\\" in values && values.digestMultibase != null) {
|
|
52712
|
+
if (typeof values.digestMultibase === \\"string\\") {
|
|
52713
|
+
// @ts-ignore: type is checked above.
|
|
52714
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
52715
|
+
|
|
52716
|
+
} else {
|
|
52717
|
+
throw new TypeError(
|
|
52718
|
+
\\"The digestMultibase must be of type \\" +
|
|
52719
|
+
\\"string\\" + \\".\\",
|
|
52720
|
+
);
|
|
52721
|
+
}
|
|
52722
|
+
}
|
|
52520
52723
|
|
|
52521
52724
|
return clone;
|
|
52522
52725
|
}
|
|
@@ -52551,6 +52754,23 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52551
52754
|
return this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height[0];
|
|
52552
52755
|
}
|
|
52553
52756
|
|
|
52757
|
+
/** The multibase-encoded integrity digest of an external resource represented
|
|
52758
|
+
* by this document.
|
|
52759
|
+
*
|
|
52760
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
52761
|
+
*
|
|
52762
|
+
*/
|
|
52763
|
+
get digestMultibase(): (string | null) {
|
|
52764
|
+
if (this._warning != null) {
|
|
52765
|
+
getLogger(this._warning.category).warn(
|
|
52766
|
+
this._warning.message,
|
|
52767
|
+
this._warning.values
|
|
52768
|
+
);
|
|
52769
|
+
}
|
|
52770
|
+
if (this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length < 1) return null;
|
|
52771
|
+
return this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
52772
|
+
}
|
|
52773
|
+
|
|
52554
52774
|
/**
|
|
52555
52775
|
* Converts this object to a JSON-LD structure.
|
|
52556
52776
|
* @param options The options to use.
|
|
@@ -52623,9 +52843,25 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52623
52843
|
|
|
52624
52844
|
}
|
|
52625
52845
|
|
|
52846
|
+
compactItems = [];
|
|
52847
|
+
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
52848
|
+
const item = (
|
|
52849
|
+
v
|
|
52850
|
+
);
|
|
52851
|
+
compactItems.push(item);
|
|
52852
|
+
}
|
|
52853
|
+
if (compactItems.length > 0) {
|
|
52854
|
+
|
|
52855
|
+
result[\\"digestMultibase\\"]
|
|
52856
|
+
= compactItems.length > 1
|
|
52857
|
+
? compactItems
|
|
52858
|
+
: compactItems[0];
|
|
52859
|
+
|
|
52860
|
+
}
|
|
52861
|
+
|
|
52626
52862
|
result[\\"type\\"] = \\"Document\\";
|
|
52627
52863
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
52628
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
52864
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
52629
52865
|
return result;
|
|
52630
52866
|
}
|
|
52631
52867
|
|
|
@@ -52678,6 +52914,21 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52678
52914
|
|
|
52679
52915
|
}
|
|
52680
52916
|
|
|
52917
|
+
array = [];
|
|
52918
|
+
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
52919
|
+
const element = (
|
|
52920
|
+
{ \\"@value\\": v }
|
|
52921
|
+
);
|
|
52922
|
+
array.push(element);;
|
|
52923
|
+
}
|
|
52924
|
+
if (array.length > 0) {
|
|
52925
|
+
const propValue = (
|
|
52926
|
+
array
|
|
52927
|
+
);
|
|
52928
|
+
values[\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"] = propValue;
|
|
52929
|
+
|
|
52930
|
+
}
|
|
52931
|
+
|
|
52681
52932
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Document\\"];
|
|
52682
52933
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
52683
52934
|
if (options.format === \\"expand\\") {
|
|
@@ -52687,7 +52938,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52687
52938
|
);
|
|
52688
52939
|
}
|
|
52689
52940
|
const docContext = options.context ??
|
|
52690
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
52941
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
52691
52942
|
const compacted = await jsonld.compact(
|
|
52692
52943
|
values,
|
|
52693
52944
|
docContext,
|
|
@@ -52887,6 +53138,24 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52887
53138
|
_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
|
|
52888
53139
|
}
|
|
52889
53140
|
instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
53141
|
+
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
53142
|
+
|
|
53143
|
+
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values[\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"];
|
|
53144
|
+
|
|
53145
|
+
for (
|
|
53146
|
+
const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null
|
|
53147
|
+
? []
|
|
53148
|
+
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && \\"@list\\" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]
|
|
53149
|
+
? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0][\\"@list\\"]
|
|
53150
|
+
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array
|
|
53151
|
+
) {
|
|
53152
|
+
if (v == null) continue;
|
|
53153
|
+
|
|
53154
|
+
const decoded = v[\\"@value\\"];
|
|
53155
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
53156
|
+
_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.push(decoded);
|
|
53157
|
+
}
|
|
53158
|
+
instance.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
52890
53159
|
|
|
52891
53160
|
if (!(\\"_fromSubclass\\" in options) || !options._fromSubclass) {
|
|
52892
53161
|
try {
|
|
@@ -52955,6 +53224,26 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52955
53224
|
proxy.height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height[0];
|
|
52956
53225
|
}
|
|
52957
53226
|
|
|
53227
|
+
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase
|
|
53228
|
+
// deno-lint-ignore no-explicit-any
|
|
53229
|
+
.map((v: any) => v instanceof URL
|
|
53230
|
+
? {
|
|
53231
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
53232
|
+
inspect: typeof Deno.inspect,
|
|
53233
|
+
options: Deno.InspectOptions,
|
|
53234
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
53235
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
53236
|
+
_depth: number,
|
|
53237
|
+
options: unknown,
|
|
53238
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
53239
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
53240
|
+
}
|
|
53241
|
+
: v);
|
|
53242
|
+
|
|
53243
|
+
if (_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length == 1) {
|
|
53244
|
+
proxy.digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
53245
|
+
}
|
|
53246
|
+
|
|
52958
53247
|
return proxy;
|
|
52959
53248
|
}
|
|
52960
53249
|
}
|
|
@@ -53018,7 +53307,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
53018
53307
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
53019
53308
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
53020
53309
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
53021
|
-
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;}
|
|
53310
|
+
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;digestMultibase?: string | null;}
|
|
53022
53311
|
,
|
|
53023
53312
|
options: {
|
|
53024
53313
|
documentLoader?: DocumentLoader,
|
|
@@ -53054,7 +53343,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
53054
53343
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
53055
53344
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
53056
53345
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
53057
|
-
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;}
|
|
53346
|
+
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;digestMultibase?: string | null;}
|
|
53058
53347
|
|
|
53059
53348
|
= {},
|
|
53060
53349
|
options: {
|
|
@@ -53116,7 +53405,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
53116
53405
|
|
|
53117
53406
|
result[\\"type\\"] = \\"Audio\\";
|
|
53118
53407
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
53119
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
53408
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
53120
53409
|
return result;
|
|
53121
53410
|
}
|
|
53122
53411
|
|
|
@@ -53142,7 +53431,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
53142
53431
|
);
|
|
53143
53432
|
}
|
|
53144
53433
|
const docContext = options.context ??
|
|
53145
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
53434
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
53146
53435
|
const compacted = await jsonld.compact(
|
|
53147
53436
|
values,
|
|
53148
53437
|
docContext,
|
|
@@ -58825,7 +59114,8 @@ export class Group extends Object {
|
|
|
58825
59114
|
|
|
58826
59115
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
58827
59116
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
58828
|
-
#
|
|
59117
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
59118
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
58829
59119
|
|
|
58830
59120
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
58831
59121
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -58898,7 +59188,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
58898
59188
|
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;
|
|
58899
59189
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
58900
59190
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
58901
|
-
assertionMethods?: (Multikey | URL)[];
|
|
59191
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
59192
|
+
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;
|
|
58902
59193
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
58903
59194
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
58904
59195
|
,
|
|
@@ -59025,6 +59316,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
59025
59316
|
}
|
|
59026
59317
|
}
|
|
59027
59318
|
|
|
59319
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
59320
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
59321
|
+
// @ts-ignore: type is checked above.
|
|
59322
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
59323
|
+
|
|
59324
|
+
} else {
|
|
59325
|
+
throw new TypeError(
|
|
59326
|
+
\\"The gateway must be of type \\" +
|
|
59327
|
+
\\"URL\\" + \\".\\",
|
|
59328
|
+
);
|
|
59329
|
+
}
|
|
59330
|
+
}
|
|
59331
|
+
|
|
59332
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
59333
|
+
|
|
59334
|
+
if (\\"gateway\\" in values &&
|
|
59335
|
+
values.gateway != null) {
|
|
59336
|
+
throw new TypeError(
|
|
59337
|
+
\\"Cannot initialize both gateway and \\" +
|
|
59338
|
+
\\"gateways at the same time.\\",
|
|
59339
|
+
);
|
|
59340
|
+
}
|
|
59341
|
+
|
|
59342
|
+
if (Array.isArray(values.gateways) &&
|
|
59343
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
59344
|
+
// @ts-ignore: type is checked above.
|
|
59345
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
59346
|
+
|
|
59347
|
+
} else {
|
|
59348
|
+
throw new TypeError(
|
|
59349
|
+
\\"The gateways must be an array of type \\" +
|
|
59350
|
+
\\"URL\\" + \\".\\",
|
|
59351
|
+
);
|
|
59352
|
+
}
|
|
59353
|
+
}
|
|
59354
|
+
|
|
59028
59355
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
59029
59356
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
59030
59357
|
// @ts-ignore: type is checked above.
|
|
@@ -59375,7 +59702,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
59375
59702
|
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;
|
|
59376
59703
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
59377
59704
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
59378
|
-
assertionMethods?: (Multikey | URL)[];
|
|
59705
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
59706
|
+
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;
|
|
59379
59707
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
59380
59708
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
59381
59709
|
|
|
@@ -59511,6 +59839,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
59511
59839
|
);
|
|
59512
59840
|
}
|
|
59513
59841
|
}
|
|
59842
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
59843
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
59844
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
59845
|
+
// @ts-ignore: type is checked above.
|
|
59846
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
59847
|
+
|
|
59848
|
+
} else {
|
|
59849
|
+
throw new TypeError(
|
|
59850
|
+
\\"The gateway must be of type \\" +
|
|
59851
|
+
\\"URL\\" + \\".\\",
|
|
59852
|
+
);
|
|
59853
|
+
}
|
|
59854
|
+
}
|
|
59855
|
+
|
|
59856
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
59857
|
+
|
|
59858
|
+
if (\\"gateway\\" in values &&
|
|
59859
|
+
values.gateway != null) {
|
|
59860
|
+
throw new TypeError(
|
|
59861
|
+
\\"Cannot update both gateway and \\" +
|
|
59862
|
+
\\"gateways at the same time.\\",
|
|
59863
|
+
);
|
|
59864
|
+
}
|
|
59865
|
+
|
|
59866
|
+
if (Array.isArray(values.gateways) &&
|
|
59867
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
59868
|
+
// @ts-ignore: type is checked above.
|
|
59869
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
59870
|
+
|
|
59871
|
+
} else {
|
|
59872
|
+
throw new TypeError(
|
|
59873
|
+
\\"The gateways must be an array of type \\" +
|
|
59874
|
+
\\"URL\\" + \\".\\",
|
|
59875
|
+
);
|
|
59876
|
+
}
|
|
59877
|
+
}
|
|
59514
59878
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
59515
59879
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
59516
59880
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
@@ -60533,6 +60897,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
60533
60897
|
}
|
|
60534
60898
|
}
|
|
60535
60899
|
|
|
60900
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
60901
|
+
* retrieved.
|
|
60902
|
+
*
|
|
60903
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
60904
|
+
*
|
|
60905
|
+
*/
|
|
60906
|
+
get gateway(): (URL | null) {
|
|
60907
|
+
if (this._warning != null) {
|
|
60908
|
+
getLogger(this._warning.category).warn(
|
|
60909
|
+
this._warning.message,
|
|
60910
|
+
this._warning.values
|
|
60911
|
+
);
|
|
60912
|
+
}
|
|
60913
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
60914
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
60915
|
+
}
|
|
60916
|
+
|
|
60917
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
60918
|
+
* retrieved.
|
|
60919
|
+
*
|
|
60920
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
60921
|
+
*
|
|
60922
|
+
*/
|
|
60923
|
+
get gateways(): (URL)[] {
|
|
60924
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
60925
|
+
}
|
|
60926
|
+
|
|
60536
60927
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
60537
60928
|
* automatically approved, but instead are examined by a person who may accept
|
|
60538
60929
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -63841,6 +64232,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
63841
64232
|
|
|
63842
64233
|
}
|
|
63843
64234
|
|
|
64235
|
+
compactItems = [];
|
|
64236
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
64237
|
+
const item = (
|
|
64238
|
+
formatIri(v)
|
|
64239
|
+
);
|
|
64240
|
+
compactItems.push(item);
|
|
64241
|
+
}
|
|
64242
|
+
if (compactItems.length > 0) {
|
|
64243
|
+
|
|
64244
|
+
result[\\"gateways\\"] = compactItems;
|
|
64245
|
+
|
|
64246
|
+
}
|
|
64247
|
+
|
|
63844
64248
|
compactItems = [];
|
|
63845
64249
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
63846
64250
|
const item = (
|
|
@@ -64255,7 +64659,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64255
64659
|
|
|
64256
64660
|
result[\\"type\\"] = \\"Group\\";
|
|
64257
64661
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
64258
|
-
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\\"}];
|
|
64662
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"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\\"}];
|
|
64259
64663
|
return result;
|
|
64260
64664
|
}
|
|
64261
64665
|
|
|
@@ -64320,6 +64724,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64320
64724
|
|
|
64321
64725
|
}
|
|
64322
64726
|
|
|
64727
|
+
array = [];
|
|
64728
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
64729
|
+
const element = (
|
|
64730
|
+
{ \\"@id\\": formatIri(v) }
|
|
64731
|
+
);
|
|
64732
|
+
array.push(element);;
|
|
64733
|
+
}
|
|
64734
|
+
if (array.length > 0) {
|
|
64735
|
+
const propValue = (
|
|
64736
|
+
{ \\"@list\\": array }
|
|
64737
|
+
);
|
|
64738
|
+
values[\\"https://w3id.org/fep/ef61/gateways\\"] = propValue;
|
|
64739
|
+
|
|
64740
|
+
}
|
|
64741
|
+
|
|
64323
64742
|
array = [];
|
|
64324
64743
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
64325
64744
|
const element = (
|
|
@@ -64629,7 +65048,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64629
65048
|
);
|
|
64630
65049
|
}
|
|
64631
65050
|
const docContext = options.context ??
|
|
64632
|
-
[\\"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\\"}];
|
|
65051
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"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\\"}];
|
|
64633
65052
|
const compacted = await jsonld.compact(
|
|
64634
65053
|
values,
|
|
64635
65054
|
docContext,
|
|
@@ -64871,6 +65290,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64871
65290
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
64872
65291
|
}
|
|
64873
65292
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
65293
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
65294
|
+
|
|
65295
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values[\\"https://w3id.org/fep/ef61/gateways\\"];
|
|
65296
|
+
|
|
65297
|
+
for (
|
|
65298
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
65299
|
+
? []
|
|
65300
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && \\"@list\\" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
65301
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0][\\"@list\\"]
|
|
65302
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
65303
|
+
) {
|
|
65304
|
+
if (v == null) continue;
|
|
65305
|
+
|
|
65306
|
+
const decoded = parseGatewayUrl(typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]);
|
|
65307
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
65308
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
65309
|
+
}
|
|
65310
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
64874
65311
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
64875
65312
|
|
|
64876
65313
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values[\\"https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers\\"];
|
|
@@ -65542,6 +65979,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
65542
65979
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
65543
65980
|
}
|
|
65544
65981
|
|
|
65982
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
65983
|
+
// deno-lint-ignore no-explicit-any
|
|
65984
|
+
.map((v: any) => v instanceof URL
|
|
65985
|
+
? {
|
|
65986
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
65987
|
+
inspect: typeof Deno.inspect,
|
|
65988
|
+
options: Deno.InspectOptions,
|
|
65989
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
65990
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
65991
|
+
_depth: number,
|
|
65992
|
+
options: unknown,
|
|
65993
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
65994
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
65995
|
+
}
|
|
65996
|
+
: v);
|
|
65997
|
+
|
|
65998
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
65999
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
66000
|
+
}
|
|
66001
|
+
|
|
66002
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
66003
|
+
|| !(\\"gateway\\" in proxy)
|
|
66004
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
66005
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
66006
|
+
}
|
|
66007
|
+
|
|
65545
66008
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
65546
66009
|
// deno-lint-ignore no-explicit-any
|
|
65547
66010
|
.map((v: any) => v instanceof URL
|
|
@@ -66048,6 +66511,7 @@ export class Link {
|
|
|
66048
66511
|
#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href: (URL)[] = [];
|
|
66049
66512
|
#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel: (string)[] = [];
|
|
66050
66513
|
#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType: (string)[] = [];
|
|
66514
|
+
#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
66051
66515
|
#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = [];
|
|
66052
66516
|
#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang: (Intl.Locale)[] = [];
|
|
66053
66517
|
#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height: (number)[] = [];
|
|
@@ -66066,7 +66530,7 @@ export class Link {
|
|
|
66066
66530
|
{
|
|
66067
66531
|
id?: URL | null;
|
|
66068
66532
|
href?: URL | null;rel?: string | null;
|
|
66069
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
66533
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
66070
66534
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
66071
66535
|
,
|
|
66072
66536
|
options: {
|
|
@@ -66156,6 +66620,19 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
66156
66620
|
}
|
|
66157
66621
|
}
|
|
66158
66622
|
|
|
66623
|
+
if (\\"digestMultibase\\" in values && values.digestMultibase != null) {
|
|
66624
|
+
if (typeof values.digestMultibase === \\"string\\") {
|
|
66625
|
+
// @ts-ignore: type is checked above.
|
|
66626
|
+
this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
66627
|
+
|
|
66628
|
+
} else {
|
|
66629
|
+
throw new TypeError(
|
|
66630
|
+
\\"The digestMultibase must be of type \\" +
|
|
66631
|
+
\\"string\\" + \\".\\",
|
|
66632
|
+
);
|
|
66633
|
+
}
|
|
66634
|
+
}
|
|
66635
|
+
|
|
66159
66636
|
if (\\"name\\" in values && values.name != null) {
|
|
66160
66637
|
if (typeof values.name === \\"string\\" || values.name instanceof LanguageString) {
|
|
66161
66638
|
// @ts-ignore: type is checked above.
|
|
@@ -66262,7 +66739,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
66262
66739
|
{
|
|
66263
66740
|
id?: URL | null;
|
|
66264
66741
|
href?: URL | null;rel?: string | null;
|
|
66265
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
66742
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
66266
66743
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
66267
66744
|
|
|
66268
66745
|
= {},
|
|
@@ -66347,6 +66824,19 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
66347
66824
|
);
|
|
66348
66825
|
}
|
|
66349
66826
|
}
|
|
66827
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
66828
|
+
if (\\"digestMultibase\\" in values && values.digestMultibase != null) {
|
|
66829
|
+
if (typeof values.digestMultibase === \\"string\\") {
|
|
66830
|
+
// @ts-ignore: type is checked above.
|
|
66831
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
66832
|
+
|
|
66833
|
+
} else {
|
|
66834
|
+
throw new TypeError(
|
|
66835
|
+
\\"The digestMultibase must be of type \\" +
|
|
66836
|
+
\\"string\\" + \\".\\",
|
|
66837
|
+
);
|
|
66838
|
+
}
|
|
66839
|
+
}
|
|
66350
66840
|
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
66351
66841
|
if (\\"name\\" in values && values.name != null) {
|
|
66352
66842
|
if (typeof values.name === \\"string\\" || values.name instanceof LanguageString) {
|
|
@@ -66505,6 +66995,22 @@ get rels(): (string)[] {
|
|
|
66505
66995
|
return this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType[0];
|
|
66506
66996
|
}
|
|
66507
66997
|
|
|
66998
|
+
/** The multibase-encoded integrity digest of the linked resource.
|
|
66999
|
+
*
|
|
67000
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
67001
|
+
*
|
|
67002
|
+
*/
|
|
67003
|
+
get digestMultibase(): (string | null) {
|
|
67004
|
+
if (this._warning != null) {
|
|
67005
|
+
getLogger(this._warning.category).warn(
|
|
67006
|
+
this._warning.message,
|
|
67007
|
+
this._warning.values
|
|
67008
|
+
);
|
|
67009
|
+
}
|
|
67010
|
+
if (this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length < 1) return null;
|
|
67011
|
+
return this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
67012
|
+
}
|
|
67013
|
+
|
|
66508
67014
|
/** A simple, human-readable, plain-text name for the object. HTML markup MUST
|
|
66509
67015
|
* NOT be included. The name MAY be expressed using multiple language-tagged
|
|
66510
67016
|
* values.
|
|
@@ -66894,6 +67400,22 @@ get names(): ((string | LanguageString))[] {
|
|
|
66894
67400
|
|
|
66895
67401
|
}
|
|
66896
67402
|
|
|
67403
|
+
compactItems = [];
|
|
67404
|
+
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
67405
|
+
const item = (
|
|
67406
|
+
v
|
|
67407
|
+
);
|
|
67408
|
+
compactItems.push(item);
|
|
67409
|
+
}
|
|
67410
|
+
if (compactItems.length > 0) {
|
|
67411
|
+
|
|
67412
|
+
result[\\"digestMultibase\\"]
|
|
67413
|
+
= compactItems.length > 1
|
|
67414
|
+
? compactItems
|
|
67415
|
+
: compactItems[0];
|
|
67416
|
+
|
|
67417
|
+
}
|
|
67418
|
+
|
|
66897
67419
|
compactItems = [];
|
|
66898
67420
|
for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name) {
|
|
66899
67421
|
const item = (
|
|
@@ -66987,7 +67509,7 @@ get names(): ((string | LanguageString))[] {
|
|
|
66987
67509
|
|
|
66988
67510
|
result[\\"type\\"] = \\"Link\\";
|
|
66989
67511
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
66990
|
-
result[\\"@context\\"] = \\"https://www.w3.org/ns/activitystreams\\";
|
|
67512
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\"];
|
|
66991
67513
|
return result;
|
|
66992
67514
|
}
|
|
66993
67515
|
|
|
@@ -67039,6 +67561,21 @@ get names(): ((string | LanguageString))[] {
|
|
|
67039
67561
|
|
|
67040
67562
|
}
|
|
67041
67563
|
|
|
67564
|
+
array = [];
|
|
67565
|
+
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
67566
|
+
const element = (
|
|
67567
|
+
{ \\"@value\\": v }
|
|
67568
|
+
);
|
|
67569
|
+
array.push(element);;
|
|
67570
|
+
}
|
|
67571
|
+
if (array.length > 0) {
|
|
67572
|
+
const propValue = (
|
|
67573
|
+
array
|
|
67574
|
+
);
|
|
67575
|
+
values[\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"] = propValue;
|
|
67576
|
+
|
|
67577
|
+
}
|
|
67578
|
+
|
|
67042
67579
|
array = [];
|
|
67043
67580
|
for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name) {
|
|
67044
67581
|
const element = (
|
|
@@ -67132,7 +67669,7 @@ get names(): ((string | LanguageString))[] {
|
|
|
67132
67669
|
);
|
|
67133
67670
|
}
|
|
67134
67671
|
const docContext = options.context ??
|
|
67135
|
-
\\"https://www.w3.org/ns/activitystreams\\";
|
|
67672
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\"];
|
|
67136
67673
|
const compacted = await jsonld.compact(
|
|
67137
67674
|
values,
|
|
67138
67675
|
docContext,
|
|
@@ -67333,6 +67870,24 @@ get names(): ((string | LanguageString))[] {
|
|
|
67333
67870
|
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
67334
67871
|
}
|
|
67335
67872
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
67873
|
+
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
67874
|
+
|
|
67875
|
+
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values[\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"];
|
|
67876
|
+
|
|
67877
|
+
for (
|
|
67878
|
+
const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null
|
|
67879
|
+
? []
|
|
67880
|
+
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && \\"@list\\" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]
|
|
67881
|
+
? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0][\\"@list\\"]
|
|
67882
|
+
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array
|
|
67883
|
+
) {
|
|
67884
|
+
if (v == null) continue;
|
|
67885
|
+
|
|
67886
|
+
const decoded = v[\\"@value\\"];
|
|
67887
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
67888
|
+
_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.push(decoded);
|
|
67889
|
+
}
|
|
67890
|
+
instance.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
67336
67891
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = [];
|
|
67337
67892
|
|
|
67338
67893
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values[\\"https://www.w3.org/ns/activitystreams#name\\"];
|
|
@@ -67560,6 +68115,26 @@ get names(): ((string | LanguageString))[] {
|
|
|
67560
68115
|
proxy.mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType[0];
|
|
67561
68116
|
}
|
|
67562
68117
|
|
|
68118
|
+
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase
|
|
68119
|
+
// deno-lint-ignore no-explicit-any
|
|
68120
|
+
.map((v: any) => v instanceof URL
|
|
68121
|
+
? {
|
|
68122
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
68123
|
+
inspect: typeof Deno.inspect,
|
|
68124
|
+
options: Deno.InspectOptions,
|
|
68125
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
68126
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
68127
|
+
_depth: number,
|
|
68128
|
+
options: unknown,
|
|
68129
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
68130
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
68131
|
+
}
|
|
68132
|
+
: v);
|
|
68133
|
+
|
|
68134
|
+
if (_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length == 1) {
|
|
68135
|
+
proxy.digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
68136
|
+
}
|
|
68137
|
+
|
|
67563
68138
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name
|
|
67564
68139
|
// deno-lint-ignore no-explicit-any
|
|
67565
68140
|
.map((v: any) => v instanceof URL
|
|
@@ -67719,7 +68294,7 @@ export class Hashtag extends Link {
|
|
|
67719
68294
|
{
|
|
67720
68295
|
id?: URL | null;
|
|
67721
68296
|
href?: URL | null;rel?: string | null;
|
|
67722
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
68297
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
67723
68298
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
67724
68299
|
,
|
|
67725
68300
|
options: {
|
|
@@ -67741,7 +68316,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
67741
68316
|
{
|
|
67742
68317
|
id?: URL | null;
|
|
67743
68318
|
href?: URL | null;rel?: string | null;
|
|
67744
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
68319
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
67745
68320
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
67746
68321
|
|
|
67747
68322
|
= {},
|
|
@@ -68058,7 +68633,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
68058
68633
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
68059
68634
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
68060
68635
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
68061
|
-
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;}
|
|
68636
|
+
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;digestMultibase?: string | null;}
|
|
68062
68637
|
,
|
|
68063
68638
|
options: {
|
|
68064
68639
|
documentLoader?: DocumentLoader,
|
|
@@ -68094,7 +68669,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
68094
68669
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
68095
68670
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
68096
68671
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
68097
|
-
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;}
|
|
68672
|
+
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;digestMultibase?: string | null;}
|
|
68098
68673
|
|
|
68099
68674
|
= {},
|
|
68100
68675
|
options: {
|
|
@@ -68156,7 +68731,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
68156
68731
|
|
|
68157
68732
|
result[\\"type\\"] = \\"Image\\";
|
|
68158
68733
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
68159
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
68734
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
68160
68735
|
return result;
|
|
68161
68736
|
}
|
|
68162
68737
|
|
|
@@ -68182,7 +68757,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
68182
68757
|
);
|
|
68183
68758
|
}
|
|
68184
68759
|
const docContext = options.context ??
|
|
68185
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
68760
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
68186
68761
|
const compacted = await jsonld.compact(
|
|
68187
68762
|
values,
|
|
68188
68763
|
docContext,
|
|
@@ -70569,7 +71144,7 @@ export class Mention extends Link {
|
|
|
70569
71144
|
{
|
|
70570
71145
|
id?: URL | null;
|
|
70571
71146
|
href?: URL | null;rel?: string | null;
|
|
70572
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
71147
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
70573
71148
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
70574
71149
|
,
|
|
70575
71150
|
options: {
|
|
@@ -70591,7 +71166,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
70591
71166
|
{
|
|
70592
71167
|
id?: URL | null;
|
|
70593
71168
|
href?: URL | null;rel?: string | null;
|
|
70594
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
71169
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
70595
71170
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
70596
71171
|
|
|
70597
71172
|
= {},
|
|
@@ -73300,7 +73875,8 @@ export class Organization extends Object {
|
|
|
73300
73875
|
|
|
73301
73876
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
73302
73877
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
73303
|
-
#
|
|
73878
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
73879
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
73304
73880
|
|
|
73305
73881
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
73306
73882
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -73373,7 +73949,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
73373
73949
|
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;
|
|
73374
73950
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
73375
73951
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
73376
|
-
assertionMethods?: (Multikey | URL)[];
|
|
73952
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
73953
|
+
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;
|
|
73377
73954
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
73378
73955
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
73379
73956
|
,
|
|
@@ -73500,6 +74077,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
73500
74077
|
}
|
|
73501
74078
|
}
|
|
73502
74079
|
|
|
74080
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
74081
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
74082
|
+
// @ts-ignore: type is checked above.
|
|
74083
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
74084
|
+
|
|
74085
|
+
} else {
|
|
74086
|
+
throw new TypeError(
|
|
74087
|
+
\\"The gateway must be of type \\" +
|
|
74088
|
+
\\"URL\\" + \\".\\",
|
|
74089
|
+
);
|
|
74090
|
+
}
|
|
74091
|
+
}
|
|
74092
|
+
|
|
74093
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
74094
|
+
|
|
74095
|
+
if (\\"gateway\\" in values &&
|
|
74096
|
+
values.gateway != null) {
|
|
74097
|
+
throw new TypeError(
|
|
74098
|
+
\\"Cannot initialize both gateway and \\" +
|
|
74099
|
+
\\"gateways at the same time.\\",
|
|
74100
|
+
);
|
|
74101
|
+
}
|
|
74102
|
+
|
|
74103
|
+
if (Array.isArray(values.gateways) &&
|
|
74104
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
74105
|
+
// @ts-ignore: type is checked above.
|
|
74106
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
74107
|
+
|
|
74108
|
+
} else {
|
|
74109
|
+
throw new TypeError(
|
|
74110
|
+
\\"The gateways must be an array of type \\" +
|
|
74111
|
+
\\"URL\\" + \\".\\",
|
|
74112
|
+
);
|
|
74113
|
+
}
|
|
74114
|
+
}
|
|
74115
|
+
|
|
73503
74116
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
73504
74117
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
73505
74118
|
// @ts-ignore: type is checked above.
|
|
@@ -73850,7 +74463,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
73850
74463
|
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;
|
|
73851
74464
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
73852
74465
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
73853
|
-
assertionMethods?: (Multikey | URL)[];
|
|
74466
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
74467
|
+
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;
|
|
73854
74468
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
73855
74469
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
73856
74470
|
|
|
@@ -73986,6 +74600,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
73986
74600
|
);
|
|
73987
74601
|
}
|
|
73988
74602
|
}
|
|
74603
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
74604
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
74605
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
74606
|
+
// @ts-ignore: type is checked above.
|
|
74607
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
74608
|
+
|
|
74609
|
+
} else {
|
|
74610
|
+
throw new TypeError(
|
|
74611
|
+
\\"The gateway must be of type \\" +
|
|
74612
|
+
\\"URL\\" + \\".\\",
|
|
74613
|
+
);
|
|
74614
|
+
}
|
|
74615
|
+
}
|
|
74616
|
+
|
|
74617
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
74618
|
+
|
|
74619
|
+
if (\\"gateway\\" in values &&
|
|
74620
|
+
values.gateway != null) {
|
|
74621
|
+
throw new TypeError(
|
|
74622
|
+
\\"Cannot update both gateway and \\" +
|
|
74623
|
+
\\"gateways at the same time.\\",
|
|
74624
|
+
);
|
|
74625
|
+
}
|
|
74626
|
+
|
|
74627
|
+
if (Array.isArray(values.gateways) &&
|
|
74628
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
74629
|
+
// @ts-ignore: type is checked above.
|
|
74630
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
74631
|
+
|
|
74632
|
+
} else {
|
|
74633
|
+
throw new TypeError(
|
|
74634
|
+
\\"The gateways must be an array of type \\" +
|
|
74635
|
+
\\"URL\\" + \\".\\",
|
|
74636
|
+
);
|
|
74637
|
+
}
|
|
74638
|
+
}
|
|
73989
74639
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
73990
74640
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
73991
74641
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
@@ -75008,6 +75658,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
75008
75658
|
}
|
|
75009
75659
|
}
|
|
75010
75660
|
|
|
75661
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
75662
|
+
* retrieved.
|
|
75663
|
+
*
|
|
75664
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
75665
|
+
*
|
|
75666
|
+
*/
|
|
75667
|
+
get gateway(): (URL | null) {
|
|
75668
|
+
if (this._warning != null) {
|
|
75669
|
+
getLogger(this._warning.category).warn(
|
|
75670
|
+
this._warning.message,
|
|
75671
|
+
this._warning.values
|
|
75672
|
+
);
|
|
75673
|
+
}
|
|
75674
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
75675
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
75676
|
+
}
|
|
75677
|
+
|
|
75678
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
75679
|
+
* retrieved.
|
|
75680
|
+
*
|
|
75681
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
75682
|
+
*
|
|
75683
|
+
*/
|
|
75684
|
+
get gateways(): (URL)[] {
|
|
75685
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
75686
|
+
}
|
|
75687
|
+
|
|
75011
75688
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
75012
75689
|
* automatically approved, but instead are examined by a person who may accept
|
|
75013
75690
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -78316,6 +78993,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
78316
78993
|
|
|
78317
78994
|
}
|
|
78318
78995
|
|
|
78996
|
+
compactItems = [];
|
|
78997
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
78998
|
+
const item = (
|
|
78999
|
+
formatIri(v)
|
|
79000
|
+
);
|
|
79001
|
+
compactItems.push(item);
|
|
79002
|
+
}
|
|
79003
|
+
if (compactItems.length > 0) {
|
|
79004
|
+
|
|
79005
|
+
result[\\"gateways\\"] = compactItems;
|
|
79006
|
+
|
|
79007
|
+
}
|
|
79008
|
+
|
|
78319
79009
|
compactItems = [];
|
|
78320
79010
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
78321
79011
|
const item = (
|
|
@@ -78730,7 +79420,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
78730
79420
|
|
|
78731
79421
|
result[\\"type\\"] = \\"Organization\\";
|
|
78732
79422
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
78733
|
-
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\\"}];
|
|
79423
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"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\\"}];
|
|
78734
79424
|
return result;
|
|
78735
79425
|
}
|
|
78736
79426
|
|
|
@@ -78795,6 +79485,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
78795
79485
|
|
|
78796
79486
|
}
|
|
78797
79487
|
|
|
79488
|
+
array = [];
|
|
79489
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
79490
|
+
const element = (
|
|
79491
|
+
{ \\"@id\\": formatIri(v) }
|
|
79492
|
+
);
|
|
79493
|
+
array.push(element);;
|
|
79494
|
+
}
|
|
79495
|
+
if (array.length > 0) {
|
|
79496
|
+
const propValue = (
|
|
79497
|
+
{ \\"@list\\": array }
|
|
79498
|
+
);
|
|
79499
|
+
values[\\"https://w3id.org/fep/ef61/gateways\\"] = propValue;
|
|
79500
|
+
|
|
79501
|
+
}
|
|
79502
|
+
|
|
78798
79503
|
array = [];
|
|
78799
79504
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
78800
79505
|
const element = (
|
|
@@ -79104,7 +79809,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
79104
79809
|
);
|
|
79105
79810
|
}
|
|
79106
79811
|
const docContext = options.context ??
|
|
79107
|
-
[\\"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\\"}];
|
|
79812
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"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\\"}];
|
|
79108
79813
|
const compacted = await jsonld.compact(
|
|
79109
79814
|
values,
|
|
79110
79815
|
docContext,
|
|
@@ -79346,6 +80051,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
79346
80051
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
79347
80052
|
}
|
|
79348
80053
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
80054
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
80055
|
+
|
|
80056
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values[\\"https://w3id.org/fep/ef61/gateways\\"];
|
|
80057
|
+
|
|
80058
|
+
for (
|
|
80059
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
80060
|
+
? []
|
|
80061
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && \\"@list\\" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
80062
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0][\\"@list\\"]
|
|
80063
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
80064
|
+
) {
|
|
80065
|
+
if (v == null) continue;
|
|
80066
|
+
|
|
80067
|
+
const decoded = parseGatewayUrl(typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]);
|
|
80068
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
80069
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
80070
|
+
}
|
|
80071
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
79349
80072
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
79350
80073
|
|
|
79351
80074
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values[\\"https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers\\"];
|
|
@@ -80017,6 +80740,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
80017
80740
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
80018
80741
|
}
|
|
80019
80742
|
|
|
80743
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
80744
|
+
// deno-lint-ignore no-explicit-any
|
|
80745
|
+
.map((v: any) => v instanceof URL
|
|
80746
|
+
? {
|
|
80747
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
80748
|
+
inspect: typeof Deno.inspect,
|
|
80749
|
+
options: Deno.InspectOptions,
|
|
80750
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
80751
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
80752
|
+
_depth: number,
|
|
80753
|
+
options: unknown,
|
|
80754
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
80755
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
80756
|
+
}
|
|
80757
|
+
: v);
|
|
80758
|
+
|
|
80759
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
80760
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
80761
|
+
}
|
|
80762
|
+
|
|
80763
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
80764
|
+
|| !(\\"gateway\\" in proxy)
|
|
80765
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
80766
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
80767
|
+
}
|
|
80768
|
+
|
|
80020
80769
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
80021
80770
|
// deno-lint-ignore no-explicit-any
|
|
80022
80771
|
.map((v: any) => v instanceof URL
|
|
@@ -80494,7 +81243,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
80494
81243
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
80495
81244
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
80496
81245
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
80497
|
-
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;}
|
|
81246
|
+
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;digestMultibase?: string | null;}
|
|
80498
81247
|
,
|
|
80499
81248
|
options: {
|
|
80500
81249
|
documentLoader?: DocumentLoader,
|
|
@@ -80530,7 +81279,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
80530
81279
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
80531
81280
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
80532
81281
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
80533
|
-
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;}
|
|
81282
|
+
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;digestMultibase?: string | null;}
|
|
80534
81283
|
|
|
80535
81284
|
= {},
|
|
80536
81285
|
options: {
|
|
@@ -80592,7 +81341,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
80592
81341
|
|
|
80593
81342
|
result[\\"type\\"] = \\"Page\\";
|
|
80594
81343
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
80595
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
81344
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
80596
81345
|
return result;
|
|
80597
81346
|
}
|
|
80598
81347
|
|
|
@@ -80618,7 +81367,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
80618
81367
|
);
|
|
80619
81368
|
}
|
|
80620
81369
|
const docContext = options.context ??
|
|
80621
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
81370
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
80622
81371
|
const compacted = await jsonld.compact(
|
|
80623
81372
|
values,
|
|
80624
81373
|
docContext,
|
|
@@ -80838,7 +81587,8 @@ export class Person extends Object {
|
|
|
80838
81587
|
|
|
80839
81588
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
80840
81589
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
80841
|
-
#
|
|
81590
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
81591
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
80842
81592
|
|
|
80843
81593
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
80844
81594
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -80911,7 +81661,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
80911
81661
|
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;
|
|
80912
81662
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
80913
81663
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
80914
|
-
assertionMethods?: (Multikey | URL)[];
|
|
81664
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
81665
|
+
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;
|
|
80915
81666
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
80916
81667
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
80917
81668
|
,
|
|
@@ -81038,6 +81789,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
81038
81789
|
}
|
|
81039
81790
|
}
|
|
81040
81791
|
|
|
81792
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
81793
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
81794
|
+
// @ts-ignore: type is checked above.
|
|
81795
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
81796
|
+
|
|
81797
|
+
} else {
|
|
81798
|
+
throw new TypeError(
|
|
81799
|
+
\\"The gateway must be of type \\" +
|
|
81800
|
+
\\"URL\\" + \\".\\",
|
|
81801
|
+
);
|
|
81802
|
+
}
|
|
81803
|
+
}
|
|
81804
|
+
|
|
81805
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
81806
|
+
|
|
81807
|
+
if (\\"gateway\\" in values &&
|
|
81808
|
+
values.gateway != null) {
|
|
81809
|
+
throw new TypeError(
|
|
81810
|
+
\\"Cannot initialize both gateway and \\" +
|
|
81811
|
+
\\"gateways at the same time.\\",
|
|
81812
|
+
);
|
|
81813
|
+
}
|
|
81814
|
+
|
|
81815
|
+
if (Array.isArray(values.gateways) &&
|
|
81816
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
81817
|
+
// @ts-ignore: type is checked above.
|
|
81818
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
81819
|
+
|
|
81820
|
+
} else {
|
|
81821
|
+
throw new TypeError(
|
|
81822
|
+
\\"The gateways must be an array of type \\" +
|
|
81823
|
+
\\"URL\\" + \\".\\",
|
|
81824
|
+
);
|
|
81825
|
+
}
|
|
81826
|
+
}
|
|
81827
|
+
|
|
81041
81828
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
81042
81829
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
81043
81830
|
// @ts-ignore: type is checked above.
|
|
@@ -81388,7 +82175,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
81388
82175
|
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;
|
|
81389
82176
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
81390
82177
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
81391
|
-
assertionMethods?: (Multikey | URL)[];
|
|
82178
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
82179
|
+
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;
|
|
81392
82180
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
81393
82181
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
81394
82182
|
|
|
@@ -81524,6 +82312,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
81524
82312
|
);
|
|
81525
82313
|
}
|
|
81526
82314
|
}
|
|
82315
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
82316
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
82317
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
82318
|
+
// @ts-ignore: type is checked above.
|
|
82319
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
82320
|
+
|
|
82321
|
+
} else {
|
|
82322
|
+
throw new TypeError(
|
|
82323
|
+
\\"The gateway must be of type \\" +
|
|
82324
|
+
\\"URL\\" + \\".\\",
|
|
82325
|
+
);
|
|
82326
|
+
}
|
|
82327
|
+
}
|
|
82328
|
+
|
|
82329
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
82330
|
+
|
|
82331
|
+
if (\\"gateway\\" in values &&
|
|
82332
|
+
values.gateway != null) {
|
|
82333
|
+
throw new TypeError(
|
|
82334
|
+
\\"Cannot update both gateway and \\" +
|
|
82335
|
+
\\"gateways at the same time.\\",
|
|
82336
|
+
);
|
|
82337
|
+
}
|
|
82338
|
+
|
|
82339
|
+
if (Array.isArray(values.gateways) &&
|
|
82340
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
82341
|
+
// @ts-ignore: type is checked above.
|
|
82342
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
82343
|
+
|
|
82344
|
+
} else {
|
|
82345
|
+
throw new TypeError(
|
|
82346
|
+
\\"The gateways must be an array of type \\" +
|
|
82347
|
+
\\"URL\\" + \\".\\",
|
|
82348
|
+
);
|
|
82349
|
+
}
|
|
82350
|
+
}
|
|
81527
82351
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
81528
82352
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
81529
82353
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
@@ -82546,6 +83370,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
82546
83370
|
}
|
|
82547
83371
|
}
|
|
82548
83372
|
|
|
83373
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
83374
|
+
* retrieved.
|
|
83375
|
+
*
|
|
83376
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
83377
|
+
*
|
|
83378
|
+
*/
|
|
83379
|
+
get gateway(): (URL | null) {
|
|
83380
|
+
if (this._warning != null) {
|
|
83381
|
+
getLogger(this._warning.category).warn(
|
|
83382
|
+
this._warning.message,
|
|
83383
|
+
this._warning.values
|
|
83384
|
+
);
|
|
83385
|
+
}
|
|
83386
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
83387
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
83388
|
+
}
|
|
83389
|
+
|
|
83390
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
83391
|
+
* retrieved.
|
|
83392
|
+
*
|
|
83393
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
83394
|
+
*
|
|
83395
|
+
*/
|
|
83396
|
+
get gateways(): (URL)[] {
|
|
83397
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
83398
|
+
}
|
|
83399
|
+
|
|
82549
83400
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
82550
83401
|
* automatically approved, but instead are examined by a person who may accept
|
|
82551
83402
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -85854,6 +86705,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
85854
86705
|
|
|
85855
86706
|
}
|
|
85856
86707
|
|
|
86708
|
+
compactItems = [];
|
|
86709
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
86710
|
+
const item = (
|
|
86711
|
+
formatIri(v)
|
|
86712
|
+
);
|
|
86713
|
+
compactItems.push(item);
|
|
86714
|
+
}
|
|
86715
|
+
if (compactItems.length > 0) {
|
|
86716
|
+
|
|
86717
|
+
result[\\"gateways\\"] = compactItems;
|
|
86718
|
+
|
|
86719
|
+
}
|
|
86720
|
+
|
|
85857
86721
|
compactItems = [];
|
|
85858
86722
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
85859
86723
|
const item = (
|
|
@@ -86268,7 +87132,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
86268
87132
|
|
|
86269
87133
|
result[\\"type\\"] = \\"Person\\";
|
|
86270
87134
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
86271
|
-
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\\"}];
|
|
87135
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"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\\"}];
|
|
86272
87136
|
return result;
|
|
86273
87137
|
}
|
|
86274
87138
|
|
|
@@ -86333,6 +87197,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
86333
87197
|
|
|
86334
87198
|
}
|
|
86335
87199
|
|
|
87200
|
+
array = [];
|
|
87201
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
87202
|
+
const element = (
|
|
87203
|
+
{ \\"@id\\": formatIri(v) }
|
|
87204
|
+
);
|
|
87205
|
+
array.push(element);;
|
|
87206
|
+
}
|
|
87207
|
+
if (array.length > 0) {
|
|
87208
|
+
const propValue = (
|
|
87209
|
+
{ \\"@list\\": array }
|
|
87210
|
+
);
|
|
87211
|
+
values[\\"https://w3id.org/fep/ef61/gateways\\"] = propValue;
|
|
87212
|
+
|
|
87213
|
+
}
|
|
87214
|
+
|
|
86336
87215
|
array = [];
|
|
86337
87216
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
86338
87217
|
const element = (
|
|
@@ -86642,7 +87521,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
86642
87521
|
);
|
|
86643
87522
|
}
|
|
86644
87523
|
const docContext = options.context ??
|
|
86645
|
-
[\\"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\\"}];
|
|
87524
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"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\\"}];
|
|
86646
87525
|
const compacted = await jsonld.compact(
|
|
86647
87526
|
values,
|
|
86648
87527
|
docContext,
|
|
@@ -86884,6 +87763,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
86884
87763
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
86885
87764
|
}
|
|
86886
87765
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
87766
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
87767
|
+
|
|
87768
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values[\\"https://w3id.org/fep/ef61/gateways\\"];
|
|
87769
|
+
|
|
87770
|
+
for (
|
|
87771
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
87772
|
+
? []
|
|
87773
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && \\"@list\\" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
87774
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0][\\"@list\\"]
|
|
87775
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
87776
|
+
) {
|
|
87777
|
+
if (v == null) continue;
|
|
87778
|
+
|
|
87779
|
+
const decoded = parseGatewayUrl(typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]);
|
|
87780
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
87781
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
87782
|
+
}
|
|
87783
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
86887
87784
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
86888
87785
|
|
|
86889
87786
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values[\\"https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers\\"];
|
|
@@ -87555,6 +88452,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
87555
88452
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
87556
88453
|
}
|
|
87557
88454
|
|
|
88455
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
88456
|
+
// deno-lint-ignore no-explicit-any
|
|
88457
|
+
.map((v: any) => v instanceof URL
|
|
88458
|
+
? {
|
|
88459
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
88460
|
+
inspect: typeof Deno.inspect,
|
|
88461
|
+
options: Deno.InspectOptions,
|
|
88462
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
88463
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
88464
|
+
_depth: number,
|
|
88465
|
+
options: unknown,
|
|
88466
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
88467
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
88468
|
+
}
|
|
88469
|
+
: v);
|
|
88470
|
+
|
|
88471
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
88472
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
88473
|
+
}
|
|
88474
|
+
|
|
88475
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
88476
|
+
|| !(\\"gateway\\" in proxy)
|
|
88477
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
88478
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
88479
|
+
}
|
|
88480
|
+
|
|
87558
88481
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
87559
88482
|
// deno-lint-ignore no-explicit-any
|
|
87560
88483
|
.map((v: any) => v instanceof URL
|
|
@@ -94614,7 +95537,8 @@ export class Service extends Object {
|
|
|
94614
95537
|
|
|
94615
95538
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
94616
95539
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
94617
|
-
#
|
|
95540
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
95541
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
94618
95542
|
|
|
94619
95543
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
94620
95544
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -94687,7 +95611,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
94687
95611
|
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;
|
|
94688
95612
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
94689
95613
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
94690
|
-
assertionMethods?: (Multikey | URL)[];
|
|
95614
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
95615
|
+
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;
|
|
94691
95616
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
94692
95617
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
94693
95618
|
,
|
|
@@ -94814,6 +95739,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
94814
95739
|
}
|
|
94815
95740
|
}
|
|
94816
95741
|
|
|
95742
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
95743
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
95744
|
+
// @ts-ignore: type is checked above.
|
|
95745
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
95746
|
+
|
|
95747
|
+
} else {
|
|
95748
|
+
throw new TypeError(
|
|
95749
|
+
\\"The gateway must be of type \\" +
|
|
95750
|
+
\\"URL\\" + \\".\\",
|
|
95751
|
+
);
|
|
95752
|
+
}
|
|
95753
|
+
}
|
|
95754
|
+
|
|
95755
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
95756
|
+
|
|
95757
|
+
if (\\"gateway\\" in values &&
|
|
95758
|
+
values.gateway != null) {
|
|
95759
|
+
throw new TypeError(
|
|
95760
|
+
\\"Cannot initialize both gateway and \\" +
|
|
95761
|
+
\\"gateways at the same time.\\",
|
|
95762
|
+
);
|
|
95763
|
+
}
|
|
95764
|
+
|
|
95765
|
+
if (Array.isArray(values.gateways) &&
|
|
95766
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
95767
|
+
// @ts-ignore: type is checked above.
|
|
95768
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
95769
|
+
|
|
95770
|
+
} else {
|
|
95771
|
+
throw new TypeError(
|
|
95772
|
+
\\"The gateways must be an array of type \\" +
|
|
95773
|
+
\\"URL\\" + \\".\\",
|
|
95774
|
+
);
|
|
95775
|
+
}
|
|
95776
|
+
}
|
|
95777
|
+
|
|
94817
95778
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
94818
95779
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
94819
95780
|
// @ts-ignore: type is checked above.
|
|
@@ -95164,7 +96125,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
95164
96125
|
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;
|
|
95165
96126
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
95166
96127
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
95167
|
-
assertionMethods?: (Multikey | URL)[];
|
|
96128
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
96129
|
+
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;
|
|
95168
96130
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
95169
96131
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
95170
96132
|
|
|
@@ -95300,6 +96262,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
95300
96262
|
);
|
|
95301
96263
|
}
|
|
95302
96264
|
}
|
|
96265
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
96266
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
96267
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
96268
|
+
// @ts-ignore: type is checked above.
|
|
96269
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
96270
|
+
|
|
96271
|
+
} else {
|
|
96272
|
+
throw new TypeError(
|
|
96273
|
+
\\"The gateway must be of type \\" +
|
|
96274
|
+
\\"URL\\" + \\".\\",
|
|
96275
|
+
);
|
|
96276
|
+
}
|
|
96277
|
+
}
|
|
96278
|
+
|
|
96279
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
96280
|
+
|
|
96281
|
+
if (\\"gateway\\" in values &&
|
|
96282
|
+
values.gateway != null) {
|
|
96283
|
+
throw new TypeError(
|
|
96284
|
+
\\"Cannot update both gateway and \\" +
|
|
96285
|
+
\\"gateways at the same time.\\",
|
|
96286
|
+
);
|
|
96287
|
+
}
|
|
96288
|
+
|
|
96289
|
+
if (Array.isArray(values.gateways) &&
|
|
96290
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
96291
|
+
// @ts-ignore: type is checked above.
|
|
96292
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
96293
|
+
|
|
96294
|
+
} else {
|
|
96295
|
+
throw new TypeError(
|
|
96296
|
+
\\"The gateways must be an array of type \\" +
|
|
96297
|
+
\\"URL\\" + \\".\\",
|
|
96298
|
+
);
|
|
96299
|
+
}
|
|
96300
|
+
}
|
|
95303
96301
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
95304
96302
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
95305
96303
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
@@ -96322,6 +97320,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
96322
97320
|
}
|
|
96323
97321
|
}
|
|
96324
97322
|
|
|
97323
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
97324
|
+
* retrieved.
|
|
97325
|
+
*
|
|
97326
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
97327
|
+
*
|
|
97328
|
+
*/
|
|
97329
|
+
get gateway(): (URL | null) {
|
|
97330
|
+
if (this._warning != null) {
|
|
97331
|
+
getLogger(this._warning.category).warn(
|
|
97332
|
+
this._warning.message,
|
|
97333
|
+
this._warning.values
|
|
97334
|
+
);
|
|
97335
|
+
}
|
|
97336
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
97337
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
97338
|
+
}
|
|
97339
|
+
|
|
97340
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
97341
|
+
* retrieved.
|
|
97342
|
+
*
|
|
97343
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
97344
|
+
*
|
|
97345
|
+
*/
|
|
97346
|
+
get gateways(): (URL)[] {
|
|
97347
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
97348
|
+
}
|
|
97349
|
+
|
|
96325
97350
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
96326
97351
|
* automatically approved, but instead are examined by a person who may accept
|
|
96327
97352
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -99630,6 +100655,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
99630
100655
|
|
|
99631
100656
|
}
|
|
99632
100657
|
|
|
100658
|
+
compactItems = [];
|
|
100659
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
100660
|
+
const item = (
|
|
100661
|
+
formatIri(v)
|
|
100662
|
+
);
|
|
100663
|
+
compactItems.push(item);
|
|
100664
|
+
}
|
|
100665
|
+
if (compactItems.length > 0) {
|
|
100666
|
+
|
|
100667
|
+
result[\\"gateways\\"] = compactItems;
|
|
100668
|
+
|
|
100669
|
+
}
|
|
100670
|
+
|
|
99633
100671
|
compactItems = [];
|
|
99634
100672
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
99635
100673
|
const item = (
|
|
@@ -100044,7 +101082,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
100044
101082
|
|
|
100045
101083
|
result[\\"type\\"] = \\"Service\\";
|
|
100046
101084
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
100047
|
-
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\\"}];
|
|
101085
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"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\\"}];
|
|
100048
101086
|
return result;
|
|
100049
101087
|
}
|
|
100050
101088
|
|
|
@@ -100109,6 +101147,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
100109
101147
|
|
|
100110
101148
|
}
|
|
100111
101149
|
|
|
101150
|
+
array = [];
|
|
101151
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
101152
|
+
const element = (
|
|
101153
|
+
{ \\"@id\\": formatIri(v) }
|
|
101154
|
+
);
|
|
101155
|
+
array.push(element);;
|
|
101156
|
+
}
|
|
101157
|
+
if (array.length > 0) {
|
|
101158
|
+
const propValue = (
|
|
101159
|
+
{ \\"@list\\": array }
|
|
101160
|
+
);
|
|
101161
|
+
values[\\"https://w3id.org/fep/ef61/gateways\\"] = propValue;
|
|
101162
|
+
|
|
101163
|
+
}
|
|
101164
|
+
|
|
100112
101165
|
array = [];
|
|
100113
101166
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
100114
101167
|
const element = (
|
|
@@ -100418,7 +101471,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
100418
101471
|
);
|
|
100419
101472
|
}
|
|
100420
101473
|
const docContext = options.context ??
|
|
100421
|
-
[\\"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\\"}];
|
|
101474
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"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\\"}];
|
|
100422
101475
|
const compacted = await jsonld.compact(
|
|
100423
101476
|
values,
|
|
100424
101477
|
docContext,
|
|
@@ -100660,6 +101713,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
100660
101713
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
100661
101714
|
}
|
|
100662
101715
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
101716
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
101717
|
+
|
|
101718
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values[\\"https://w3id.org/fep/ef61/gateways\\"];
|
|
101719
|
+
|
|
101720
|
+
for (
|
|
101721
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
101722
|
+
? []
|
|
101723
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && \\"@list\\" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
101724
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0][\\"@list\\"]
|
|
101725
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
101726
|
+
) {
|
|
101727
|
+
if (v == null) continue;
|
|
101728
|
+
|
|
101729
|
+
const decoded = parseGatewayUrl(typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]);
|
|
101730
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
101731
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
101732
|
+
}
|
|
101733
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
100663
101734
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
100664
101735
|
|
|
100665
101736
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values[\\"https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers\\"];
|
|
@@ -101331,6 +102402,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
101331
102402
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
101332
102403
|
}
|
|
101333
102404
|
|
|
102405
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
102406
|
+
// deno-lint-ignore no-explicit-any
|
|
102407
|
+
.map((v: any) => v instanceof URL
|
|
102408
|
+
? {
|
|
102409
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
102410
|
+
inspect: typeof Deno.inspect,
|
|
102411
|
+
options: Deno.InspectOptions,
|
|
102412
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
102413
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
102414
|
+
_depth: number,
|
|
102415
|
+
options: unknown,
|
|
102416
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
102417
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
102418
|
+
}
|
|
102419
|
+
: v);
|
|
102420
|
+
|
|
102421
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
102422
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
102423
|
+
}
|
|
102424
|
+
|
|
102425
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
102426
|
+
|| !(\\"gateway\\" in proxy)
|
|
102427
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
102428
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
102429
|
+
}
|
|
102430
|
+
|
|
101334
102431
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
101335
102432
|
// deno-lint-ignore no-explicit-any
|
|
101336
102433
|
.map((v: any) => v instanceof URL
|
|
@@ -104972,7 +106069,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
104972
106069
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
104973
106070
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
104974
106071
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
104975
|
-
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;}
|
|
106072
|
+
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;digestMultibase?: string | null;}
|
|
104976
106073
|
,
|
|
104977
106074
|
options: {
|
|
104978
106075
|
documentLoader?: DocumentLoader,
|
|
@@ -105008,7 +106105,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
105008
106105
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
105009
106106
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
105010
106107
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
105011
|
-
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;}
|
|
106108
|
+
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;digestMultibase?: string | null;}
|
|
105012
106109
|
|
|
105013
106110
|
= {},
|
|
105014
106111
|
options: {
|
|
@@ -105070,7 +106167,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
105070
106167
|
|
|
105071
106168
|
result[\\"type\\"] = \\"Video\\";
|
|
105072
106169
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
105073
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
106170
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
105074
106171
|
return result;
|
|
105075
106172
|
}
|
|
105076
106173
|
|
|
@@ -105096,7 +106193,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
105096
106193
|
);
|
|
105097
106194
|
}
|
|
105098
106195
|
const docContext = options.context ??
|
|
105099
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
106196
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
105100
106197
|
const compacted = await jsonld.compact(
|
|
105101
106198
|
values,
|
|
105102
106199
|
docContext,
|