@fedify/vocab-tools 2.4.0-dev.1599 → 2.4.0-dev.1634
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deno.json +1 -1
- package/dist/mod.cjs +28 -2
- package/dist/mod.js +28 -2
- package/package.json +1 -1
- package/src/__snapshots__/class.test.ts.deno.snap +1268 -56
- package/src/__snapshots__/class.test.ts.node.snap +1268 -56
- package/src/__snapshots__/class.test.ts.snap +1268 -56
- package/src/class.ts +2 -0
- package/src/type.ts +24 -0
|
@@ -17,8 +17,10 @@ import {
|
|
|
17
17
|
importMultibaseKey,
|
|
18
18
|
importPem,
|
|
19
19
|
isDecimal,
|
|
20
|
+
isGatewayUrl,
|
|
20
21
|
LanguageString,
|
|
21
22
|
parseDecimal,
|
|
23
|
+
parseGatewayUrl,
|
|
22
24
|
parseIri,
|
|
23
25
|
parseJsonLdId,
|
|
24
26
|
type RemoteDocument
|
|
@@ -34,7 +36,7 @@ import {
|
|
|
34
36
|
isTemporalInstant,
|
|
35
37
|
} from \\"@fedify/vocab-runtime/temporal\\";
|
|
36
38
|
const PORTABLE_IRI_PATTERN = /^ap(?:\\\\+ef61)?:\\\\/\\\\//i;
|
|
37
|
-
const PORTABLE_IRI_KEYS: ReadonlySet<string> = new Set([\\"@id\\",\\"_misskey_quote\\",\\"actor\\",\\"alsoKnownAs\\",\\"announceAuthorization\\",\\"anyOf\\",\\"approvedBy\\",\\"assertionMethod\\",\\"attachment\\",\\"attributedTo\\",\\"audience\\",\\"automaticApproval\\",\\"bcc\\",\\"bto\\",\\"cc\\",\\"context\\",\\"controller\\",\\"current\\",\\"describes\\",\\"emojiReactions\\",\\"featureAuthorization\\",\\"featured\\",\\"featuredCollections\\",\\"featuredObject\\",\\"featuredTags\\",\\"first\\",\\"followers\\",\\"followersOf\\",\\"following\\",\\"followingOf\\",\\"generator\\",\\"href\\",\\"http://fedibird.com/ns#emojiReactions\\",\\"http://fedibird.com/ns#quoteUri\\",\\"http://joinmastodon.org/ns#featured\\",\\"http://joinmastodon.org/ns#featuredTags\\",\\"http://www.w3.org/ns/ldp#inbox\\",\\"https://gotosocial.org/ns#announceAuthorization\\",\\"https://gotosocial.org/ns#approvedBy\\",\\"https://gotosocial.org/ns#automaticApproval\\",\\"https://gotosocial.org/ns#interactingObject\\",\\"https://gotosocial.org/ns#interactionTarget\\",\\"https://gotosocial.org/ns#likeAuthorization\\",\\"https://gotosocial.org/ns#manualApproval\\",\\"https://gotosocial.org/ns#replyAuthorization\\",\\"https://misskey-hub.net/ns#_misskey_quote\\",\\"https://w3id.org/fep/044f#quote\\",\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"https://w3id.org/fep/5711#followersOf\\",\\"https://w3id.org/fep/5711#followingOf\\",\\"https://w3id.org/fep/5711#inboxOf\\",\\"https://w3id.org/fep/5711#likedOf\\",\\"https://w3id.org/fep/5711#likesOf\\",\\"https://w3id.org/fep/5711#outboxOf\\",\\"https://w3id.org/fep/5711#repliesOf\\",\\"https://w3id.org/fep/5711#sharesOf\\",\\"https://w3id.org/fep/7aa9#featureAuthorization\\",\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"https://w3id.org/fep/7aa9#featuredObject\\",\\"https://w3id.org/security#assertionMethod\\",\\"https://w3id.org/security#controller\\",\\"https://w3id.org/security#owner\\",\\"https://w3id.org/security#proof\\",\\"https://w3id.org/security#publicKey\\",\\"https://w3id.org/security#verificationMethod\\",\\"https://w3id.org/valueflows/ont/vf#resourceConformsTo\\",\\"https://w3id.org/valueflows/ont/vf#satisfies\\",\\"https://www.w3.org/ns/activitystreams#actor\\",\\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\",\\"https://www.w3.org/ns/activitystreams#anyOf\\",\\"https://www.w3.org/ns/activitystreams#attachment\\",\\"https://www.w3.org/ns/activitystreams#attributedTo\\",\\"https://www.w3.org/ns/activitystreams#audience\\",\\"https://www.w3.org/ns/activitystreams#bcc\\",\\"https://www.w3.org/ns/activitystreams#bto\\",\\"https://www.w3.org/ns/activitystreams#cc\\",\\"https://www.w3.org/ns/activitystreams#context\\",\\"https://www.w3.org/ns/activitystreams#current\\",\\"https://www.w3.org/ns/activitystreams#describes\\",\\"https://www.w3.org/ns/activitystreams#first\\",\\"https://www.w3.org/ns/activitystreams#followers\\",\\"https://www.w3.org/ns/activitystreams#following\\",\\"https://www.w3.org/ns/activitystreams#generator\\",\\"https://www.w3.org/ns/activitystreams#href\\",\\"https://www.w3.org/ns/activitystreams#icon\\",\\"https://www.w3.org/ns/activitystreams#image\\",\\"https://www.w3.org/ns/activitystreams#inReplyTo\\",\\"https://www.w3.org/ns/activitystreams#instrument\\",\\"https://www.w3.org/ns/activitystreams#items\\",\\"https://www.w3.org/ns/activitystreams#last\\",\\"https://www.w3.org/ns/activitystreams#liked\\",\\"https://www.w3.org/ns/activitystreams#likes\\",\\"https://www.w3.org/ns/activitystreams#location\\",\\"https://www.w3.org/ns/activitystreams#movedTo\\",\\"https://www.w3.org/ns/activitystreams#next\\",\\"https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint\\",\\"https://www.w3.org/ns/activitystreams#oauthTokenEndpoint\\",\\"https://www.w3.org/ns/activitystreams#object\\",\\"https://www.w3.org/ns/activitystreams#oneOf\\",\\"https://www.w3.org/ns/activitystreams#origin\\",\\"https://www.w3.org/ns/activitystreams#outbox\\",\\"https://www.w3.org/ns/activitystreams#partOf\\",\\"https://www.w3.org/ns/activitystreams#prev\\",\\"https://www.w3.org/ns/activitystreams#preview\\",\\"https://www.w3.org/ns/activitystreams#provideClientKey\\",\\"https://www.w3.org/ns/activitystreams#proxyUrl\\",\\"https://www.w3.org/ns/activitystreams#quoteUrl\\",\\"https://www.w3.org/ns/activitystreams#relationship\\",\\"https://www.w3.org/ns/activitystreams#replies\\",\\"https://www.w3.org/ns/activitystreams#result\\",\\"https://www.w3.org/ns/activitystreams#sharedInbox\\",\\"https://www.w3.org/ns/activitystreams#shares\\",\\"https://www.w3.org/ns/activitystreams#signClientKey\\",\\"https://www.w3.org/ns/activitystreams#streams\\",\\"https://www.w3.org/ns/activitystreams#subject\\",\\"https://www.w3.org/ns/activitystreams#tag\\",\\"https://www.w3.org/ns/activitystreams#target\\",\\"https://www.w3.org/ns/activitystreams#to\\",\\"https://www.w3.org/ns/activitystreams#units\\",\\"https://www.w3.org/ns/activitystreams#url\\",\\"https://www.w3.org/ns/did#service\\",\\"https://www.w3.org/ns/did#serviceEndpoint\\",\\"icon\\",\\"id\\",\\"image\\",\\"inReplyTo\\",\\"inbox\\",\\"inboxOf\\",\\"instrument\\",\\"interactingObject\\",\\"interactionTarget\\",\\"items\\",\\"last\\",\\"likeAuthorization\\",\\"liked\\",\\"likedOf\\",\\"likes\\",\\"likesOf\\",\\"location\\",\\"manualApproval\\",\\"movedTo\\",\\"next\\",\\"oauthAuthorizationEndpoint\\",\\"oauthTokenEndpoint\\",\\"object\\",\\"oneOf\\",\\"orderedItems\\",\\"origin\\",\\"outbox\\",\\"outboxOf\\",\\"owner\\",\\"partOf\\",\\"prev\\",\\"preview\\",\\"proof\\",\\"provideClientKey\\",\\"proxyUrl\\",\\"publicKey\\",\\"quote\\",\\"quoteAuthorization\\",\\"quoteUri\\",\\"quoteUrl\\",\\"relationship\\",\\"replies\\",\\"repliesOf\\",\\"replyAuthorization\\",\\"resourceConformsTo\\",\\"result\\",\\"satisfies\\",\\"service\\",\\"sharedInbox\\",\\"shares\\",\\"sharesOf\\",\\"signClientKey\\",\\"streams\\",\\"subject\\",\\"tag\\",\\"target\\",\\"to\\",\\"units\\",\\"url\\"]);
|
|
39
|
+
const PORTABLE_IRI_KEYS: ReadonlySet<string> = new Set([\\"@id\\",\\"_misskey_quote\\",\\"actor\\",\\"alsoKnownAs\\",\\"announceAuthorization\\",\\"anyOf\\",\\"approvedBy\\",\\"assertionMethod\\",\\"attachment\\",\\"attributedTo\\",\\"audience\\",\\"automaticApproval\\",\\"bcc\\",\\"bto\\",\\"cc\\",\\"context\\",\\"controller\\",\\"current\\",\\"describes\\",\\"emojiReactions\\",\\"featureAuthorization\\",\\"featured\\",\\"featuredCollections\\",\\"featuredObject\\",\\"featuredTags\\",\\"first\\",\\"followers\\",\\"followersOf\\",\\"following\\",\\"followingOf\\",\\"generator\\",\\"href\\",\\"http://fedibird.com/ns#emojiReactions\\",\\"http://fedibird.com/ns#quoteUri\\",\\"http://joinmastodon.org/ns#featured\\",\\"http://joinmastodon.org/ns#featuredTags\\",\\"http://www.w3.org/ns/ldp#inbox\\",\\"https://gotosocial.org/ns#announceAuthorization\\",\\"https://gotosocial.org/ns#approvedBy\\",\\"https://gotosocial.org/ns#automaticApproval\\",\\"https://gotosocial.org/ns#interactingObject\\",\\"https://gotosocial.org/ns#interactionTarget\\",\\"https://gotosocial.org/ns#likeAuthorization\\",\\"https://gotosocial.org/ns#manualApproval\\",\\"https://gotosocial.org/ns#replyAuthorization\\",\\"https://misskey-hub.net/ns#_misskey_quote\\",\\"https://w3id.org/fep/044f#quote\\",\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"https://w3id.org/fep/5711#followersOf\\",\\"https://w3id.org/fep/5711#followingOf\\",\\"https://w3id.org/fep/5711#inboxOf\\",\\"https://w3id.org/fep/5711#likedOf\\",\\"https://w3id.org/fep/5711#likesOf\\",\\"https://w3id.org/fep/5711#outboxOf\\",\\"https://w3id.org/fep/5711#repliesOf\\",\\"https://w3id.org/fep/5711#sharesOf\\",\\"https://w3id.org/fep/7aa9#featureAuthorization\\",\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"https://w3id.org/fep/7aa9#featuredObject\\",\\"https://w3id.org/security#assertionMethod\\",\\"https://w3id.org/security#controller\\",\\"https://w3id.org/security#owner\\",\\"https://w3id.org/security#proof\\",\\"https://w3id.org/security#publicKey\\",\\"https://w3id.org/security#verificationMethod\\",\\"https://w3id.org/valueflows/ont/vf#resourceConformsTo\\",\\"https://w3id.org/valueflows/ont/vf#satisfies\\",\\"https://www.w3.org/ns/activitystreams#actor\\",\\"https://www.w3.org/ns/activitystreams#alsoKnownAs\\",\\"https://www.w3.org/ns/activitystreams#anyOf\\",\\"https://www.w3.org/ns/activitystreams#attachment\\",\\"https://www.w3.org/ns/activitystreams#attributedTo\\",\\"https://www.w3.org/ns/activitystreams#audience\\",\\"https://www.w3.org/ns/activitystreams#bcc\\",\\"https://www.w3.org/ns/activitystreams#bto\\",\\"https://www.w3.org/ns/activitystreams#cc\\",\\"https://www.w3.org/ns/activitystreams#context\\",\\"https://www.w3.org/ns/activitystreams#current\\",\\"https://www.w3.org/ns/activitystreams#describes\\",\\"https://www.w3.org/ns/activitystreams#first\\",\\"https://www.w3.org/ns/activitystreams#followers\\",\\"https://www.w3.org/ns/activitystreams#following\\",\\"https://www.w3.org/ns/activitystreams#generator\\",\\"https://www.w3.org/ns/activitystreams#href\\",\\"https://www.w3.org/ns/activitystreams#icon\\",\\"https://www.w3.org/ns/activitystreams#image\\",\\"https://www.w3.org/ns/activitystreams#inReplyTo\\",\\"https://www.w3.org/ns/activitystreams#instrument\\",\\"https://www.w3.org/ns/activitystreams#items\\",\\"https://www.w3.org/ns/activitystreams#last\\",\\"https://www.w3.org/ns/activitystreams#liked\\",\\"https://www.w3.org/ns/activitystreams#likes\\",\\"https://www.w3.org/ns/activitystreams#location\\",\\"https://www.w3.org/ns/activitystreams#movedTo\\",\\"https://www.w3.org/ns/activitystreams#next\\",\\"https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint\\",\\"https://www.w3.org/ns/activitystreams#oauthTokenEndpoint\\",\\"https://www.w3.org/ns/activitystreams#object\\",\\"https://www.w3.org/ns/activitystreams#oneOf\\",\\"https://www.w3.org/ns/activitystreams#origin\\",\\"https://www.w3.org/ns/activitystreams#outbox\\",\\"https://www.w3.org/ns/activitystreams#partOf\\",\\"https://www.w3.org/ns/activitystreams#prev\\",\\"https://www.w3.org/ns/activitystreams#preview\\",\\"https://www.w3.org/ns/activitystreams#provideClientKey\\",\\"https://www.w3.org/ns/activitystreams#proxyUrl\\",\\"https://www.w3.org/ns/activitystreams#quoteUrl\\",\\"https://www.w3.org/ns/activitystreams#relationship\\",\\"https://www.w3.org/ns/activitystreams#replies\\",\\"https://www.w3.org/ns/activitystreams#result\\",\\"https://www.w3.org/ns/activitystreams#sharedInbox\\",\\"https://www.w3.org/ns/activitystreams#shares\\",\\"https://www.w3.org/ns/activitystreams#signClientKey\\",\\"https://www.w3.org/ns/activitystreams#streams\\",\\"https://www.w3.org/ns/activitystreams#subject\\",\\"https://www.w3.org/ns/activitystreams#tag\\",\\"https://www.w3.org/ns/activitystreams#target\\",\\"https://www.w3.org/ns/activitystreams#to\\",\\"https://www.w3.org/ns/activitystreams#units\\",\\"https://www.w3.org/ns/activitystreams#uploadMedia\\",\\"https://www.w3.org/ns/activitystreams#url\\",\\"https://www.w3.org/ns/did#service\\",\\"https://www.w3.org/ns/did#serviceEndpoint\\",\\"icon\\",\\"id\\",\\"image\\",\\"inReplyTo\\",\\"inbox\\",\\"inboxOf\\",\\"instrument\\",\\"interactingObject\\",\\"interactionTarget\\",\\"items\\",\\"last\\",\\"likeAuthorization\\",\\"liked\\",\\"likedOf\\",\\"likes\\",\\"likesOf\\",\\"location\\",\\"manualApproval\\",\\"movedTo\\",\\"next\\",\\"oauthAuthorizationEndpoint\\",\\"oauthTokenEndpoint\\",\\"object\\",\\"oneOf\\",\\"orderedItems\\",\\"origin\\",\\"outbox\\",\\"outboxOf\\",\\"owner\\",\\"partOf\\",\\"prev\\",\\"preview\\",\\"proof\\",\\"provideClientKey\\",\\"proxyUrl\\",\\"publicKey\\",\\"quote\\",\\"quoteAuthorization\\",\\"quoteUri\\",\\"quoteUrl\\",\\"relationship\\",\\"replies\\",\\"repliesOf\\",\\"replyAuthorization\\",\\"resourceConformsTo\\",\\"result\\",\\"satisfies\\",\\"service\\",\\"sharedInbox\\",\\"shares\\",\\"sharesOf\\",\\"signClientKey\\",\\"streams\\",\\"subject\\",\\"tag\\",\\"target\\",\\"to\\",\\"units\\",\\"uploadMedia\\",\\"url\\"]);
|
|
38
40
|
|
|
39
41
|
import * as _ppM0 from \\"./preprocessors.ts\\";
|
|
40
42
|
|
|
@@ -43294,7 +43296,8 @@ export class Application extends Object {
|
|
|
43294
43296
|
|
|
43295
43297
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
43296
43298
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
43297
|
-
#
|
|
43299
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
43300
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
43298
43301
|
|
|
43299
43302
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
43300
43303
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -43367,7 +43370,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
43367
43370
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
43368
43371
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
43369
43372
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
43370
|
-
assertionMethods?: (Multikey | URL)[];
|
|
43373
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
43374
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
43371
43375
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
43372
43376
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
43373
43377
|
,
|
|
@@ -43494,6 +43498,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
43494
43498
|
}
|
|
43495
43499
|
}
|
|
43496
43500
|
|
|
43501
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
43502
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
43503
|
+
// @ts-ignore: type is checked above.
|
|
43504
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
43505
|
+
|
|
43506
|
+
} else {
|
|
43507
|
+
throw new TypeError(
|
|
43508
|
+
\\"The gateway must be of type \\" +
|
|
43509
|
+
\\"URL\\" + \\".\\",
|
|
43510
|
+
);
|
|
43511
|
+
}
|
|
43512
|
+
}
|
|
43513
|
+
|
|
43514
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
43515
|
+
|
|
43516
|
+
if (\\"gateway\\" in values &&
|
|
43517
|
+
values.gateway != null) {
|
|
43518
|
+
throw new TypeError(
|
|
43519
|
+
\\"Cannot initialize both gateway and \\" +
|
|
43520
|
+
\\"gateways at the same time.\\",
|
|
43521
|
+
);
|
|
43522
|
+
}
|
|
43523
|
+
|
|
43524
|
+
if (Array.isArray(values.gateways) &&
|
|
43525
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
43526
|
+
// @ts-ignore: type is checked above.
|
|
43527
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
43528
|
+
|
|
43529
|
+
} else {
|
|
43530
|
+
throw new TypeError(
|
|
43531
|
+
\\"The gateways must be an array of type \\" +
|
|
43532
|
+
\\"URL\\" + \\".\\",
|
|
43533
|
+
);
|
|
43534
|
+
}
|
|
43535
|
+
}
|
|
43536
|
+
|
|
43497
43537
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
43498
43538
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
43499
43539
|
// @ts-ignore: type is checked above.
|
|
@@ -43844,7 +43884,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
43844
43884
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
43845
43885
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
43846
43886
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
43847
|
-
assertionMethods?: (Multikey | URL)[];
|
|
43887
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
43888
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
43848
43889
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
43849
43890
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
43850
43891
|
|
|
@@ -43980,6 +44021,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
43980
44021
|
);
|
|
43981
44022
|
}
|
|
43982
44023
|
}
|
|
44024
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
44025
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
44026
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
44027
|
+
// @ts-ignore: type is checked above.
|
|
44028
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
44029
|
+
|
|
44030
|
+
} else {
|
|
44031
|
+
throw new TypeError(
|
|
44032
|
+
\\"The gateway must be of type \\" +
|
|
44033
|
+
\\"URL\\" + \\".\\",
|
|
44034
|
+
);
|
|
44035
|
+
}
|
|
44036
|
+
}
|
|
44037
|
+
|
|
44038
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
44039
|
+
|
|
44040
|
+
if (\\"gateway\\" in values &&
|
|
44041
|
+
values.gateway != null) {
|
|
44042
|
+
throw new TypeError(
|
|
44043
|
+
\\"Cannot update both gateway and \\" +
|
|
44044
|
+
\\"gateways at the same time.\\",
|
|
44045
|
+
);
|
|
44046
|
+
}
|
|
44047
|
+
|
|
44048
|
+
if (Array.isArray(values.gateways) &&
|
|
44049
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
44050
|
+
// @ts-ignore: type is checked above.
|
|
44051
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
44052
|
+
|
|
44053
|
+
} else {
|
|
44054
|
+
throw new TypeError(
|
|
44055
|
+
\\"The gateways must be an array of type \\" +
|
|
44056
|
+
\\"URL\\" + \\".\\",
|
|
44057
|
+
);
|
|
44058
|
+
}
|
|
44059
|
+
}
|
|
43983
44060
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
43984
44061
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
43985
44062
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
@@ -45002,6 +45079,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
45002
45079
|
}
|
|
45003
45080
|
}
|
|
45004
45081
|
|
|
45082
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
45083
|
+
* retrieved.
|
|
45084
|
+
*
|
|
45085
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
45086
|
+
*
|
|
45087
|
+
*/
|
|
45088
|
+
get gateway(): (URL | null) {
|
|
45089
|
+
if (this._warning != null) {
|
|
45090
|
+
getLogger(this._warning.category).warn(
|
|
45091
|
+
this._warning.message,
|
|
45092
|
+
this._warning.values
|
|
45093
|
+
);
|
|
45094
|
+
}
|
|
45095
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
45096
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
45097
|
+
}
|
|
45098
|
+
|
|
45099
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
45100
|
+
* retrieved.
|
|
45101
|
+
*
|
|
45102
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
45103
|
+
*
|
|
45104
|
+
*/
|
|
45105
|
+
get gateways(): (URL)[] {
|
|
45106
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
45107
|
+
}
|
|
45108
|
+
|
|
45005
45109
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
45006
45110
|
* automatically approved, but instead are examined by a person who may accept
|
|
45007
45111
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -48310,6 +48414,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48310
48414
|
|
|
48311
48415
|
}
|
|
48312
48416
|
|
|
48417
|
+
compactItems = [];
|
|
48418
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
48419
|
+
const item = (
|
|
48420
|
+
formatIri(v)
|
|
48421
|
+
);
|
|
48422
|
+
compactItems.push(item);
|
|
48423
|
+
}
|
|
48424
|
+
if (compactItems.length > 0) {
|
|
48425
|
+
|
|
48426
|
+
result[\\"gateways\\"] = compactItems;
|
|
48427
|
+
|
|
48428
|
+
}
|
|
48429
|
+
|
|
48313
48430
|
compactItems = [];
|
|
48314
48431
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
48315
48432
|
const item = (
|
|
@@ -48724,7 +48841,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48724
48841
|
|
|
48725
48842
|
result[\\"type\\"] = \\"Application\\";
|
|
48726
48843
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
48727
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
48844
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
48728
48845
|
return result;
|
|
48729
48846
|
}
|
|
48730
48847
|
|
|
@@ -48789,6 +48906,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48789
48906
|
|
|
48790
48907
|
}
|
|
48791
48908
|
|
|
48909
|
+
array = [];
|
|
48910
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
48911
|
+
const element = (
|
|
48912
|
+
{ \\"@id\\": formatIri(v) }
|
|
48913
|
+
);
|
|
48914
|
+
array.push(element);;
|
|
48915
|
+
}
|
|
48916
|
+
if (array.length > 0) {
|
|
48917
|
+
const propValue = (
|
|
48918
|
+
{ \\"@list\\": array }
|
|
48919
|
+
);
|
|
48920
|
+
values[\\"https://w3id.org/fep/ef61/gateways\\"] = propValue;
|
|
48921
|
+
|
|
48922
|
+
}
|
|
48923
|
+
|
|
48792
48924
|
array = [];
|
|
48793
48925
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
48794
48926
|
const element = (
|
|
@@ -49098,7 +49230,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
49098
49230
|
);
|
|
49099
49231
|
}
|
|
49100
49232
|
const docContext = options.context ??
|
|
49101
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
49233
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
49102
49234
|
const compacted = await jsonld.compact(
|
|
49103
49235
|
values,
|
|
49104
49236
|
docContext,
|
|
@@ -49340,6 +49472,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
49340
49472
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
49341
49473
|
}
|
|
49342
49474
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
49475
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
49476
|
+
|
|
49477
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values[\\"https://w3id.org/fep/ef61/gateways\\"];
|
|
49478
|
+
|
|
49479
|
+
for (
|
|
49480
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
49481
|
+
? []
|
|
49482
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && \\"@list\\" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
49483
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0][\\"@list\\"]
|
|
49484
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
49485
|
+
) {
|
|
49486
|
+
if (v == null) continue;
|
|
49487
|
+
|
|
49488
|
+
const decoded = parseGatewayUrl(typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]);
|
|
49489
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
49490
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
49491
|
+
}
|
|
49492
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
49343
49493
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
49344
49494
|
|
|
49345
49495
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values[\\"https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers\\"];
|
|
@@ -50011,6 +50161,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
50011
50161
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
50012
50162
|
}
|
|
50013
50163
|
|
|
50164
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
50165
|
+
// deno-lint-ignore no-explicit-any
|
|
50166
|
+
.map((v: any) => v instanceof URL
|
|
50167
|
+
? {
|
|
50168
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
50169
|
+
inspect: typeof Deno.inspect,
|
|
50170
|
+
options: Deno.InspectOptions,
|
|
50171
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
50172
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
50173
|
+
_depth: number,
|
|
50174
|
+
options: unknown,
|
|
50175
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
50176
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
50177
|
+
}
|
|
50178
|
+
: v);
|
|
50179
|
+
|
|
50180
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
50181
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
50182
|
+
}
|
|
50183
|
+
|
|
50184
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
50185
|
+
|| !(\\"gateway\\" in proxy)
|
|
50186
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
50187
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
50188
|
+
}
|
|
50189
|
+
|
|
50014
50190
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
50015
50191
|
// deno-lint-ignore no-explicit-any
|
|
50016
50192
|
.map((v: any) => v instanceof URL
|
|
@@ -52387,6 +52563,7 @@ export class Document extends Object {
|
|
|
52387
52563
|
}
|
|
52388
52564
|
#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width: (number)[] = [];
|
|
52389
52565
|
#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height: (number)[] = [];
|
|
52566
|
+
#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
52390
52567
|
|
|
52391
52568
|
/**
|
|
52392
52569
|
* Constructs a new instance of Document with the given values.
|
|
@@ -52413,7 +52590,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
52413
52590
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
52414
52591
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
52415
52592
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
52416
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
52593
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
52417
52594
|
,
|
|
52418
52595
|
options: {
|
|
52419
52596
|
documentLoader?: DocumentLoader,
|
|
@@ -52447,6 +52624,19 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52447
52624
|
);
|
|
52448
52625
|
}
|
|
52449
52626
|
}
|
|
52627
|
+
|
|
52628
|
+
if (\\"digestMultibase\\" in values && values.digestMultibase != null) {
|
|
52629
|
+
if (typeof values.digestMultibase === \\"string\\") {
|
|
52630
|
+
// @ts-ignore: type is checked above.
|
|
52631
|
+
this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
52632
|
+
|
|
52633
|
+
} else {
|
|
52634
|
+
throw new TypeError(
|
|
52635
|
+
\\"The digestMultibase must be of type \\" +
|
|
52636
|
+
\\"string\\" + \\".\\",
|
|
52637
|
+
);
|
|
52638
|
+
}
|
|
52639
|
+
}
|
|
52450
52640
|
}
|
|
52451
52641
|
|
|
52452
52642
|
/**
|
|
@@ -52475,7 +52665,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
52475
52665
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
52476
52666
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
52477
52667
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
52478
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
52668
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
52479
52669
|
|
|
52480
52670
|
= {},
|
|
52481
52671
|
options: {
|
|
@@ -52517,6 +52707,19 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52517
52707
|
);
|
|
52518
52708
|
}
|
|
52519
52709
|
}
|
|
52710
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
52711
|
+
if (\\"digestMultibase\\" in values && values.digestMultibase != null) {
|
|
52712
|
+
if (typeof values.digestMultibase === \\"string\\") {
|
|
52713
|
+
// @ts-ignore: type is checked above.
|
|
52714
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
52715
|
+
|
|
52716
|
+
} else {
|
|
52717
|
+
throw new TypeError(
|
|
52718
|
+
\\"The digestMultibase must be of type \\" +
|
|
52719
|
+
\\"string\\" + \\".\\",
|
|
52720
|
+
);
|
|
52721
|
+
}
|
|
52722
|
+
}
|
|
52520
52723
|
|
|
52521
52724
|
return clone;
|
|
52522
52725
|
}
|
|
@@ -52551,6 +52754,23 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52551
52754
|
return this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height[0];
|
|
52552
52755
|
}
|
|
52553
52756
|
|
|
52757
|
+
/** The multibase-encoded integrity digest of an external resource represented
|
|
52758
|
+
* by this document.
|
|
52759
|
+
*
|
|
52760
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
52761
|
+
*
|
|
52762
|
+
*/
|
|
52763
|
+
get digestMultibase(): (string | null) {
|
|
52764
|
+
if (this._warning != null) {
|
|
52765
|
+
getLogger(this._warning.category).warn(
|
|
52766
|
+
this._warning.message,
|
|
52767
|
+
this._warning.values
|
|
52768
|
+
);
|
|
52769
|
+
}
|
|
52770
|
+
if (this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length < 1) return null;
|
|
52771
|
+
return this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
52772
|
+
}
|
|
52773
|
+
|
|
52554
52774
|
/**
|
|
52555
52775
|
* Converts this object to a JSON-LD structure.
|
|
52556
52776
|
* @param options The options to use.
|
|
@@ -52623,9 +52843,25 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52623
52843
|
|
|
52624
52844
|
}
|
|
52625
52845
|
|
|
52846
|
+
compactItems = [];
|
|
52847
|
+
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
52848
|
+
const item = (
|
|
52849
|
+
v
|
|
52850
|
+
);
|
|
52851
|
+
compactItems.push(item);
|
|
52852
|
+
}
|
|
52853
|
+
if (compactItems.length > 0) {
|
|
52854
|
+
|
|
52855
|
+
result[\\"digestMultibase\\"]
|
|
52856
|
+
= compactItems.length > 1
|
|
52857
|
+
? compactItems
|
|
52858
|
+
: compactItems[0];
|
|
52859
|
+
|
|
52860
|
+
}
|
|
52861
|
+
|
|
52626
52862
|
result[\\"type\\"] = \\"Document\\";
|
|
52627
52863
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
52628
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
52864
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
52629
52865
|
return result;
|
|
52630
52866
|
}
|
|
52631
52867
|
|
|
@@ -52678,6 +52914,21 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52678
52914
|
|
|
52679
52915
|
}
|
|
52680
52916
|
|
|
52917
|
+
array = [];
|
|
52918
|
+
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
52919
|
+
const element = (
|
|
52920
|
+
{ \\"@value\\": v }
|
|
52921
|
+
);
|
|
52922
|
+
array.push(element);;
|
|
52923
|
+
}
|
|
52924
|
+
if (array.length > 0) {
|
|
52925
|
+
const propValue = (
|
|
52926
|
+
array
|
|
52927
|
+
);
|
|
52928
|
+
values[\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"] = propValue;
|
|
52929
|
+
|
|
52930
|
+
}
|
|
52931
|
+
|
|
52681
52932
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Document\\"];
|
|
52682
52933
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
52683
52934
|
if (options.format === \\"expand\\") {
|
|
@@ -52687,7 +52938,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52687
52938
|
);
|
|
52688
52939
|
}
|
|
52689
52940
|
const docContext = options.context ??
|
|
52690
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
52941
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
52691
52942
|
const compacted = await jsonld.compact(
|
|
52692
52943
|
values,
|
|
52693
52944
|
docContext,
|
|
@@ -52887,6 +53138,24 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52887
53138
|
_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
|
|
52888
53139
|
}
|
|
52889
53140
|
instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
53141
|
+
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
53142
|
+
|
|
53143
|
+
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values[\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"];
|
|
53144
|
+
|
|
53145
|
+
for (
|
|
53146
|
+
const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null
|
|
53147
|
+
? []
|
|
53148
|
+
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && \\"@list\\" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]
|
|
53149
|
+
? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0][\\"@list\\"]
|
|
53150
|
+
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array
|
|
53151
|
+
) {
|
|
53152
|
+
if (v == null) continue;
|
|
53153
|
+
|
|
53154
|
+
const decoded = v[\\"@value\\"];
|
|
53155
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
53156
|
+
_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.push(decoded);
|
|
53157
|
+
}
|
|
53158
|
+
instance.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
52890
53159
|
|
|
52891
53160
|
if (!(\\"_fromSubclass\\" in options) || !options._fromSubclass) {
|
|
52892
53161
|
try {
|
|
@@ -52955,6 +53224,26 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52955
53224
|
proxy.height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height[0];
|
|
52956
53225
|
}
|
|
52957
53226
|
|
|
53227
|
+
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase
|
|
53228
|
+
// deno-lint-ignore no-explicit-any
|
|
53229
|
+
.map((v: any) => v instanceof URL
|
|
53230
|
+
? {
|
|
53231
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
53232
|
+
inspect: typeof Deno.inspect,
|
|
53233
|
+
options: Deno.InspectOptions,
|
|
53234
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
53235
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
53236
|
+
_depth: number,
|
|
53237
|
+
options: unknown,
|
|
53238
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
53239
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
53240
|
+
}
|
|
53241
|
+
: v);
|
|
53242
|
+
|
|
53243
|
+
if (_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length == 1) {
|
|
53244
|
+
proxy.digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
53245
|
+
}
|
|
53246
|
+
|
|
52958
53247
|
return proxy;
|
|
52959
53248
|
}
|
|
52960
53249
|
}
|
|
@@ -53018,7 +53307,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
53018
53307
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
53019
53308
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
53020
53309
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
53021
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
53310
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
53022
53311
|
,
|
|
53023
53312
|
options: {
|
|
53024
53313
|
documentLoader?: DocumentLoader,
|
|
@@ -53054,7 +53343,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
53054
53343
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
53055
53344
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
53056
53345
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
53057
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
53346
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
53058
53347
|
|
|
53059
53348
|
= {},
|
|
53060
53349
|
options: {
|
|
@@ -53116,7 +53405,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
53116
53405
|
|
|
53117
53406
|
result[\\"type\\"] = \\"Audio\\";
|
|
53118
53407
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
53119
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
53408
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
53120
53409
|
return result;
|
|
53121
53410
|
}
|
|
53122
53411
|
|
|
@@ -53142,7 +53431,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
53142
53431
|
);
|
|
53143
53432
|
}
|
|
53144
53433
|
const docContext = options.context ??
|
|
53145
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
53434
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
53146
53435
|
const compacted = await jsonld.compact(
|
|
53147
53436
|
values,
|
|
53148
53437
|
docContext,
|
|
@@ -56600,6 +56889,7 @@ export class Endpoints {
|
|
|
56600
56889
|
#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey: (URL)[] = [];
|
|
56601
56890
|
#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey: (URL)[] = [];
|
|
56602
56891
|
#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox: (URL)[] = [];
|
|
56892
|
+
#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia: (URL)[] = [];
|
|
56603
56893
|
|
|
56604
56894
|
/**
|
|
56605
56895
|
* Constructs a new instance of Endpoints with the given values.
|
|
@@ -56610,7 +56900,7 @@ export class Endpoints {
|
|
|
56610
56900
|
values:
|
|
56611
56901
|
{
|
|
56612
56902
|
id?: URL | null;
|
|
56613
|
-
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;}
|
|
56903
|
+
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;uploadMedia?: URL | null;}
|
|
56614
56904
|
,
|
|
56615
56905
|
options: {
|
|
56616
56906
|
documentLoader?: DocumentLoader,
|
|
@@ -56714,6 +57004,19 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56714
57004
|
);
|
|
56715
57005
|
}
|
|
56716
57006
|
}
|
|
57007
|
+
|
|
57008
|
+
if (\\"uploadMedia\\" in values && values.uploadMedia != null) {
|
|
57009
|
+
if (values.uploadMedia instanceof URL) {
|
|
57010
|
+
// @ts-ignore: type is checked above.
|
|
57011
|
+
this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = [values.uploadMedia];
|
|
57012
|
+
|
|
57013
|
+
} else {
|
|
57014
|
+
throw new TypeError(
|
|
57015
|
+
\\"The uploadMedia must be of type \\" +
|
|
57016
|
+
\\"URL\\" + \\".\\",
|
|
57017
|
+
);
|
|
57018
|
+
}
|
|
57019
|
+
}
|
|
56717
57020
|
}
|
|
56718
57021
|
|
|
56719
57022
|
/**
|
|
@@ -56726,7 +57029,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56726
57029
|
values:
|
|
56727
57030
|
{
|
|
56728
57031
|
id?: URL | null;
|
|
56729
|
-
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;}
|
|
57032
|
+
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;uploadMedia?: URL | null;}
|
|
56730
57033
|
|
|
56731
57034
|
= {},
|
|
56732
57035
|
options: {
|
|
@@ -56826,6 +57129,19 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56826
57129
|
);
|
|
56827
57130
|
}
|
|
56828
57131
|
}
|
|
57132
|
+
clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia;
|
|
57133
|
+
if (\\"uploadMedia\\" in values && values.uploadMedia != null) {
|
|
57134
|
+
if (values.uploadMedia instanceof URL) {
|
|
57135
|
+
// @ts-ignore: type is checked above.
|
|
57136
|
+
clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = [values.uploadMedia];
|
|
57137
|
+
|
|
57138
|
+
} else {
|
|
57139
|
+
throw new TypeError(
|
|
57140
|
+
\\"The uploadMedia must be of type \\" +
|
|
57141
|
+
\\"URL\\" + \\".\\",
|
|
57142
|
+
);
|
|
57143
|
+
}
|
|
57144
|
+
}
|
|
56829
57145
|
|
|
56830
57146
|
return clone;
|
|
56831
57147
|
}
|
|
@@ -56937,6 +57253,25 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56937
57253
|
return this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox[0];
|
|
56938
57254
|
}
|
|
56939
57255
|
|
|
57256
|
+
/** Upload endpoint URI for this user for binary data, such as an image or
|
|
57257
|
+
* video, as described in the [ActivityPub Media
|
|
57258
|
+
* Upload](https://www.w3.org/wiki/SocialCG/ActivityPub/MediaUpload) extension.
|
|
57259
|
+
* Clients \`POST\` a \`multipart/form-data\` request containing a \`file\` part
|
|
57260
|
+
* (the binary payload) and an \`object\` part (an ActivityStreams object shell)
|
|
57261
|
+
* to this endpoint.
|
|
57262
|
+
*
|
|
57263
|
+
*/
|
|
57264
|
+
get uploadMedia(): (URL | null) {
|
|
57265
|
+
if (this._warning != null) {
|
|
57266
|
+
getLogger(this._warning.category).warn(
|
|
57267
|
+
this._warning.message,
|
|
57268
|
+
this._warning.values
|
|
57269
|
+
);
|
|
57270
|
+
}
|
|
57271
|
+
if (this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.length < 1) return null;
|
|
57272
|
+
return this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia[0];
|
|
57273
|
+
}
|
|
57274
|
+
|
|
56940
57275
|
/**
|
|
56941
57276
|
* Converts this object to a JSON-LD structure.
|
|
56942
57277
|
* @param options The options to use.
|
|
@@ -57067,6 +57402,22 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57067
57402
|
|
|
57068
57403
|
}
|
|
57069
57404
|
|
|
57405
|
+
compactItems = [];
|
|
57406
|
+
for (const v of this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia) {
|
|
57407
|
+
const item = (
|
|
57408
|
+
formatIri(v)
|
|
57409
|
+
);
|
|
57410
|
+
compactItems.push(item);
|
|
57411
|
+
}
|
|
57412
|
+
if (compactItems.length > 0) {
|
|
57413
|
+
|
|
57414
|
+
result[\\"uploadMedia\\"]
|
|
57415
|
+
= compactItems.length > 1
|
|
57416
|
+
? compactItems
|
|
57417
|
+
: compactItems[0];
|
|
57418
|
+
|
|
57419
|
+
}
|
|
57420
|
+
|
|
57070
57421
|
|
|
57071
57422
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
57072
57423
|
result[\\"@context\\"] = \\"https://www.w3.org/ns/activitystreams\\";
|
|
@@ -57166,6 +57517,21 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57166
57517
|
|
|
57167
57518
|
}
|
|
57168
57519
|
|
|
57520
|
+
array = [];
|
|
57521
|
+
for (const v of this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia) {
|
|
57522
|
+
const element = (
|
|
57523
|
+
{ \\"@id\\": formatIri(v) }
|
|
57524
|
+
);
|
|
57525
|
+
array.push(element);;
|
|
57526
|
+
}
|
|
57527
|
+
if (array.length > 0) {
|
|
57528
|
+
const propValue = (
|
|
57529
|
+
array
|
|
57530
|
+
);
|
|
57531
|
+
values[\\"https://www.w3.org/ns/activitystreams#uploadMedia\\"] = propValue;
|
|
57532
|
+
|
|
57533
|
+
}
|
|
57534
|
+
|
|
57169
57535
|
|
|
57170
57536
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
57171
57537
|
if (options.format === \\"expand\\") {
|
|
@@ -57417,6 +57783,24 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57417
57783
|
_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded);
|
|
57418
57784
|
}
|
|
57419
57785
|
instance.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
|
|
57786
|
+
const _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia: (URL)[] = [];
|
|
57787
|
+
|
|
57788
|
+
let _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array = values[\\"https://www.w3.org/ns/activitystreams#uploadMedia\\"];
|
|
57789
|
+
|
|
57790
|
+
for (
|
|
57791
|
+
const v of _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array == null
|
|
57792
|
+
? []
|
|
57793
|
+
: _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array.length === 1 && \\"@list\\" in _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array[0]
|
|
57794
|
+
? _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array[0][\\"@list\\"]
|
|
57795
|
+
: _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array
|
|
57796
|
+
) {
|
|
57797
|
+
if (v == null) continue;
|
|
57798
|
+
|
|
57799
|
+
const decoded = parseIri(v[\\"@id\\"], options.baseUrl);
|
|
57800
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
57801
|
+
_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.push(decoded);
|
|
57802
|
+
}
|
|
57803
|
+
instance.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia;
|
|
57420
57804
|
|
|
57421
57805
|
if (!(\\"_fromSubclass\\" in options) || !options._fromSubclass) {
|
|
57422
57806
|
try {
|
|
@@ -57580,6 +57964,26 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57580
57964
|
proxy.sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox[0];
|
|
57581
57965
|
}
|
|
57582
57966
|
|
|
57967
|
+
const _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia
|
|
57968
|
+
// deno-lint-ignore no-explicit-any
|
|
57969
|
+
.map((v: any) => v instanceof URL
|
|
57970
|
+
? {
|
|
57971
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
57972
|
+
inspect: typeof Deno.inspect,
|
|
57973
|
+
options: Deno.InspectOptions,
|
|
57974
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
57975
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
57976
|
+
_depth: number,
|
|
57977
|
+
options: unknown,
|
|
57978
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
57979
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
57980
|
+
}
|
|
57981
|
+
: v);
|
|
57982
|
+
|
|
57983
|
+
if (_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.length == 1) {
|
|
57984
|
+
proxy.uploadMedia = _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia[0];
|
|
57985
|
+
}
|
|
57986
|
+
|
|
57583
57987
|
return proxy;
|
|
57584
57988
|
}
|
|
57585
57989
|
}
|
|
@@ -58710,7 +59114,8 @@ export class Group extends Object {
|
|
|
58710
59114
|
|
|
58711
59115
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
58712
59116
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
58713
|
-
#
|
|
59117
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
59118
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
58714
59119
|
|
|
58715
59120
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
58716
59121
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -58783,7 +59188,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
58783
59188
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
58784
59189
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
58785
59190
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
58786
|
-
assertionMethods?: (Multikey | URL)[];
|
|
59191
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
59192
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
58787
59193
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
58788
59194
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
58789
59195
|
,
|
|
@@ -58910,6 +59316,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
58910
59316
|
}
|
|
58911
59317
|
}
|
|
58912
59318
|
|
|
59319
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
59320
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
59321
|
+
// @ts-ignore: type is checked above.
|
|
59322
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
59323
|
+
|
|
59324
|
+
} else {
|
|
59325
|
+
throw new TypeError(
|
|
59326
|
+
\\"The gateway must be of type \\" +
|
|
59327
|
+
\\"URL\\" + \\".\\",
|
|
59328
|
+
);
|
|
59329
|
+
}
|
|
59330
|
+
}
|
|
59331
|
+
|
|
59332
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
59333
|
+
|
|
59334
|
+
if (\\"gateway\\" in values &&
|
|
59335
|
+
values.gateway != null) {
|
|
59336
|
+
throw new TypeError(
|
|
59337
|
+
\\"Cannot initialize both gateway and \\" +
|
|
59338
|
+
\\"gateways at the same time.\\",
|
|
59339
|
+
);
|
|
59340
|
+
}
|
|
59341
|
+
|
|
59342
|
+
if (Array.isArray(values.gateways) &&
|
|
59343
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
59344
|
+
// @ts-ignore: type is checked above.
|
|
59345
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
59346
|
+
|
|
59347
|
+
} else {
|
|
59348
|
+
throw new TypeError(
|
|
59349
|
+
\\"The gateways must be an array of type \\" +
|
|
59350
|
+
\\"URL\\" + \\".\\",
|
|
59351
|
+
);
|
|
59352
|
+
}
|
|
59353
|
+
}
|
|
59354
|
+
|
|
58913
59355
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
58914
59356
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
58915
59357
|
// @ts-ignore: type is checked above.
|
|
@@ -59260,7 +59702,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
59260
59702
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
59261
59703
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
59262
59704
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
59263
|
-
assertionMethods?: (Multikey | URL)[];
|
|
59705
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
59706
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
59264
59707
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
59265
59708
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
59266
59709
|
|
|
@@ -59396,6 +59839,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
59396
59839
|
);
|
|
59397
59840
|
}
|
|
59398
59841
|
}
|
|
59842
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
59843
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
59844
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
59845
|
+
// @ts-ignore: type is checked above.
|
|
59846
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
59847
|
+
|
|
59848
|
+
} else {
|
|
59849
|
+
throw new TypeError(
|
|
59850
|
+
\\"The gateway must be of type \\" +
|
|
59851
|
+
\\"URL\\" + \\".\\",
|
|
59852
|
+
);
|
|
59853
|
+
}
|
|
59854
|
+
}
|
|
59855
|
+
|
|
59856
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
59857
|
+
|
|
59858
|
+
if (\\"gateway\\" in values &&
|
|
59859
|
+
values.gateway != null) {
|
|
59860
|
+
throw new TypeError(
|
|
59861
|
+
\\"Cannot update both gateway and \\" +
|
|
59862
|
+
\\"gateways at the same time.\\",
|
|
59863
|
+
);
|
|
59864
|
+
}
|
|
59865
|
+
|
|
59866
|
+
if (Array.isArray(values.gateways) &&
|
|
59867
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
59868
|
+
// @ts-ignore: type is checked above.
|
|
59869
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
59870
|
+
|
|
59871
|
+
} else {
|
|
59872
|
+
throw new TypeError(
|
|
59873
|
+
\\"The gateways must be an array of type \\" +
|
|
59874
|
+
\\"URL\\" + \\".\\",
|
|
59875
|
+
);
|
|
59876
|
+
}
|
|
59877
|
+
}
|
|
59399
59878
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
59400
59879
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
59401
59880
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
@@ -60418,6 +60897,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
60418
60897
|
}
|
|
60419
60898
|
}
|
|
60420
60899
|
|
|
60900
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
60901
|
+
* retrieved.
|
|
60902
|
+
*
|
|
60903
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
60904
|
+
*
|
|
60905
|
+
*/
|
|
60906
|
+
get gateway(): (URL | null) {
|
|
60907
|
+
if (this._warning != null) {
|
|
60908
|
+
getLogger(this._warning.category).warn(
|
|
60909
|
+
this._warning.message,
|
|
60910
|
+
this._warning.values
|
|
60911
|
+
);
|
|
60912
|
+
}
|
|
60913
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
60914
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
60915
|
+
}
|
|
60916
|
+
|
|
60917
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
60918
|
+
* retrieved.
|
|
60919
|
+
*
|
|
60920
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
60921
|
+
*
|
|
60922
|
+
*/
|
|
60923
|
+
get gateways(): (URL)[] {
|
|
60924
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
60925
|
+
}
|
|
60926
|
+
|
|
60421
60927
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
60422
60928
|
* automatically approved, but instead are examined by a person who may accept
|
|
60423
60929
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -63726,6 +64232,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
63726
64232
|
|
|
63727
64233
|
}
|
|
63728
64234
|
|
|
64235
|
+
compactItems = [];
|
|
64236
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
64237
|
+
const item = (
|
|
64238
|
+
formatIri(v)
|
|
64239
|
+
);
|
|
64240
|
+
compactItems.push(item);
|
|
64241
|
+
}
|
|
64242
|
+
if (compactItems.length > 0) {
|
|
64243
|
+
|
|
64244
|
+
result[\\"gateways\\"] = compactItems;
|
|
64245
|
+
|
|
64246
|
+
}
|
|
64247
|
+
|
|
63729
64248
|
compactItems = [];
|
|
63730
64249
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
63731
64250
|
const item = (
|
|
@@ -64140,7 +64659,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64140
64659
|
|
|
64141
64660
|
result[\\"type\\"] = \\"Group\\";
|
|
64142
64661
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
64143
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
64662
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
64144
64663
|
return result;
|
|
64145
64664
|
}
|
|
64146
64665
|
|
|
@@ -64205,6 +64724,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64205
64724
|
|
|
64206
64725
|
}
|
|
64207
64726
|
|
|
64727
|
+
array = [];
|
|
64728
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
64729
|
+
const element = (
|
|
64730
|
+
{ \\"@id\\": formatIri(v) }
|
|
64731
|
+
);
|
|
64732
|
+
array.push(element);;
|
|
64733
|
+
}
|
|
64734
|
+
if (array.length > 0) {
|
|
64735
|
+
const propValue = (
|
|
64736
|
+
{ \\"@list\\": array }
|
|
64737
|
+
);
|
|
64738
|
+
values[\\"https://w3id.org/fep/ef61/gateways\\"] = propValue;
|
|
64739
|
+
|
|
64740
|
+
}
|
|
64741
|
+
|
|
64208
64742
|
array = [];
|
|
64209
64743
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
64210
64744
|
const element = (
|
|
@@ -64514,7 +65048,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64514
65048
|
);
|
|
64515
65049
|
}
|
|
64516
65050
|
const docContext = options.context ??
|
|
64517
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
65051
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
64518
65052
|
const compacted = await jsonld.compact(
|
|
64519
65053
|
values,
|
|
64520
65054
|
docContext,
|
|
@@ -64756,6 +65290,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64756
65290
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
64757
65291
|
}
|
|
64758
65292
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
65293
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
65294
|
+
|
|
65295
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values[\\"https://w3id.org/fep/ef61/gateways\\"];
|
|
65296
|
+
|
|
65297
|
+
for (
|
|
65298
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
65299
|
+
? []
|
|
65300
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && \\"@list\\" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
65301
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0][\\"@list\\"]
|
|
65302
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
65303
|
+
) {
|
|
65304
|
+
if (v == null) continue;
|
|
65305
|
+
|
|
65306
|
+
const decoded = parseGatewayUrl(typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]);
|
|
65307
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
65308
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
65309
|
+
}
|
|
65310
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
64759
65311
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
64760
65312
|
|
|
64761
65313
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values[\\"https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers\\"];
|
|
@@ -65427,6 +65979,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
65427
65979
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
65428
65980
|
}
|
|
65429
65981
|
|
|
65982
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
65983
|
+
// deno-lint-ignore no-explicit-any
|
|
65984
|
+
.map((v: any) => v instanceof URL
|
|
65985
|
+
? {
|
|
65986
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
65987
|
+
inspect: typeof Deno.inspect,
|
|
65988
|
+
options: Deno.InspectOptions,
|
|
65989
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
65990
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
65991
|
+
_depth: number,
|
|
65992
|
+
options: unknown,
|
|
65993
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
65994
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
65995
|
+
}
|
|
65996
|
+
: v);
|
|
65997
|
+
|
|
65998
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
65999
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
66000
|
+
}
|
|
66001
|
+
|
|
66002
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
66003
|
+
|| !(\\"gateway\\" in proxy)
|
|
66004
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
66005
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
66006
|
+
}
|
|
66007
|
+
|
|
65430
66008
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
65431
66009
|
// deno-lint-ignore no-explicit-any
|
|
65432
66010
|
.map((v: any) => v instanceof URL
|
|
@@ -65933,6 +66511,7 @@ export class Link {
|
|
|
65933
66511
|
#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href: (URL)[] = [];
|
|
65934
66512
|
#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel: (string)[] = [];
|
|
65935
66513
|
#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType: (string)[] = [];
|
|
66514
|
+
#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
65936
66515
|
#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = [];
|
|
65937
66516
|
#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang: (Intl.Locale)[] = [];
|
|
65938
66517
|
#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height: (number)[] = [];
|
|
@@ -65951,7 +66530,7 @@ export class Link {
|
|
|
65951
66530
|
{
|
|
65952
66531
|
id?: URL | null;
|
|
65953
66532
|
href?: URL | null;rel?: string | null;
|
|
65954
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
66533
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
65955
66534
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
65956
66535
|
,
|
|
65957
66536
|
options: {
|
|
@@ -66041,6 +66620,19 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
66041
66620
|
}
|
|
66042
66621
|
}
|
|
66043
66622
|
|
|
66623
|
+
if (\\"digestMultibase\\" in values && values.digestMultibase != null) {
|
|
66624
|
+
if (typeof values.digestMultibase === \\"string\\") {
|
|
66625
|
+
// @ts-ignore: type is checked above.
|
|
66626
|
+
this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
66627
|
+
|
|
66628
|
+
} else {
|
|
66629
|
+
throw new TypeError(
|
|
66630
|
+
\\"The digestMultibase must be of type \\" +
|
|
66631
|
+
\\"string\\" + \\".\\",
|
|
66632
|
+
);
|
|
66633
|
+
}
|
|
66634
|
+
}
|
|
66635
|
+
|
|
66044
66636
|
if (\\"name\\" in values && values.name != null) {
|
|
66045
66637
|
if (typeof values.name === \\"string\\" || values.name instanceof LanguageString) {
|
|
66046
66638
|
// @ts-ignore: type is checked above.
|
|
@@ -66147,7 +66739,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
66147
66739
|
{
|
|
66148
66740
|
id?: URL | null;
|
|
66149
66741
|
href?: URL | null;rel?: string | null;
|
|
66150
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
66742
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
66151
66743
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
66152
66744
|
|
|
66153
66745
|
= {},
|
|
@@ -66232,6 +66824,19 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
66232
66824
|
);
|
|
66233
66825
|
}
|
|
66234
66826
|
}
|
|
66827
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
66828
|
+
if (\\"digestMultibase\\" in values && values.digestMultibase != null) {
|
|
66829
|
+
if (typeof values.digestMultibase === \\"string\\") {
|
|
66830
|
+
// @ts-ignore: type is checked above.
|
|
66831
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
66832
|
+
|
|
66833
|
+
} else {
|
|
66834
|
+
throw new TypeError(
|
|
66835
|
+
\\"The digestMultibase must be of type \\" +
|
|
66836
|
+
\\"string\\" + \\".\\",
|
|
66837
|
+
);
|
|
66838
|
+
}
|
|
66839
|
+
}
|
|
66235
66840
|
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
66236
66841
|
if (\\"name\\" in values && values.name != null) {
|
|
66237
66842
|
if (typeof values.name === \\"string\\" || values.name instanceof LanguageString) {
|
|
@@ -66390,6 +66995,22 @@ get rels(): (string)[] {
|
|
|
66390
66995
|
return this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType[0];
|
|
66391
66996
|
}
|
|
66392
66997
|
|
|
66998
|
+
/** The multibase-encoded integrity digest of the linked resource.
|
|
66999
|
+
*
|
|
67000
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
67001
|
+
*
|
|
67002
|
+
*/
|
|
67003
|
+
get digestMultibase(): (string | null) {
|
|
67004
|
+
if (this._warning != null) {
|
|
67005
|
+
getLogger(this._warning.category).warn(
|
|
67006
|
+
this._warning.message,
|
|
67007
|
+
this._warning.values
|
|
67008
|
+
);
|
|
67009
|
+
}
|
|
67010
|
+
if (this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length < 1) return null;
|
|
67011
|
+
return this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
67012
|
+
}
|
|
67013
|
+
|
|
66393
67014
|
/** A simple, human-readable, plain-text name for the object. HTML markup MUST
|
|
66394
67015
|
* NOT be included. The name MAY be expressed using multiple language-tagged
|
|
66395
67016
|
* values.
|
|
@@ -66779,6 +67400,22 @@ get names(): ((string | LanguageString))[] {
|
|
|
66779
67400
|
|
|
66780
67401
|
}
|
|
66781
67402
|
|
|
67403
|
+
compactItems = [];
|
|
67404
|
+
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
67405
|
+
const item = (
|
|
67406
|
+
v
|
|
67407
|
+
);
|
|
67408
|
+
compactItems.push(item);
|
|
67409
|
+
}
|
|
67410
|
+
if (compactItems.length > 0) {
|
|
67411
|
+
|
|
67412
|
+
result[\\"digestMultibase\\"]
|
|
67413
|
+
= compactItems.length > 1
|
|
67414
|
+
? compactItems
|
|
67415
|
+
: compactItems[0];
|
|
67416
|
+
|
|
67417
|
+
}
|
|
67418
|
+
|
|
66782
67419
|
compactItems = [];
|
|
66783
67420
|
for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name) {
|
|
66784
67421
|
const item = (
|
|
@@ -66872,7 +67509,7 @@ get names(): ((string | LanguageString))[] {
|
|
|
66872
67509
|
|
|
66873
67510
|
result[\\"type\\"] = \\"Link\\";
|
|
66874
67511
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
66875
|
-
result[\\"@context\\"] = \\"https://www.w3.org/ns/activitystreams\\";
|
|
67512
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\"];
|
|
66876
67513
|
return result;
|
|
66877
67514
|
}
|
|
66878
67515
|
|
|
@@ -66924,6 +67561,21 @@ get names(): ((string | LanguageString))[] {
|
|
|
66924
67561
|
|
|
66925
67562
|
}
|
|
66926
67563
|
|
|
67564
|
+
array = [];
|
|
67565
|
+
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
67566
|
+
const element = (
|
|
67567
|
+
{ \\"@value\\": v }
|
|
67568
|
+
);
|
|
67569
|
+
array.push(element);;
|
|
67570
|
+
}
|
|
67571
|
+
if (array.length > 0) {
|
|
67572
|
+
const propValue = (
|
|
67573
|
+
array
|
|
67574
|
+
);
|
|
67575
|
+
values[\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"] = propValue;
|
|
67576
|
+
|
|
67577
|
+
}
|
|
67578
|
+
|
|
66927
67579
|
array = [];
|
|
66928
67580
|
for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name) {
|
|
66929
67581
|
const element = (
|
|
@@ -67017,7 +67669,7 @@ get names(): ((string | LanguageString))[] {
|
|
|
67017
67669
|
);
|
|
67018
67670
|
}
|
|
67019
67671
|
const docContext = options.context ??
|
|
67020
|
-
\\"https://www.w3.org/ns/activitystreams\\";
|
|
67672
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\"];
|
|
67021
67673
|
const compacted = await jsonld.compact(
|
|
67022
67674
|
values,
|
|
67023
67675
|
docContext,
|
|
@@ -67218,6 +67870,24 @@ get names(): ((string | LanguageString))[] {
|
|
|
67218
67870
|
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
67219
67871
|
}
|
|
67220
67872
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
67873
|
+
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
67874
|
+
|
|
67875
|
+
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values[\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"];
|
|
67876
|
+
|
|
67877
|
+
for (
|
|
67878
|
+
const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null
|
|
67879
|
+
? []
|
|
67880
|
+
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && \\"@list\\" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]
|
|
67881
|
+
? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0][\\"@list\\"]
|
|
67882
|
+
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array
|
|
67883
|
+
) {
|
|
67884
|
+
if (v == null) continue;
|
|
67885
|
+
|
|
67886
|
+
const decoded = v[\\"@value\\"];
|
|
67887
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
67888
|
+
_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.push(decoded);
|
|
67889
|
+
}
|
|
67890
|
+
instance.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
67221
67891
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = [];
|
|
67222
67892
|
|
|
67223
67893
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values[\\"https://www.w3.org/ns/activitystreams#name\\"];
|
|
@@ -67445,6 +68115,26 @@ get names(): ((string | LanguageString))[] {
|
|
|
67445
68115
|
proxy.mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType[0];
|
|
67446
68116
|
}
|
|
67447
68117
|
|
|
68118
|
+
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase
|
|
68119
|
+
// deno-lint-ignore no-explicit-any
|
|
68120
|
+
.map((v: any) => v instanceof URL
|
|
68121
|
+
? {
|
|
68122
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
68123
|
+
inspect: typeof Deno.inspect,
|
|
68124
|
+
options: Deno.InspectOptions,
|
|
68125
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
68126
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
68127
|
+
_depth: number,
|
|
68128
|
+
options: unknown,
|
|
68129
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
68130
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
68131
|
+
}
|
|
68132
|
+
: v);
|
|
68133
|
+
|
|
68134
|
+
if (_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length == 1) {
|
|
68135
|
+
proxy.digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
68136
|
+
}
|
|
68137
|
+
|
|
67448
68138
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name
|
|
67449
68139
|
// deno-lint-ignore no-explicit-any
|
|
67450
68140
|
.map((v: any) => v instanceof URL
|
|
@@ -67604,7 +68294,7 @@ export class Hashtag extends Link {
|
|
|
67604
68294
|
{
|
|
67605
68295
|
id?: URL | null;
|
|
67606
68296
|
href?: URL | null;rel?: string | null;
|
|
67607
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
68297
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
67608
68298
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
67609
68299
|
,
|
|
67610
68300
|
options: {
|
|
@@ -67626,7 +68316,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
67626
68316
|
{
|
|
67627
68317
|
id?: URL | null;
|
|
67628
68318
|
href?: URL | null;rel?: string | null;
|
|
67629
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
68319
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
67630
68320
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
67631
68321
|
|
|
67632
68322
|
= {},
|
|
@@ -67943,7 +68633,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
67943
68633
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
67944
68634
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
67945
68635
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
67946
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
68636
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
67947
68637
|
,
|
|
67948
68638
|
options: {
|
|
67949
68639
|
documentLoader?: DocumentLoader,
|
|
@@ -67979,7 +68669,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
67979
68669
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
67980
68670
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
67981
68671
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
67982
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
68672
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
67983
68673
|
|
|
67984
68674
|
= {},
|
|
67985
68675
|
options: {
|
|
@@ -68041,7 +68731,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
68041
68731
|
|
|
68042
68732
|
result[\\"type\\"] = \\"Image\\";
|
|
68043
68733
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
68044
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
68734
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
68045
68735
|
return result;
|
|
68046
68736
|
}
|
|
68047
68737
|
|
|
@@ -68067,7 +68757,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
68067
68757
|
);
|
|
68068
68758
|
}
|
|
68069
68759
|
const docContext = options.context ??
|
|
68070
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
68760
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
68071
68761
|
const compacted = await jsonld.compact(
|
|
68072
68762
|
values,
|
|
68073
68763
|
docContext,
|
|
@@ -70454,7 +71144,7 @@ export class Mention extends Link {
|
|
|
70454
71144
|
{
|
|
70455
71145
|
id?: URL | null;
|
|
70456
71146
|
href?: URL | null;rel?: string | null;
|
|
70457
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
71147
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
70458
71148
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
70459
71149
|
,
|
|
70460
71150
|
options: {
|
|
@@ -70476,7 +71166,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
70476
71166
|
{
|
|
70477
71167
|
id?: URL | null;
|
|
70478
71168
|
href?: URL | null;rel?: string | null;
|
|
70479
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
71169
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
70480
71170
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
70481
71171
|
|
|
70482
71172
|
= {},
|
|
@@ -73185,7 +73875,8 @@ export class Organization extends Object {
|
|
|
73185
73875
|
|
|
73186
73876
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
73187
73877
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
73188
|
-
#
|
|
73878
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
73879
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
73189
73880
|
|
|
73190
73881
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
73191
73882
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -73258,7 +73949,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
73258
73949
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
73259
73950
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
73260
73951
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
73261
|
-
assertionMethods?: (Multikey | URL)[];
|
|
73952
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
73953
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
73262
73954
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
73263
73955
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
73264
73956
|
,
|
|
@@ -73385,6 +74077,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
73385
74077
|
}
|
|
73386
74078
|
}
|
|
73387
74079
|
|
|
74080
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
74081
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
74082
|
+
// @ts-ignore: type is checked above.
|
|
74083
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
74084
|
+
|
|
74085
|
+
} else {
|
|
74086
|
+
throw new TypeError(
|
|
74087
|
+
\\"The gateway must be of type \\" +
|
|
74088
|
+
\\"URL\\" + \\".\\",
|
|
74089
|
+
);
|
|
74090
|
+
}
|
|
74091
|
+
}
|
|
74092
|
+
|
|
74093
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
74094
|
+
|
|
74095
|
+
if (\\"gateway\\" in values &&
|
|
74096
|
+
values.gateway != null) {
|
|
74097
|
+
throw new TypeError(
|
|
74098
|
+
\\"Cannot initialize both gateway and \\" +
|
|
74099
|
+
\\"gateways at the same time.\\",
|
|
74100
|
+
);
|
|
74101
|
+
}
|
|
74102
|
+
|
|
74103
|
+
if (Array.isArray(values.gateways) &&
|
|
74104
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
74105
|
+
// @ts-ignore: type is checked above.
|
|
74106
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
74107
|
+
|
|
74108
|
+
} else {
|
|
74109
|
+
throw new TypeError(
|
|
74110
|
+
\\"The gateways must be an array of type \\" +
|
|
74111
|
+
\\"URL\\" + \\".\\",
|
|
74112
|
+
);
|
|
74113
|
+
}
|
|
74114
|
+
}
|
|
74115
|
+
|
|
73388
74116
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
73389
74117
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
73390
74118
|
// @ts-ignore: type is checked above.
|
|
@@ -73735,7 +74463,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
73735
74463
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
73736
74464
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
73737
74465
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
73738
|
-
assertionMethods?: (Multikey | URL)[];
|
|
74466
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
74467
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
73739
74468
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
73740
74469
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
73741
74470
|
|
|
@@ -73871,6 +74600,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
73871
74600
|
);
|
|
73872
74601
|
}
|
|
73873
74602
|
}
|
|
74603
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
74604
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
74605
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
74606
|
+
// @ts-ignore: type is checked above.
|
|
74607
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
74608
|
+
|
|
74609
|
+
} else {
|
|
74610
|
+
throw new TypeError(
|
|
74611
|
+
\\"The gateway must be of type \\" +
|
|
74612
|
+
\\"URL\\" + \\".\\",
|
|
74613
|
+
);
|
|
74614
|
+
}
|
|
74615
|
+
}
|
|
74616
|
+
|
|
74617
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
74618
|
+
|
|
74619
|
+
if (\\"gateway\\" in values &&
|
|
74620
|
+
values.gateway != null) {
|
|
74621
|
+
throw new TypeError(
|
|
74622
|
+
\\"Cannot update both gateway and \\" +
|
|
74623
|
+
\\"gateways at the same time.\\",
|
|
74624
|
+
);
|
|
74625
|
+
}
|
|
74626
|
+
|
|
74627
|
+
if (Array.isArray(values.gateways) &&
|
|
74628
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
74629
|
+
// @ts-ignore: type is checked above.
|
|
74630
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
74631
|
+
|
|
74632
|
+
} else {
|
|
74633
|
+
throw new TypeError(
|
|
74634
|
+
\\"The gateways must be an array of type \\" +
|
|
74635
|
+
\\"URL\\" + \\".\\",
|
|
74636
|
+
);
|
|
74637
|
+
}
|
|
74638
|
+
}
|
|
73874
74639
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
73875
74640
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
73876
74641
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
@@ -74893,6 +75658,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
74893
75658
|
}
|
|
74894
75659
|
}
|
|
74895
75660
|
|
|
75661
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
75662
|
+
* retrieved.
|
|
75663
|
+
*
|
|
75664
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
75665
|
+
*
|
|
75666
|
+
*/
|
|
75667
|
+
get gateway(): (URL | null) {
|
|
75668
|
+
if (this._warning != null) {
|
|
75669
|
+
getLogger(this._warning.category).warn(
|
|
75670
|
+
this._warning.message,
|
|
75671
|
+
this._warning.values
|
|
75672
|
+
);
|
|
75673
|
+
}
|
|
75674
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
75675
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
75676
|
+
}
|
|
75677
|
+
|
|
75678
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
75679
|
+
* retrieved.
|
|
75680
|
+
*
|
|
75681
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
75682
|
+
*
|
|
75683
|
+
*/
|
|
75684
|
+
get gateways(): (URL)[] {
|
|
75685
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
75686
|
+
}
|
|
75687
|
+
|
|
74896
75688
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
74897
75689
|
* automatically approved, but instead are examined by a person who may accept
|
|
74898
75690
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -78201,6 +78993,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
78201
78993
|
|
|
78202
78994
|
}
|
|
78203
78995
|
|
|
78996
|
+
compactItems = [];
|
|
78997
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
78998
|
+
const item = (
|
|
78999
|
+
formatIri(v)
|
|
79000
|
+
);
|
|
79001
|
+
compactItems.push(item);
|
|
79002
|
+
}
|
|
79003
|
+
if (compactItems.length > 0) {
|
|
79004
|
+
|
|
79005
|
+
result[\\"gateways\\"] = compactItems;
|
|
79006
|
+
|
|
79007
|
+
}
|
|
79008
|
+
|
|
78204
79009
|
compactItems = [];
|
|
78205
79010
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
78206
79011
|
const item = (
|
|
@@ -78615,7 +79420,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
78615
79420
|
|
|
78616
79421
|
result[\\"type\\"] = \\"Organization\\";
|
|
78617
79422
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
78618
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
79423
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
78619
79424
|
return result;
|
|
78620
79425
|
}
|
|
78621
79426
|
|
|
@@ -78680,6 +79485,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
78680
79485
|
|
|
78681
79486
|
}
|
|
78682
79487
|
|
|
79488
|
+
array = [];
|
|
79489
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
79490
|
+
const element = (
|
|
79491
|
+
{ \\"@id\\": formatIri(v) }
|
|
79492
|
+
);
|
|
79493
|
+
array.push(element);;
|
|
79494
|
+
}
|
|
79495
|
+
if (array.length > 0) {
|
|
79496
|
+
const propValue = (
|
|
79497
|
+
{ \\"@list\\": array }
|
|
79498
|
+
);
|
|
79499
|
+
values[\\"https://w3id.org/fep/ef61/gateways\\"] = propValue;
|
|
79500
|
+
|
|
79501
|
+
}
|
|
79502
|
+
|
|
78683
79503
|
array = [];
|
|
78684
79504
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
78685
79505
|
const element = (
|
|
@@ -78989,7 +79809,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
78989
79809
|
);
|
|
78990
79810
|
}
|
|
78991
79811
|
const docContext = options.context ??
|
|
78992
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
79812
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
78993
79813
|
const compacted = await jsonld.compact(
|
|
78994
79814
|
values,
|
|
78995
79815
|
docContext,
|
|
@@ -79231,6 +80051,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
79231
80051
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
79232
80052
|
}
|
|
79233
80053
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
80054
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
80055
|
+
|
|
80056
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values[\\"https://w3id.org/fep/ef61/gateways\\"];
|
|
80057
|
+
|
|
80058
|
+
for (
|
|
80059
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
80060
|
+
? []
|
|
80061
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && \\"@list\\" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
80062
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0][\\"@list\\"]
|
|
80063
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
80064
|
+
) {
|
|
80065
|
+
if (v == null) continue;
|
|
80066
|
+
|
|
80067
|
+
const decoded = parseGatewayUrl(typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]);
|
|
80068
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
80069
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
80070
|
+
}
|
|
80071
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
79234
80072
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
79235
80073
|
|
|
79236
80074
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values[\\"https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers\\"];
|
|
@@ -79902,6 +80740,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
79902
80740
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
79903
80741
|
}
|
|
79904
80742
|
|
|
80743
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
80744
|
+
// deno-lint-ignore no-explicit-any
|
|
80745
|
+
.map((v: any) => v instanceof URL
|
|
80746
|
+
? {
|
|
80747
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
80748
|
+
inspect: typeof Deno.inspect,
|
|
80749
|
+
options: Deno.InspectOptions,
|
|
80750
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
80751
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
80752
|
+
_depth: number,
|
|
80753
|
+
options: unknown,
|
|
80754
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
80755
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
80756
|
+
}
|
|
80757
|
+
: v);
|
|
80758
|
+
|
|
80759
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
80760
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
80761
|
+
}
|
|
80762
|
+
|
|
80763
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
80764
|
+
|| !(\\"gateway\\" in proxy)
|
|
80765
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
80766
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
80767
|
+
}
|
|
80768
|
+
|
|
79905
80769
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
79906
80770
|
// deno-lint-ignore no-explicit-any
|
|
79907
80771
|
.map((v: any) => v instanceof URL
|
|
@@ -80379,7 +81243,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
80379
81243
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
80380
81244
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
80381
81245
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
80382
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
81246
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
80383
81247
|
,
|
|
80384
81248
|
options: {
|
|
80385
81249
|
documentLoader?: DocumentLoader,
|
|
@@ -80415,7 +81279,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
80415
81279
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
80416
81280
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
80417
81281
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
80418
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
81282
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
80419
81283
|
|
|
80420
81284
|
= {},
|
|
80421
81285
|
options: {
|
|
@@ -80477,7 +81341,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
80477
81341
|
|
|
80478
81342
|
result[\\"type\\"] = \\"Page\\";
|
|
80479
81343
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
80480
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
81344
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
80481
81345
|
return result;
|
|
80482
81346
|
}
|
|
80483
81347
|
|
|
@@ -80503,7 +81367,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
80503
81367
|
);
|
|
80504
81368
|
}
|
|
80505
81369
|
const docContext = options.context ??
|
|
80506
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
81370
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
80507
81371
|
const compacted = await jsonld.compact(
|
|
80508
81372
|
values,
|
|
80509
81373
|
docContext,
|
|
@@ -80723,7 +81587,8 @@ export class Person extends Object {
|
|
|
80723
81587
|
|
|
80724
81588
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
80725
81589
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
80726
|
-
#
|
|
81590
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
81591
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
80727
81592
|
|
|
80728
81593
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
80729
81594
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -80796,7 +81661,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
80796
81661
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
80797
81662
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
80798
81663
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
80799
|
-
assertionMethods?: (Multikey | URL)[];
|
|
81664
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
81665
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
80800
81666
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
80801
81667
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
80802
81668
|
,
|
|
@@ -80923,6 +81789,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
80923
81789
|
}
|
|
80924
81790
|
}
|
|
80925
81791
|
|
|
81792
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
81793
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
81794
|
+
// @ts-ignore: type is checked above.
|
|
81795
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
81796
|
+
|
|
81797
|
+
} else {
|
|
81798
|
+
throw new TypeError(
|
|
81799
|
+
\\"The gateway must be of type \\" +
|
|
81800
|
+
\\"URL\\" + \\".\\",
|
|
81801
|
+
);
|
|
81802
|
+
}
|
|
81803
|
+
}
|
|
81804
|
+
|
|
81805
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
81806
|
+
|
|
81807
|
+
if (\\"gateway\\" in values &&
|
|
81808
|
+
values.gateway != null) {
|
|
81809
|
+
throw new TypeError(
|
|
81810
|
+
\\"Cannot initialize both gateway and \\" +
|
|
81811
|
+
\\"gateways at the same time.\\",
|
|
81812
|
+
);
|
|
81813
|
+
}
|
|
81814
|
+
|
|
81815
|
+
if (Array.isArray(values.gateways) &&
|
|
81816
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
81817
|
+
// @ts-ignore: type is checked above.
|
|
81818
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
81819
|
+
|
|
81820
|
+
} else {
|
|
81821
|
+
throw new TypeError(
|
|
81822
|
+
\\"The gateways must be an array of type \\" +
|
|
81823
|
+
\\"URL\\" + \\".\\",
|
|
81824
|
+
);
|
|
81825
|
+
}
|
|
81826
|
+
}
|
|
81827
|
+
|
|
80926
81828
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
80927
81829
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
80928
81830
|
// @ts-ignore: type is checked above.
|
|
@@ -81273,7 +82175,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
81273
82175
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
81274
82176
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
81275
82177
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
81276
|
-
assertionMethods?: (Multikey | URL)[];
|
|
82178
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
82179
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
81277
82180
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
81278
82181
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
81279
82182
|
|
|
@@ -81409,6 +82312,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
81409
82312
|
);
|
|
81410
82313
|
}
|
|
81411
82314
|
}
|
|
82315
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
82316
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
82317
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
82318
|
+
// @ts-ignore: type is checked above.
|
|
82319
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
82320
|
+
|
|
82321
|
+
} else {
|
|
82322
|
+
throw new TypeError(
|
|
82323
|
+
\\"The gateway must be of type \\" +
|
|
82324
|
+
\\"URL\\" + \\".\\",
|
|
82325
|
+
);
|
|
82326
|
+
}
|
|
82327
|
+
}
|
|
82328
|
+
|
|
82329
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
82330
|
+
|
|
82331
|
+
if (\\"gateway\\" in values &&
|
|
82332
|
+
values.gateway != null) {
|
|
82333
|
+
throw new TypeError(
|
|
82334
|
+
\\"Cannot update both gateway and \\" +
|
|
82335
|
+
\\"gateways at the same time.\\",
|
|
82336
|
+
);
|
|
82337
|
+
}
|
|
82338
|
+
|
|
82339
|
+
if (Array.isArray(values.gateways) &&
|
|
82340
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
82341
|
+
// @ts-ignore: type is checked above.
|
|
82342
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
82343
|
+
|
|
82344
|
+
} else {
|
|
82345
|
+
throw new TypeError(
|
|
82346
|
+
\\"The gateways must be an array of type \\" +
|
|
82347
|
+
\\"URL\\" + \\".\\",
|
|
82348
|
+
);
|
|
82349
|
+
}
|
|
82350
|
+
}
|
|
81412
82351
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
81413
82352
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
81414
82353
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
@@ -82431,6 +83370,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
82431
83370
|
}
|
|
82432
83371
|
}
|
|
82433
83372
|
|
|
83373
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
83374
|
+
* retrieved.
|
|
83375
|
+
*
|
|
83376
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
83377
|
+
*
|
|
83378
|
+
*/
|
|
83379
|
+
get gateway(): (URL | null) {
|
|
83380
|
+
if (this._warning != null) {
|
|
83381
|
+
getLogger(this._warning.category).warn(
|
|
83382
|
+
this._warning.message,
|
|
83383
|
+
this._warning.values
|
|
83384
|
+
);
|
|
83385
|
+
}
|
|
83386
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
83387
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
83388
|
+
}
|
|
83389
|
+
|
|
83390
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
83391
|
+
* retrieved.
|
|
83392
|
+
*
|
|
83393
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
83394
|
+
*
|
|
83395
|
+
*/
|
|
83396
|
+
get gateways(): (URL)[] {
|
|
83397
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
83398
|
+
}
|
|
83399
|
+
|
|
82434
83400
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
82435
83401
|
* automatically approved, but instead are examined by a person who may accept
|
|
82436
83402
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -85739,6 +86705,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
85739
86705
|
|
|
85740
86706
|
}
|
|
85741
86707
|
|
|
86708
|
+
compactItems = [];
|
|
86709
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
86710
|
+
const item = (
|
|
86711
|
+
formatIri(v)
|
|
86712
|
+
);
|
|
86713
|
+
compactItems.push(item);
|
|
86714
|
+
}
|
|
86715
|
+
if (compactItems.length > 0) {
|
|
86716
|
+
|
|
86717
|
+
result[\\"gateways\\"] = compactItems;
|
|
86718
|
+
|
|
86719
|
+
}
|
|
86720
|
+
|
|
85742
86721
|
compactItems = [];
|
|
85743
86722
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
85744
86723
|
const item = (
|
|
@@ -86153,7 +87132,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
86153
87132
|
|
|
86154
87133
|
result[\\"type\\"] = \\"Person\\";
|
|
86155
87134
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
86156
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
87135
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
86157
87136
|
return result;
|
|
86158
87137
|
}
|
|
86159
87138
|
|
|
@@ -86218,6 +87197,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
86218
87197
|
|
|
86219
87198
|
}
|
|
86220
87199
|
|
|
87200
|
+
array = [];
|
|
87201
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
87202
|
+
const element = (
|
|
87203
|
+
{ \\"@id\\": formatIri(v) }
|
|
87204
|
+
);
|
|
87205
|
+
array.push(element);;
|
|
87206
|
+
}
|
|
87207
|
+
if (array.length > 0) {
|
|
87208
|
+
const propValue = (
|
|
87209
|
+
{ \\"@list\\": array }
|
|
87210
|
+
);
|
|
87211
|
+
values[\\"https://w3id.org/fep/ef61/gateways\\"] = propValue;
|
|
87212
|
+
|
|
87213
|
+
}
|
|
87214
|
+
|
|
86221
87215
|
array = [];
|
|
86222
87216
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
86223
87217
|
const element = (
|
|
@@ -86527,7 +87521,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
86527
87521
|
);
|
|
86528
87522
|
}
|
|
86529
87523
|
const docContext = options.context ??
|
|
86530
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
87524
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
86531
87525
|
const compacted = await jsonld.compact(
|
|
86532
87526
|
values,
|
|
86533
87527
|
docContext,
|
|
@@ -86769,6 +87763,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
86769
87763
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
86770
87764
|
}
|
|
86771
87765
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
87766
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
87767
|
+
|
|
87768
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values[\\"https://w3id.org/fep/ef61/gateways\\"];
|
|
87769
|
+
|
|
87770
|
+
for (
|
|
87771
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
87772
|
+
? []
|
|
87773
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && \\"@list\\" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
87774
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0][\\"@list\\"]
|
|
87775
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
87776
|
+
) {
|
|
87777
|
+
if (v == null) continue;
|
|
87778
|
+
|
|
87779
|
+
const decoded = parseGatewayUrl(typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]);
|
|
87780
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
87781
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
87782
|
+
}
|
|
87783
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
86772
87784
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
86773
87785
|
|
|
86774
87786
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values[\\"https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers\\"];
|
|
@@ -87440,6 +88452,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
87440
88452
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
87441
88453
|
}
|
|
87442
88454
|
|
|
88455
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
88456
|
+
// deno-lint-ignore no-explicit-any
|
|
88457
|
+
.map((v: any) => v instanceof URL
|
|
88458
|
+
? {
|
|
88459
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
88460
|
+
inspect: typeof Deno.inspect,
|
|
88461
|
+
options: Deno.InspectOptions,
|
|
88462
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
88463
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
88464
|
+
_depth: number,
|
|
88465
|
+
options: unknown,
|
|
88466
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
88467
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
88468
|
+
}
|
|
88469
|
+
: v);
|
|
88470
|
+
|
|
88471
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
88472
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
88473
|
+
}
|
|
88474
|
+
|
|
88475
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
88476
|
+
|| !(\\"gateway\\" in proxy)
|
|
88477
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
88478
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
88479
|
+
}
|
|
88480
|
+
|
|
87443
88481
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
87444
88482
|
// deno-lint-ignore no-explicit-any
|
|
87445
88483
|
.map((v: any) => v instanceof URL
|
|
@@ -94499,7 +95537,8 @@ export class Service extends Object {
|
|
|
94499
95537
|
|
|
94500
95538
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
94501
95539
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
94502
|
-
#
|
|
95540
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
95541
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
94503
95542
|
|
|
94504
95543
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
94505
95544
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -94572,7 +95611,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
94572
95611
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
94573
95612
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
94574
95613
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
94575
|
-
assertionMethods?: (Multikey | URL)[];
|
|
95614
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
95615
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
94576
95616
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
94577
95617
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
94578
95618
|
,
|
|
@@ -94699,6 +95739,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
94699
95739
|
}
|
|
94700
95740
|
}
|
|
94701
95741
|
|
|
95742
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
95743
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
95744
|
+
// @ts-ignore: type is checked above.
|
|
95745
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
95746
|
+
|
|
95747
|
+
} else {
|
|
95748
|
+
throw new TypeError(
|
|
95749
|
+
\\"The gateway must be of type \\" +
|
|
95750
|
+
\\"URL\\" + \\".\\",
|
|
95751
|
+
);
|
|
95752
|
+
}
|
|
95753
|
+
}
|
|
95754
|
+
|
|
95755
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
95756
|
+
|
|
95757
|
+
if (\\"gateway\\" in values &&
|
|
95758
|
+
values.gateway != null) {
|
|
95759
|
+
throw new TypeError(
|
|
95760
|
+
\\"Cannot initialize both gateway and \\" +
|
|
95761
|
+
\\"gateways at the same time.\\",
|
|
95762
|
+
);
|
|
95763
|
+
}
|
|
95764
|
+
|
|
95765
|
+
if (Array.isArray(values.gateways) &&
|
|
95766
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
95767
|
+
// @ts-ignore: type is checked above.
|
|
95768
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
95769
|
+
|
|
95770
|
+
} else {
|
|
95771
|
+
throw new TypeError(
|
|
95772
|
+
\\"The gateways must be an array of type \\" +
|
|
95773
|
+
\\"URL\\" + \\".\\",
|
|
95774
|
+
);
|
|
95775
|
+
}
|
|
95776
|
+
}
|
|
95777
|
+
|
|
94702
95778
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
94703
95779
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
94704
95780
|
// @ts-ignore: type is checked above.
|
|
@@ -95049,7 +96125,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
95049
96125
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
95050
96126
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
95051
96127
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
95052
|
-
assertionMethods?: (Multikey | URL)[];
|
|
96128
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
96129
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
95053
96130
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
95054
96131
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
95055
96132
|
|
|
@@ -95185,6 +96262,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
95185
96262
|
);
|
|
95186
96263
|
}
|
|
95187
96264
|
}
|
|
96265
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
96266
|
+
if (\\"gateway\\" in values && values.gateway != null) {
|
|
96267
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
96268
|
+
// @ts-ignore: type is checked above.
|
|
96269
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
96270
|
+
|
|
96271
|
+
} else {
|
|
96272
|
+
throw new TypeError(
|
|
96273
|
+
\\"The gateway must be of type \\" +
|
|
96274
|
+
\\"URL\\" + \\".\\",
|
|
96275
|
+
);
|
|
96276
|
+
}
|
|
96277
|
+
}
|
|
96278
|
+
|
|
96279
|
+
if (\\"gateways\\" in values && values.gateways != null) {
|
|
96280
|
+
|
|
96281
|
+
if (\\"gateway\\" in values &&
|
|
96282
|
+
values.gateway != null) {
|
|
96283
|
+
throw new TypeError(
|
|
96284
|
+
\\"Cannot update both gateway and \\" +
|
|
96285
|
+
\\"gateways at the same time.\\",
|
|
96286
|
+
);
|
|
96287
|
+
}
|
|
96288
|
+
|
|
96289
|
+
if (Array.isArray(values.gateways) &&
|
|
96290
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
96291
|
+
// @ts-ignore: type is checked above.
|
|
96292
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
96293
|
+
|
|
96294
|
+
} else {
|
|
96295
|
+
throw new TypeError(
|
|
96296
|
+
\\"The gateways must be an array of type \\" +
|
|
96297
|
+
\\"URL\\" + \\".\\",
|
|
96298
|
+
);
|
|
96299
|
+
}
|
|
96300
|
+
}
|
|
95188
96301
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
95189
96302
|
if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) {
|
|
95190
96303
|
if (typeof values.manuallyApprovesFollowers === \\"boolean\\") {
|
|
@@ -96207,6 +97320,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
96207
97320
|
}
|
|
96208
97321
|
}
|
|
96209
97322
|
|
|
97323
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
97324
|
+
* retrieved.
|
|
97325
|
+
*
|
|
97326
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
97327
|
+
*
|
|
97328
|
+
*/
|
|
97329
|
+
get gateway(): (URL | null) {
|
|
97330
|
+
if (this._warning != null) {
|
|
97331
|
+
getLogger(this._warning.category).warn(
|
|
97332
|
+
this._warning.message,
|
|
97333
|
+
this._warning.values
|
|
97334
|
+
);
|
|
97335
|
+
}
|
|
97336
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
97337
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
97338
|
+
}
|
|
97339
|
+
|
|
97340
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
97341
|
+
* retrieved.
|
|
97342
|
+
*
|
|
97343
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
97344
|
+
*
|
|
97345
|
+
*/
|
|
97346
|
+
get gateways(): (URL)[] {
|
|
97347
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
97348
|
+
}
|
|
97349
|
+
|
|
96210
97350
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
96211
97351
|
* automatically approved, but instead are examined by a person who may accept
|
|
96212
97352
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -99515,6 +100655,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
99515
100655
|
|
|
99516
100656
|
}
|
|
99517
100657
|
|
|
100658
|
+
compactItems = [];
|
|
100659
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
100660
|
+
const item = (
|
|
100661
|
+
formatIri(v)
|
|
100662
|
+
);
|
|
100663
|
+
compactItems.push(item);
|
|
100664
|
+
}
|
|
100665
|
+
if (compactItems.length > 0) {
|
|
100666
|
+
|
|
100667
|
+
result[\\"gateways\\"] = compactItems;
|
|
100668
|
+
|
|
100669
|
+
}
|
|
100670
|
+
|
|
99518
100671
|
compactItems = [];
|
|
99519
100672
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
99520
100673
|
const item = (
|
|
@@ -99929,7 +101082,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
99929
101082
|
|
|
99930
101083
|
result[\\"type\\"] = \\"Service\\";
|
|
99931
101084
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
99932
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
101085
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
99933
101086
|
return result;
|
|
99934
101087
|
}
|
|
99935
101088
|
|
|
@@ -99994,6 +101147,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
99994
101147
|
|
|
99995
101148
|
}
|
|
99996
101149
|
|
|
101150
|
+
array = [];
|
|
101151
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
101152
|
+
const element = (
|
|
101153
|
+
{ \\"@id\\": formatIri(v) }
|
|
101154
|
+
);
|
|
101155
|
+
array.push(element);;
|
|
101156
|
+
}
|
|
101157
|
+
if (array.length > 0) {
|
|
101158
|
+
const propValue = (
|
|
101159
|
+
{ \\"@list\\": array }
|
|
101160
|
+
);
|
|
101161
|
+
values[\\"https://w3id.org/fep/ef61/gateways\\"] = propValue;
|
|
101162
|
+
|
|
101163
|
+
}
|
|
101164
|
+
|
|
99997
101165
|
array = [];
|
|
99998
101166
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
99999
101167
|
const element = (
|
|
@@ -100303,7 +101471,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
100303
101471
|
);
|
|
100304
101472
|
}
|
|
100305
101473
|
const docContext = options.context ??
|
|
100306
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
101474
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://www.w3.org/ns/did/v1\\",\\"https://w3id.org/security/multikey/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"featuredCollections\\":{\\"@id\\":\\"https://w3id.org/fep/7aa9#featuredCollections\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\"}];
|
|
100307
101475
|
const compacted = await jsonld.compact(
|
|
100308
101476
|
values,
|
|
100309
101477
|
docContext,
|
|
@@ -100545,6 +101713,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
100545
101713
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
100546
101714
|
}
|
|
100547
101715
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
101716
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
101717
|
+
|
|
101718
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values[\\"https://w3id.org/fep/ef61/gateways\\"];
|
|
101719
|
+
|
|
101720
|
+
for (
|
|
101721
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
101722
|
+
? []
|
|
101723
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && \\"@list\\" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
101724
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0][\\"@list\\"]
|
|
101725
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
101726
|
+
) {
|
|
101727
|
+
if (v == null) continue;
|
|
101728
|
+
|
|
101729
|
+
const decoded = parseGatewayUrl(typeof v[\\"@id\\"] === \\"string\\" ? v[\\"@id\\"] : v[\\"@value\\"]);
|
|
101730
|
+
if (typeof decoded === \\"undefined\\") continue;
|
|
101731
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
101732
|
+
}
|
|
101733
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
100548
101734
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
100549
101735
|
|
|
100550
101736
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values[\\"https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers\\"];
|
|
@@ -101216,6 +102402,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
101216
102402
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
101217
102403
|
}
|
|
101218
102404
|
|
|
102405
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
102406
|
+
// deno-lint-ignore no-explicit-any
|
|
102407
|
+
.map((v: any) => v instanceof URL
|
|
102408
|
+
? {
|
|
102409
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
102410
|
+
inspect: typeof Deno.inspect,
|
|
102411
|
+
options: Deno.InspectOptions,
|
|
102412
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
102413
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
102414
|
+
_depth: number,
|
|
102415
|
+
options: unknown,
|
|
102416
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
102417
|
+
): string => \\"URL \\" + inspect(v.href, options),
|
|
102418
|
+
}
|
|
102419
|
+
: v);
|
|
102420
|
+
|
|
102421
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
102422
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
102423
|
+
}
|
|
102424
|
+
|
|
102425
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
102426
|
+
|| !(\\"gateway\\" in proxy)
|
|
102427
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
102428
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
102429
|
+
}
|
|
102430
|
+
|
|
101219
102431
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
101220
102432
|
// deno-lint-ignore no-explicit-any
|
|
101221
102433
|
.map((v: any) => v instanceof URL
|
|
@@ -104857,7 +106069,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
104857
106069
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
104858
106070
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
104859
106071
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
104860
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
106072
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
104861
106073
|
,
|
|
104862
106074
|
options: {
|
|
104863
106075
|
documentLoader?: DocumentLoader,
|
|
@@ -104893,7 +106105,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
104893
106105
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
104894
106106
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
104895
106107
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
104896
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
106108
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
104897
106109
|
|
|
104898
106110
|
= {},
|
|
104899
106111
|
options: {
|
|
@@ -104955,7 +106167,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
104955
106167
|
|
|
104956
106168
|
result[\\"type\\"] = \\"Video\\";
|
|
104957
106169
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
104958
|
-
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
106170
|
+
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
104959
106171
|
return result;
|
|
104960
106172
|
}
|
|
104961
106173
|
|
|
@@ -104981,7 +106193,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
104981
106193
|
);
|
|
104982
106194
|
}
|
|
104983
106195
|
const docContext = options.context ??
|
|
104984
|
-
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/
|
|
106196
|
+
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v2\\",{\\"digestMultibase\\":\\"https://www.w3.org/ns/credentials/v2#digestMultibase\\"},\\"https://gotosocial.org/ns\\"];
|
|
104985
106197
|
const compacted = await jsonld.compact(
|
|
104986
106198
|
values,
|
|
104987
106199
|
docContext,
|