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