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