@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
|
@@ -19,8 +19,10 @@ import {
|
|
|
19
19
|
importMultibaseKey,
|
|
20
20
|
importPem,
|
|
21
21
|
isDecimal,
|
|
22
|
+
isGatewayUrl,
|
|
22
23
|
LanguageString,
|
|
23
24
|
parseDecimal,
|
|
25
|
+
parseGatewayUrl,
|
|
24
26
|
parseIri,
|
|
25
27
|
parseJsonLdId,
|
|
26
28
|
type RemoteDocument
|
|
@@ -36,7 +38,7 @@ import {
|
|
|
36
38
|
isTemporalInstant,
|
|
37
39
|
} from "@fedify/vocab-runtime/temporal";
|
|
38
40
|
const PORTABLE_IRI_PATTERN = /^ap(?:\\+ef61)?:\\/\\//i;
|
|
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#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"]);
|
|
41
|
+
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"]);
|
|
40
42
|
|
|
41
43
|
import * as _ppM0 from "./preprocessors.ts";
|
|
42
44
|
|
|
@@ -43296,7 +43298,8 @@ export class Application extends Object {
|
|
|
43296
43298
|
|
|
43297
43299
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
43298
43300
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
43299
|
-
#
|
|
43301
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
43302
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
43300
43303
|
|
|
43301
43304
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
43302
43305
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -43369,7 +43372,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
43369
43372
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
43370
43373
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
43371
43374
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
43372
|
-
assertionMethods?: (Multikey | URL)[];
|
|
43375
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
43376
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
43373
43377
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
43374
43378
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
43375
43379
|
,
|
|
@@ -43496,6 +43500,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
43496
43500
|
}
|
|
43497
43501
|
}
|
|
43498
43502
|
|
|
43503
|
+
if ("gateway" in values && values.gateway != null) {
|
|
43504
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
43505
|
+
// @ts-ignore: type is checked above.
|
|
43506
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
43507
|
+
|
|
43508
|
+
} else {
|
|
43509
|
+
throw new TypeError(
|
|
43510
|
+
"The gateway must be of type " +
|
|
43511
|
+
"URL" + ".",
|
|
43512
|
+
);
|
|
43513
|
+
}
|
|
43514
|
+
}
|
|
43515
|
+
|
|
43516
|
+
if ("gateways" in values && values.gateways != null) {
|
|
43517
|
+
|
|
43518
|
+
if ("gateway" in values &&
|
|
43519
|
+
values.gateway != null) {
|
|
43520
|
+
throw new TypeError(
|
|
43521
|
+
"Cannot initialize both gateway and " +
|
|
43522
|
+
"gateways at the same time.",
|
|
43523
|
+
);
|
|
43524
|
+
}
|
|
43525
|
+
|
|
43526
|
+
if (Array.isArray(values.gateways) &&
|
|
43527
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
43528
|
+
// @ts-ignore: type is checked above.
|
|
43529
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
43530
|
+
|
|
43531
|
+
} else {
|
|
43532
|
+
throw new TypeError(
|
|
43533
|
+
"The gateways must be an array of type " +
|
|
43534
|
+
"URL" + ".",
|
|
43535
|
+
);
|
|
43536
|
+
}
|
|
43537
|
+
}
|
|
43538
|
+
|
|
43499
43539
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
43500
43540
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
43501
43541
|
// @ts-ignore: type is checked above.
|
|
@@ -43846,7 +43886,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
43846
43886
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
43847
43887
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
43848
43888
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
43849
|
-
assertionMethods?: (Multikey | URL)[];
|
|
43889
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
43890
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
43850
43891
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
43851
43892
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
43852
43893
|
|
|
@@ -43982,6 +44023,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
43982
44023
|
);
|
|
43983
44024
|
}
|
|
43984
44025
|
}
|
|
44026
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
44027
|
+
if ("gateway" in values && values.gateway != null) {
|
|
44028
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
44029
|
+
// @ts-ignore: type is checked above.
|
|
44030
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
44031
|
+
|
|
44032
|
+
} else {
|
|
44033
|
+
throw new TypeError(
|
|
44034
|
+
"The gateway must be of type " +
|
|
44035
|
+
"URL" + ".",
|
|
44036
|
+
);
|
|
44037
|
+
}
|
|
44038
|
+
}
|
|
44039
|
+
|
|
44040
|
+
if ("gateways" in values && values.gateways != null) {
|
|
44041
|
+
|
|
44042
|
+
if ("gateway" in values &&
|
|
44043
|
+
values.gateway != null) {
|
|
44044
|
+
throw new TypeError(
|
|
44045
|
+
"Cannot update both gateway and " +
|
|
44046
|
+
"gateways at the same time.",
|
|
44047
|
+
);
|
|
44048
|
+
}
|
|
44049
|
+
|
|
44050
|
+
if (Array.isArray(values.gateways) &&
|
|
44051
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
44052
|
+
// @ts-ignore: type is checked above.
|
|
44053
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
44054
|
+
|
|
44055
|
+
} else {
|
|
44056
|
+
throw new TypeError(
|
|
44057
|
+
"The gateways must be an array of type " +
|
|
44058
|
+
"URL" + ".",
|
|
44059
|
+
);
|
|
44060
|
+
}
|
|
44061
|
+
}
|
|
43985
44062
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
43986
44063
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
43987
44064
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
@@ -45004,6 +45081,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
45004
45081
|
}
|
|
45005
45082
|
}
|
|
45006
45083
|
|
|
45084
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
45085
|
+
* retrieved.
|
|
45086
|
+
*
|
|
45087
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
45088
|
+
*
|
|
45089
|
+
*/
|
|
45090
|
+
get gateway(): (URL | null) {
|
|
45091
|
+
if (this._warning != null) {
|
|
45092
|
+
getLogger(this._warning.category).warn(
|
|
45093
|
+
this._warning.message,
|
|
45094
|
+
this._warning.values
|
|
45095
|
+
);
|
|
45096
|
+
}
|
|
45097
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
45098
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
45099
|
+
}
|
|
45100
|
+
|
|
45101
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
45102
|
+
* retrieved.
|
|
45103
|
+
*
|
|
45104
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
45105
|
+
*
|
|
45106
|
+
*/
|
|
45107
|
+
get gateways(): (URL)[] {
|
|
45108
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
45109
|
+
}
|
|
45110
|
+
|
|
45007
45111
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
45008
45112
|
* automatically approved, but instead are examined by a person who may accept
|
|
45009
45113
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -48312,6 +48416,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48312
48416
|
|
|
48313
48417
|
}
|
|
48314
48418
|
|
|
48419
|
+
compactItems = [];
|
|
48420
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
48421
|
+
const item = (
|
|
48422
|
+
formatIri(v)
|
|
48423
|
+
);
|
|
48424
|
+
compactItems.push(item);
|
|
48425
|
+
}
|
|
48426
|
+
if (compactItems.length > 0) {
|
|
48427
|
+
|
|
48428
|
+
result["gateways"] = compactItems;
|
|
48429
|
+
|
|
48430
|
+
}
|
|
48431
|
+
|
|
48315
48432
|
compactItems = [];
|
|
48316
48433
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
48317
48434
|
const item = (
|
|
@@ -48726,7 +48843,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48726
48843
|
|
|
48727
48844
|
result["type"] = "Application";
|
|
48728
48845
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
48729
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
48846
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/fep/ef61","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
48730
48847
|
return result;
|
|
48731
48848
|
}
|
|
48732
48849
|
|
|
@@ -48791,6 +48908,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
48791
48908
|
|
|
48792
48909
|
}
|
|
48793
48910
|
|
|
48911
|
+
array = [];
|
|
48912
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
48913
|
+
const element = (
|
|
48914
|
+
{ "@id": formatIri(v) }
|
|
48915
|
+
);
|
|
48916
|
+
array.push(element);;
|
|
48917
|
+
}
|
|
48918
|
+
if (array.length > 0) {
|
|
48919
|
+
const propValue = (
|
|
48920
|
+
{ "@list": array }
|
|
48921
|
+
);
|
|
48922
|
+
values["https://w3id.org/fep/ef61/gateways"] = propValue;
|
|
48923
|
+
|
|
48924
|
+
}
|
|
48925
|
+
|
|
48794
48926
|
array = [];
|
|
48795
48927
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
48796
48928
|
const element = (
|
|
@@ -49100,7 +49232,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
49100
49232
|
);
|
|
49101
49233
|
}
|
|
49102
49234
|
const docContext = options.context ??
|
|
49103
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
49235
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/fep/ef61","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
49104
49236
|
const compacted = await jsonld.compact(
|
|
49105
49237
|
values,
|
|
49106
49238
|
docContext,
|
|
@@ -49342,6 +49474,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
49342
49474
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
49343
49475
|
}
|
|
49344
49476
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
49477
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
49478
|
+
|
|
49479
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
49480
|
+
|
|
49481
|
+
for (
|
|
49482
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
49483
|
+
? []
|
|
49484
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
49485
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"]
|
|
49486
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
49487
|
+
) {
|
|
49488
|
+
if (v == null) continue;
|
|
49489
|
+
|
|
49490
|
+
const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
49491
|
+
if (typeof decoded === "undefined") continue;
|
|
49492
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
49493
|
+
}
|
|
49494
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
49345
49495
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
49346
49496
|
|
|
49347
49497
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
@@ -50013,6 +50163,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
50013
50163
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
50014
50164
|
}
|
|
50015
50165
|
|
|
50166
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
50167
|
+
// deno-lint-ignore no-explicit-any
|
|
50168
|
+
.map((v: any) => v instanceof URL
|
|
50169
|
+
? {
|
|
50170
|
+
[Symbol.for("Deno.customInspect")]: (
|
|
50171
|
+
inspect: typeof Deno.inspect,
|
|
50172
|
+
options: Deno.InspectOptions,
|
|
50173
|
+
): string => "URL " + inspect(v.href, options),
|
|
50174
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
50175
|
+
_depth: number,
|
|
50176
|
+
options: unknown,
|
|
50177
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
50178
|
+
): string => "URL " + inspect(v.href, options),
|
|
50179
|
+
}
|
|
50180
|
+
: v);
|
|
50181
|
+
|
|
50182
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
50183
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
50184
|
+
}
|
|
50185
|
+
|
|
50186
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
50187
|
+
|| !("gateway" in proxy)
|
|
50188
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
50189
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
50190
|
+
}
|
|
50191
|
+
|
|
50016
50192
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
50017
50193
|
// deno-lint-ignore no-explicit-any
|
|
50018
50194
|
.map((v: any) => v instanceof URL
|
|
@@ -52389,6 +52565,7 @@ export class Document extends Object {
|
|
|
52389
52565
|
}
|
|
52390
52566
|
#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width: (number)[] = [];
|
|
52391
52567
|
#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height: (number)[] = [];
|
|
52568
|
+
#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
52392
52569
|
|
|
52393
52570
|
/**
|
|
52394
52571
|
* Constructs a new instance of Document with the given values.
|
|
@@ -52415,7 +52592,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
52415
52592
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
52416
52593
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
52417
52594
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
52418
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
52595
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
52419
52596
|
,
|
|
52420
52597
|
options: {
|
|
52421
52598
|
documentLoader?: DocumentLoader,
|
|
@@ -52449,6 +52626,19 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52449
52626
|
);
|
|
52450
52627
|
}
|
|
52451
52628
|
}
|
|
52629
|
+
|
|
52630
|
+
if ("digestMultibase" in values && values.digestMultibase != null) {
|
|
52631
|
+
if (typeof values.digestMultibase === "string") {
|
|
52632
|
+
// @ts-ignore: type is checked above.
|
|
52633
|
+
this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
52634
|
+
|
|
52635
|
+
} else {
|
|
52636
|
+
throw new TypeError(
|
|
52637
|
+
"The digestMultibase must be of type " +
|
|
52638
|
+
"string" + ".",
|
|
52639
|
+
);
|
|
52640
|
+
}
|
|
52641
|
+
}
|
|
52452
52642
|
}
|
|
52453
52643
|
|
|
52454
52644
|
/**
|
|
@@ -52477,7 +52667,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
52477
52667
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
52478
52668
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
52479
52669
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
52480
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
52670
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
52481
52671
|
|
|
52482
52672
|
= {},
|
|
52483
52673
|
options: {
|
|
@@ -52519,6 +52709,19 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52519
52709
|
);
|
|
52520
52710
|
}
|
|
52521
52711
|
}
|
|
52712
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
52713
|
+
if ("digestMultibase" in values && values.digestMultibase != null) {
|
|
52714
|
+
if (typeof values.digestMultibase === "string") {
|
|
52715
|
+
// @ts-ignore: type is checked above.
|
|
52716
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
52717
|
+
|
|
52718
|
+
} else {
|
|
52719
|
+
throw new TypeError(
|
|
52720
|
+
"The digestMultibase must be of type " +
|
|
52721
|
+
"string" + ".",
|
|
52722
|
+
);
|
|
52723
|
+
}
|
|
52724
|
+
}
|
|
52522
52725
|
|
|
52523
52726
|
return clone;
|
|
52524
52727
|
}
|
|
@@ -52553,6 +52756,23 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52553
52756
|
return this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height[0];
|
|
52554
52757
|
}
|
|
52555
52758
|
|
|
52759
|
+
/** The multibase-encoded integrity digest of an external resource represented
|
|
52760
|
+
* by this document.
|
|
52761
|
+
*
|
|
52762
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
52763
|
+
*
|
|
52764
|
+
*/
|
|
52765
|
+
get digestMultibase(): (string | null) {
|
|
52766
|
+
if (this._warning != null) {
|
|
52767
|
+
getLogger(this._warning.category).warn(
|
|
52768
|
+
this._warning.message,
|
|
52769
|
+
this._warning.values
|
|
52770
|
+
);
|
|
52771
|
+
}
|
|
52772
|
+
if (this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length < 1) return null;
|
|
52773
|
+
return this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
52774
|
+
}
|
|
52775
|
+
|
|
52556
52776
|
/**
|
|
52557
52777
|
* Converts this object to a JSON-LD structure.
|
|
52558
52778
|
* @param options The options to use.
|
|
@@ -52625,9 +52845,25 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52625
52845
|
|
|
52626
52846
|
}
|
|
52627
52847
|
|
|
52848
|
+
compactItems = [];
|
|
52849
|
+
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
52850
|
+
const item = (
|
|
52851
|
+
v
|
|
52852
|
+
);
|
|
52853
|
+
compactItems.push(item);
|
|
52854
|
+
}
|
|
52855
|
+
if (compactItems.length > 0) {
|
|
52856
|
+
|
|
52857
|
+
result["digestMultibase"]
|
|
52858
|
+
= compactItems.length > 1
|
|
52859
|
+
? compactItems
|
|
52860
|
+
: compactItems[0];
|
|
52861
|
+
|
|
52862
|
+
}
|
|
52863
|
+
|
|
52628
52864
|
result["type"] = "Document";
|
|
52629
52865
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
52630
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
52866
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v2",{"digestMultibase":"https://www.w3.org/ns/credentials/v2#digestMultibase"},"https://gotosocial.org/ns"];
|
|
52631
52867
|
return result;
|
|
52632
52868
|
}
|
|
52633
52869
|
|
|
@@ -52680,6 +52916,21 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52680
52916
|
|
|
52681
52917
|
}
|
|
52682
52918
|
|
|
52919
|
+
array = [];
|
|
52920
|
+
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
52921
|
+
const element = (
|
|
52922
|
+
{ "@value": v }
|
|
52923
|
+
);
|
|
52924
|
+
array.push(element);;
|
|
52925
|
+
}
|
|
52926
|
+
if (array.length > 0) {
|
|
52927
|
+
const propValue = (
|
|
52928
|
+
array
|
|
52929
|
+
);
|
|
52930
|
+
values["https://www.w3.org/ns/credentials/v2#digestMultibase"] = propValue;
|
|
52931
|
+
|
|
52932
|
+
}
|
|
52933
|
+
|
|
52683
52934
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Document"];
|
|
52684
52935
|
if (this.id != null) values["@id"] = formatIri(this.id);
|
|
52685
52936
|
if (options.format === "expand") {
|
|
@@ -52689,7 +52940,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52689
52940
|
);
|
|
52690
52941
|
}
|
|
52691
52942
|
const docContext = options.context ??
|
|
52692
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
52943
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v2",{"digestMultibase":"https://www.w3.org/ns/credentials/v2#digestMultibase"},"https://gotosocial.org/ns"];
|
|
52693
52944
|
const compacted = await jsonld.compact(
|
|
52694
52945
|
values,
|
|
52695
52946
|
docContext,
|
|
@@ -52889,6 +53140,24 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52889
53140
|
_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.push(decoded);
|
|
52890
53141
|
}
|
|
52891
53142
|
instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
53143
|
+
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
53144
|
+
|
|
53145
|
+
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
|
|
53146
|
+
|
|
53147
|
+
for (
|
|
53148
|
+
const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null
|
|
53149
|
+
? []
|
|
53150
|
+
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && "@list" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]
|
|
53151
|
+
? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]["@list"]
|
|
53152
|
+
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array
|
|
53153
|
+
) {
|
|
53154
|
+
if (v == null) continue;
|
|
53155
|
+
|
|
53156
|
+
const decoded = v["@value"];
|
|
53157
|
+
if (typeof decoded === "undefined") continue;
|
|
53158
|
+
_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.push(decoded);
|
|
53159
|
+
}
|
|
53160
|
+
instance.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
52892
53161
|
|
|
52893
53162
|
if (!("_fromSubclass" in options) || !options._fromSubclass) {
|
|
52894
53163
|
try {
|
|
@@ -52957,6 +53226,26 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
52957
53226
|
proxy.height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb_height[0];
|
|
52958
53227
|
}
|
|
52959
53228
|
|
|
53229
|
+
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase
|
|
53230
|
+
// deno-lint-ignore no-explicit-any
|
|
53231
|
+
.map((v: any) => v instanceof URL
|
|
53232
|
+
? {
|
|
53233
|
+
[Symbol.for("Deno.customInspect")]: (
|
|
53234
|
+
inspect: typeof Deno.inspect,
|
|
53235
|
+
options: Deno.InspectOptions,
|
|
53236
|
+
): string => "URL " + inspect(v.href, options),
|
|
53237
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
53238
|
+
_depth: number,
|
|
53239
|
+
options: unknown,
|
|
53240
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
53241
|
+
): string => "URL " + inspect(v.href, options),
|
|
53242
|
+
}
|
|
53243
|
+
: v);
|
|
53244
|
+
|
|
53245
|
+
if (_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length == 1) {
|
|
53246
|
+
proxy.digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
53247
|
+
}
|
|
53248
|
+
|
|
52960
53249
|
return proxy;
|
|
52961
53250
|
}
|
|
52962
53251
|
}
|
|
@@ -53020,7 +53309,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
53020
53309
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
53021
53310
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
53022
53311
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
53023
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
53312
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
53024
53313
|
,
|
|
53025
53314
|
options: {
|
|
53026
53315
|
documentLoader?: DocumentLoader,
|
|
@@ -53056,7 +53345,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
53056
53345
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
53057
53346
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
53058
53347
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
53059
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
53348
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
53060
53349
|
|
|
53061
53350
|
= {},
|
|
53062
53351
|
options: {
|
|
@@ -53118,7 +53407,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
53118
53407
|
|
|
53119
53408
|
result["type"] = "Audio";
|
|
53120
53409
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
53121
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
53410
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v2",{"digestMultibase":"https://www.w3.org/ns/credentials/v2#digestMultibase"},"https://gotosocial.org/ns"];
|
|
53122
53411
|
return result;
|
|
53123
53412
|
}
|
|
53124
53413
|
|
|
@@ -53144,7 +53433,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
53144
53433
|
);
|
|
53145
53434
|
}
|
|
53146
53435
|
const docContext = options.context ??
|
|
53147
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
53436
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v2",{"digestMultibase":"https://www.w3.org/ns/credentials/v2#digestMultibase"},"https://gotosocial.org/ns"];
|
|
53148
53437
|
const compacted = await jsonld.compact(
|
|
53149
53438
|
values,
|
|
53150
53439
|
docContext,
|
|
@@ -56602,6 +56891,7 @@ export class Endpoints {
|
|
|
56602
56891
|
#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey: (URL)[] = [];
|
|
56603
56892
|
#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey: (URL)[] = [];
|
|
56604
56893
|
#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox: (URL)[] = [];
|
|
56894
|
+
#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia: (URL)[] = [];
|
|
56605
56895
|
|
|
56606
56896
|
/**
|
|
56607
56897
|
* Constructs a new instance of Endpoints with the given values.
|
|
@@ -56612,7 +56902,7 @@ export class Endpoints {
|
|
|
56612
56902
|
values:
|
|
56613
56903
|
{
|
|
56614
56904
|
id?: URL | null;
|
|
56615
|
-
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;}
|
|
56905
|
+
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;uploadMedia?: URL | null;}
|
|
56616
56906
|
,
|
|
56617
56907
|
options: {
|
|
56618
56908
|
documentLoader?: DocumentLoader,
|
|
@@ -56716,6 +57006,19 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56716
57006
|
);
|
|
56717
57007
|
}
|
|
56718
57008
|
}
|
|
57009
|
+
|
|
57010
|
+
if ("uploadMedia" in values && values.uploadMedia != null) {
|
|
57011
|
+
if (values.uploadMedia instanceof URL) {
|
|
57012
|
+
// @ts-ignore: type is checked above.
|
|
57013
|
+
this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = [values.uploadMedia];
|
|
57014
|
+
|
|
57015
|
+
} else {
|
|
57016
|
+
throw new TypeError(
|
|
57017
|
+
"The uploadMedia must be of type " +
|
|
57018
|
+
"URL" + ".",
|
|
57019
|
+
);
|
|
57020
|
+
}
|
|
57021
|
+
}
|
|
56719
57022
|
}
|
|
56720
57023
|
|
|
56721
57024
|
/**
|
|
@@ -56728,7 +57031,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56728
57031
|
values:
|
|
56729
57032
|
{
|
|
56730
57033
|
id?: URL | null;
|
|
56731
|
-
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;}
|
|
57034
|
+
proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint?: URL | null;provideClientKey?: URL | null;signClientKey?: URL | null;sharedInbox?: URL | null;uploadMedia?: URL | null;}
|
|
56732
57035
|
|
|
56733
57036
|
= {},
|
|
56734
57037
|
options: {
|
|
@@ -56828,6 +57131,19 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56828
57131
|
);
|
|
56829
57132
|
}
|
|
56830
57133
|
}
|
|
57134
|
+
clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia;
|
|
57135
|
+
if ("uploadMedia" in values && values.uploadMedia != null) {
|
|
57136
|
+
if (values.uploadMedia instanceof URL) {
|
|
57137
|
+
// @ts-ignore: type is checked above.
|
|
57138
|
+
clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = [values.uploadMedia];
|
|
57139
|
+
|
|
57140
|
+
} else {
|
|
57141
|
+
throw new TypeError(
|
|
57142
|
+
"The uploadMedia must be of type " +
|
|
57143
|
+
"URL" + ".",
|
|
57144
|
+
);
|
|
57145
|
+
}
|
|
57146
|
+
}
|
|
56831
57147
|
|
|
56832
57148
|
return clone;
|
|
56833
57149
|
}
|
|
@@ -56939,6 +57255,25 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
56939
57255
|
return this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox[0];
|
|
56940
57256
|
}
|
|
56941
57257
|
|
|
57258
|
+
/** Upload endpoint URI for this user for binary data, such as an image or
|
|
57259
|
+
* video, as described in the [ActivityPub Media
|
|
57260
|
+
* Upload](https://www.w3.org/wiki/SocialCG/ActivityPub/MediaUpload) extension.
|
|
57261
|
+
* Clients \`POST\` a \`multipart/form-data\` request containing a \`file\` part
|
|
57262
|
+
* (the binary payload) and an \`object\` part (an ActivityStreams object shell)
|
|
57263
|
+
* to this endpoint.
|
|
57264
|
+
*
|
|
57265
|
+
*/
|
|
57266
|
+
get uploadMedia(): (URL | null) {
|
|
57267
|
+
if (this._warning != null) {
|
|
57268
|
+
getLogger(this._warning.category).warn(
|
|
57269
|
+
this._warning.message,
|
|
57270
|
+
this._warning.values
|
|
57271
|
+
);
|
|
57272
|
+
}
|
|
57273
|
+
if (this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.length < 1) return null;
|
|
57274
|
+
return this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia[0];
|
|
57275
|
+
}
|
|
57276
|
+
|
|
56942
57277
|
/**
|
|
56943
57278
|
* Converts this object to a JSON-LD structure.
|
|
56944
57279
|
* @param options The options to use.
|
|
@@ -57069,6 +57404,22 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57069
57404
|
|
|
57070
57405
|
}
|
|
57071
57406
|
|
|
57407
|
+
compactItems = [];
|
|
57408
|
+
for (const v of this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia) {
|
|
57409
|
+
const item = (
|
|
57410
|
+
formatIri(v)
|
|
57411
|
+
);
|
|
57412
|
+
compactItems.push(item);
|
|
57413
|
+
}
|
|
57414
|
+
if (compactItems.length > 0) {
|
|
57415
|
+
|
|
57416
|
+
result["uploadMedia"]
|
|
57417
|
+
= compactItems.length > 1
|
|
57418
|
+
? compactItems
|
|
57419
|
+
: compactItems[0];
|
|
57420
|
+
|
|
57421
|
+
}
|
|
57422
|
+
|
|
57072
57423
|
|
|
57073
57424
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
57074
57425
|
result["@context"] = "https://www.w3.org/ns/activitystreams";
|
|
@@ -57168,6 +57519,21 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57168
57519
|
|
|
57169
57520
|
}
|
|
57170
57521
|
|
|
57522
|
+
array = [];
|
|
57523
|
+
for (const v of this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia) {
|
|
57524
|
+
const element = (
|
|
57525
|
+
{ "@id": formatIri(v) }
|
|
57526
|
+
);
|
|
57527
|
+
array.push(element);;
|
|
57528
|
+
}
|
|
57529
|
+
if (array.length > 0) {
|
|
57530
|
+
const propValue = (
|
|
57531
|
+
array
|
|
57532
|
+
);
|
|
57533
|
+
values["https://www.w3.org/ns/activitystreams#uploadMedia"] = propValue;
|
|
57534
|
+
|
|
57535
|
+
}
|
|
57536
|
+
|
|
57171
57537
|
|
|
57172
57538
|
if (this.id != null) values["@id"] = formatIri(this.id);
|
|
57173
57539
|
if (options.format === "expand") {
|
|
@@ -57419,6 +57785,24 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57419
57785
|
_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.push(decoded);
|
|
57420
57786
|
}
|
|
57421
57787
|
instance.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
|
|
57788
|
+
const _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia: (URL)[] = [];
|
|
57789
|
+
|
|
57790
|
+
let _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array = values["https://www.w3.org/ns/activitystreams#uploadMedia"];
|
|
57791
|
+
|
|
57792
|
+
for (
|
|
57793
|
+
const v of _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array == null
|
|
57794
|
+
? []
|
|
57795
|
+
: _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array.length === 1 && "@list" in _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array[0]
|
|
57796
|
+
? _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array[0]["@list"]
|
|
57797
|
+
: _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia__array
|
|
57798
|
+
) {
|
|
57799
|
+
if (v == null) continue;
|
|
57800
|
+
|
|
57801
|
+
const decoded = parseIri(v["@id"], options.baseUrl);
|
|
57802
|
+
if (typeof decoded === "undefined") continue;
|
|
57803
|
+
_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.push(decoded);
|
|
57804
|
+
}
|
|
57805
|
+
instance.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia;
|
|
57422
57806
|
|
|
57423
57807
|
if (!("_fromSubclass" in options) || !options._fromSubclass) {
|
|
57424
57808
|
try {
|
|
@@ -57582,6 +57966,26 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
57582
57966
|
proxy.sharedInbox = _3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox[0];
|
|
57583
57967
|
}
|
|
57584
57968
|
|
|
57969
|
+
const _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia
|
|
57970
|
+
// deno-lint-ignore no-explicit-any
|
|
57971
|
+
.map((v: any) => v instanceof URL
|
|
57972
|
+
? {
|
|
57973
|
+
[Symbol.for("Deno.customInspect")]: (
|
|
57974
|
+
inspect: typeof Deno.inspect,
|
|
57975
|
+
options: Deno.InspectOptions,
|
|
57976
|
+
): string => "URL " + inspect(v.href, options),
|
|
57977
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
57978
|
+
_depth: number,
|
|
57979
|
+
options: unknown,
|
|
57980
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
57981
|
+
): string => "URL " + inspect(v.href, options),
|
|
57982
|
+
}
|
|
57983
|
+
: v);
|
|
57984
|
+
|
|
57985
|
+
if (_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.length == 1) {
|
|
57986
|
+
proxy.uploadMedia = _KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia[0];
|
|
57987
|
+
}
|
|
57988
|
+
|
|
57585
57989
|
return proxy;
|
|
57586
57990
|
}
|
|
57587
57991
|
}
|
|
@@ -58712,7 +59116,8 @@ export class Group extends Object {
|
|
|
58712
59116
|
|
|
58713
59117
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
58714
59118
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
58715
|
-
#
|
|
59119
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
59120
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
58716
59121
|
|
|
58717
59122
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
58718
59123
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -58785,7 +59190,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
58785
59190
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
58786
59191
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
58787
59192
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
58788
|
-
assertionMethods?: (Multikey | URL)[];
|
|
59193
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
59194
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
58789
59195
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
58790
59196
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
58791
59197
|
,
|
|
@@ -58912,6 +59318,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
58912
59318
|
}
|
|
58913
59319
|
}
|
|
58914
59320
|
|
|
59321
|
+
if ("gateway" in values && values.gateway != null) {
|
|
59322
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
59323
|
+
// @ts-ignore: type is checked above.
|
|
59324
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
59325
|
+
|
|
59326
|
+
} else {
|
|
59327
|
+
throw new TypeError(
|
|
59328
|
+
"The gateway must be of type " +
|
|
59329
|
+
"URL" + ".",
|
|
59330
|
+
);
|
|
59331
|
+
}
|
|
59332
|
+
}
|
|
59333
|
+
|
|
59334
|
+
if ("gateways" in values && values.gateways != null) {
|
|
59335
|
+
|
|
59336
|
+
if ("gateway" in values &&
|
|
59337
|
+
values.gateway != null) {
|
|
59338
|
+
throw new TypeError(
|
|
59339
|
+
"Cannot initialize both gateway and " +
|
|
59340
|
+
"gateways at the same time.",
|
|
59341
|
+
);
|
|
59342
|
+
}
|
|
59343
|
+
|
|
59344
|
+
if (Array.isArray(values.gateways) &&
|
|
59345
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
59346
|
+
// @ts-ignore: type is checked above.
|
|
59347
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
59348
|
+
|
|
59349
|
+
} else {
|
|
59350
|
+
throw new TypeError(
|
|
59351
|
+
"The gateways must be an array of type " +
|
|
59352
|
+
"URL" + ".",
|
|
59353
|
+
);
|
|
59354
|
+
}
|
|
59355
|
+
}
|
|
59356
|
+
|
|
58915
59357
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
58916
59358
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
58917
59359
|
// @ts-ignore: type is checked above.
|
|
@@ -59262,7 +59704,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
59262
59704
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
59263
59705
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
59264
59706
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
59265
|
-
assertionMethods?: (Multikey | URL)[];
|
|
59707
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
59708
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
59266
59709
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
59267
59710
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
59268
59711
|
|
|
@@ -59398,6 +59841,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
59398
59841
|
);
|
|
59399
59842
|
}
|
|
59400
59843
|
}
|
|
59844
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
59845
|
+
if ("gateway" in values && values.gateway != null) {
|
|
59846
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
59847
|
+
// @ts-ignore: type is checked above.
|
|
59848
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
59849
|
+
|
|
59850
|
+
} else {
|
|
59851
|
+
throw new TypeError(
|
|
59852
|
+
"The gateway must be of type " +
|
|
59853
|
+
"URL" + ".",
|
|
59854
|
+
);
|
|
59855
|
+
}
|
|
59856
|
+
}
|
|
59857
|
+
|
|
59858
|
+
if ("gateways" in values && values.gateways != null) {
|
|
59859
|
+
|
|
59860
|
+
if ("gateway" in values &&
|
|
59861
|
+
values.gateway != null) {
|
|
59862
|
+
throw new TypeError(
|
|
59863
|
+
"Cannot update both gateway and " +
|
|
59864
|
+
"gateways at the same time.",
|
|
59865
|
+
);
|
|
59866
|
+
}
|
|
59867
|
+
|
|
59868
|
+
if (Array.isArray(values.gateways) &&
|
|
59869
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
59870
|
+
// @ts-ignore: type is checked above.
|
|
59871
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
59872
|
+
|
|
59873
|
+
} else {
|
|
59874
|
+
throw new TypeError(
|
|
59875
|
+
"The gateways must be an array of type " +
|
|
59876
|
+
"URL" + ".",
|
|
59877
|
+
);
|
|
59878
|
+
}
|
|
59879
|
+
}
|
|
59401
59880
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
59402
59881
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
59403
59882
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
@@ -60420,6 +60899,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
60420
60899
|
}
|
|
60421
60900
|
}
|
|
60422
60901
|
|
|
60902
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
60903
|
+
* retrieved.
|
|
60904
|
+
*
|
|
60905
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
60906
|
+
*
|
|
60907
|
+
*/
|
|
60908
|
+
get gateway(): (URL | null) {
|
|
60909
|
+
if (this._warning != null) {
|
|
60910
|
+
getLogger(this._warning.category).warn(
|
|
60911
|
+
this._warning.message,
|
|
60912
|
+
this._warning.values
|
|
60913
|
+
);
|
|
60914
|
+
}
|
|
60915
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
60916
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
60917
|
+
}
|
|
60918
|
+
|
|
60919
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
60920
|
+
* retrieved.
|
|
60921
|
+
*
|
|
60922
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
60923
|
+
*
|
|
60924
|
+
*/
|
|
60925
|
+
get gateways(): (URL)[] {
|
|
60926
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
60927
|
+
}
|
|
60928
|
+
|
|
60423
60929
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
60424
60930
|
* automatically approved, but instead are examined by a person who may accept
|
|
60425
60931
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -63728,6 +64234,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
63728
64234
|
|
|
63729
64235
|
}
|
|
63730
64236
|
|
|
64237
|
+
compactItems = [];
|
|
64238
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
64239
|
+
const item = (
|
|
64240
|
+
formatIri(v)
|
|
64241
|
+
);
|
|
64242
|
+
compactItems.push(item);
|
|
64243
|
+
}
|
|
64244
|
+
if (compactItems.length > 0) {
|
|
64245
|
+
|
|
64246
|
+
result["gateways"] = compactItems;
|
|
64247
|
+
|
|
64248
|
+
}
|
|
64249
|
+
|
|
63731
64250
|
compactItems = [];
|
|
63732
64251
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
63733
64252
|
const item = (
|
|
@@ -64142,7 +64661,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64142
64661
|
|
|
64143
64662
|
result["type"] = "Group";
|
|
64144
64663
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
64145
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
64664
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/fep/ef61","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
64146
64665
|
return result;
|
|
64147
64666
|
}
|
|
64148
64667
|
|
|
@@ -64207,6 +64726,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64207
64726
|
|
|
64208
64727
|
}
|
|
64209
64728
|
|
|
64729
|
+
array = [];
|
|
64730
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
64731
|
+
const element = (
|
|
64732
|
+
{ "@id": formatIri(v) }
|
|
64733
|
+
);
|
|
64734
|
+
array.push(element);;
|
|
64735
|
+
}
|
|
64736
|
+
if (array.length > 0) {
|
|
64737
|
+
const propValue = (
|
|
64738
|
+
{ "@list": array }
|
|
64739
|
+
);
|
|
64740
|
+
values["https://w3id.org/fep/ef61/gateways"] = propValue;
|
|
64741
|
+
|
|
64742
|
+
}
|
|
64743
|
+
|
|
64210
64744
|
array = [];
|
|
64211
64745
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
64212
64746
|
const element = (
|
|
@@ -64516,7 +65050,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64516
65050
|
);
|
|
64517
65051
|
}
|
|
64518
65052
|
const docContext = options.context ??
|
|
64519
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
65053
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/fep/ef61","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
64520
65054
|
const compacted = await jsonld.compact(
|
|
64521
65055
|
values,
|
|
64522
65056
|
docContext,
|
|
@@ -64758,6 +65292,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
64758
65292
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
64759
65293
|
}
|
|
64760
65294
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
65295
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
65296
|
+
|
|
65297
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
65298
|
+
|
|
65299
|
+
for (
|
|
65300
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
65301
|
+
? []
|
|
65302
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
65303
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"]
|
|
65304
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
65305
|
+
) {
|
|
65306
|
+
if (v == null) continue;
|
|
65307
|
+
|
|
65308
|
+
const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
65309
|
+
if (typeof decoded === "undefined") continue;
|
|
65310
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
65311
|
+
}
|
|
65312
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
64761
65313
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
64762
65314
|
|
|
64763
65315
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
@@ -65429,6 +65981,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
65429
65981
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
65430
65982
|
}
|
|
65431
65983
|
|
|
65984
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
65985
|
+
// deno-lint-ignore no-explicit-any
|
|
65986
|
+
.map((v: any) => v instanceof URL
|
|
65987
|
+
? {
|
|
65988
|
+
[Symbol.for("Deno.customInspect")]: (
|
|
65989
|
+
inspect: typeof Deno.inspect,
|
|
65990
|
+
options: Deno.InspectOptions,
|
|
65991
|
+
): string => "URL " + inspect(v.href, options),
|
|
65992
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
65993
|
+
_depth: number,
|
|
65994
|
+
options: unknown,
|
|
65995
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
65996
|
+
): string => "URL " + inspect(v.href, options),
|
|
65997
|
+
}
|
|
65998
|
+
: v);
|
|
65999
|
+
|
|
66000
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
66001
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
66002
|
+
}
|
|
66003
|
+
|
|
66004
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
66005
|
+
|| !("gateway" in proxy)
|
|
66006
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
66007
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
66008
|
+
}
|
|
66009
|
+
|
|
65432
66010
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
65433
66011
|
// deno-lint-ignore no-explicit-any
|
|
65434
66012
|
.map((v: any) => v instanceof URL
|
|
@@ -65935,6 +66513,7 @@ export class Link {
|
|
|
65935
66513
|
#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href: (URL)[] = [];
|
|
65936
66514
|
#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel: (string)[] = [];
|
|
65937
66515
|
#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType: (string)[] = [];
|
|
66516
|
+
#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
65938
66517
|
#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = [];
|
|
65939
66518
|
#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang: (Intl.Locale)[] = [];
|
|
65940
66519
|
#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height: (number)[] = [];
|
|
@@ -65953,7 +66532,7 @@ export class Link {
|
|
|
65953
66532
|
{
|
|
65954
66533
|
id?: URL | null;
|
|
65955
66534
|
href?: URL | null;rel?: string | null;
|
|
65956
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
66535
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
65957
66536
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
65958
66537
|
,
|
|
65959
66538
|
options: {
|
|
@@ -66043,6 +66622,19 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
66043
66622
|
}
|
|
66044
66623
|
}
|
|
66045
66624
|
|
|
66625
|
+
if ("digestMultibase" in values && values.digestMultibase != null) {
|
|
66626
|
+
if (typeof values.digestMultibase === "string") {
|
|
66627
|
+
// @ts-ignore: type is checked above.
|
|
66628
|
+
this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
66629
|
+
|
|
66630
|
+
} else {
|
|
66631
|
+
throw new TypeError(
|
|
66632
|
+
"The digestMultibase must be of type " +
|
|
66633
|
+
"string" + ".",
|
|
66634
|
+
);
|
|
66635
|
+
}
|
|
66636
|
+
}
|
|
66637
|
+
|
|
66046
66638
|
if ("name" in values && values.name != null) {
|
|
66047
66639
|
if (typeof values.name === "string" || values.name instanceof LanguageString) {
|
|
66048
66640
|
// @ts-ignore: type is checked above.
|
|
@@ -66149,7 +66741,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
66149
66741
|
{
|
|
66150
66742
|
id?: URL | null;
|
|
66151
66743
|
href?: URL | null;rel?: string | null;
|
|
66152
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
66744
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
66153
66745
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
66154
66746
|
|
|
66155
66747
|
= {},
|
|
@@ -66234,6 +66826,19 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
66234
66826
|
);
|
|
66235
66827
|
}
|
|
66236
66828
|
}
|
|
66829
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
66830
|
+
if ("digestMultibase" in values && values.digestMultibase != null) {
|
|
66831
|
+
if (typeof values.digestMultibase === "string") {
|
|
66832
|
+
// @ts-ignore: type is checked above.
|
|
66833
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
66834
|
+
|
|
66835
|
+
} else {
|
|
66836
|
+
throw new TypeError(
|
|
66837
|
+
"The digestMultibase must be of type " +
|
|
66838
|
+
"string" + ".",
|
|
66839
|
+
);
|
|
66840
|
+
}
|
|
66841
|
+
}
|
|
66237
66842
|
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
66238
66843
|
if ("name" in values && values.name != null) {
|
|
66239
66844
|
if (typeof values.name === "string" || values.name instanceof LanguageString) {
|
|
@@ -66392,6 +66997,22 @@ get rels(): (string)[] {
|
|
|
66392
66997
|
return this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType[0];
|
|
66393
66998
|
}
|
|
66394
66999
|
|
|
67000
|
+
/** The multibase-encoded integrity digest of the linked resource.
|
|
67001
|
+
*
|
|
67002
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
67003
|
+
*
|
|
67004
|
+
*/
|
|
67005
|
+
get digestMultibase(): (string | null) {
|
|
67006
|
+
if (this._warning != null) {
|
|
67007
|
+
getLogger(this._warning.category).warn(
|
|
67008
|
+
this._warning.message,
|
|
67009
|
+
this._warning.values
|
|
67010
|
+
);
|
|
67011
|
+
}
|
|
67012
|
+
if (this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length < 1) return null;
|
|
67013
|
+
return this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
67014
|
+
}
|
|
67015
|
+
|
|
66395
67016
|
/** A simple, human-readable, plain-text name for the object. HTML markup MUST
|
|
66396
67017
|
* NOT be included. The name MAY be expressed using multiple language-tagged
|
|
66397
67018
|
* values.
|
|
@@ -66781,6 +67402,22 @@ get names(): ((string | LanguageString))[] {
|
|
|
66781
67402
|
|
|
66782
67403
|
}
|
|
66783
67404
|
|
|
67405
|
+
compactItems = [];
|
|
67406
|
+
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
67407
|
+
const item = (
|
|
67408
|
+
v
|
|
67409
|
+
);
|
|
67410
|
+
compactItems.push(item);
|
|
67411
|
+
}
|
|
67412
|
+
if (compactItems.length > 0) {
|
|
67413
|
+
|
|
67414
|
+
result["digestMultibase"]
|
|
67415
|
+
= compactItems.length > 1
|
|
67416
|
+
? compactItems
|
|
67417
|
+
: compactItems[0];
|
|
67418
|
+
|
|
67419
|
+
}
|
|
67420
|
+
|
|
66784
67421
|
compactItems = [];
|
|
66785
67422
|
for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name) {
|
|
66786
67423
|
const item = (
|
|
@@ -66874,7 +67511,7 @@ get names(): ((string | LanguageString))[] {
|
|
|
66874
67511
|
|
|
66875
67512
|
result["type"] = "Link";
|
|
66876
67513
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
66877
|
-
result["@context"] = "https://www.w3.org/ns/activitystreams";
|
|
67514
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/fep/ef61"];
|
|
66878
67515
|
return result;
|
|
66879
67516
|
}
|
|
66880
67517
|
|
|
@@ -66926,6 +67563,21 @@ get names(): ((string | LanguageString))[] {
|
|
|
66926
67563
|
|
|
66927
67564
|
}
|
|
66928
67565
|
|
|
67566
|
+
array = [];
|
|
67567
|
+
for (const v of this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase) {
|
|
67568
|
+
const element = (
|
|
67569
|
+
{ "@value": v }
|
|
67570
|
+
);
|
|
67571
|
+
array.push(element);;
|
|
67572
|
+
}
|
|
67573
|
+
if (array.length > 0) {
|
|
67574
|
+
const propValue = (
|
|
67575
|
+
array
|
|
67576
|
+
);
|
|
67577
|
+
values["https://www.w3.org/ns/credentials/v2#digestMultibase"] = propValue;
|
|
67578
|
+
|
|
67579
|
+
}
|
|
67580
|
+
|
|
66929
67581
|
array = [];
|
|
66930
67582
|
for (const v of this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name) {
|
|
66931
67583
|
const element = (
|
|
@@ -67019,7 +67671,7 @@ get names(): ((string | LanguageString))[] {
|
|
|
67019
67671
|
);
|
|
67020
67672
|
}
|
|
67021
67673
|
const docContext = options.context ??
|
|
67022
|
-
"https://www.w3.org/ns/activitystreams";
|
|
67674
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/fep/ef61"];
|
|
67023
67675
|
const compacted = await jsonld.compact(
|
|
67024
67676
|
values,
|
|
67025
67677
|
docContext,
|
|
@@ -67220,6 +67872,24 @@ get names(): ((string | LanguageString))[] {
|
|
|
67220
67872
|
_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.push(decoded);
|
|
67221
67873
|
}
|
|
67222
67874
|
instance.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
67875
|
+
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase: (string)[] = [];
|
|
67876
|
+
|
|
67877
|
+
let _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array = values["https://www.w3.org/ns/credentials/v2#digestMultibase"];
|
|
67878
|
+
|
|
67879
|
+
for (
|
|
67880
|
+
const v of _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array == null
|
|
67881
|
+
? []
|
|
67882
|
+
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array.length === 1 && "@list" in _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]
|
|
67883
|
+
? _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array[0]["@list"]
|
|
67884
|
+
: _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase__array
|
|
67885
|
+
) {
|
|
67886
|
+
if (v == null) continue;
|
|
67887
|
+
|
|
67888
|
+
const decoded = v["@value"];
|
|
67889
|
+
if (typeof decoded === "undefined") continue;
|
|
67890
|
+
_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.push(decoded);
|
|
67891
|
+
}
|
|
67892
|
+
instance.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
67223
67893
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name: ((string | LanguageString))[] = [];
|
|
67224
67894
|
|
|
67225
67895
|
let _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name__array = values["https://www.w3.org/ns/activitystreams#name"];
|
|
@@ -67447,6 +68117,26 @@ get names(): ((string | LanguageString))[] {
|
|
|
67447
68117
|
proxy.mediaType = _3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType[0];
|
|
67448
68118
|
}
|
|
67449
68119
|
|
|
68120
|
+
const _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase
|
|
68121
|
+
// deno-lint-ignore no-explicit-any
|
|
68122
|
+
.map((v: any) => v instanceof URL
|
|
68123
|
+
? {
|
|
68124
|
+
[Symbol.for("Deno.customInspect")]: (
|
|
68125
|
+
inspect: typeof Deno.inspect,
|
|
68126
|
+
options: Deno.InspectOptions,
|
|
68127
|
+
): string => "URL " + inspect(v.href, options),
|
|
68128
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
68129
|
+
_depth: number,
|
|
68130
|
+
options: unknown,
|
|
68131
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
68132
|
+
): string => "URL " + inspect(v.href, options),
|
|
68133
|
+
}
|
|
68134
|
+
: v);
|
|
68135
|
+
|
|
68136
|
+
if (_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.length == 1) {
|
|
68137
|
+
proxy.digestMultibase = _2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase[0];
|
|
68138
|
+
}
|
|
68139
|
+
|
|
67450
68140
|
const _4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name
|
|
67451
68141
|
// deno-lint-ignore no-explicit-any
|
|
67452
68142
|
.map((v: any) => v instanceof URL
|
|
@@ -67606,7 +68296,7 @@ export class Hashtag extends Link {
|
|
|
67606
68296
|
{
|
|
67607
68297
|
id?: URL | null;
|
|
67608
68298
|
href?: URL | null;rel?: string | null;
|
|
67609
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
68299
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
67610
68300
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
67611
68301
|
,
|
|
67612
68302
|
options: {
|
|
@@ -67628,7 +68318,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
67628
68318
|
{
|
|
67629
68319
|
id?: URL | null;
|
|
67630
68320
|
href?: URL | null;rel?: string | null;
|
|
67631
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
68321
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
67632
68322
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
67633
68323
|
|
|
67634
68324
|
= {},
|
|
@@ -67945,7 +68635,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
67945
68635
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
67946
68636
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
67947
68637
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
67948
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
68638
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
67949
68639
|
,
|
|
67950
68640
|
options: {
|
|
67951
68641
|
documentLoader?: DocumentLoader,
|
|
@@ -67981,7 +68671,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
67981
68671
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
67982
68672
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
67983
68673
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
67984
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
68674
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
67985
68675
|
|
|
67986
68676
|
= {},
|
|
67987
68677
|
options: {
|
|
@@ -68043,7 +68733,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
68043
68733
|
|
|
68044
68734
|
result["type"] = "Image";
|
|
68045
68735
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
68046
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
68736
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v2",{"digestMultibase":"https://www.w3.org/ns/credentials/v2#digestMultibase"},"https://gotosocial.org/ns"];
|
|
68047
68737
|
return result;
|
|
68048
68738
|
}
|
|
68049
68739
|
|
|
@@ -68069,7 +68759,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
68069
68759
|
);
|
|
68070
68760
|
}
|
|
68071
68761
|
const docContext = options.context ??
|
|
68072
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
68762
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v2",{"digestMultibase":"https://www.w3.org/ns/credentials/v2#digestMultibase"},"https://gotosocial.org/ns"];
|
|
68073
68763
|
const compacted = await jsonld.compact(
|
|
68074
68764
|
values,
|
|
68075
68765
|
docContext,
|
|
@@ -70456,7 +71146,7 @@ export class Mention extends Link {
|
|
|
70456
71146
|
{
|
|
70457
71147
|
id?: URL | null;
|
|
70458
71148
|
href?: URL | null;rel?: string | null;
|
|
70459
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
71149
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
70460
71150
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
70461
71151
|
,
|
|
70462
71152
|
options: {
|
|
@@ -70478,7 +71168,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
70478
71168
|
{
|
|
70479
71169
|
id?: URL | null;
|
|
70480
71170
|
href?: URL | null;rel?: string | null;
|
|
70481
|
-
rels?: (string)[];mediaType?: string | null;name?: string | LanguageString | null;
|
|
71171
|
+
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
70482
71172
|
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
70483
71173
|
|
|
70484
71174
|
= {},
|
|
@@ -73187,7 +73877,8 @@ export class Organization extends Object {
|
|
|
73187
73877
|
|
|
73188
73878
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
73189
73879
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
73190
|
-
#
|
|
73880
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
73881
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
73191
73882
|
|
|
73192
73883
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
73193
73884
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -73260,7 +73951,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
73260
73951
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
73261
73952
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
73262
73953
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
73263
|
-
assertionMethods?: (Multikey | URL)[];
|
|
73954
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
73955
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
73264
73956
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
73265
73957
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
73266
73958
|
,
|
|
@@ -73387,6 +74079,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
73387
74079
|
}
|
|
73388
74080
|
}
|
|
73389
74081
|
|
|
74082
|
+
if ("gateway" in values && values.gateway != null) {
|
|
74083
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
74084
|
+
// @ts-ignore: type is checked above.
|
|
74085
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
74086
|
+
|
|
74087
|
+
} else {
|
|
74088
|
+
throw new TypeError(
|
|
74089
|
+
"The gateway must be of type " +
|
|
74090
|
+
"URL" + ".",
|
|
74091
|
+
);
|
|
74092
|
+
}
|
|
74093
|
+
}
|
|
74094
|
+
|
|
74095
|
+
if ("gateways" in values && values.gateways != null) {
|
|
74096
|
+
|
|
74097
|
+
if ("gateway" in values &&
|
|
74098
|
+
values.gateway != null) {
|
|
74099
|
+
throw new TypeError(
|
|
74100
|
+
"Cannot initialize both gateway and " +
|
|
74101
|
+
"gateways at the same time.",
|
|
74102
|
+
);
|
|
74103
|
+
}
|
|
74104
|
+
|
|
74105
|
+
if (Array.isArray(values.gateways) &&
|
|
74106
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
74107
|
+
// @ts-ignore: type is checked above.
|
|
74108
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
74109
|
+
|
|
74110
|
+
} else {
|
|
74111
|
+
throw new TypeError(
|
|
74112
|
+
"The gateways must be an array of type " +
|
|
74113
|
+
"URL" + ".",
|
|
74114
|
+
);
|
|
74115
|
+
}
|
|
74116
|
+
}
|
|
74117
|
+
|
|
73390
74118
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
73391
74119
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
73392
74120
|
// @ts-ignore: type is checked above.
|
|
@@ -73737,7 +74465,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
73737
74465
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
73738
74466
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
73739
74467
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
73740
|
-
assertionMethods?: (Multikey | URL)[];
|
|
74468
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
74469
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
73741
74470
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
73742
74471
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
73743
74472
|
|
|
@@ -73873,6 +74602,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
73873
74602
|
);
|
|
73874
74603
|
}
|
|
73875
74604
|
}
|
|
74605
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
74606
|
+
if ("gateway" in values && values.gateway != null) {
|
|
74607
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
74608
|
+
// @ts-ignore: type is checked above.
|
|
74609
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
74610
|
+
|
|
74611
|
+
} else {
|
|
74612
|
+
throw new TypeError(
|
|
74613
|
+
"The gateway must be of type " +
|
|
74614
|
+
"URL" + ".",
|
|
74615
|
+
);
|
|
74616
|
+
}
|
|
74617
|
+
}
|
|
74618
|
+
|
|
74619
|
+
if ("gateways" in values && values.gateways != null) {
|
|
74620
|
+
|
|
74621
|
+
if ("gateway" in values &&
|
|
74622
|
+
values.gateway != null) {
|
|
74623
|
+
throw new TypeError(
|
|
74624
|
+
"Cannot update both gateway and " +
|
|
74625
|
+
"gateways at the same time.",
|
|
74626
|
+
);
|
|
74627
|
+
}
|
|
74628
|
+
|
|
74629
|
+
if (Array.isArray(values.gateways) &&
|
|
74630
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
74631
|
+
// @ts-ignore: type is checked above.
|
|
74632
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
74633
|
+
|
|
74634
|
+
} else {
|
|
74635
|
+
throw new TypeError(
|
|
74636
|
+
"The gateways must be an array of type " +
|
|
74637
|
+
"URL" + ".",
|
|
74638
|
+
);
|
|
74639
|
+
}
|
|
74640
|
+
}
|
|
73876
74641
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
73877
74642
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
73878
74643
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
@@ -74895,6 +75660,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
74895
75660
|
}
|
|
74896
75661
|
}
|
|
74897
75662
|
|
|
75663
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
75664
|
+
* retrieved.
|
|
75665
|
+
*
|
|
75666
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
75667
|
+
*
|
|
75668
|
+
*/
|
|
75669
|
+
get gateway(): (URL | null) {
|
|
75670
|
+
if (this._warning != null) {
|
|
75671
|
+
getLogger(this._warning.category).warn(
|
|
75672
|
+
this._warning.message,
|
|
75673
|
+
this._warning.values
|
|
75674
|
+
);
|
|
75675
|
+
}
|
|
75676
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
75677
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
75678
|
+
}
|
|
75679
|
+
|
|
75680
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
75681
|
+
* retrieved.
|
|
75682
|
+
*
|
|
75683
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
75684
|
+
*
|
|
75685
|
+
*/
|
|
75686
|
+
get gateways(): (URL)[] {
|
|
75687
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
75688
|
+
}
|
|
75689
|
+
|
|
74898
75690
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
74899
75691
|
* automatically approved, but instead are examined by a person who may accept
|
|
74900
75692
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -78203,6 +78995,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
78203
78995
|
|
|
78204
78996
|
}
|
|
78205
78997
|
|
|
78998
|
+
compactItems = [];
|
|
78999
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
79000
|
+
const item = (
|
|
79001
|
+
formatIri(v)
|
|
79002
|
+
);
|
|
79003
|
+
compactItems.push(item);
|
|
79004
|
+
}
|
|
79005
|
+
if (compactItems.length > 0) {
|
|
79006
|
+
|
|
79007
|
+
result["gateways"] = compactItems;
|
|
79008
|
+
|
|
79009
|
+
}
|
|
79010
|
+
|
|
78206
79011
|
compactItems = [];
|
|
78207
79012
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
78208
79013
|
const item = (
|
|
@@ -78617,7 +79422,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
78617
79422
|
|
|
78618
79423
|
result["type"] = "Organization";
|
|
78619
79424
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
78620
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
79425
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/fep/ef61","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
78621
79426
|
return result;
|
|
78622
79427
|
}
|
|
78623
79428
|
|
|
@@ -78682,6 +79487,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
78682
79487
|
|
|
78683
79488
|
}
|
|
78684
79489
|
|
|
79490
|
+
array = [];
|
|
79491
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
79492
|
+
const element = (
|
|
79493
|
+
{ "@id": formatIri(v) }
|
|
79494
|
+
);
|
|
79495
|
+
array.push(element);;
|
|
79496
|
+
}
|
|
79497
|
+
if (array.length > 0) {
|
|
79498
|
+
const propValue = (
|
|
79499
|
+
{ "@list": array }
|
|
79500
|
+
);
|
|
79501
|
+
values["https://w3id.org/fep/ef61/gateways"] = propValue;
|
|
79502
|
+
|
|
79503
|
+
}
|
|
79504
|
+
|
|
78685
79505
|
array = [];
|
|
78686
79506
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
78687
79507
|
const element = (
|
|
@@ -78991,7 +79811,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
78991
79811
|
);
|
|
78992
79812
|
}
|
|
78993
79813
|
const docContext = options.context ??
|
|
78994
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
79814
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/fep/ef61","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
78995
79815
|
const compacted = await jsonld.compact(
|
|
78996
79816
|
values,
|
|
78997
79817
|
docContext,
|
|
@@ -79233,6 +80053,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
79233
80053
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
79234
80054
|
}
|
|
79235
80055
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
80056
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
80057
|
+
|
|
80058
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
80059
|
+
|
|
80060
|
+
for (
|
|
80061
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
80062
|
+
? []
|
|
80063
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
80064
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"]
|
|
80065
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
80066
|
+
) {
|
|
80067
|
+
if (v == null) continue;
|
|
80068
|
+
|
|
80069
|
+
const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
80070
|
+
if (typeof decoded === "undefined") continue;
|
|
80071
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
80072
|
+
}
|
|
80073
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
79236
80074
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
79237
80075
|
|
|
79238
80076
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
@@ -79904,6 +80742,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
79904
80742
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
79905
80743
|
}
|
|
79906
80744
|
|
|
80745
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
80746
|
+
// deno-lint-ignore no-explicit-any
|
|
80747
|
+
.map((v: any) => v instanceof URL
|
|
80748
|
+
? {
|
|
80749
|
+
[Symbol.for("Deno.customInspect")]: (
|
|
80750
|
+
inspect: typeof Deno.inspect,
|
|
80751
|
+
options: Deno.InspectOptions,
|
|
80752
|
+
): string => "URL " + inspect(v.href, options),
|
|
80753
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
80754
|
+
_depth: number,
|
|
80755
|
+
options: unknown,
|
|
80756
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
80757
|
+
): string => "URL " + inspect(v.href, options),
|
|
80758
|
+
}
|
|
80759
|
+
: v);
|
|
80760
|
+
|
|
80761
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
80762
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
80763
|
+
}
|
|
80764
|
+
|
|
80765
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
80766
|
+
|| !("gateway" in proxy)
|
|
80767
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
80768
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
80769
|
+
}
|
|
80770
|
+
|
|
79907
80771
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
79908
80772
|
// deno-lint-ignore no-explicit-any
|
|
79909
80773
|
.map((v: any) => v instanceof URL
|
|
@@ -80381,7 +81245,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
80381
81245
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
80382
81246
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
80383
81247
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
80384
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
81248
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
80385
81249
|
,
|
|
80386
81250
|
options: {
|
|
80387
81251
|
documentLoader?: DocumentLoader,
|
|
@@ -80417,7 +81281,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
80417
81281
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
80418
81282
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
80419
81283
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
80420
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
81284
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
80421
81285
|
|
|
80422
81286
|
= {},
|
|
80423
81287
|
options: {
|
|
@@ -80479,7 +81343,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
80479
81343
|
|
|
80480
81344
|
result["type"] = "Page";
|
|
80481
81345
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
80482
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
81346
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v2",{"digestMultibase":"https://www.w3.org/ns/credentials/v2#digestMultibase"},"https://gotosocial.org/ns"];
|
|
80483
81347
|
return result;
|
|
80484
81348
|
}
|
|
80485
81349
|
|
|
@@ -80505,7 +81369,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
80505
81369
|
);
|
|
80506
81370
|
}
|
|
80507
81371
|
const docContext = options.context ??
|
|
80508
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
81372
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v2",{"digestMultibase":"https://www.w3.org/ns/credentials/v2#digestMultibase"},"https://gotosocial.org/ns"];
|
|
80509
81373
|
const compacted = await jsonld.compact(
|
|
80510
81374
|
values,
|
|
80511
81375
|
docContext,
|
|
@@ -80725,7 +81589,8 @@ export class Person extends Object {
|
|
|
80725
81589
|
|
|
80726
81590
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
80727
81591
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
80728
|
-
#
|
|
81592
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
81593
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
80729
81594
|
|
|
80730
81595
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
80731
81596
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -80798,7 +81663,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
80798
81663
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
80799
81664
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
80800
81665
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
80801
|
-
assertionMethods?: (Multikey | URL)[];
|
|
81666
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
81667
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
80802
81668
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
80803
81669
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
80804
81670
|
,
|
|
@@ -80925,6 +81791,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
80925
81791
|
}
|
|
80926
81792
|
}
|
|
80927
81793
|
|
|
81794
|
+
if ("gateway" in values && values.gateway != null) {
|
|
81795
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
81796
|
+
// @ts-ignore: type is checked above.
|
|
81797
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
81798
|
+
|
|
81799
|
+
} else {
|
|
81800
|
+
throw new TypeError(
|
|
81801
|
+
"The gateway must be of type " +
|
|
81802
|
+
"URL" + ".",
|
|
81803
|
+
);
|
|
81804
|
+
}
|
|
81805
|
+
}
|
|
81806
|
+
|
|
81807
|
+
if ("gateways" in values && values.gateways != null) {
|
|
81808
|
+
|
|
81809
|
+
if ("gateway" in values &&
|
|
81810
|
+
values.gateway != null) {
|
|
81811
|
+
throw new TypeError(
|
|
81812
|
+
"Cannot initialize both gateway and " +
|
|
81813
|
+
"gateways at the same time.",
|
|
81814
|
+
);
|
|
81815
|
+
}
|
|
81816
|
+
|
|
81817
|
+
if (Array.isArray(values.gateways) &&
|
|
81818
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
81819
|
+
// @ts-ignore: type is checked above.
|
|
81820
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
81821
|
+
|
|
81822
|
+
} else {
|
|
81823
|
+
throw new TypeError(
|
|
81824
|
+
"The gateways must be an array of type " +
|
|
81825
|
+
"URL" + ".",
|
|
81826
|
+
);
|
|
81827
|
+
}
|
|
81828
|
+
}
|
|
81829
|
+
|
|
80928
81830
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
80929
81831
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
80930
81832
|
// @ts-ignore: type is checked above.
|
|
@@ -81275,7 +82177,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
81275
82177
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
81276
82178
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
81277
82179
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
81278
|
-
assertionMethods?: (Multikey | URL)[];
|
|
82180
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
82181
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
81279
82182
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
81280
82183
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
81281
82184
|
|
|
@@ -81411,6 +82314,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
81411
82314
|
);
|
|
81412
82315
|
}
|
|
81413
82316
|
}
|
|
82317
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
82318
|
+
if ("gateway" in values && values.gateway != null) {
|
|
82319
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
82320
|
+
// @ts-ignore: type is checked above.
|
|
82321
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
82322
|
+
|
|
82323
|
+
} else {
|
|
82324
|
+
throw new TypeError(
|
|
82325
|
+
"The gateway must be of type " +
|
|
82326
|
+
"URL" + ".",
|
|
82327
|
+
);
|
|
82328
|
+
}
|
|
82329
|
+
}
|
|
82330
|
+
|
|
82331
|
+
if ("gateways" in values && values.gateways != null) {
|
|
82332
|
+
|
|
82333
|
+
if ("gateway" in values &&
|
|
82334
|
+
values.gateway != null) {
|
|
82335
|
+
throw new TypeError(
|
|
82336
|
+
"Cannot update both gateway and " +
|
|
82337
|
+
"gateways at the same time.",
|
|
82338
|
+
);
|
|
82339
|
+
}
|
|
82340
|
+
|
|
82341
|
+
if (Array.isArray(values.gateways) &&
|
|
82342
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
82343
|
+
// @ts-ignore: type is checked above.
|
|
82344
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
82345
|
+
|
|
82346
|
+
} else {
|
|
82347
|
+
throw new TypeError(
|
|
82348
|
+
"The gateways must be an array of type " +
|
|
82349
|
+
"URL" + ".",
|
|
82350
|
+
);
|
|
82351
|
+
}
|
|
82352
|
+
}
|
|
81414
82353
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
81415
82354
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
81416
82355
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
@@ -82433,6 +83372,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
82433
83372
|
}
|
|
82434
83373
|
}
|
|
82435
83374
|
|
|
83375
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
83376
|
+
* retrieved.
|
|
83377
|
+
*
|
|
83378
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
83379
|
+
*
|
|
83380
|
+
*/
|
|
83381
|
+
get gateway(): (URL | null) {
|
|
83382
|
+
if (this._warning != null) {
|
|
83383
|
+
getLogger(this._warning.category).warn(
|
|
83384
|
+
this._warning.message,
|
|
83385
|
+
this._warning.values
|
|
83386
|
+
);
|
|
83387
|
+
}
|
|
83388
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
83389
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
83390
|
+
}
|
|
83391
|
+
|
|
83392
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
83393
|
+
* retrieved.
|
|
83394
|
+
*
|
|
83395
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
83396
|
+
*
|
|
83397
|
+
*/
|
|
83398
|
+
get gateways(): (URL)[] {
|
|
83399
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
83400
|
+
}
|
|
83401
|
+
|
|
82436
83402
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
82437
83403
|
* automatically approved, but instead are examined by a person who may accept
|
|
82438
83404
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -85741,6 +86707,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
85741
86707
|
|
|
85742
86708
|
}
|
|
85743
86709
|
|
|
86710
|
+
compactItems = [];
|
|
86711
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
86712
|
+
const item = (
|
|
86713
|
+
formatIri(v)
|
|
86714
|
+
);
|
|
86715
|
+
compactItems.push(item);
|
|
86716
|
+
}
|
|
86717
|
+
if (compactItems.length > 0) {
|
|
86718
|
+
|
|
86719
|
+
result["gateways"] = compactItems;
|
|
86720
|
+
|
|
86721
|
+
}
|
|
86722
|
+
|
|
85744
86723
|
compactItems = [];
|
|
85745
86724
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
85746
86725
|
const item = (
|
|
@@ -86155,7 +87134,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
86155
87134
|
|
|
86156
87135
|
result["type"] = "Person";
|
|
86157
87136
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
86158
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
87137
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/fep/ef61","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
86159
87138
|
return result;
|
|
86160
87139
|
}
|
|
86161
87140
|
|
|
@@ -86220,6 +87199,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
86220
87199
|
|
|
86221
87200
|
}
|
|
86222
87201
|
|
|
87202
|
+
array = [];
|
|
87203
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
87204
|
+
const element = (
|
|
87205
|
+
{ "@id": formatIri(v) }
|
|
87206
|
+
);
|
|
87207
|
+
array.push(element);;
|
|
87208
|
+
}
|
|
87209
|
+
if (array.length > 0) {
|
|
87210
|
+
const propValue = (
|
|
87211
|
+
{ "@list": array }
|
|
87212
|
+
);
|
|
87213
|
+
values["https://w3id.org/fep/ef61/gateways"] = propValue;
|
|
87214
|
+
|
|
87215
|
+
}
|
|
87216
|
+
|
|
86223
87217
|
array = [];
|
|
86224
87218
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
86225
87219
|
const element = (
|
|
@@ -86529,7 +87523,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
86529
87523
|
);
|
|
86530
87524
|
}
|
|
86531
87525
|
const docContext = options.context ??
|
|
86532
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
87526
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/fep/ef61","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
86533
87527
|
const compacted = await jsonld.compact(
|
|
86534
87528
|
values,
|
|
86535
87529
|
docContext,
|
|
@@ -86771,6 +87765,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
86771
87765
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
86772
87766
|
}
|
|
86773
87767
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
87768
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
87769
|
+
|
|
87770
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
87771
|
+
|
|
87772
|
+
for (
|
|
87773
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
87774
|
+
? []
|
|
87775
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
87776
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"]
|
|
87777
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
87778
|
+
) {
|
|
87779
|
+
if (v == null) continue;
|
|
87780
|
+
|
|
87781
|
+
const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
87782
|
+
if (typeof decoded === "undefined") continue;
|
|
87783
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
87784
|
+
}
|
|
87785
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
86774
87786
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
86775
87787
|
|
|
86776
87788
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
@@ -87442,6 +88454,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
87442
88454
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
87443
88455
|
}
|
|
87444
88456
|
|
|
88457
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
88458
|
+
// deno-lint-ignore no-explicit-any
|
|
88459
|
+
.map((v: any) => v instanceof URL
|
|
88460
|
+
? {
|
|
88461
|
+
[Symbol.for("Deno.customInspect")]: (
|
|
88462
|
+
inspect: typeof Deno.inspect,
|
|
88463
|
+
options: Deno.InspectOptions,
|
|
88464
|
+
): string => "URL " + inspect(v.href, options),
|
|
88465
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
88466
|
+
_depth: number,
|
|
88467
|
+
options: unknown,
|
|
88468
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
88469
|
+
): string => "URL " + inspect(v.href, options),
|
|
88470
|
+
}
|
|
88471
|
+
: v);
|
|
88472
|
+
|
|
88473
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
88474
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
88475
|
+
}
|
|
88476
|
+
|
|
88477
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
88478
|
+
|| !("gateway" in proxy)
|
|
88479
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
88480
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
88481
|
+
}
|
|
88482
|
+
|
|
87445
88483
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
87446
88484
|
// deno-lint-ignore no-explicit-any
|
|
87447
88485
|
.map((v: any) => v instanceof URL
|
|
@@ -94501,7 +95539,8 @@ export class Service extends Object {
|
|
|
94501
95539
|
|
|
94502
95540
|
#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: (Multikey | URL)[] = [];
|
|
94503
95541
|
#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod: Set<number> = new Set();
|
|
94504
|
-
#
|
|
95542
|
+
#_hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
95543
|
+
#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
94505
95544
|
|
|
94506
95545
|
#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: (OrderedCollection | OrderedCollectionPage | URL)[] = [];
|
|
94507
95546
|
#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox: Set<number> = new Set();
|
|
@@ -94574,7 +95613,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
94574
95613
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
94575
95614
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
94576
95615
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
94577
|
-
assertionMethods?: (Multikey | URL)[];
|
|
95616
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
95617
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
94578
95618
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
94579
95619
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
94580
95620
|
,
|
|
@@ -94701,6 +95741,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
94701
95741
|
}
|
|
94702
95742
|
}
|
|
94703
95743
|
|
|
95744
|
+
if ("gateway" in values && values.gateway != null) {
|
|
95745
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
95746
|
+
// @ts-ignore: type is checked above.
|
|
95747
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
95748
|
+
|
|
95749
|
+
} else {
|
|
95750
|
+
throw new TypeError(
|
|
95751
|
+
"The gateway must be of type " +
|
|
95752
|
+
"URL" + ".",
|
|
95753
|
+
);
|
|
95754
|
+
}
|
|
95755
|
+
}
|
|
95756
|
+
|
|
95757
|
+
if ("gateways" in values && values.gateways != null) {
|
|
95758
|
+
|
|
95759
|
+
if ("gateway" in values &&
|
|
95760
|
+
values.gateway != null) {
|
|
95761
|
+
throw new TypeError(
|
|
95762
|
+
"Cannot initialize both gateway and " +
|
|
95763
|
+
"gateways at the same time.",
|
|
95764
|
+
);
|
|
95765
|
+
}
|
|
95766
|
+
|
|
95767
|
+
if (Array.isArray(values.gateways) &&
|
|
95768
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
95769
|
+
// @ts-ignore: type is checked above.
|
|
95770
|
+
this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
95771
|
+
|
|
95772
|
+
} else {
|
|
95773
|
+
throw new TypeError(
|
|
95774
|
+
"The gateways must be an array of type " +
|
|
95775
|
+
"URL" + ".",
|
|
95776
|
+
);
|
|
95777
|
+
}
|
|
95778
|
+
}
|
|
95779
|
+
|
|
94704
95780
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
94705
95781
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
94706
95782
|
// @ts-ignore: type is checked above.
|
|
@@ -95051,7 +96127,8 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
|
|
|
95051
96127
|
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;preferredUsername?: string | LanguageString | null;
|
|
95052
96128
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
95053
96129
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
95054
|
-
assertionMethods?: (Multikey | URL)[];
|
|
96130
|
+
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
96131
|
+
gateways?: (URL)[];manuallyApprovesFollowers?: boolean | null;inbox?: OrderedCollection | OrderedCollectionPage | URL | null;outbox?: OrderedCollection | OrderedCollectionPage | URL | null;following?: Collection | URL | null;followers?: Collection | URL | null;liked?: Collection | URL | null;featured?: Collection | URL | null;featuredTags?: Collection | URL | null;featuredCollections?: Collection | URL | null;streams?: (Collection | URL)[];endpoints?: Endpoints | null;discoverable?: boolean | null;suspended?: boolean | null;memorial?: boolean | null;indexable?: boolean | null;successor?: Application | Group | Organization | Person | Service | URL | null;alias?: Application | Group | Organization | Person | Service | URL | null;
|
|
95055
96132
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
95056
96133
|
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
95057
96134
|
|
|
@@ -95187,6 +96264,42 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
95187
96264
|
);
|
|
95188
96265
|
}
|
|
95189
96266
|
}
|
|
96267
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
96268
|
+
if ("gateway" in values && values.gateway != null) {
|
|
96269
|
+
if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) {
|
|
96270
|
+
// @ts-ignore: type is checked above.
|
|
96271
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
96272
|
+
|
|
96273
|
+
} else {
|
|
96274
|
+
throw new TypeError(
|
|
96275
|
+
"The gateway must be of type " +
|
|
96276
|
+
"URL" + ".",
|
|
96277
|
+
);
|
|
96278
|
+
}
|
|
96279
|
+
}
|
|
96280
|
+
|
|
96281
|
+
if ("gateways" in values && values.gateways != null) {
|
|
96282
|
+
|
|
96283
|
+
if ("gateway" in values &&
|
|
96284
|
+
values.gateway != null) {
|
|
96285
|
+
throw new TypeError(
|
|
96286
|
+
"Cannot update both gateway and " +
|
|
96287
|
+
"gateways at the same time.",
|
|
96288
|
+
);
|
|
96289
|
+
}
|
|
96290
|
+
|
|
96291
|
+
if (Array.isArray(values.gateways) &&
|
|
96292
|
+
values.gateways.every(v => v instanceof URL && isGatewayUrl(v))) {
|
|
96293
|
+
// @ts-ignore: type is checked above.
|
|
96294
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
96295
|
+
|
|
96296
|
+
} else {
|
|
96297
|
+
throw new TypeError(
|
|
96298
|
+
"The gateways must be an array of type " +
|
|
96299
|
+
"URL" + ".",
|
|
96300
|
+
);
|
|
96301
|
+
}
|
|
96302
|
+
}
|
|
95190
96303
|
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
95191
96304
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) {
|
|
95192
96305
|
if (typeof values.manuallyApprovesFollowers === "boolean") {
|
|
@@ -96209,6 +97322,33 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
96209
97322
|
}
|
|
96210
97323
|
}
|
|
96211
97324
|
|
|
97325
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
97326
|
+
* retrieved.
|
|
97327
|
+
*
|
|
97328
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
97329
|
+
*
|
|
97330
|
+
*/
|
|
97331
|
+
get gateway(): (URL | null) {
|
|
97332
|
+
if (this._warning != null) {
|
|
97333
|
+
getLogger(this._warning.category).warn(
|
|
97334
|
+
this._warning.message,
|
|
97335
|
+
this._warning.values
|
|
97336
|
+
);
|
|
97337
|
+
}
|
|
97338
|
+
if (this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.length < 1) return null;
|
|
97339
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
97340
|
+
}
|
|
97341
|
+
|
|
97342
|
+
/** Gateways where the latest version of this portable actor object can be
|
|
97343
|
+
* retrieved.
|
|
97344
|
+
*
|
|
97345
|
+
* See [FEP-ef61](https://w3id.org/fep/ef61) for details.
|
|
97346
|
+
*
|
|
97347
|
+
*/
|
|
97348
|
+
get gateways(): (URL)[] {
|
|
97349
|
+
return this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
97350
|
+
}
|
|
97351
|
+
|
|
96212
97352
|
/** When \`true\`, conveys that for this actor, follow requests are not usually
|
|
96213
97353
|
* automatically approved, but instead are examined by a person who may accept
|
|
96214
97354
|
* or reject the request, at some time in the future. Setting of \`false\`
|
|
@@ -99517,6 +100657,19 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
99517
100657
|
|
|
99518
100658
|
}
|
|
99519
100659
|
|
|
100660
|
+
compactItems = [];
|
|
100661
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
100662
|
+
const item = (
|
|
100663
|
+
formatIri(v)
|
|
100664
|
+
);
|
|
100665
|
+
compactItems.push(item);
|
|
100666
|
+
}
|
|
100667
|
+
if (compactItems.length > 0) {
|
|
100668
|
+
|
|
100669
|
+
result["gateways"] = compactItems;
|
|
100670
|
+
|
|
100671
|
+
}
|
|
100672
|
+
|
|
99520
100673
|
compactItems = [];
|
|
99521
100674
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
99522
100675
|
const item = (
|
|
@@ -99931,7 +101084,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
99931
101084
|
|
|
99932
101085
|
result["type"] = "Service";
|
|
99933
101086
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
99934
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
101087
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/fep/ef61","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
99935
101088
|
return result;
|
|
99936
101089
|
}
|
|
99937
101090
|
|
|
@@ -99996,6 +101149,21 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
99996
101149
|
|
|
99997
101150
|
}
|
|
99998
101151
|
|
|
101152
|
+
array = [];
|
|
101153
|
+
for (const v of this.#_hQiaHhZP8hqxckxTBrpsGNs57E3) {
|
|
101154
|
+
const element = (
|
|
101155
|
+
{ "@id": formatIri(v) }
|
|
101156
|
+
);
|
|
101157
|
+
array.push(element);;
|
|
101158
|
+
}
|
|
101159
|
+
if (array.length > 0) {
|
|
101160
|
+
const propValue = (
|
|
101161
|
+
{ "@list": array }
|
|
101162
|
+
);
|
|
101163
|
+
values["https://w3id.org/fep/ef61/gateways"] = propValue;
|
|
101164
|
+
|
|
101165
|
+
}
|
|
101166
|
+
|
|
99999
101167
|
array = [];
|
|
100000
101168
|
for (const v of this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers) {
|
|
100001
101169
|
const element = (
|
|
@@ -100305,7 +101473,7 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
100305
101473
|
);
|
|
100306
101474
|
}
|
|
100307
101475
|
const docContext = options.context ??
|
|
100308
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
101476
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/fep/ef61","https://w3id.org/security/v1","https://w3id.org/security/data-integrity/v1","https://www.w3.org/ns/did/v1","https://w3id.org/security/multikey/v1","https://gotosocial.org/ns","https://w3id.org/fep/7aa9",{"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"featuredCollections":{"@id":"https://w3id.org/fep/7aa9#featuredCollections","@type":"@id"},"manuallyApprovesFollowers":"as:manuallyApprovesFollowers","movedTo":{"@id":"as:movedTo","@type":"@id"},"toot":"http://joinmastodon.org/ns#","Emoji":"toot:Emoji","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"discoverable":"toot:discoverable","suspended":"toot:suspended","memorial":"toot:memorial","indexable":"toot:indexable","schema":"http://schema.org#","PropertyValue":"schema:PropertyValue","value":"schema:value","misskey":"https://misskey-hub.net/ns#","_misskey_followedMessage":"misskey:_misskey_followedMessage","isCat":"misskey:isCat"}];
|
|
100309
101477
|
const compacted = await jsonld.compact(
|
|
100310
101478
|
values,
|
|
100311
101479
|
docContext,
|
|
@@ -100547,6 +101715,24 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
100547
101715
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(decoded);
|
|
100548
101716
|
}
|
|
100549
101717
|
instance.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
101718
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3: (URL)[] = [];
|
|
101719
|
+
|
|
101720
|
+
let _hQiaHhZP8hqxckxTBrpsGNs57E3__array = values["https://w3id.org/fep/ef61/gateways"];
|
|
101721
|
+
|
|
101722
|
+
for (
|
|
101723
|
+
const v of _hQiaHhZP8hqxckxTBrpsGNs57E3__array == null
|
|
101724
|
+
? []
|
|
101725
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array.length === 1 && "@list" in _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]
|
|
101726
|
+
? _hQiaHhZP8hqxckxTBrpsGNs57E3__array[0]["@list"]
|
|
101727
|
+
: _hQiaHhZP8hqxckxTBrpsGNs57E3__array
|
|
101728
|
+
) {
|
|
101729
|
+
if (v == null) continue;
|
|
101730
|
+
|
|
101731
|
+
const decoded = parseGatewayUrl(typeof v["@id"] === "string" ? v["@id"] : v["@value"]);
|
|
101732
|
+
if (typeof decoded === "undefined") continue;
|
|
101733
|
+
_hQiaHhZP8hqxckxTBrpsGNs57E3.push(decoded);
|
|
101734
|
+
}
|
|
101735
|
+
instance.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
100550
101736
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers: (boolean)[] = [];
|
|
100551
101737
|
|
|
100552
101738
|
let _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers__array = values["https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"];
|
|
@@ -101218,6 +102404,32 @@ get preferredUsernames(): ((string | LanguageString))[] {
|
|
|
101218
102404
|
proxy.assertionMethods = _4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
101219
102405
|
}
|
|
101220
102406
|
|
|
102407
|
+
const _hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3
|
|
102408
|
+
// deno-lint-ignore no-explicit-any
|
|
102409
|
+
.map((v: any) => v instanceof URL
|
|
102410
|
+
? {
|
|
102411
|
+
[Symbol.for("Deno.customInspect")]: (
|
|
102412
|
+
inspect: typeof Deno.inspect,
|
|
102413
|
+
options: Deno.InspectOptions,
|
|
102414
|
+
): string => "URL " + inspect(v.href, options),
|
|
102415
|
+
[Symbol.for("nodejs.util.inspect.custom")]: (
|
|
102416
|
+
_depth: number,
|
|
102417
|
+
options: unknown,
|
|
102418
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
102419
|
+
): string => "URL " + inspect(v.href, options),
|
|
102420
|
+
}
|
|
102421
|
+
: v);
|
|
102422
|
+
|
|
102423
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length == 1) {
|
|
102424
|
+
proxy.gateway = _hQiaHhZP8hqxckxTBrpsGNs57E3[0];
|
|
102425
|
+
}
|
|
102426
|
+
|
|
102427
|
+
if (_hQiaHhZP8hqxckxTBrpsGNs57E3.length > 1
|
|
102428
|
+
|| !("gateway" in proxy)
|
|
102429
|
+
&& _hQiaHhZP8hqxckxTBrpsGNs57E3.length > 0) {
|
|
102430
|
+
proxy.gateways = _hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
102431
|
+
}
|
|
102432
|
+
|
|
101221
102433
|
const _36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers
|
|
101222
102434
|
// deno-lint-ignore no-explicit-any
|
|
101223
102435
|
.map((v: any) => v instanceof URL
|
|
@@ -104859,7 +106071,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
104859
106071
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
104860
106072
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
104861
106073
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
104862
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
106074
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
104863
106075
|
,
|
|
104864
106076
|
options: {
|
|
104865
106077
|
documentLoader?: DocumentLoader,
|
|
@@ -104895,7 +106107,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
104895
106107
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
104896
106108
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
104897
106109
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
104898
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;}
|
|
106110
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
104899
106111
|
|
|
104900
106112
|
= {},
|
|
104901
106113
|
options: {
|
|
@@ -104957,7 +106169,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
104957
106169
|
|
|
104958
106170
|
result["type"] = "Video";
|
|
104959
106171
|
if (this.id != null) result["id"] = formatIri(this.id);
|
|
104960
|
-
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
106172
|
+
result["@context"] = ["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v2",{"digestMultibase":"https://www.w3.org/ns/credentials/v2#digestMultibase"},"https://gotosocial.org/ns"];
|
|
104961
106173
|
return result;
|
|
104962
106174
|
}
|
|
104963
106175
|
|
|
@@ -104983,7 +106195,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
104983
106195
|
);
|
|
104984
106196
|
}
|
|
104985
106197
|
const docContext = options.context ??
|
|
104986
|
-
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/
|
|
106198
|
+
["https://www.w3.org/ns/activitystreams","https://w3id.org/security/data-integrity/v2",{"digestMultibase":"https://www.w3.org/ns/credentials/v2#digestMultibase"},"https://gotosocial.org/ns"];
|
|
104987
106199
|
const compacted = await jsonld.compact(
|
|
104988
106200
|
values,
|
|
104989
106201
|
docContext,
|