@fedify/vocab-tools 2.5.0-dev.2332 → 2.5.0-dev.2355
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/README.md +14 -4
- package/deno.json +1 -1
- package/dist/mod.cjs +73 -4
- package/dist/mod.js +73 -4
- package/package.json +2 -2
- package/src/__snapshots__/class.test.ts.deno.snap +2121 -158
- package/src/__snapshots__/class.test.ts.node.snap +2121 -158
- package/src/__snapshots__/class.test.ts.snap +2121 -158
- package/src/class.ts +55 -3
- package/src/codec.test.ts +71 -1
- package/src/codec.ts +21 -5
- package/src/type.ts +19 -0
|
@@ -89,8 +89,33 @@ function isValidLanguageTag(language: string): boolean {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
function getAbsoluteIriValue(value: unknown): string | undefined {
|
|
93
|
+
if (value == null || typeof value !== \\"object\\") return undefined;
|
|
94
|
+
const node = value as Record<string, unknown>;
|
|
95
|
+
if (typeof node[\\"@id\\"] === \\"string\\") {
|
|
96
|
+
return node[\\"@id\\"].startsWith(\\"_:\\") ? undefined : node[\\"@id\\"];
|
|
97
|
+
}
|
|
98
|
+
// A language tag can come from a context's default language, so it does
|
|
99
|
+
// not make a literal any less of an IRI:
|
|
100
|
+
if (typeof node[\\"@value\\"] !== \\"string\\") return undefined;
|
|
101
|
+
const type = node[\\"@type\\"];
|
|
102
|
+
return type == null ||
|
|
103
|
+
type === \\"http://www.w3.org/2001/XMLSchema#string\\" ||
|
|
104
|
+
type === \\"http://www.w3.org/2001/XMLSchema#anyURI\\"
|
|
105
|
+
? node[\\"@value\\"]
|
|
106
|
+
: undefined;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function isAbsoluteIriValue(value: unknown): boolean {
|
|
110
|
+
const iri = getAbsoluteIriValue(value);
|
|
111
|
+
return iri != null && canDecodeIri(iri);
|
|
112
|
+
}
|
|
113
|
+
|
|
92
114
|
const extraPropertyContexts: Readonly<Record<string, string>> =
|
|
93
|
-
{\\"https://schema.org/translator\\":\\"https://w3id.org/fep/22cd\\",\\"https://w3id.org/fep/22cd#translations\\":\\"https://w3id.org/fep/22cd\\"};
|
|
115
|
+
{\\"https://schema.org/translator\\":\\"https://w3id.org/fep/22cd\\",\\"https://w3id.org/fep/6757#preferredLicense\\":\\"https://w3id.org/fep/6757\\",\\"http://purl.org/dc/terms/license\\":\\"https://w3id.org/fep/6757\\",\\"https://w3id.org/fep/22cd#translations\\":\\"https://w3id.org/fep/22cd\\"};
|
|
116
|
+
|
|
117
|
+
const extraContextUrls: readonly string[] =
|
|
118
|
+
[\\"https://w3id.org/fep/22cd\\",\\"https://w3id.org/fep/6757\\"];
|
|
94
119
|
|
|
95
120
|
function getExtraContexts(document: unknown): string[] {
|
|
96
121
|
const contexts = new Set<string>();
|
|
@@ -104,7 +129,16 @@ function getExtraContexts(document: unknown): string[] {
|
|
|
104
129
|
}
|
|
105
130
|
if (\\"@value\\" in value) continue;
|
|
106
131
|
for (const [key, child] of globalThis.Object.entries(value)) {
|
|
107
|
-
if (key === \\"@context\\")
|
|
132
|
+
if (key === \\"@context\\") {
|
|
133
|
+
for (const context of Array.isArray(child) ? child : [child]) {
|
|
134
|
+
if (
|
|
135
|
+
typeof context === \\"string\\" && extraContextUrls.includes(context)
|
|
136
|
+
) {
|
|
137
|
+
contexts.add(context);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
108
142
|
if (globalThis.Object.hasOwn(extraPropertyContexts, key)) {
|
|
109
143
|
contexts.add(extraPropertyContexts[key]);
|
|
110
144
|
}
|
|
@@ -116,7 +150,7 @@ function getExtraContexts(document: unknown): string[] {
|
|
|
116
150
|
|
|
117
151
|
|
|
118
152
|
const PORTABLE_IRI_PATTERN = /^ap(?:\\\\+ef61)?:\\\\/\\\\//i;
|
|
119
|
-
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://schema.org/isBasedOn\\",\\"https://schema.org/translationOfWork\\",\\"https://schema.org/translator\\",\\"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\\",\\"isBasedOn\\",\\"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\\",\\"translationOfWork\\",\\"translator\\",\\"units\\",\\"uploadMedia\\",\\"url\\"]);
|
|
153
|
+
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://creativecommons.org/ns#license\\",\\"http://fedibird.com/ns#emojiReactions\\",\\"http://fedibird.com/ns#quoteUri\\",\\"http://joinmastodon.org/ns#featured\\",\\"http://joinmastodon.org/ns#featuredTags\\",\\"http://purl.org/dc/terms/license\\",\\"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://schema.org/isBasedOn\\",\\"https://schema.org/license\\",\\"https://schema.org/translationOfWork\\",\\"https://schema.org/translator\\",\\"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/6757#preferredLicense\\",\\"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\\",\\"isBasedOn\\",\\"items\\",\\"last\\",\\"license\\",\\"likeAuthorization\\",\\"liked\\",\\"likedOf\\",\\"likes\\",\\"likesOf\\",\\"location\\",\\"manualApproval\\",\\"movedTo\\",\\"next\\",\\"oauthAuthorizationEndpoint\\",\\"oauthTokenEndpoint\\",\\"object\\",\\"oneOf\\",\\"orderedItems\\",\\"origin\\",\\"outbox\\",\\"outboxOf\\",\\"owner\\",\\"partOf\\",\\"preferredLicense\\",\\"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\\",\\"translationOfWork\\",\\"translator\\",\\"units\\",\\"uploadMedia\\",\\"url\\"]);
|
|
120
154
|
|
|
121
155
|
import * as _ppM0 from \\"./preprocessors.ts\\";
|
|
122
156
|
|
|
@@ -283,6 +317,7 @@ export class Object {
|
|
|
283
317
|
#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization: (AnnounceAuthorization | URL)[] = [];
|
|
284
318
|
#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization: Set<number> = new Set();
|
|
285
319
|
#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations: (Translation)[] = [];
|
|
320
|
+
#_2rzkBRS4gNPrkJk9DohHAMUAxA2d: (URL)[] = [];
|
|
286
321
|
|
|
287
322
|
/**
|
|
288
323
|
* Constructs a new instance of Object with the given values.
|
|
@@ -309,7 +344,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
309
344
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
310
345
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
311
346
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
312
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];}
|
|
347
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];}
|
|
313
348
|
,
|
|
314
349
|
options: {
|
|
315
350
|
documentLoader?: DocumentLoader,
|
|
@@ -1273,6 +1308,21 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
1273
1308
|
);
|
|
1274
1309
|
}
|
|
1275
1310
|
}
|
|
1311
|
+
|
|
1312
|
+
if (\\"licenses\\" in values && values.licenses != null) {
|
|
1313
|
+
|
|
1314
|
+
if (Array.isArray(values.licenses) &&
|
|
1315
|
+
values.licenses.every(v => v instanceof URL)) {
|
|
1316
|
+
// @ts-ignore: type is checked above.
|
|
1317
|
+
this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = values.licenses.slice();
|
|
1318
|
+
|
|
1319
|
+
} else {
|
|
1320
|
+
throw new TypeError(
|
|
1321
|
+
\\"The licenses must be an array of type \\" +
|
|
1322
|
+
\\"URL\\" + \\".\\",
|
|
1323
|
+
);
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1276
1326
|
}
|
|
1277
1327
|
|
|
1278
1328
|
/**
|
|
@@ -1309,7 +1359,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
1309
1359
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
1310
1360
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
1311
1361
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
1312
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];}
|
|
1362
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];}
|
|
1313
1363
|
|
|
1314
1364
|
= {},
|
|
1315
1365
|
options: {
|
|
@@ -2285,6 +2335,21 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
2285
2335
|
);
|
|
2286
2336
|
}
|
|
2287
2337
|
}
|
|
2338
|
+
clone.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.slice();
|
|
2339
|
+
if (\\"licenses\\" in values && values.licenses != null) {
|
|
2340
|
+
|
|
2341
|
+
if (Array.isArray(values.licenses) &&
|
|
2342
|
+
values.licenses.every(v => v instanceof URL)) {
|
|
2343
|
+
// @ts-ignore: type is checked above.
|
|
2344
|
+
clone.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = values.licenses.slice();
|
|
2345
|
+
|
|
2346
|
+
} else {
|
|
2347
|
+
throw new TypeError(
|
|
2348
|
+
\\"The licenses must be an array of type \\" +
|
|
2349
|
+
\\"URL\\" + \\".\\",
|
|
2350
|
+
);
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2288
2353
|
|
|
2289
2354
|
return clone;
|
|
2290
2355
|
}
|
|
@@ -14408,6 +14473,29 @@ get translations(): (Translation)[] {
|
|
|
14408
14473
|
return this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations;
|
|
14409
14474
|
}
|
|
14410
14475
|
|
|
14476
|
+
/** The copyright licenses for this object, as defined by
|
|
14477
|
+
* [FEP-6757](https://w3id.org/fep/6757). Each license is identified by its
|
|
14478
|
+
* URI, such as <https://creativecommons.org/licenses/by/4.0/>; license names
|
|
14479
|
+
* and SPDX short identifiers are not license URIs. Multiple values are
|
|
14480
|
+
* alternatives that a consumer may choose from; their order has no meaning.
|
|
14481
|
+
*
|
|
14482
|
+
* An empty list means the object carries no license metadata. Fedify does
|
|
14483
|
+
* not synthesize a default license for it; FEP-6757 suggests that consumers
|
|
14484
|
+
* treat such content as “all rights reserved,” but that is a consumer policy,
|
|
14485
|
+
* not a value of this property. A license on an actor, activity, or
|
|
14486
|
+
* collection covers that object itself, not the objects the actor authored,
|
|
14487
|
+
* the activity's object, or the collection's items. An actor's
|
|
14488
|
+
* \`preferredLicense\` is not a fallback for this property either.
|
|
14489
|
+
*
|
|
14490
|
+
* The \`https://schema.org/license\` and
|
|
14491
|
+
* \`http://creativecommons.org/ns#license\` properties are read as synonyms
|
|
14492
|
+
* when this property is absent, but only this property is written.
|
|
14493
|
+
*
|
|
14494
|
+
*/
|
|
14495
|
+
get licenses(): (URL)[] {
|
|
14496
|
+
return this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
14497
|
+
}
|
|
14498
|
+
|
|
14411
14499
|
/**
|
|
14412
14500
|
* Converts this object to a JSON-LD structure.
|
|
14413
14501
|
* @param options The options to use.
|
|
@@ -15219,6 +15307,22 @@ get translations(): (Translation)[] {
|
|
|
15219
15307
|
|
|
15220
15308
|
}
|
|
15221
15309
|
|
|
15310
|
+
compactItems = [];
|
|
15311
|
+
for (const v of this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d) {
|
|
15312
|
+
const item = (
|
|
15313
|
+
formatIri(v)
|
|
15314
|
+
);
|
|
15315
|
+
compactItems.push(item);
|
|
15316
|
+
}
|
|
15317
|
+
if (compactItems.length > 0) {
|
|
15318
|
+
|
|
15319
|
+
result[\\"license\\"]
|
|
15320
|
+
= compactItems.length > 1
|
|
15321
|
+
? compactItems
|
|
15322
|
+
: compactItems[0];
|
|
15323
|
+
|
|
15324
|
+
}
|
|
15325
|
+
|
|
15222
15326
|
result[\\"type\\"] = \\"Object\\";
|
|
15223
15327
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
15224
15328
|
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
@@ -16014,6 +16118,26 @@ get translations(): (Translation)[] {
|
|
|
16014
16118
|
|
|
16015
16119
|
}
|
|
16016
16120
|
|
|
16121
|
+
array = [];
|
|
16122
|
+
for (const v of this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d) {
|
|
16123
|
+
let element = (
|
|
16124
|
+
{ \\"@id\\": formatIri(v) }
|
|
16125
|
+
);
|
|
16126
|
+
if (Array.isArray(element)) {
|
|
16127
|
+
if (element.length < 1) continue;
|
|
16128
|
+
if (element.length == 1) element = element[0];
|
|
16129
|
+
}
|
|
16130
|
+
if (typeof element === \\"undefined\\") continue;
|
|
16131
|
+
array.push(element);;
|
|
16132
|
+
}
|
|
16133
|
+
if (array.length > 0) {
|
|
16134
|
+
const propValue = (
|
|
16135
|
+
array
|
|
16136
|
+
);
|
|
16137
|
+
values[\\"http://purl.org/dc/terms/license\\"] = propValue;
|
|
16138
|
+
|
|
16139
|
+
}
|
|
16140
|
+
|
|
16017
16141
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Object\\"];
|
|
16018
16142
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
16019
16143
|
if (options.format === \\"expand\\") {
|
|
@@ -16027,6 +16151,17 @@ get translations(): (Translation)[] {
|
|
|
16027
16151
|
}
|
|
16028
16152
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
16029
16153
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
16154
|
+
|
|
16155
|
+
if (options.context == null) {
|
|
16156
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
16157
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
16158
|
+
context => !currentContexts.includes(context)
|
|
16159
|
+
);
|
|
16160
|
+
if (additionalContexts.length > 0) {
|
|
16161
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
16162
|
+
}
|
|
16163
|
+
}
|
|
16164
|
+
|
|
16030
16165
|
let compacted = await jsonld.compact(
|
|
16031
16166
|
values,
|
|
16032
16167
|
docContext,
|
|
@@ -16098,6 +16233,11 @@ get translations(): (Translation)[] {
|
|
|
16098
16233
|
this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations.length > 0
|
|
16099
16234
|
) return false;
|
|
16100
16235
|
|
|
16236
|
+
if (
|
|
16237
|
+
this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d != null &&
|
|
16238
|
+
this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 0
|
|
16239
|
+
) return false;
|
|
16240
|
+
|
|
16101
16241
|
return true;
|
|
16102
16242
|
}
|
|
16103
16243
|
|
|
@@ -18050,6 +18190,43 @@ get translations(): (Translation)[] {
|
|
|
18050
18190
|
|
|
18051
18191
|
}
|
|
18052
18192
|
instance.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = _a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations;
|
|
18193
|
+
const _2rzkBRS4gNPrkJk9DohHAMUAxA2d: (URL)[] = [];
|
|
18194
|
+
|
|
18195
|
+
let _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values[\\"http://purl.org/dc/terms/license\\"];
|
|
18196
|
+
|
|
18197
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null || _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length < 1) {
|
|
18198
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values[\\"https://schema.org/license\\"];
|
|
18199
|
+
}
|
|
18200
|
+
|
|
18201
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null || _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length < 1) {
|
|
18202
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values[\\"http://creativecommons.org/ns#license\\"];
|
|
18203
|
+
}
|
|
18204
|
+
|
|
18205
|
+
for (
|
|
18206
|
+
const v of _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null
|
|
18207
|
+
? []
|
|
18208
|
+
: _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length === 1 && \\"@list\\" in _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array[0]
|
|
18209
|
+
? _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array[0][\\"@list\\"]
|
|
18210
|
+
: _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array
|
|
18211
|
+
) {
|
|
18212
|
+
if (v == null) continue;
|
|
18213
|
+
|
|
18214
|
+
const decoded =
|
|
18215
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
18216
|
+
;
|
|
18217
|
+
|
|
18218
|
+
if (typeof decoded === \\"undefined\\") {
|
|
18219
|
+
shouldCacheJsonLd = false;
|
|
18220
|
+
continue;
|
|
18221
|
+
}
|
|
18222
|
+
|
|
18223
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
18224
|
+
shouldCacheJsonLd = false;
|
|
18225
|
+
}
|
|
18226
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d.push(decoded);
|
|
18227
|
+
|
|
18228
|
+
}
|
|
18229
|
+
instance.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = _2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
18053
18230
|
|
|
18054
18231
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
18055
18232
|
if (
|
|
@@ -18963,6 +19140,28 @@ get translations(): (Translation)[] {
|
|
|
18963
19140
|
proxy.translations = _a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations;
|
|
18964
19141
|
}
|
|
18965
19142
|
|
|
19143
|
+
const _2rzkBRS4gNPrkJk9DohHAMUAxA2d = this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d
|
|
19144
|
+
// deno-lint-ignore no-explicit-any
|
|
19145
|
+
.map((v: any) => v instanceof URL
|
|
19146
|
+
? {
|
|
19147
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
19148
|
+
inspect: typeof Deno.inspect,
|
|
19149
|
+
options: Deno.InspectOptions,
|
|
19150
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
19151
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
19152
|
+
_depth: number,
|
|
19153
|
+
options: unknown,
|
|
19154
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
19155
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
19156
|
+
}
|
|
19157
|
+
: v);
|
|
19158
|
+
|
|
19159
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 1
|
|
19160
|
+
|| !(\\"license\\" in proxy)
|
|
19161
|
+
&& _2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 0) {
|
|
19162
|
+
proxy.licenses = _2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
19163
|
+
}
|
|
19164
|
+
|
|
18966
19165
|
return proxy;
|
|
18967
19166
|
}
|
|
18968
19167
|
}
|
|
@@ -19026,7 +19225,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
19026
19225
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
19027
19226
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
19028
19227
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
19029
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];}
|
|
19228
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];}
|
|
19030
19229
|
,
|
|
19031
19230
|
options: {
|
|
19032
19231
|
documentLoader?: DocumentLoader,
|
|
@@ -19071,7 +19270,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
19071
19270
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
19072
19271
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
19073
19272
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
19074
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];}
|
|
19273
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];}
|
|
19075
19274
|
|
|
19076
19275
|
= {},
|
|
19077
19276
|
options: {
|
|
@@ -19170,6 +19369,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
19170
19369
|
}
|
|
19171
19370
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
19172
19371
|
[\\"https://www.w3.org/ns/activitystreams\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\"}];
|
|
19372
|
+
|
|
19373
|
+
if (options.context == null) {
|
|
19374
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
19375
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
19376
|
+
context => !currentContexts.includes(context)
|
|
19377
|
+
);
|
|
19378
|
+
if (additionalContexts.length > 0) {
|
|
19379
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
19380
|
+
}
|
|
19381
|
+
}
|
|
19382
|
+
|
|
19173
19383
|
let compacted = await jsonld.compact(
|
|
19174
19384
|
values,
|
|
19175
19385
|
docContext,
|
|
@@ -19459,7 +19669,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
19459
19669
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
19460
19670
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
19461
19671
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
19462
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];quote?: Object | URL | null;quoteUrl?: URL | null;quoteAuthorization?: QuoteAuthorization | URL | null;}
|
|
19672
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];quote?: Object | URL | null;quoteUrl?: URL | null;quoteAuthorization?: QuoteAuthorization | URL | null;}
|
|
19463
19673
|
,
|
|
19464
19674
|
options: {
|
|
19465
19675
|
documentLoader?: DocumentLoader,
|
|
@@ -19543,7 +19753,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
19543
19753
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
19544
19754
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
19545
19755
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
19546
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];quote?: Object | URL | null;quoteUrl?: URL | null;quoteAuthorization?: QuoteAuthorization | URL | null;}
|
|
19756
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];quote?: Object | URL | null;quoteUrl?: URL | null;quoteAuthorization?: QuoteAuthorization | URL | null;}
|
|
19547
19757
|
|
|
19548
19758
|
= {},
|
|
19549
19759
|
options: {
|
|
@@ -20673,6 +20883,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
20673
20883
|
}
|
|
20674
20884
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
20675
20885
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"Emoji\\":\\"toot:Emoji\\",\\"ChatMessage\\":\\"http://litepub.social/ns#ChatMessage\\",\\"quote\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quote\\",\\"@type\\":\\"@id\\"},\\"quoteUrl\\":\\"as:quoteUrl\\",\\"_misskey_quote\\":\\"misskey:_misskey_quote\\",\\"quoteUri\\":\\"fedibird:quoteUri\\",\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"quoteAuthorization\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"@type\\":\\"@id\\"},\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
20886
|
+
|
|
20887
|
+
if (options.context == null) {
|
|
20888
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
20889
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
20890
|
+
context => !currentContexts.includes(context)
|
|
20891
|
+
);
|
|
20892
|
+
if (additionalContexts.length > 0) {
|
|
20893
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
20894
|
+
}
|
|
20895
|
+
}
|
|
20896
|
+
|
|
20676
20897
|
let compacted = await jsonld.compact(
|
|
20677
20898
|
values,
|
|
20678
20899
|
docContext,
|
|
@@ -21154,7 +21375,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
21154
21375
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
21155
21376
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
21156
21377
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
21157
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
21378
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
21158
21379
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
21159
21380
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
21160
21381
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -21445,7 +21666,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
21445
21666
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
21446
21667
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
21447
21668
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
21448
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
21669
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
21449
21670
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
21450
21671
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
21451
21672
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -25461,6 +25682,17 @@ instruments?: (Object | URL)[];}
|
|
|
25461
25682
|
}
|
|
25462
25683
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
25463
25684
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/v1\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
25685
|
+
|
|
25686
|
+
if (options.context == null) {
|
|
25687
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
25688
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
25689
|
+
context => !currentContexts.includes(context)
|
|
25690
|
+
);
|
|
25691
|
+
if (additionalContexts.length > 0) {
|
|
25692
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
25693
|
+
}
|
|
25694
|
+
}
|
|
25695
|
+
|
|
25464
25696
|
let compacted = await jsonld.compact(
|
|
25465
25697
|
values,
|
|
25466
25698
|
docContext,
|
|
@@ -26298,7 +26530,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
26298
26530
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
26299
26531
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
26300
26532
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
26301
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
26533
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
26302
26534
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
26303
26535
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
26304
26536
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -26349,7 +26581,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
26349
26581
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
26350
26582
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
26351
26583
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
26352
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
26584
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
26353
26585
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
26354
26586
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
26355
26587
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -26435,6 +26667,17 @@ instruments?: (Object | URL)[];}
|
|
|
26435
26667
|
}
|
|
26436
26668
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
26437
26669
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"litepub\\":\\"http://litepub.social/ns#\\",\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"EmojiReact\\":\\"litepub:EmojiReact\\",\\"Emoji\\":\\"toot:Emoji\\"}];
|
|
26670
|
+
|
|
26671
|
+
if (options.context == null) {
|
|
26672
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
26673
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
26674
|
+
context => !currentContexts.includes(context)
|
|
26675
|
+
);
|
|
26676
|
+
if (additionalContexts.length > 0) {
|
|
26677
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
26678
|
+
}
|
|
26679
|
+
}
|
|
26680
|
+
|
|
26438
26681
|
let compacted = await jsonld.compact(
|
|
26439
26682
|
values,
|
|
26440
26683
|
docContext,
|
|
@@ -27062,6 +27305,17 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;}
|
|
|
27062
27305
|
}
|
|
27063
27306
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
27064
27307
|
[\\"https://www.w3.org/ns/activitystreams\\",{\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\"}];
|
|
27308
|
+
|
|
27309
|
+
if (options.context == null) {
|
|
27310
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
27311
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
27312
|
+
context => !currentContexts.includes(context)
|
|
27313
|
+
);
|
|
27314
|
+
if (additionalContexts.length > 0) {
|
|
27315
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
27316
|
+
}
|
|
27317
|
+
}
|
|
27318
|
+
|
|
27065
27319
|
let compacted = await jsonld.compact(
|
|
27066
27320
|
values,
|
|
27067
27321
|
docContext,
|
|
@@ -27800,6 +28054,17 @@ unit?: string | null;numericalValue?: Decimal | null;}
|
|
|
27800
28054
|
}
|
|
27801
28055
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
27802
28056
|
[\\"https://www.w3.org/ns/activitystreams\\",{\\"om2\\":\\"http://www.ontology-of-units-of-measure.org/resource/om-2/\\",\\"hasUnit\\":\\"om2:hasUnit\\",\\"hasNumericalValue\\":\\"om2:hasNumericalValue\\"}];
|
|
28057
|
+
|
|
28058
|
+
if (options.context == null) {
|
|
28059
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
28060
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
28061
|
+
context => !currentContexts.includes(context)
|
|
28062
|
+
);
|
|
28063
|
+
if (additionalContexts.length > 0) {
|
|
28064
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
28065
|
+
}
|
|
28066
|
+
}
|
|
28067
|
+
|
|
27803
28068
|
let compacted = await jsonld.compact(
|
|
27804
28069
|
values,
|
|
27805
28070
|
docContext,
|
|
@@ -28190,7 +28455,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
28190
28455
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
28191
28456
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
28192
28457
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
28193
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
28458
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
28194
28459
|
,
|
|
28195
28460
|
options: {
|
|
28196
28461
|
documentLoader?: DocumentLoader,
|
|
@@ -28261,7 +28526,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
28261
28526
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
28262
28527
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
28263
28528
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
28264
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
28529
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
28265
28530
|
|
|
28266
28531
|
= {},
|
|
28267
28532
|
options: {
|
|
@@ -29303,6 +29568,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
29303
29568
|
}
|
|
29304
29569
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
29305
29570
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
29571
|
+
|
|
29572
|
+
if (options.context == null) {
|
|
29573
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
29574
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
29575
|
+
context => !currentContexts.includes(context)
|
|
29576
|
+
);
|
|
29577
|
+
if (additionalContexts.length > 0) {
|
|
29578
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
29579
|
+
}
|
|
29580
|
+
}
|
|
29581
|
+
|
|
29306
29582
|
let compacted = await jsonld.compact(
|
|
29307
29583
|
values,
|
|
29308
29584
|
docContext,
|
|
@@ -29713,7 +29989,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
29713
29989
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
29714
29990
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
29715
29991
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
29716
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
29992
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
29717
29993
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
29718
29994
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
29719
29995
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -29764,7 +30040,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
29764
30040
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
29765
30041
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
29766
30042
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
29767
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
30043
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
29768
30044
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
29769
30045
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
29770
30046
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -29850,6 +30126,17 @@ instruments?: (Object | URL)[];}
|
|
|
29850
30126
|
}
|
|
29851
30127
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
29852
30128
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
30129
|
+
|
|
30130
|
+
if (options.context == null) {
|
|
30131
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
30132
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
30133
|
+
context => !currentContexts.includes(context)
|
|
30134
|
+
);
|
|
30135
|
+
if (additionalContexts.length > 0) {
|
|
30136
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
30137
|
+
}
|
|
30138
|
+
}
|
|
30139
|
+
|
|
29853
30140
|
let compacted = await jsonld.compact(
|
|
29854
30141
|
values,
|
|
29855
30142
|
docContext,
|
|
@@ -30627,6 +30914,17 @@ canFeature?: InteractionRule | null;canLike?: InteractionRule | null;canReply?:
|
|
|
30627
30914
|
}
|
|
30628
30915
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
30629
30916
|
[\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\"];
|
|
30917
|
+
|
|
30918
|
+
if (options.context == null) {
|
|
30919
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
30920
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
30921
|
+
context => !currentContexts.includes(context)
|
|
30922
|
+
);
|
|
30923
|
+
if (additionalContexts.length > 0) {
|
|
30924
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
30925
|
+
}
|
|
30926
|
+
}
|
|
30927
|
+
|
|
30630
30928
|
let compacted = await jsonld.compact(
|
|
30631
30929
|
values,
|
|
30632
30930
|
docContext,
|
|
@@ -31618,6 +31916,17 @@ get manualApprovals(): (URL)[] {
|
|
|
31618
31916
|
}
|
|
31619
31917
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
31620
31918
|
\\"https://gotosocial.org/ns\\";
|
|
31919
|
+
|
|
31920
|
+
if (options.context == null) {
|
|
31921
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
31922
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
31923
|
+
context => !currentContexts.includes(context)
|
|
31924
|
+
);
|
|
31925
|
+
if (additionalContexts.length > 0) {
|
|
31926
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
31927
|
+
}
|
|
31928
|
+
}
|
|
31929
|
+
|
|
31621
31930
|
let compacted = await jsonld.compact(
|
|
31622
31931
|
values,
|
|
31623
31932
|
docContext,
|
|
@@ -32019,7 +32328,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
32019
32328
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
32020
32329
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
32021
32330
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
32022
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
32331
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
32023
32332
|
,
|
|
32024
32333
|
options: {
|
|
32025
32334
|
documentLoader?: DocumentLoader,
|
|
@@ -32090,7 +32399,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
32090
32399
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
32091
32400
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
32092
32401
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
32093
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
32402
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
32094
32403
|
|
|
32095
32404
|
= {},
|
|
32096
32405
|
options: {
|
|
@@ -33132,6 +33441,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
33132
33441
|
}
|
|
33133
33442
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
33134
33443
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
33444
|
+
|
|
33445
|
+
if (options.context == null) {
|
|
33446
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
33447
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
33448
|
+
context => !currentContexts.includes(context)
|
|
33449
|
+
);
|
|
33450
|
+
if (additionalContexts.length > 0) {
|
|
33451
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
33452
|
+
}
|
|
33453
|
+
}
|
|
33454
|
+
|
|
33135
33455
|
let compacted = await jsonld.compact(
|
|
33136
33456
|
values,
|
|
33137
33457
|
docContext,
|
|
@@ -33541,7 +33861,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
33541
33861
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
33542
33862
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
33543
33863
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
33544
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
33864
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
33545
33865
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
33546
33866
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
33547
33867
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -33592,7 +33912,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
33592
33912
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
33593
33913
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
33594
33914
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
33595
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
33915
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
33596
33916
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
33597
33917
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
33598
33918
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -33678,6 +33998,17 @@ instruments?: (Object | URL)[];}
|
|
|
33678
33998
|
}
|
|
33679
33999
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
33680
34000
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
34001
|
+
|
|
34002
|
+
if (options.context == null) {
|
|
34003
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
34004
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
34005
|
+
context => !currentContexts.includes(context)
|
|
34006
|
+
);
|
|
34007
|
+
if (additionalContexts.length > 0) {
|
|
34008
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
34009
|
+
}
|
|
34010
|
+
}
|
|
34011
|
+
|
|
33681
34012
|
let compacted = await jsonld.compact(
|
|
33682
34013
|
values,
|
|
33683
34014
|
docContext,
|
|
@@ -33969,7 +34300,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
33969
34300
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
33970
34301
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
33971
34302
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
33972
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
34303
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
33973
34304
|
,
|
|
33974
34305
|
options: {
|
|
33975
34306
|
documentLoader?: DocumentLoader,
|
|
@@ -34040,7 +34371,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
34040
34371
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
34041
34372
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
34042
34373
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
34043
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
34374
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
34044
34375
|
|
|
34045
34376
|
= {},
|
|
34046
34377
|
options: {
|
|
@@ -35082,6 +35413,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
35082
35413
|
}
|
|
35083
35414
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
35084
35415
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
35416
|
+
|
|
35417
|
+
if (options.context == null) {
|
|
35418
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
35419
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
35420
|
+
context => !currentContexts.includes(context)
|
|
35421
|
+
);
|
|
35422
|
+
if (additionalContexts.length > 0) {
|
|
35423
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
35424
|
+
}
|
|
35425
|
+
}
|
|
35426
|
+
|
|
35085
35427
|
let compacted = await jsonld.compact(
|
|
35086
35428
|
values,
|
|
35087
35429
|
docContext,
|
|
@@ -35491,7 +35833,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
35491
35833
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
35492
35834
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
35493
35835
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
35494
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
35836
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
35495
35837
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
35496
35838
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
35497
35839
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -35542,7 +35884,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
35542
35884
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
35543
35885
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
35544
35886
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
35545
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
35887
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
35546
35888
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
35547
35889
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
35548
35890
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -35628,6 +35970,17 @@ instruments?: (Object | URL)[];}
|
|
|
35628
35970
|
}
|
|
35629
35971
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
35630
35972
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
35973
|
+
|
|
35974
|
+
if (options.context == null) {
|
|
35975
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
35976
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
35977
|
+
context => !currentContexts.includes(context)
|
|
35978
|
+
);
|
|
35979
|
+
if (additionalContexts.length > 0) {
|
|
35980
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
35981
|
+
}
|
|
35982
|
+
}
|
|
35983
|
+
|
|
35631
35984
|
let compacted = await jsonld.compact(
|
|
35632
35985
|
values,
|
|
35633
35986
|
docContext,
|
|
@@ -35919,7 +36272,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
35919
36272
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
35920
36273
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
35921
36274
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
35922
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
36275
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
35923
36276
|
,
|
|
35924
36277
|
options: {
|
|
35925
36278
|
documentLoader?: DocumentLoader,
|
|
@@ -35990,7 +36343,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
35990
36343
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
35991
36344
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
35992
36345
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
35993
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
36346
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
35994
36347
|
|
|
35995
36348
|
= {},
|
|
35996
36349
|
options: {
|
|
@@ -37031,6 +37384,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
37031
37384
|
}
|
|
37032
37385
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
37033
37386
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\"}];
|
|
37387
|
+
|
|
37388
|
+
if (options.context == null) {
|
|
37389
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
37390
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
37391
|
+
context => !currentContexts.includes(context)
|
|
37392
|
+
);
|
|
37393
|
+
if (additionalContexts.length > 0) {
|
|
37394
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
37395
|
+
}
|
|
37396
|
+
}
|
|
37397
|
+
|
|
37034
37398
|
let compacted = await jsonld.compact(
|
|
37035
37399
|
values,
|
|
37036
37400
|
docContext,
|
|
@@ -37440,7 +37804,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
37440
37804
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
37441
37805
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
37442
37806
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
37443
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
37807
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
37444
37808
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
37445
37809
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
37446
37810
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -37491,7 +37855,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
37491
37855
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
37492
37856
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
37493
37857
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
37494
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
37858
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
37495
37859
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
37496
37860
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
37497
37861
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -37577,6 +37941,17 @@ instruments?: (Object | URL)[];}
|
|
|
37577
37941
|
}
|
|
37578
37942
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
37579
37943
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"votersCount\\":{\\"@id\\":\\"toot:votersCount\\",\\"@type\\":\\"http://www.w3.org/2001/XMLSchema#nonNegativeInteger\\"},\\"Emoji\\":\\"toot:Emoji\\",\\"Hashtag\\":\\"as:Hashtag\\",\\"ChatMessage\\":\\"http://litepub.social/ns#ChatMessage\\",\\"QuoteRequest\\":\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"quote\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quote\\",\\"@type\\":\\"@id\\"},\\"quoteUrl\\":\\"as:quoteUrl\\",\\"_misskey_quote\\":\\"misskey:_misskey_quote\\",\\"quoteUri\\":\\"fedibird:quoteUri\\",\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"quoteAuthorization\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"@type\\":\\"@id\\"},\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
37944
|
+
|
|
37945
|
+
if (options.context == null) {
|
|
37946
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
37947
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
37948
|
+
context => !currentContexts.includes(context)
|
|
37949
|
+
);
|
|
37950
|
+
if (additionalContexts.length > 0) {
|
|
37951
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
37952
|
+
}
|
|
37953
|
+
}
|
|
37954
|
+
|
|
37580
37955
|
let compacted = await jsonld.compact(
|
|
37581
37956
|
values,
|
|
37582
37957
|
docContext,
|
|
@@ -39291,6 +39666,17 @@ get urls(): ((URL | Link))[] {
|
|
|
39291
39666
|
}
|
|
39292
39667
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
39293
39668
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/22cd\\"];
|
|
39669
|
+
|
|
39670
|
+
if (options.context == null) {
|
|
39671
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
39672
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
39673
|
+
context => !currentContexts.includes(context)
|
|
39674
|
+
);
|
|
39675
|
+
if (additionalContexts.length > 0) {
|
|
39676
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
39677
|
+
}
|
|
39678
|
+
}
|
|
39679
|
+
|
|
39294
39680
|
let compacted = await jsonld.compact(
|
|
39295
39681
|
values,
|
|
39296
39682
|
docContext,
|
|
@@ -39929,7 +40315,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
39929
40315
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
39930
40316
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
39931
40317
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
39932
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
40318
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
39933
40319
|
,
|
|
39934
40320
|
options: {
|
|
39935
40321
|
documentLoader?: DocumentLoader,
|
|
@@ -40000,7 +40386,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
40000
40386
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
40001
40387
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
40002
40388
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
40003
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
40389
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];interactingObject?: Object | URL | null;interactionTarget?: Object | URL | null;}
|
|
40004
40390
|
|
|
40005
40391
|
= {},
|
|
40006
40392
|
options: {
|
|
@@ -41039,6 +41425,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
41039
41425
|
}
|
|
41040
41426
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
41041
41427
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\"];
|
|
41428
|
+
|
|
41429
|
+
if (options.context == null) {
|
|
41430
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
41431
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
41432
|
+
context => !currentContexts.includes(context)
|
|
41433
|
+
);
|
|
41434
|
+
if (additionalContexts.length > 0) {
|
|
41435
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
41436
|
+
}
|
|
41437
|
+
}
|
|
41438
|
+
|
|
41042
41439
|
let compacted = await jsonld.compact(
|
|
41043
41440
|
values,
|
|
41044
41441
|
docContext,
|
|
@@ -41445,7 +41842,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
41445
41842
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
41446
41843
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
41447
41844
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
41448
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
41845
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
41449
41846
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
41450
41847
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
41451
41848
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -41496,7 +41893,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
41496
41893
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
41497
41894
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
41498
41895
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
41499
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
41896
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
41500
41897
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
41501
41898
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
41502
41899
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -41582,6 +41979,17 @@ instruments?: (Object | URL)[];}
|
|
|
41582
41979
|
}
|
|
41583
41980
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
41584
41981
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\"];
|
|
41982
|
+
|
|
41983
|
+
if (options.context == null) {
|
|
41984
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
41985
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
41986
|
+
context => !currentContexts.includes(context)
|
|
41987
|
+
);
|
|
41988
|
+
if (additionalContexts.length > 0) {
|
|
41989
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
41990
|
+
}
|
|
41991
|
+
}
|
|
41992
|
+
|
|
41585
41993
|
let compacted = await jsonld.compact(
|
|
41586
41994
|
values,
|
|
41587
41995
|
docContext,
|
|
@@ -41901,7 +42309,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
41901
42309
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
41902
42310
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
41903
42311
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
41904
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;items?: (Object | Link | URL)[];likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;}
|
|
42312
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;items?: (Object | Link | URL)[];likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;}
|
|
41905
42313
|
,
|
|
41906
42314
|
options: {
|
|
41907
42315
|
documentLoader?: DocumentLoader,
|
|
@@ -42121,7 +42529,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
42121
42529
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
42122
42530
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
42123
42531
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
42124
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;items?: (Object | Link | URL)[];likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;}
|
|
42532
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;items?: (Object | Link | URL)[];likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;}
|
|
42125
42533
|
|
|
42126
42534
|
= {},
|
|
42127
42535
|
options: {
|
|
@@ -47975,6 +48383,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
47975
48383
|
}
|
|
47976
48384
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
47977
48385
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"ChatMessage\\":\\"http://litepub.social/ns#ChatMessage\\",\\"sensitive\\":\\"as:sensitive\\",\\"votersCount\\":\\"toot:votersCount\\",\\"Emoji\\":\\"toot:Emoji\\",\\"Hashtag\\":\\"as:Hashtag\\",\\"quote\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quote\\",\\"@type\\":\\"@id\\"},\\"quoteUrl\\":\\"as:quoteUrl\\",\\"_misskey_quote\\":\\"misskey:_misskey_quote\\",\\"quoteUri\\":\\"fedibird:quoteUri\\",\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"QuoteRequest\\":\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"quoteAuthorization\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"@type\\":\\"@id\\"},\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
48386
|
+
|
|
48387
|
+
if (options.context == null) {
|
|
48388
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
48389
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
48390
|
+
context => !currentContexts.includes(context)
|
|
48391
|
+
);
|
|
48392
|
+
if (additionalContexts.length > 0) {
|
|
48393
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
48394
|
+
}
|
|
48395
|
+
}
|
|
48396
|
+
|
|
47978
48397
|
let compacted = await jsonld.compact(
|
|
47979
48398
|
values,
|
|
47980
48399
|
docContext,
|
|
@@ -49063,7 +49482,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
49063
49482
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
49064
49483
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
49065
49484
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
49066
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;items?: (Object | Link | URL)[];}
|
|
49485
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;items?: (Object | Link | URL)[];}
|
|
49067
49486
|
,
|
|
49068
49487
|
options: {
|
|
49069
49488
|
documentLoader?: DocumentLoader,
|
|
@@ -49127,7 +49546,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
49127
49546
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
49128
49547
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
49129
49548
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
49130
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;items?: (Object | Link | URL)[];}
|
|
49549
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;items?: (Object | Link | URL)[];}
|
|
49131
49550
|
|
|
49132
49551
|
= {},
|
|
49133
49552
|
options: {
|
|
@@ -49726,6 +50145,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
49726
50145
|
}
|
|
49727
50146
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
49728
50147
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"ChatMessage\\":\\"http://litepub.social/ns#ChatMessage\\",\\"sensitive\\":\\"as:sensitive\\",\\"votersCount\\":\\"toot:votersCount\\",\\"Emoji\\":\\"toot:Emoji\\",\\"Hashtag\\":\\"as:Hashtag\\",\\"quote\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quote\\",\\"@type\\":\\"@id\\"},\\"quoteUrl\\":\\"as:quoteUrl\\",\\"_misskey_quote\\":\\"misskey:_misskey_quote\\",\\"quoteUri\\":\\"fedibird:quoteUri\\",\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"QuoteRequest\\":\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"quoteAuthorization\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"@type\\":\\"@id\\"},\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
50148
|
+
|
|
50149
|
+
if (options.context == null) {
|
|
50150
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
50151
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
50152
|
+
context => !currentContexts.includes(context)
|
|
50153
|
+
);
|
|
50154
|
+
if (additionalContexts.length > 0) {
|
|
50155
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
50156
|
+
}
|
|
50157
|
+
}
|
|
50158
|
+
|
|
49729
50159
|
let compacted = await jsonld.compact(
|
|
49730
50160
|
values,
|
|
49731
50161
|
docContext,
|
|
@@ -50082,7 +50512,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
50082
50512
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
50083
50513
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
50084
50514
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
50085
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;items?: (Object | Link | URL)[];topic?: Hashtag | null;discoverable?: boolean | null;}
|
|
50515
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;items?: (Object | Link | URL)[];topic?: Hashtag | null;discoverable?: boolean | null;}
|
|
50086
50516
|
,
|
|
50087
50517
|
options: {
|
|
50088
50518
|
documentLoader?: DocumentLoader,
|
|
@@ -50153,7 +50583,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
50153
50583
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
50154
50584
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
50155
50585
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
50156
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;items?: (Object | Link | URL)[];topic?: Hashtag | null;discoverable?: boolean | null;}
|
|
50586
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;items?: (Object | Link | URL)[];topic?: Hashtag | null;discoverable?: boolean | null;}
|
|
50157
50587
|
|
|
50158
50588
|
= {},
|
|
50159
50589
|
options: {
|
|
@@ -50385,6 +50815,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
50385
50815
|
}
|
|
50386
50816
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
50387
50817
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"discoverable\\":\\"toot:discoverable\\",\\"Hashtag\\":\\"as:Hashtag\\"}];
|
|
50818
|
+
|
|
50819
|
+
if (options.context == null) {
|
|
50820
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
50821
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
50822
|
+
context => !currentContexts.includes(context)
|
|
50823
|
+
);
|
|
50824
|
+
if (additionalContexts.length > 0) {
|
|
50825
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
50826
|
+
}
|
|
50827
|
+
}
|
|
50828
|
+
|
|
50388
50829
|
let compacted = await jsonld.compact(
|
|
50389
50830
|
values,
|
|
50390
50831
|
docContext,
|
|
@@ -50772,7 +51213,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
50772
51213
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
50773
51214
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
50774
51215
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
50775
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];featuredObject?: Object | URL | null;featureAuthorization?: FeatureAuthorization | URL | null;}
|
|
51216
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];featuredObject?: Object | URL | null;featureAuthorization?: FeatureAuthorization | URL | null;}
|
|
50776
51217
|
,
|
|
50777
51218
|
options: {
|
|
50778
51219
|
documentLoader?: DocumentLoader,
|
|
@@ -50843,7 +51284,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
50843
51284
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
50844
51285
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
50845
51286
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
50846
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];featuredObject?: Object | URL | null;featureAuthorization?: FeatureAuthorization | URL | null;}
|
|
51287
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];featuredObject?: Object | URL | null;featureAuthorization?: FeatureAuthorization | URL | null;}
|
|
50847
51288
|
|
|
50848
51289
|
= {},
|
|
50849
51290
|
options: {
|
|
@@ -51884,6 +52325,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
51884
52325
|
}
|
|
51885
52326
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
51886
52327
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\"];
|
|
52328
|
+
|
|
52329
|
+
if (options.context == null) {
|
|
52330
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
52331
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
52332
|
+
context => !currentContexts.includes(context)
|
|
52333
|
+
);
|
|
52334
|
+
if (additionalContexts.length > 0) {
|
|
52335
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
52336
|
+
}
|
|
52337
|
+
}
|
|
52338
|
+
|
|
51887
52339
|
let compacted = await jsonld.compact(
|
|
51888
52340
|
values,
|
|
51889
52341
|
docContext,
|
|
@@ -52578,6 +53030,17 @@ get endpoints(): (URL)[] {
|
|
|
52578
53030
|
}
|
|
52579
53031
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
52580
53032
|
\\"https://www.w3.org/ns/did/v1\\";
|
|
53033
|
+
|
|
53034
|
+
if (options.context == null) {
|
|
53035
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
53036
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
53037
|
+
context => !currentContexts.includes(context)
|
|
53038
|
+
);
|
|
53039
|
+
if (additionalContexts.length > 0) {
|
|
53040
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
53041
|
+
}
|
|
53042
|
+
}
|
|
53043
|
+
|
|
52581
53044
|
let compacted = await jsonld.compact(
|
|
52582
53045
|
values,
|
|
52583
53046
|
docContext,
|
|
@@ -53010,6 +53473,17 @@ endpoints?: (URL)[];}
|
|
|
53010
53473
|
}
|
|
53011
53474
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
53012
53475
|
\\"https://www.w3.org/ns/did/v1\\";
|
|
53476
|
+
|
|
53477
|
+
if (options.context == null) {
|
|
53478
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
53479
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
53480
|
+
context => !currentContexts.includes(context)
|
|
53481
|
+
);
|
|
53482
|
+
if (additionalContexts.length > 0) {
|
|
53483
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
53484
|
+
}
|
|
53485
|
+
}
|
|
53486
|
+
|
|
53013
53487
|
let compacted = await jsonld.compact(
|
|
53014
53488
|
values,
|
|
53015
53489
|
docContext,
|
|
@@ -54147,6 +54621,17 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL |
|
|
|
54147
54621
|
}
|
|
54148
54622
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
54149
54623
|
\\"https://w3id.org/security/data-integrity/v1\\";
|
|
54624
|
+
|
|
54625
|
+
if (options.context == null) {
|
|
54626
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
54627
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
54628
|
+
context => !currentContexts.includes(context)
|
|
54629
|
+
);
|
|
54630
|
+
if (additionalContexts.length > 0) {
|
|
54631
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
54632
|
+
}
|
|
54633
|
+
}
|
|
54634
|
+
|
|
54150
54635
|
let compacted = await jsonld.compact(
|
|
54151
54636
|
values,
|
|
54152
54637
|
docContext,
|
|
@@ -55515,6 +56000,17 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi
|
|
|
55515
56000
|
}
|
|
55516
56001
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
55517
56002
|
\\"https://w3id.org/security/v1\\";
|
|
56003
|
+
|
|
56004
|
+
if (options.context == null) {
|
|
56005
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
56006
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
56007
|
+
context => !currentContexts.includes(context)
|
|
56008
|
+
);
|
|
56009
|
+
if (additionalContexts.length > 0) {
|
|
56010
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
56011
|
+
}
|
|
56012
|
+
}
|
|
56013
|
+
|
|
55518
56014
|
let compacted = await jsonld.compact(
|
|
55519
56015
|
values,
|
|
55520
56016
|
docContext,
|
|
@@ -56760,6 +57256,17 @@ controller?: Application | Group | Organization | Person | Service | URL | null;
|
|
|
56760
57256
|
}
|
|
56761
57257
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
56762
57258
|
\\"https://w3id.org/security/multikey/v1\\";
|
|
57259
|
+
|
|
57260
|
+
if (options.context == null) {
|
|
57261
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
57262
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
57263
|
+
context => !currentContexts.includes(context)
|
|
57264
|
+
);
|
|
57265
|
+
if (additionalContexts.length > 0) {
|
|
57266
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
57267
|
+
}
|
|
57268
|
+
}
|
|
57269
|
+
|
|
56763
57270
|
let compacted = await jsonld.compact(
|
|
56764
57271
|
values,
|
|
56765
57272
|
docContext,
|
|
@@ -57178,7 +57685,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
57178
57685
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
57179
57686
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
57180
57687
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
57181
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];stipulates?: Commitment | null;stipulatesReciprocal?: Commitment | null;}
|
|
57688
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];stipulates?: Commitment | null;stipulatesReciprocal?: Commitment | null;}
|
|
57182
57689
|
,
|
|
57183
57690
|
options: {
|
|
57184
57691
|
documentLoader?: DocumentLoader,
|
|
@@ -57249,7 +57756,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
57249
57756
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
57250
57757
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
57251
57758
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
57252
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];stipulates?: Commitment | null;stipulatesReciprocal?: Commitment | null;}
|
|
57759
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];stipulates?: Commitment | null;stipulatesReciprocal?: Commitment | null;}
|
|
57253
57760
|
|
|
57254
57761
|
= {},
|
|
57255
57762
|
options: {
|
|
@@ -57486,6 +57993,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
57486
57993
|
}
|
|
57487
57994
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
57488
57995
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"vf\\":\\"https://w3id.org/valueflows/ont/vf#\\",\\"om2\\":\\"http://www.ontology-of-units-of-measure.org/resource/om-2/\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"},\\"Agreement\\":\\"vf:Agreement\\",\\"Commitment\\":\\"vf:Commitment\\",\\"stipulates\\":\\"vf:stipulates\\",\\"stipulatesReciprocal\\":\\"vf:stipulatesReciprocal\\",\\"satisfies\\":{\\"@id\\":\\"vf:satisfies\\",\\"@type\\":\\"@id\\"},\\"resourceQuantity\\":\\"vf:resourceQuantity\\",\\"hasUnit\\":\\"om2:hasUnit\\",\\"hasNumericalValue\\":\\"om2:hasNumericalValue\\"}];
|
|
57996
|
+
|
|
57997
|
+
if (options.context == null) {
|
|
57998
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
57999
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
58000
|
+
context => !currentContexts.includes(context)
|
|
58001
|
+
);
|
|
58002
|
+
if (additionalContexts.length > 0) {
|
|
58003
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
58004
|
+
}
|
|
58005
|
+
}
|
|
58006
|
+
|
|
57489
58007
|
let compacted = await jsonld.compact(
|
|
57490
58008
|
values,
|
|
57491
58009
|
docContext,
|
|
@@ -58221,6 +58739,17 @@ satisfies?: URL | null;resourceQuantity?: Measure | null;}
|
|
|
58221
58739
|
}
|
|
58222
58740
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
58223
58741
|
[\\"https://www.w3.org/ns/activitystreams\\",{\\"vf\\":\\"https://w3id.org/valueflows/ont/vf#\\",\\"om2\\":\\"http://www.ontology-of-units-of-measure.org/resource/om-2/\\",\\"Commitment\\":\\"vf:Commitment\\",\\"satisfies\\":{\\"@id\\":\\"vf:satisfies\\",\\"@type\\":\\"@id\\"},\\"resourceQuantity\\":\\"vf:resourceQuantity\\",\\"hasUnit\\":\\"om2:hasUnit\\",\\"hasNumericalValue\\":\\"om2:hasNumericalValue\\"}];
|
|
58742
|
+
|
|
58743
|
+
if (options.context == null) {
|
|
58744
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
58745
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
58746
|
+
context => !currentContexts.includes(context)
|
|
58747
|
+
);
|
|
58748
|
+
if (additionalContexts.length > 0) {
|
|
58749
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
58750
|
+
}
|
|
58751
|
+
}
|
|
58752
|
+
|
|
58224
58753
|
let compacted = await jsonld.compact(
|
|
58225
58754
|
values,
|
|
58226
58755
|
docContext,
|
|
@@ -59185,6 +59714,17 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur
|
|
|
59185
59714
|
}
|
|
59186
59715
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
59187
59716
|
[\\"https://www.w3.org/ns/activitystreams\\",{\\"vf\\":\\"https://w3id.org/valueflows/ont/vf#\\",\\"om2\\":\\"http://www.ontology-of-units-of-measure.org/resource/om-2/\\",\\"Intent\\":\\"vf:Intent\\",\\"action\\":\\"vf:action\\",\\"resourceConformsTo\\":{\\"@id\\":\\"vf:resourceConformsTo\\",\\"@type\\":\\"@id\\"},\\"resourceQuantity\\":\\"vf:resourceQuantity\\",\\"availableQuantity\\":\\"vf:availableQuantity\\",\\"minimumQuantity\\":\\"vf:minimumQuantity\\",\\"hasUnit\\":\\"om2:hasUnit\\",\\"hasNumericalValue\\":\\"om2:hasNumericalValue\\"}];
|
|
59717
|
+
|
|
59718
|
+
if (options.context == null) {
|
|
59719
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
59720
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
59721
|
+
context => !currentContexts.includes(context)
|
|
59722
|
+
);
|
|
59723
|
+
if (additionalContexts.length > 0) {
|
|
59724
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
59725
|
+
}
|
|
59726
|
+
}
|
|
59727
|
+
|
|
59188
59728
|
let compacted = await jsonld.compact(
|
|
59189
59729
|
values,
|
|
59190
59730
|
docContext,
|
|
@@ -59732,7 +60272,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
59732
60272
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
59733
60273
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
59734
60274
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
59735
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];purpose?: string | null;publishes?: Intent | null;reciprocal?: Intent | null;unitBased?: boolean | null;}
|
|
60275
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];purpose?: string | null;publishes?: Intent | null;reciprocal?: Intent | null;unitBased?: boolean | null;}
|
|
59736
60276
|
,
|
|
59737
60277
|
options: {
|
|
59738
60278
|
documentLoader?: DocumentLoader,
|
|
@@ -59829,7 +60369,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
59829
60369
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
59830
60370
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
59831
60371
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
59832
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];purpose?: string | null;publishes?: Intent | null;reciprocal?: Intent | null;unitBased?: boolean | null;}
|
|
60372
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];purpose?: string | null;publishes?: Intent | null;reciprocal?: Intent | null;unitBased?: boolean | null;}
|
|
59833
60373
|
|
|
59834
60374
|
= {},
|
|
59835
60375
|
options: {
|
|
@@ -60191,6 +60731,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
60191
60731
|
}
|
|
60192
60732
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
60193
60733
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"vf\\":\\"https://w3id.org/valueflows/ont/vf#\\",\\"om2\\":\\"http://www.ontology-of-units-of-measure.org/resource/om-2/\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"},\\"Proposal\\":\\"vf:Proposal\\",\\"Intent\\":\\"vf:Intent\\",\\"purpose\\":\\"vf:purpose\\",\\"unitBased\\":\\"vf:unitBased\\",\\"publishes\\":\\"vf:publishes\\",\\"reciprocal\\":\\"vf:reciprocal\\",\\"action\\":\\"vf:action\\",\\"resourceConformsTo\\":{\\"@id\\":\\"vf:resourceConformsTo\\",\\"@type\\":\\"@id\\"},\\"resourceQuantity\\":\\"vf:resourceQuantity\\",\\"availableQuantity\\":\\"vf:availableQuantity\\",\\"minimumQuantity\\":\\"vf:minimumQuantity\\",\\"hasUnit\\":\\"om2:hasUnit\\",\\"hasNumericalValue\\":\\"om2:hasNumericalValue\\"}];
|
|
60734
|
+
|
|
60735
|
+
if (options.context == null) {
|
|
60736
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
60737
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
60738
|
+
context => !currentContexts.includes(context)
|
|
60739
|
+
);
|
|
60740
|
+
if (additionalContexts.length > 0) {
|
|
60741
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
60742
|
+
}
|
|
60743
|
+
}
|
|
60744
|
+
|
|
60194
60745
|
let compacted = await jsonld.compact(
|
|
60195
60746
|
values,
|
|
60196
60747
|
docContext,
|
|
@@ -60673,7 +61224,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
60673
61224
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
60674
61225
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
60675
61226
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
60676
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
61227
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
60677
61228
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
60678
61229
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
60679
61230
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -60724,7 +61275,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
60724
61275
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
60725
61276
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
60726
61277
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
60727
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
61278
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
60728
61279
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
60729
61280
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
60730
61281
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -60810,6 +61361,17 @@ instruments?: (Object | URL)[];}
|
|
|
60810
61361
|
}
|
|
60811
61362
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
60812
61363
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
61364
|
+
|
|
61365
|
+
if (options.context == null) {
|
|
61366
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
61367
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
61368
|
+
context => !currentContexts.includes(context)
|
|
61369
|
+
);
|
|
61370
|
+
if (additionalContexts.length > 0) {
|
|
61371
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
61372
|
+
}
|
|
61373
|
+
}
|
|
61374
|
+
|
|
60813
61375
|
let compacted = await jsonld.compact(
|
|
60814
61376
|
values,
|
|
60815
61377
|
docContext,
|
|
@@ -61095,7 +61657,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
61095
61657
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
61096
61658
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
61097
61659
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
61098
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
61660
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
61099
61661
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
61100
61662
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
61101
61663
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -61146,7 +61708,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
61146
61708
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
61147
61709
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
61148
61710
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
61149
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
61711
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
61150
61712
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
61151
61713
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
61152
61714
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -61232,6 +61794,17 @@ instruments?: (Object | URL)[];}
|
|
|
61232
61794
|
}
|
|
61233
61795
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
61234
61796
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
61797
|
+
|
|
61798
|
+
if (options.context == null) {
|
|
61799
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
61800
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
61801
|
+
context => !currentContexts.includes(context)
|
|
61802
|
+
);
|
|
61803
|
+
if (additionalContexts.length > 0) {
|
|
61804
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
61805
|
+
}
|
|
61806
|
+
}
|
|
61807
|
+
|
|
61235
61808
|
let compacted = await jsonld.compact(
|
|
61236
61809
|
values,
|
|
61237
61810
|
docContext,
|
|
@@ -61512,7 +62085,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
61512
62085
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
61513
62086
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
61514
62087
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
61515
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
62088
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
61516
62089
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
61517
62090
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
61518
62091
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -61563,7 +62136,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
61563
62136
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
61564
62137
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
61565
62138
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
61566
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
62139
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
61567
62140
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
61568
62141
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
61569
62142
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -61649,6 +62222,17 @@ instruments?: (Object | URL)[];}
|
|
|
61649
62222
|
}
|
|
61650
62223
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
61651
62224
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"votersCount\\":{\\"@id\\":\\"toot:votersCount\\",\\"@type\\":\\"http://www.w3.org/2001/XMLSchema#nonNegativeInteger\\"},\\"Emoji\\":\\"toot:Emoji\\",\\"Hashtag\\":\\"as:Hashtag\\",\\"quote\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quote\\",\\"@type\\":\\"@id\\"},\\"quoteUrl\\":\\"as:quoteUrl\\",\\"_misskey_quote\\":\\"misskey:_misskey_quote\\",\\"quoteUri\\":\\"fedibird:quoteUri\\",\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"QuoteRequest\\":\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"quoteAuthorization\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"@type\\":\\"@id\\"},\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
62225
|
+
|
|
62226
|
+
if (options.context == null) {
|
|
62227
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
62228
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
62229
|
+
context => !currentContexts.includes(context)
|
|
62230
|
+
);
|
|
62231
|
+
if (additionalContexts.length > 0) {
|
|
62232
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
62233
|
+
}
|
|
62234
|
+
}
|
|
62235
|
+
|
|
61652
62236
|
let compacted = await jsonld.compact(
|
|
61653
62237
|
values,
|
|
61654
62238
|
docContext,
|
|
@@ -61952,6 +62536,7 @@ export class Application extends Object {
|
|
|
61952
62536
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service: Set<number> = new Set();
|
|
61953
62537
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage: (string)[] = [];
|
|
61954
62538
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat: (boolean)[] = [];
|
|
62539
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
61955
62540
|
|
|
61956
62541
|
/**
|
|
61957
62542
|
* Constructs a new instance of Application with the given values.
|
|
@@ -61978,13 +62563,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
61978
62563
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
61979
62564
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
61980
62565
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
61981
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];preferredUsername?: string | LanguageString | null;
|
|
62566
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];preferredUsername?: string | LanguageString | null;
|
|
61982
62567
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
61983
62568
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
61984
62569
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
61985
62570
|
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;
|
|
61986
62571
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
61987
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
62572
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
61988
62573
|
,
|
|
61989
62574
|
options: {
|
|
61990
62575
|
documentLoader?: DocumentLoader,
|
|
@@ -62465,6 +63050,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
62465
63050
|
);
|
|
62466
63051
|
}
|
|
62467
63052
|
}
|
|
63053
|
+
|
|
63054
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
63055
|
+
if (values.preferredLicense instanceof URL) {
|
|
63056
|
+
// @ts-ignore: type is checked above.
|
|
63057
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
63058
|
+
|
|
63059
|
+
} else {
|
|
63060
|
+
throw new TypeError(
|
|
63061
|
+
\\"The preferredLicense must be of type \\" +
|
|
63062
|
+
\\"URL\\" + \\".\\",
|
|
63063
|
+
);
|
|
63064
|
+
}
|
|
63065
|
+
}
|
|
62468
63066
|
}
|
|
62469
63067
|
|
|
62470
63068
|
/**
|
|
@@ -62501,13 +63099,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
62501
63099
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
62502
63100
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
62503
63101
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
62504
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];preferredUsername?: string | LanguageString | null;
|
|
63102
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];preferredUsername?: string | LanguageString | null;
|
|
62505
63103
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
62506
63104
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
62507
63105
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
62508
63106
|
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;
|
|
62509
63107
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
62510
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
63108
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
62511
63109
|
|
|
62512
63110
|
= {},
|
|
62513
63111
|
options: {
|
|
@@ -63001,6 +63599,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
63001
63599
|
);
|
|
63002
63600
|
}
|
|
63003
63601
|
}
|
|
63602
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
63603
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
63604
|
+
if (values.preferredLicense instanceof URL) {
|
|
63605
|
+
// @ts-ignore: type is checked above.
|
|
63606
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
63607
|
+
|
|
63608
|
+
} else {
|
|
63609
|
+
throw new TypeError(
|
|
63610
|
+
\\"The preferredLicense must be of type \\" +
|
|
63611
|
+
\\"URL\\" + \\".\\",
|
|
63612
|
+
);
|
|
63613
|
+
}
|
|
63614
|
+
}
|
|
63004
63615
|
|
|
63005
63616
|
return clone;
|
|
63006
63617
|
}
|
|
@@ -69889,6 +70500,25 @@ get gateways(): (URL)[] {
|
|
|
69889
70500
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
69890
70501
|
}
|
|
69891
70502
|
|
|
70503
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
70504
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
70505
|
+
* as the default \`license\` of a new object and let the user choose another.
|
|
70506
|
+
*
|
|
70507
|
+
* This is not a fallback license: an object without its own \`license\` is not
|
|
70508
|
+
* licensed under its author's preferred license.
|
|
70509
|
+
*
|
|
70510
|
+
*/
|
|
70511
|
+
get preferredLicense(): (URL | null) {
|
|
70512
|
+
if (this._warning != null) {
|
|
70513
|
+
getLogger(this._warning.category).warn(
|
|
70514
|
+
this._warning.message,
|
|
70515
|
+
this._warning.values
|
|
70516
|
+
);
|
|
70517
|
+
}
|
|
70518
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
70519
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
70520
|
+
}
|
|
70521
|
+
|
|
69892
70522
|
/**
|
|
69893
70523
|
* Converts this object to a JSON-LD structure.
|
|
69894
70524
|
* @param options The options to use.
|
|
@@ -70417,6 +71047,22 @@ get gateways(): (URL)[] {
|
|
|
70417
71047
|
|
|
70418
71048
|
}
|
|
70419
71049
|
|
|
71050
|
+
compactItems = [];
|
|
71051
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
71052
|
+
const item = (
|
|
71053
|
+
formatIri(v)
|
|
71054
|
+
);
|
|
71055
|
+
compactItems.push(item);
|
|
71056
|
+
}
|
|
71057
|
+
if (compactItems.length > 0) {
|
|
71058
|
+
|
|
71059
|
+
result[\\"preferredLicense\\"]
|
|
71060
|
+
= compactItems.length > 1
|
|
71061
|
+
? compactItems
|
|
71062
|
+
: compactItems[0];
|
|
71063
|
+
|
|
71064
|
+
}
|
|
71065
|
+
|
|
70420
71066
|
result[\\"type\\"] = \\"Application\\";
|
|
70421
71067
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
70422
71068
|
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\\"}];
|
|
@@ -70921,6 +71567,26 @@ get gateways(): (URL)[] {
|
|
|
70921
71567
|
|
|
70922
71568
|
}
|
|
70923
71569
|
|
|
71570
|
+
array = [];
|
|
71571
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
71572
|
+
let element = (
|
|
71573
|
+
{ \\"@id\\": formatIri(v) }
|
|
71574
|
+
);
|
|
71575
|
+
if (Array.isArray(element)) {
|
|
71576
|
+
if (element.length < 1) continue;
|
|
71577
|
+
if (element.length == 1) element = element[0];
|
|
71578
|
+
}
|
|
71579
|
+
if (typeof element === \\"undefined\\") continue;
|
|
71580
|
+
array.push(element);;
|
|
71581
|
+
}
|
|
71582
|
+
if (array.length > 0) {
|
|
71583
|
+
const propValue = (
|
|
71584
|
+
array
|
|
71585
|
+
);
|
|
71586
|
+
values[\\"https://w3id.org/fep/6757#preferredLicense\\"] = propValue;
|
|
71587
|
+
|
|
71588
|
+
}
|
|
71589
|
+
|
|
70924
71590
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Application\\"];
|
|
70925
71591
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
70926
71592
|
if (options.format === \\"expand\\") {
|
|
@@ -70934,6 +71600,17 @@ get gateways(): (URL)[] {
|
|
|
70934
71600
|
}
|
|
70935
71601
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
70936
71602
|
[\\"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\\"}];
|
|
71603
|
+
|
|
71604
|
+
if (options.context == null) {
|
|
71605
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
71606
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
71607
|
+
context => !currentContexts.includes(context)
|
|
71608
|
+
);
|
|
71609
|
+
if (additionalContexts.length > 0) {
|
|
71610
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
71611
|
+
}
|
|
71612
|
+
}
|
|
71613
|
+
|
|
70937
71614
|
let compacted = await jsonld.compact(
|
|
70938
71615
|
values,
|
|
70939
71616
|
docContext,
|
|
@@ -70985,6 +71662,11 @@ get gateways(): (URL)[] {
|
|
|
70985
71662
|
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0
|
|
70986
71663
|
) return false;
|
|
70987
71664
|
|
|
71665
|
+
if (
|
|
71666
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null &&
|
|
71667
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0
|
|
71668
|
+
) return false;
|
|
71669
|
+
|
|
70988
71670
|
return super.isCompactable();
|
|
70989
71671
|
}
|
|
70990
71672
|
|
|
@@ -72043,6 +72725,35 @@ get gateways(): (URL)[] {
|
|
|
72043
72725
|
|
|
72044
72726
|
}
|
|
72045
72727
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
72728
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
72729
|
+
|
|
72730
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values[\\"https://w3id.org/fep/6757#preferredLicense\\"];
|
|
72731
|
+
|
|
72732
|
+
for (
|
|
72733
|
+
const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null
|
|
72734
|
+
? []
|
|
72735
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && \\"@list\\" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]
|
|
72736
|
+
? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0][\\"@list\\"]
|
|
72737
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array
|
|
72738
|
+
) {
|
|
72739
|
+
if (v == null) continue;
|
|
72740
|
+
|
|
72741
|
+
const decoded =
|
|
72742
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
72743
|
+
;
|
|
72744
|
+
|
|
72745
|
+
if (typeof decoded === \\"undefined\\") {
|
|
72746
|
+
shouldCacheJsonLd = false;
|
|
72747
|
+
continue;
|
|
72748
|
+
}
|
|
72749
|
+
|
|
72750
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
72751
|
+
shouldCacheJsonLd = false;
|
|
72752
|
+
}
|
|
72753
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
72754
|
+
|
|
72755
|
+
}
|
|
72756
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
72046
72757
|
|
|
72047
72758
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
72048
72759
|
if (
|
|
@@ -72593,6 +73304,26 @@ get gateways(): (URL)[] {
|
|
|
72593
73304
|
proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
72594
73305
|
}
|
|
72595
73306
|
|
|
73307
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense
|
|
73308
|
+
// deno-lint-ignore no-explicit-any
|
|
73309
|
+
.map((v: any) => v instanceof URL
|
|
73310
|
+
? {
|
|
73311
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
73312
|
+
inspect: typeof Deno.inspect,
|
|
73313
|
+
options: Deno.InspectOptions,
|
|
73314
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
73315
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
73316
|
+
_depth: number,
|
|
73317
|
+
options: unknown,
|
|
73318
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
73319
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
73320
|
+
}
|
|
73321
|
+
: v);
|
|
73322
|
+
|
|
73323
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) {
|
|
73324
|
+
proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
73325
|
+
}
|
|
73326
|
+
|
|
72596
73327
|
return proxy;
|
|
72597
73328
|
}
|
|
72598
73329
|
}
|
|
@@ -72659,7 +73390,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
72659
73390
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
72660
73391
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
72661
73392
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
72662
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
73393
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
72663
73394
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
72664
73395
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
72665
73396
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -72710,7 +73441,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
72710
73441
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
72711
73442
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
72712
73443
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
72713
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
73444
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
72714
73445
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
72715
73446
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
72716
73447
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -72796,6 +73527,17 @@ instruments?: (Object | URL)[];}
|
|
|
72796
73527
|
}
|
|
72797
73528
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
72798
73529
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
73530
|
+
|
|
73531
|
+
if (options.context == null) {
|
|
73532
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
73533
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
73534
|
+
context => !currentContexts.includes(context)
|
|
73535
|
+
);
|
|
73536
|
+
if (additionalContexts.length > 0) {
|
|
73537
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
73538
|
+
}
|
|
73539
|
+
}
|
|
73540
|
+
|
|
72799
73541
|
let compacted = await jsonld.compact(
|
|
72800
73542
|
values,
|
|
72801
73543
|
docContext,
|
|
@@ -73088,7 +73830,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
73088
73830
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
73089
73831
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
73090
73832
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
73091
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
73833
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
73092
73834
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
73093
73835
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
73094
73836
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -73139,7 +73881,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
73139
73881
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
73140
73882
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
73141
73883
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
73142
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
73884
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
73143
73885
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
73144
73886
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
73145
73887
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -73225,6 +73967,17 @@ instruments?: (Object | URL)[];}
|
|
|
73225
73967
|
}
|
|
73226
73968
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
73227
73969
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
73970
|
+
|
|
73971
|
+
if (options.context == null) {
|
|
73972
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
73973
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
73974
|
+
context => !currentContexts.includes(context)
|
|
73975
|
+
);
|
|
73976
|
+
if (additionalContexts.length > 0) {
|
|
73977
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
73978
|
+
}
|
|
73979
|
+
}
|
|
73980
|
+
|
|
73228
73981
|
let compacted = await jsonld.compact(
|
|
73229
73982
|
values,
|
|
73230
73983
|
docContext,
|
|
@@ -73509,7 +74262,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
73509
74262
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
73510
74263
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
73511
74264
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
73512
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];quote?: Object | URL | null;quoteUrl?: URL | null;quoteAuthorization?: QuoteAuthorization | URL | null;}
|
|
74265
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];quote?: Object | URL | null;quoteUrl?: URL | null;quoteAuthorization?: QuoteAuthorization | URL | null;}
|
|
73513
74266
|
,
|
|
73514
74267
|
options: {
|
|
73515
74268
|
documentLoader?: DocumentLoader,
|
|
@@ -73593,7 +74346,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
73593
74346
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
73594
74347
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
73595
74348
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
73596
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];quote?: Object | URL | null;quoteUrl?: URL | null;quoteAuthorization?: QuoteAuthorization | URL | null;}
|
|
74349
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];quote?: Object | URL | null;quoteUrl?: URL | null;quoteAuthorization?: QuoteAuthorization | URL | null;}
|
|
73597
74350
|
|
|
73598
74351
|
= {},
|
|
73599
74352
|
options: {
|
|
@@ -74723,6 +75476,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
74723
75476
|
}
|
|
74724
75477
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
74725
75478
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"Emoji\\":\\"toot:Emoji\\",\\"Hashtag\\":\\"as:Hashtag\\",\\"quote\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quote\\",\\"@type\\":\\"@id\\"},\\"quoteUrl\\":\\"as:quoteUrl\\",\\"_misskey_quote\\":\\"misskey:_misskey_quote\\",\\"quoteUri\\":\\"fedibird:quoteUri\\",\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"quoteAuthorization\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"@type\\":\\"@id\\"},\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
75479
|
+
|
|
75480
|
+
if (options.context == null) {
|
|
75481
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
75482
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
75483
|
+
context => !currentContexts.includes(context)
|
|
75484
|
+
);
|
|
75485
|
+
if (additionalContexts.length > 0) {
|
|
75486
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
75487
|
+
}
|
|
75488
|
+
}
|
|
75489
|
+
|
|
74726
75490
|
let compacted = await jsonld.compact(
|
|
74727
75491
|
values,
|
|
74728
75492
|
docContext,
|
|
@@ -75184,7 +75948,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
75184
75948
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
75185
75949
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
75186
75950
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
75187
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
75951
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
75188
75952
|
,
|
|
75189
75953
|
options: {
|
|
75190
75954
|
documentLoader?: DocumentLoader,
|
|
@@ -75268,7 +76032,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
75268
76032
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
75269
76033
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
75270
76034
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
75271
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
76035
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
75272
76036
|
|
|
75273
76037
|
= {},
|
|
75274
76038
|
options: {
|
|
@@ -75567,6 +76331,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
75567
76331
|
}
|
|
75568
76332
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
75569
76333
|
[\\"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\\"];
|
|
76334
|
+
|
|
76335
|
+
if (options.context == null) {
|
|
76336
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
76337
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
76338
|
+
context => !currentContexts.includes(context)
|
|
76339
|
+
);
|
|
76340
|
+
if (additionalContexts.length > 0) {
|
|
76341
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
76342
|
+
}
|
|
76343
|
+
}
|
|
76344
|
+
|
|
75570
76345
|
let compacted = await jsonld.compact(
|
|
75571
76346
|
values,
|
|
75572
76347
|
docContext,
|
|
@@ -76007,7 +76782,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
76007
76782
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
76008
76783
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
76009
76784
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
76010
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
76785
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
76011
76786
|
,
|
|
76012
76787
|
options: {
|
|
76013
76788
|
documentLoader?: DocumentLoader,
|
|
@@ -76052,7 +76827,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
76052
76827
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
76053
76828
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
76054
76829
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
76055
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
76830
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
76056
76831
|
|
|
76057
76832
|
= {},
|
|
76058
76833
|
options: {
|
|
@@ -76151,6 +76926,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
76151
76926
|
}
|
|
76152
76927
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
76153
76928
|
[\\"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\\"];
|
|
76929
|
+
|
|
76930
|
+
if (options.context == null) {
|
|
76931
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
76932
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
76933
|
+
context => !currentContexts.includes(context)
|
|
76934
|
+
);
|
|
76935
|
+
if (additionalContexts.length > 0) {
|
|
76936
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
76937
|
+
}
|
|
76938
|
+
}
|
|
76939
|
+
|
|
76154
76940
|
let compacted = await jsonld.compact(
|
|
76155
76941
|
values,
|
|
76156
76942
|
docContext,
|
|
@@ -76430,7 +77216,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
76430
77216
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
76431
77217
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
76432
77218
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
76433
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
77219
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
76434
77220
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
76435
77221
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
76436
77222
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -76481,7 +77267,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
76481
77267
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
76482
77268
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
76483
77269
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
76484
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
77270
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
76485
77271
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
76486
77272
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
76487
77273
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -76567,6 +77353,17 @@ instruments?: (Object | URL)[];}
|
|
|
76567
77353
|
}
|
|
76568
77354
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
76569
77355
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
77356
|
+
|
|
77357
|
+
if (options.context == null) {
|
|
77358
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
77359
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
77360
|
+
context => !currentContexts.includes(context)
|
|
77361
|
+
);
|
|
77362
|
+
if (additionalContexts.length > 0) {
|
|
77363
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
77364
|
+
}
|
|
77365
|
+
}
|
|
77366
|
+
|
|
76570
77367
|
let compacted = await jsonld.compact(
|
|
76571
77368
|
values,
|
|
76572
77369
|
docContext,
|
|
@@ -76852,7 +77649,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
76852
77649
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
76853
77650
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
76854
77651
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
76855
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
77652
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
76856
77653
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
76857
77654
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
76858
77655
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -76903,7 +77700,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
76903
77700
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
76904
77701
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
76905
77702
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
76906
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
77703
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
76907
77704
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
76908
77705
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
76909
77706
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -76989,6 +77786,17 @@ instruments?: (Object | URL)[];}
|
|
|
76989
77786
|
}
|
|
76990
77787
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
76991
77788
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
77789
|
+
|
|
77790
|
+
if (options.context == null) {
|
|
77791
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
77792
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
77793
|
+
context => !currentContexts.includes(context)
|
|
77794
|
+
);
|
|
77795
|
+
if (additionalContexts.length > 0) {
|
|
77796
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
77797
|
+
}
|
|
77798
|
+
}
|
|
77799
|
+
|
|
76992
77800
|
let compacted = await jsonld.compact(
|
|
76993
77801
|
values,
|
|
76994
77802
|
docContext,
|
|
@@ -77278,7 +78086,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
77278
78086
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
77279
78087
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
77280
78088
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
77281
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;items?: (Object | Link | URL)[];likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;partOf?: Collection | URL | null;next?: CollectionPage | URL | null;prev?: CollectionPage | URL | null;}
|
|
78089
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;items?: (Object | Link | URL)[];likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;partOf?: Collection | URL | null;next?: CollectionPage | URL | null;prev?: CollectionPage | URL | null;}
|
|
77282
78090
|
,
|
|
77283
78091
|
options: {
|
|
77284
78092
|
documentLoader?: DocumentLoader,
|
|
@@ -77362,7 +78170,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
77362
78170
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
77363
78171
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
77364
78172
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
77365
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;items?: (Object | Link | URL)[];likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;partOf?: Collection | URL | null;next?: CollectionPage | URL | null;prev?: CollectionPage | URL | null;}
|
|
78173
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;items?: (Object | Link | URL)[];likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;partOf?: Collection | URL | null;next?: CollectionPage | URL | null;prev?: CollectionPage | URL | null;}
|
|
77366
78174
|
|
|
77367
78175
|
= {},
|
|
77368
78176
|
options: {
|
|
@@ -78874,6 +79682,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
78874
79682
|
}
|
|
78875
79683
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
78876
79684
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"ChatMessage\\":\\"http://litepub.social/ns#ChatMessage\\",\\"sensitive\\":\\"as:sensitive\\",\\"votersCount\\":\\"toot:votersCount\\",\\"Emoji\\":\\"toot:Emoji\\",\\"Hashtag\\":\\"as:Hashtag\\",\\"quote\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quote\\",\\"@type\\":\\"@id\\"},\\"quoteUrl\\":\\"as:quoteUrl\\",\\"_misskey_quote\\":\\"misskey:_misskey_quote\\",\\"quoteUri\\":\\"fedibird:quoteUri\\",\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"QuoteRequest\\":\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"quoteAuthorization\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"@type\\":\\"@id\\"},\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
79685
|
+
|
|
79686
|
+
if (options.context == null) {
|
|
79687
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
79688
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
79689
|
+
context => !currentContexts.includes(context)
|
|
79690
|
+
);
|
|
79691
|
+
if (additionalContexts.length > 0) {
|
|
79692
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
79693
|
+
}
|
|
79694
|
+
}
|
|
79695
|
+
|
|
78877
79696
|
let compacted = await jsonld.compact(
|
|
78878
79697
|
values,
|
|
78879
79698
|
docContext,
|
|
@@ -79338,7 +80157,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
79338
80157
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
79339
80158
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
79340
80159
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
79341
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
80160
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
79342
80161
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
79343
80162
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
79344
80163
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -79389,7 +80208,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
79389
80208
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
79390
80209
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
79391
80210
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
79392
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
80211
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
79393
80212
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
79394
80213
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
79395
80214
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -79475,6 +80294,17 @@ instruments?: (Object | URL)[];}
|
|
|
79475
80294
|
}
|
|
79476
80295
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
79477
80296
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"votersCount\\":{\\"@id\\":\\"toot:votersCount\\",\\"@type\\":\\"http://www.w3.org/2001/XMLSchema#nonNegativeInteger\\"},\\"Emoji\\":\\"toot:Emoji\\",\\"Hashtag\\":\\"as:Hashtag\\",\\"ChatMessage\\":\\"http://litepub.social/ns#ChatMessage\\",\\"quote\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quote\\",\\"@type\\":\\"@id\\"},\\"quoteUrl\\":\\"as:quoteUrl\\",\\"_misskey_quote\\":\\"misskey:_misskey_quote\\",\\"quoteUri\\":\\"fedibird:quoteUri\\",\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"QuoteRequest\\":\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"quoteAuthorization\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"@type\\":\\"@id\\"},\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
80297
|
+
|
|
80298
|
+
if (options.context == null) {
|
|
80299
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
80300
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
80301
|
+
context => !currentContexts.includes(context)
|
|
80302
|
+
);
|
|
80303
|
+
if (additionalContexts.length > 0) {
|
|
80304
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
80305
|
+
}
|
|
80306
|
+
}
|
|
80307
|
+
|
|
79478
80308
|
let compacted = await jsonld.compact(
|
|
79479
80309
|
values,
|
|
79480
80310
|
docContext,
|
|
@@ -79754,7 +80584,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
79754
80584
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
79755
80585
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
79756
80586
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
79757
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
80587
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
79758
80588
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
79759
80589
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
79760
80590
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -79805,7 +80635,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
79805
80635
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
79806
80636
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
79807
80637
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
79808
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
80638
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
79809
80639
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
79810
80640
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
79811
80641
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -79891,6 +80721,17 @@ instruments?: (Object | URL)[];}
|
|
|
79891
80721
|
}
|
|
79892
80722
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
79893
80723
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"votersCount\\":{\\"@id\\":\\"toot:votersCount\\",\\"@type\\":\\"http://www.w3.org/2001/XMLSchema#nonNegativeInteger\\"},\\"Emoji\\":\\"toot:Emoji\\",\\"Hashtag\\":\\"as:Hashtag\\",\\"ChatMessage\\":\\"http://litepub.social/ns#ChatMessage\\",\\"quote\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quote\\",\\"@type\\":\\"@id\\"},\\"quoteUrl\\":\\"as:quoteUrl\\",\\"_misskey_quote\\":\\"misskey:_misskey_quote\\",\\"quoteUri\\":\\"fedibird:quoteUri\\",\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"QuoteRequest\\":\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"quoteAuthorization\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"@type\\":\\"@id\\"}}];
|
|
80724
|
+
|
|
80725
|
+
if (options.context == null) {
|
|
80726
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
80727
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
80728
|
+
context => !currentContexts.includes(context)
|
|
80729
|
+
);
|
|
80730
|
+
if (additionalContexts.length > 0) {
|
|
80731
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
80732
|
+
}
|
|
80733
|
+
}
|
|
80734
|
+
|
|
79894
80735
|
let compacted = await jsonld.compact(
|
|
79895
80736
|
values,
|
|
79896
80737
|
docContext,
|
|
@@ -80168,7 +81009,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
80168
81009
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
80169
81010
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
80170
81011
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
80171
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
81012
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
80172
81013
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
80173
81014
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
80174
81015
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -80219,7 +81060,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
80219
81060
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
80220
81061
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
80221
81062
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
80222
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
81063
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
80223
81064
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
80224
81065
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
80225
81066
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -80305,6 +81146,17 @@ instruments?: (Object | URL)[];}
|
|
|
80305
81146
|
}
|
|
80306
81147
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
80307
81148
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\"}];
|
|
81149
|
+
|
|
81150
|
+
if (options.context == null) {
|
|
81151
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
81152
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
81153
|
+
context => !currentContexts.includes(context)
|
|
81154
|
+
);
|
|
81155
|
+
if (additionalContexts.length > 0) {
|
|
81156
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
81157
|
+
}
|
|
81158
|
+
}
|
|
81159
|
+
|
|
80308
81160
|
let compacted = await jsonld.compact(
|
|
80309
81161
|
values,
|
|
80310
81162
|
docContext,
|
|
@@ -81335,6 +82187,17 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
81335
82187
|
}
|
|
81336
82188
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
81337
82189
|
\\"https://www.w3.org/ns/activitystreams\\";
|
|
82190
|
+
|
|
82191
|
+
if (options.context == null) {
|
|
82192
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
82193
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
82194
|
+
context => !currentContexts.includes(context)
|
|
82195
|
+
);
|
|
82196
|
+
if (additionalContexts.length > 0) {
|
|
82197
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
82198
|
+
}
|
|
82199
|
+
}
|
|
82200
|
+
|
|
81338
82201
|
let compacted = await jsonld.compact(
|
|
81339
82202
|
values,
|
|
81340
82203
|
docContext,
|
|
@@ -81955,7 +82818,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
81955
82818
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
81956
82819
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
81957
82820
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
81958
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];}
|
|
82821
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];}
|
|
81959
82822
|
,
|
|
81960
82823
|
options: {
|
|
81961
82824
|
documentLoader?: DocumentLoader,
|
|
@@ -82000,7 +82863,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
82000
82863
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
82001
82864
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
82002
82865
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
82003
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];}
|
|
82866
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];}
|
|
82004
82867
|
|
|
82005
82868
|
= {},
|
|
82006
82869
|
options: {
|
|
@@ -82099,6 +82962,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
82099
82962
|
}
|
|
82100
82963
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
82101
82964
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
82965
|
+
|
|
82966
|
+
if (options.context == null) {
|
|
82967
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
82968
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
82969
|
+
context => !currentContexts.includes(context)
|
|
82970
|
+
);
|
|
82971
|
+
if (additionalContexts.length > 0) {
|
|
82972
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
82973
|
+
}
|
|
82974
|
+
}
|
|
82975
|
+
|
|
82102
82976
|
let compacted = await jsonld.compact(
|
|
82103
82977
|
values,
|
|
82104
82978
|
docContext,
|
|
@@ -82379,7 +83253,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
82379
83253
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
82380
83254
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
82381
83255
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
82382
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
83256
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
82383
83257
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
82384
83258
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
82385
83259
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -82430,7 +83304,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
82430
83304
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
82431
83305
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
82432
83306
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
82433
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
83307
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
82434
83308
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
82435
83309
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
82436
83310
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -82516,6 +83390,17 @@ instruments?: (Object | URL)[];}
|
|
|
82516
83390
|
}
|
|
82517
83391
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
82518
83392
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
83393
|
+
|
|
83394
|
+
if (options.context == null) {
|
|
83395
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
83396
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
83397
|
+
context => !currentContexts.includes(context)
|
|
83398
|
+
);
|
|
83399
|
+
if (additionalContexts.length > 0) {
|
|
83400
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
83401
|
+
}
|
|
83402
|
+
}
|
|
83403
|
+
|
|
82519
83404
|
let compacted = await jsonld.compact(
|
|
82520
83405
|
values,
|
|
82521
83406
|
docContext,
|
|
@@ -82797,7 +83682,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
82797
83682
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
82798
83683
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
82799
83684
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
82800
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
83685
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
82801
83686
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
82802
83687
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
82803
83688
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -82848,7 +83733,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
82848
83733
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
82849
83734
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
82850
83735
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
82851
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
83736
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
82852
83737
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
82853
83738
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
82854
83739
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -82934,6 +83819,17 @@ instruments?: (Object | URL)[];}
|
|
|
82934
83819
|
}
|
|
82935
83820
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
82936
83821
|
[\\"https://w3id.org/identity/v1\\",\\"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\\"];
|
|
83822
|
+
|
|
83823
|
+
if (options.context == null) {
|
|
83824
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
83825
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
83826
|
+
context => !currentContexts.includes(context)
|
|
83827
|
+
);
|
|
83828
|
+
if (additionalContexts.length > 0) {
|
|
83829
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
83830
|
+
}
|
|
83831
|
+
}
|
|
83832
|
+
|
|
82937
83833
|
let compacted = await jsonld.compact(
|
|
82938
83834
|
values,
|
|
82939
83835
|
docContext,
|
|
@@ -83237,6 +84133,7 @@ export class Group extends Object {
|
|
|
83237
84133
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service: Set<number> = new Set();
|
|
83238
84134
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage: (string)[] = [];
|
|
83239
84135
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat: (boolean)[] = [];
|
|
84136
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
83240
84137
|
|
|
83241
84138
|
/**
|
|
83242
84139
|
* Constructs a new instance of Group with the given values.
|
|
@@ -83263,13 +84160,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
83263
84160
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
83264
84161
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
83265
84162
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
83266
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];preferredUsername?: string | LanguageString | null;
|
|
84163
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];preferredUsername?: string | LanguageString | null;
|
|
83267
84164
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
83268
84165
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
83269
84166
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
83270
84167
|
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;
|
|
83271
84168
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
83272
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
84169
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
83273
84170
|
,
|
|
83274
84171
|
options: {
|
|
83275
84172
|
documentLoader?: DocumentLoader,
|
|
@@ -83750,6 +84647,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
83750
84647
|
);
|
|
83751
84648
|
}
|
|
83752
84649
|
}
|
|
84650
|
+
|
|
84651
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
84652
|
+
if (values.preferredLicense instanceof URL) {
|
|
84653
|
+
// @ts-ignore: type is checked above.
|
|
84654
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
84655
|
+
|
|
84656
|
+
} else {
|
|
84657
|
+
throw new TypeError(
|
|
84658
|
+
\\"The preferredLicense must be of type \\" +
|
|
84659
|
+
\\"URL\\" + \\".\\",
|
|
84660
|
+
);
|
|
84661
|
+
}
|
|
84662
|
+
}
|
|
83753
84663
|
}
|
|
83754
84664
|
|
|
83755
84665
|
/**
|
|
@@ -83786,13 +84696,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
83786
84696
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
83787
84697
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
83788
84698
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
83789
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];preferredUsername?: string | LanguageString | null;
|
|
84699
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];preferredUsername?: string | LanguageString | null;
|
|
83790
84700
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
83791
84701
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
83792
84702
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
83793
84703
|
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;
|
|
83794
84704
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
83795
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
84705
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
83796
84706
|
|
|
83797
84707
|
= {},
|
|
83798
84708
|
options: {
|
|
@@ -84286,6 +85196,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
84286
85196
|
);
|
|
84287
85197
|
}
|
|
84288
85198
|
}
|
|
85199
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
85200
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
85201
|
+
if (values.preferredLicense instanceof URL) {
|
|
85202
|
+
// @ts-ignore: type is checked above.
|
|
85203
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
85204
|
+
|
|
85205
|
+
} else {
|
|
85206
|
+
throw new TypeError(
|
|
85207
|
+
\\"The preferredLicense must be of type \\" +
|
|
85208
|
+
\\"URL\\" + \\".\\",
|
|
85209
|
+
);
|
|
85210
|
+
}
|
|
85211
|
+
}
|
|
84289
85212
|
|
|
84290
85213
|
return clone;
|
|
84291
85214
|
}
|
|
@@ -91174,6 +92097,25 @@ get gateways(): (URL)[] {
|
|
|
91174
92097
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
91175
92098
|
}
|
|
91176
92099
|
|
|
92100
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
92101
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
92102
|
+
* as the default \`license\` of a new object and let the user choose another.
|
|
92103
|
+
*
|
|
92104
|
+
* This is not a fallback license: an object without its own \`license\` is not
|
|
92105
|
+
* licensed under its author's preferred license.
|
|
92106
|
+
*
|
|
92107
|
+
*/
|
|
92108
|
+
get preferredLicense(): (URL | null) {
|
|
92109
|
+
if (this._warning != null) {
|
|
92110
|
+
getLogger(this._warning.category).warn(
|
|
92111
|
+
this._warning.message,
|
|
92112
|
+
this._warning.values
|
|
92113
|
+
);
|
|
92114
|
+
}
|
|
92115
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
92116
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
92117
|
+
}
|
|
92118
|
+
|
|
91177
92119
|
/**
|
|
91178
92120
|
* Converts this object to a JSON-LD structure.
|
|
91179
92121
|
* @param options The options to use.
|
|
@@ -91702,6 +92644,22 @@ get gateways(): (URL)[] {
|
|
|
91702
92644
|
|
|
91703
92645
|
}
|
|
91704
92646
|
|
|
92647
|
+
compactItems = [];
|
|
92648
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
92649
|
+
const item = (
|
|
92650
|
+
formatIri(v)
|
|
92651
|
+
);
|
|
92652
|
+
compactItems.push(item);
|
|
92653
|
+
}
|
|
92654
|
+
if (compactItems.length > 0) {
|
|
92655
|
+
|
|
92656
|
+
result[\\"preferredLicense\\"]
|
|
92657
|
+
= compactItems.length > 1
|
|
92658
|
+
? compactItems
|
|
92659
|
+
: compactItems[0];
|
|
92660
|
+
|
|
92661
|
+
}
|
|
92662
|
+
|
|
91705
92663
|
result[\\"type\\"] = \\"Group\\";
|
|
91706
92664
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
91707
92665
|
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\\"}];
|
|
@@ -92206,6 +93164,26 @@ get gateways(): (URL)[] {
|
|
|
92206
93164
|
|
|
92207
93165
|
}
|
|
92208
93166
|
|
|
93167
|
+
array = [];
|
|
93168
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
93169
|
+
let element = (
|
|
93170
|
+
{ \\"@id\\": formatIri(v) }
|
|
93171
|
+
);
|
|
93172
|
+
if (Array.isArray(element)) {
|
|
93173
|
+
if (element.length < 1) continue;
|
|
93174
|
+
if (element.length == 1) element = element[0];
|
|
93175
|
+
}
|
|
93176
|
+
if (typeof element === \\"undefined\\") continue;
|
|
93177
|
+
array.push(element);;
|
|
93178
|
+
}
|
|
93179
|
+
if (array.length > 0) {
|
|
93180
|
+
const propValue = (
|
|
93181
|
+
array
|
|
93182
|
+
);
|
|
93183
|
+
values[\\"https://w3id.org/fep/6757#preferredLicense\\"] = propValue;
|
|
93184
|
+
|
|
93185
|
+
}
|
|
93186
|
+
|
|
92209
93187
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Group\\"];
|
|
92210
93188
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
92211
93189
|
if (options.format === \\"expand\\") {
|
|
@@ -92219,6 +93197,17 @@ get gateways(): (URL)[] {
|
|
|
92219
93197
|
}
|
|
92220
93198
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
92221
93199
|
[\\"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\\"}];
|
|
93200
|
+
|
|
93201
|
+
if (options.context == null) {
|
|
93202
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
93203
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
93204
|
+
context => !currentContexts.includes(context)
|
|
93205
|
+
);
|
|
93206
|
+
if (additionalContexts.length > 0) {
|
|
93207
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
93208
|
+
}
|
|
93209
|
+
}
|
|
93210
|
+
|
|
92222
93211
|
let compacted = await jsonld.compact(
|
|
92223
93212
|
values,
|
|
92224
93213
|
docContext,
|
|
@@ -92270,6 +93259,11 @@ get gateways(): (URL)[] {
|
|
|
92270
93259
|
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0
|
|
92271
93260
|
) return false;
|
|
92272
93261
|
|
|
93262
|
+
if (
|
|
93263
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null &&
|
|
93264
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0
|
|
93265
|
+
) return false;
|
|
93266
|
+
|
|
92273
93267
|
return super.isCompactable();
|
|
92274
93268
|
}
|
|
92275
93269
|
|
|
@@ -93328,6 +94322,35 @@ get gateways(): (URL)[] {
|
|
|
93328
94322
|
|
|
93329
94323
|
}
|
|
93330
94324
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
94325
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
94326
|
+
|
|
94327
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values[\\"https://w3id.org/fep/6757#preferredLicense\\"];
|
|
94328
|
+
|
|
94329
|
+
for (
|
|
94330
|
+
const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null
|
|
94331
|
+
? []
|
|
94332
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && \\"@list\\" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]
|
|
94333
|
+
? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0][\\"@list\\"]
|
|
94334
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array
|
|
94335
|
+
) {
|
|
94336
|
+
if (v == null) continue;
|
|
94337
|
+
|
|
94338
|
+
const decoded =
|
|
94339
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
94340
|
+
;
|
|
94341
|
+
|
|
94342
|
+
if (typeof decoded === \\"undefined\\") {
|
|
94343
|
+
shouldCacheJsonLd = false;
|
|
94344
|
+
continue;
|
|
94345
|
+
}
|
|
94346
|
+
|
|
94347
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
94348
|
+
shouldCacheJsonLd = false;
|
|
94349
|
+
}
|
|
94350
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
94351
|
+
|
|
94352
|
+
}
|
|
94353
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
93331
94354
|
|
|
93332
94355
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
93333
94356
|
if (
|
|
@@ -93878,6 +94901,26 @@ get gateways(): (URL)[] {
|
|
|
93878
94901
|
proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
93879
94902
|
}
|
|
93880
94903
|
|
|
94904
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense
|
|
94905
|
+
// deno-lint-ignore no-explicit-any
|
|
94906
|
+
.map((v: any) => v instanceof URL
|
|
94907
|
+
? {
|
|
94908
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
94909
|
+
inspect: typeof Deno.inspect,
|
|
94910
|
+
options: Deno.InspectOptions,
|
|
94911
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
94912
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
94913
|
+
_depth: number,
|
|
94914
|
+
options: unknown,
|
|
94915
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
94916
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
94917
|
+
}
|
|
94918
|
+
: v);
|
|
94919
|
+
|
|
94920
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) {
|
|
94921
|
+
proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
94922
|
+
}
|
|
94923
|
+
|
|
93881
94924
|
return proxy;
|
|
93882
94925
|
}
|
|
93883
94926
|
}
|
|
@@ -93998,7 +95041,8 @@ export class Link {
|
|
|
93998
95041
|
|
|
93999
95042
|
#_gCVTegXxWWCw6wWRxa1QF65zusg_preview: (Link | Object | URL)[] = [];
|
|
94000
95043
|
#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview: Set<number> = new Set();
|
|
94001
|
-
|
|
95044
|
+
#_2rzkBRS4gNPrkJk9DohHAMUAxA2d: (URL)[] = [];
|
|
95045
|
+
|
|
94002
95046
|
/**
|
|
94003
95047
|
* Constructs a new instance of Link with the given values.
|
|
94004
95048
|
* @param values The values to initialize the instance with.
|
|
@@ -94010,7 +95054,7 @@ export class Link {
|
|
|
94010
95054
|
id?: URL | null;
|
|
94011
95055
|
href?: URL | null;rel?: string | null;
|
|
94012
95056
|
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
94013
|
-
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
95057
|
+
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];licenses?: (URL)[];}
|
|
94014
95058
|
,
|
|
94015
95059
|
options: {
|
|
94016
95060
|
documentLoader?: DocumentLoader,
|
|
@@ -94207,6 +95251,21 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
94207
95251
|
);
|
|
94208
95252
|
}
|
|
94209
95253
|
}
|
|
95254
|
+
|
|
95255
|
+
if (\\"licenses\\" in values && values.licenses != null) {
|
|
95256
|
+
|
|
95257
|
+
if (Array.isArray(values.licenses) &&
|
|
95258
|
+
values.licenses.every(v => v instanceof URL)) {
|
|
95259
|
+
// @ts-ignore: type is checked above.
|
|
95260
|
+
this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = values.licenses.slice();
|
|
95261
|
+
|
|
95262
|
+
} else {
|
|
95263
|
+
throw new TypeError(
|
|
95264
|
+
\\"The licenses must be an array of type \\" +
|
|
95265
|
+
\\"URL\\" + \\".\\",
|
|
95266
|
+
);
|
|
95267
|
+
}
|
|
95268
|
+
}
|
|
94210
95269
|
}
|
|
94211
95270
|
|
|
94212
95271
|
/**
|
|
@@ -94229,7 +95288,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
94229
95288
|
id?: URL | null;
|
|
94230
95289
|
href?: URL | null;rel?: string | null;
|
|
94231
95290
|
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
94232
|
-
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
95291
|
+
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];licenses?: (URL)[];}
|
|
94233
95292
|
|
|
94234
95293
|
= {},
|
|
94235
95294
|
options: {
|
|
@@ -94423,6 +95482,21 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
94423
95482
|
);
|
|
94424
95483
|
}
|
|
94425
95484
|
}
|
|
95485
|
+
clone.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.slice();
|
|
95486
|
+
if (\\"licenses\\" in values && values.licenses != null) {
|
|
95487
|
+
|
|
95488
|
+
if (Array.isArray(values.licenses) &&
|
|
95489
|
+
values.licenses.every(v => v instanceof URL)) {
|
|
95490
|
+
// @ts-ignore: type is checked above.
|
|
95491
|
+
clone.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = values.licenses.slice();
|
|
95492
|
+
|
|
95493
|
+
} else {
|
|
95494
|
+
throw new TypeError(
|
|
95495
|
+
\\"The licenses must be an array of type \\" +
|
|
95496
|
+
\\"URL\\" + \\".\\",
|
|
95497
|
+
);
|
|
95498
|
+
}
|
|
95499
|
+
}
|
|
94426
95500
|
|
|
94427
95501
|
return clone;
|
|
94428
95502
|
}
|
|
@@ -95009,6 +96083,24 @@ get names(): ((string | LanguageString))[] {
|
|
|
95009
96083
|
}
|
|
95010
96084
|
}
|
|
95011
96085
|
|
|
96086
|
+
/** The copyright licenses for the linked resource, as defined by
|
|
96087
|
+
* [FEP-6757](https://w3id.org/fep/6757). Each license is identified by its
|
|
96088
|
+
* URI, such as <https://creativecommons.org/publicdomain/mark/1.0/>; license
|
|
96089
|
+
* names and SPDX short identifiers are not license URIs. Multiple values are
|
|
96090
|
+
* alternatives that a consumer may choose from; their order has no meaning.
|
|
96091
|
+
*
|
|
96092
|
+
* An empty list means the link carries no license metadata. Fedify does not
|
|
96093
|
+
* synthesize a default license for it.
|
|
96094
|
+
*
|
|
96095
|
+
* The \`https://schema.org/license\` and
|
|
96096
|
+
* \`http://creativecommons.org/ns#license\` properties are read as synonyms
|
|
96097
|
+
* when this property is absent, but only this property is written.
|
|
96098
|
+
*
|
|
96099
|
+
*/
|
|
96100
|
+
get licenses(): (URL)[] {
|
|
96101
|
+
return this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
96102
|
+
}
|
|
96103
|
+
|
|
95012
96104
|
/**
|
|
95013
96105
|
* Converts this object to a JSON-LD structure.
|
|
95014
96106
|
* @param options The options to use.
|
|
@@ -95202,6 +96294,22 @@ get names(): ((string | LanguageString))[] {
|
|
|
95202
96294
|
|
|
95203
96295
|
}
|
|
95204
96296
|
|
|
96297
|
+
compactItems = [];
|
|
96298
|
+
for (const v of this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d) {
|
|
96299
|
+
const item = (
|
|
96300
|
+
formatIri(v)
|
|
96301
|
+
);
|
|
96302
|
+
compactItems.push(item);
|
|
96303
|
+
}
|
|
96304
|
+
if (compactItems.length > 0) {
|
|
96305
|
+
|
|
96306
|
+
result[\\"license\\"]
|
|
96307
|
+
= compactItems.length > 1
|
|
96308
|
+
? compactItems
|
|
96309
|
+
: compactItems[0];
|
|
96310
|
+
|
|
96311
|
+
}
|
|
96312
|
+
|
|
95205
96313
|
result[\\"type\\"] = \\"Link\\";
|
|
95206
96314
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
95207
96315
|
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\"];
|
|
@@ -95402,6 +96510,26 @@ get names(): ((string | LanguageString))[] {
|
|
|
95402
96510
|
|
|
95403
96511
|
}
|
|
95404
96512
|
|
|
96513
|
+
array = [];
|
|
96514
|
+
for (const v of this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d) {
|
|
96515
|
+
let element = (
|
|
96516
|
+
{ \\"@id\\": formatIri(v) }
|
|
96517
|
+
);
|
|
96518
|
+
if (Array.isArray(element)) {
|
|
96519
|
+
if (element.length < 1) continue;
|
|
96520
|
+
if (element.length == 1) element = element[0];
|
|
96521
|
+
}
|
|
96522
|
+
if (typeof element === \\"undefined\\") continue;
|
|
96523
|
+
array.push(element);;
|
|
96524
|
+
}
|
|
96525
|
+
if (array.length > 0) {
|
|
96526
|
+
const propValue = (
|
|
96527
|
+
array
|
|
96528
|
+
);
|
|
96529
|
+
values[\\"http://purl.org/dc/terms/license\\"] = propValue;
|
|
96530
|
+
|
|
96531
|
+
}
|
|
96532
|
+
|
|
95405
96533
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Link\\"];
|
|
95406
96534
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
95407
96535
|
if (options.format === \\"expand\\") {
|
|
@@ -95415,6 +96543,17 @@ get names(): ((string | LanguageString))[] {
|
|
|
95415
96543
|
}
|
|
95416
96544
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
95417
96545
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\"];
|
|
96546
|
+
|
|
96547
|
+
if (options.context == null) {
|
|
96548
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
96549
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
96550
|
+
context => !currentContexts.includes(context)
|
|
96551
|
+
);
|
|
96552
|
+
if (additionalContexts.length > 0) {
|
|
96553
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
96554
|
+
}
|
|
96555
|
+
}
|
|
96556
|
+
|
|
95418
96557
|
let compacted = await jsonld.compact(
|
|
95419
96558
|
values,
|
|
95420
96559
|
docContext,
|
|
@@ -95450,6 +96589,11 @@ get names(): ((string | LanguageString))[] {
|
|
|
95450
96589
|
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.length > 0
|
|
95451
96590
|
) return false;
|
|
95452
96591
|
|
|
96592
|
+
if (
|
|
96593
|
+
this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d != null &&
|
|
96594
|
+
this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 0
|
|
96595
|
+
) return false;
|
|
96596
|
+
|
|
95453
96597
|
return true;
|
|
95454
96598
|
}
|
|
95455
96599
|
|
|
@@ -95879,6 +97023,43 @@ get names(): ((string | LanguageString))[] {
|
|
|
95879
97023
|
|
|
95880
97024
|
}
|
|
95881
97025
|
instance.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
97026
|
+
const _2rzkBRS4gNPrkJk9DohHAMUAxA2d: (URL)[] = [];
|
|
97027
|
+
|
|
97028
|
+
let _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values[\\"http://purl.org/dc/terms/license\\"];
|
|
97029
|
+
|
|
97030
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null || _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length < 1) {
|
|
97031
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values[\\"https://schema.org/license\\"];
|
|
97032
|
+
}
|
|
97033
|
+
|
|
97034
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null || _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length < 1) {
|
|
97035
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values[\\"http://creativecommons.org/ns#license\\"];
|
|
97036
|
+
}
|
|
97037
|
+
|
|
97038
|
+
for (
|
|
97039
|
+
const v of _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null
|
|
97040
|
+
? []
|
|
97041
|
+
: _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length === 1 && \\"@list\\" in _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array[0]
|
|
97042
|
+
? _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array[0][\\"@list\\"]
|
|
97043
|
+
: _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array
|
|
97044
|
+
) {
|
|
97045
|
+
if (v == null) continue;
|
|
97046
|
+
|
|
97047
|
+
const decoded =
|
|
97048
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
97049
|
+
;
|
|
97050
|
+
|
|
97051
|
+
if (typeof decoded === \\"undefined\\") {
|
|
97052
|
+
shouldCacheJsonLd = false;
|
|
97053
|
+
continue;
|
|
97054
|
+
}
|
|
97055
|
+
|
|
97056
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
97057
|
+
shouldCacheJsonLd = false;
|
|
97058
|
+
}
|
|
97059
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d.push(decoded);
|
|
97060
|
+
|
|
97061
|
+
}
|
|
97062
|
+
instance.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = _2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
95882
97063
|
|
|
95883
97064
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
95884
97065
|
if (
|
|
@@ -96120,6 +97301,28 @@ get names(): ((string | LanguageString))[] {
|
|
|
96120
97301
|
proxy.previews = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
96121
97302
|
}
|
|
96122
97303
|
|
|
97304
|
+
const _2rzkBRS4gNPrkJk9DohHAMUAxA2d = this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d
|
|
97305
|
+
// deno-lint-ignore no-explicit-any
|
|
97306
|
+
.map((v: any) => v instanceof URL
|
|
97307
|
+
? {
|
|
97308
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
97309
|
+
inspect: typeof Deno.inspect,
|
|
97310
|
+
options: Deno.InspectOptions,
|
|
97311
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
97312
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
97313
|
+
_depth: number,
|
|
97314
|
+
options: unknown,
|
|
97315
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
97316
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
97317
|
+
}
|
|
97318
|
+
: v);
|
|
97319
|
+
|
|
97320
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 1
|
|
97321
|
+
|| !(\\"license\\" in proxy)
|
|
97322
|
+
&& _2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 0) {
|
|
97323
|
+
proxy.licenses = _2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
97324
|
+
}
|
|
97325
|
+
|
|
96123
97326
|
return proxy;
|
|
96124
97327
|
}
|
|
96125
97328
|
}
|
|
@@ -96172,7 +97375,7 @@ export class Hashtag extends Link {
|
|
|
96172
97375
|
id?: URL | null;
|
|
96173
97376
|
href?: URL | null;rel?: string | null;
|
|
96174
97377
|
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
96175
|
-
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
97378
|
+
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];licenses?: (URL)[];}
|
|
96176
97379
|
,
|
|
96177
97380
|
options: {
|
|
96178
97381
|
documentLoader?: DocumentLoader,
|
|
@@ -96203,7 +97406,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
96203
97406
|
id?: URL | null;
|
|
96204
97407
|
href?: URL | null;rel?: string | null;
|
|
96205
97408
|
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
96206
|
-
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
97409
|
+
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];licenses?: (URL)[];}
|
|
96207
97410
|
|
|
96208
97411
|
= {},
|
|
96209
97412
|
options: {
|
|
@@ -96302,6 +97505,17 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
96302
97505
|
}
|
|
96303
97506
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
96304
97507
|
[\\"https://www.w3.org/ns/activitystreams\\",{\\"Hashtag\\":\\"as:Hashtag\\"}];
|
|
97508
|
+
|
|
97509
|
+
if (options.context == null) {
|
|
97510
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
97511
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
97512
|
+
context => !currentContexts.includes(context)
|
|
97513
|
+
);
|
|
97514
|
+
if (additionalContexts.length > 0) {
|
|
97515
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
97516
|
+
}
|
|
97517
|
+
}
|
|
97518
|
+
|
|
96305
97519
|
let compacted = await jsonld.compact(
|
|
96306
97520
|
values,
|
|
96307
97521
|
docContext,
|
|
@@ -96568,7 +97782,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
96568
97782
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
96569
97783
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
96570
97784
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
96571
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
97785
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
96572
97786
|
,
|
|
96573
97787
|
options: {
|
|
96574
97788
|
documentLoader?: DocumentLoader,
|
|
@@ -96613,7 +97827,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
96613
97827
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
96614
97828
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
96615
97829
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
96616
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
97830
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
96617
97831
|
|
|
96618
97832
|
= {},
|
|
96619
97833
|
options: {
|
|
@@ -96712,6 +97926,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
96712
97926
|
}
|
|
96713
97927
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
96714
97928
|
[\\"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\\"];
|
|
97929
|
+
|
|
97930
|
+
if (options.context == null) {
|
|
97931
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
97932
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
97933
|
+
context => !currentContexts.includes(context)
|
|
97934
|
+
);
|
|
97935
|
+
if (additionalContexts.length > 0) {
|
|
97936
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
97937
|
+
}
|
|
97938
|
+
}
|
|
97939
|
+
|
|
96715
97940
|
let compacted = await jsonld.compact(
|
|
96716
97941
|
values,
|
|
96717
97942
|
docContext,
|
|
@@ -96992,7 +98217,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
96992
98217
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
96993
98218
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
96994
98219
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
96995
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
98220
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
96996
98221
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
96997
98222
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
96998
98223
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -97043,7 +98268,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
97043
98268
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
97044
98269
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
97045
98270
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
97046
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
98271
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
97047
98272
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
97048
98273
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
97049
98274
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -97129,6 +98354,17 @@ instruments?: (Object | URL)[];}
|
|
|
97129
98354
|
}
|
|
97130
98355
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
97131
98356
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
98357
|
+
|
|
98358
|
+
if (options.context == null) {
|
|
98359
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
98360
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
98361
|
+
context => !currentContexts.includes(context)
|
|
98362
|
+
);
|
|
98363
|
+
if (additionalContexts.length > 0) {
|
|
98364
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
98365
|
+
}
|
|
98366
|
+
}
|
|
98367
|
+
|
|
97132
98368
|
let compacted = await jsonld.compact(
|
|
97133
98369
|
values,
|
|
97134
98370
|
docContext,
|
|
@@ -97412,7 +98648,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
97412
98648
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
97413
98649
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
97414
98650
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
97415
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
98651
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
97416
98652
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
97417
98653
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
97418
98654
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -97463,7 +98699,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
97463
98699
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
97464
98700
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
97465
98701
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
97466
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
98702
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
97467
98703
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
97468
98704
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
97469
98705
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -97549,6 +98785,17 @@ instruments?: (Object | URL)[];}
|
|
|
97549
98785
|
}
|
|
97550
98786
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
97551
98787
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
98788
|
+
|
|
98789
|
+
if (options.context == null) {
|
|
98790
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
98791
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
98792
|
+
context => !currentContexts.includes(context)
|
|
98793
|
+
);
|
|
98794
|
+
if (additionalContexts.length > 0) {
|
|
98795
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
98796
|
+
}
|
|
98797
|
+
}
|
|
98798
|
+
|
|
97552
98799
|
let compacted = await jsonld.compact(
|
|
97553
98800
|
values,
|
|
97554
98801
|
docContext,
|
|
@@ -97828,7 +99075,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
97828
99075
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
97829
99076
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
97830
99077
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
97831
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
99078
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
97832
99079
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
97833
99080
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
97834
99081
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -97879,7 +99126,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
97879
99126
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
97880
99127
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
97881
99128
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
97882
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
99129
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
97883
99130
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
97884
99131
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
97885
99132
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -97965,6 +99212,17 @@ instruments?: (Object | URL)[];}
|
|
|
97965
99212
|
}
|
|
97966
99213
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
97967
99214
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
99215
|
+
|
|
99216
|
+
if (options.context == null) {
|
|
99217
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
99218
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
99219
|
+
context => !currentContexts.includes(context)
|
|
99220
|
+
);
|
|
99221
|
+
if (additionalContexts.length > 0) {
|
|
99222
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
99223
|
+
}
|
|
99224
|
+
}
|
|
99225
|
+
|
|
97968
99226
|
let compacted = await jsonld.compact(
|
|
97969
99227
|
values,
|
|
97970
99228
|
docContext,
|
|
@@ -98244,7 +99502,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
98244
99502
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
98245
99503
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
98246
99504
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
98247
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
99505
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
98248
99506
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
98249
99507
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
98250
99508
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -98295,7 +99553,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
98295
99553
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
98296
99554
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
98297
99555
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
98298
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
99556
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
98299
99557
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
98300
99558
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
98301
99559
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -98381,6 +99639,17 @@ instruments?: (Object | URL)[];}
|
|
|
98381
99639
|
}
|
|
98382
99640
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
98383
99641
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
99642
|
+
|
|
99643
|
+
if (options.context == null) {
|
|
99644
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
99645
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
99646
|
+
context => !currentContexts.includes(context)
|
|
99647
|
+
);
|
|
99648
|
+
if (additionalContexts.length > 0) {
|
|
99649
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
99650
|
+
}
|
|
99651
|
+
}
|
|
99652
|
+
|
|
98384
99653
|
let compacted = await jsonld.compact(
|
|
98385
99654
|
values,
|
|
98386
99655
|
docContext,
|
|
@@ -98660,7 +99929,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
98660
99929
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
98661
99930
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
98662
99931
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
98663
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
99932
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
98664
99933
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
98665
99934
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
98666
99935
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -98711,7 +99980,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
98711
99980
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
98712
99981
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
98713
99982
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
98714
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
99983
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
98715
99984
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
98716
99985
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
98717
99986
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -98797,6 +100066,17 @@ instruments?: (Object | URL)[];}
|
|
|
98797
100066
|
}
|
|
98798
100067
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
98799
100068
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\"}];
|
|
100069
|
+
|
|
100070
|
+
if (options.context == null) {
|
|
100071
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
100072
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
100073
|
+
context => !currentContexts.includes(context)
|
|
100074
|
+
);
|
|
100075
|
+
if (additionalContexts.length > 0) {
|
|
100076
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
100077
|
+
}
|
|
100078
|
+
}
|
|
100079
|
+
|
|
98800
100080
|
let compacted = await jsonld.compact(
|
|
98801
100081
|
values,
|
|
98802
100082
|
docContext,
|
|
@@ -99074,7 +100354,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
99074
100354
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
99075
100355
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
99076
100356
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
99077
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
100357
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
99078
100358
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
99079
100359
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
99080
100360
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -99125,7 +100405,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
99125
100405
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
99126
100406
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
99127
100407
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
99128
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
100408
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
99129
100409
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
99130
100410
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
99131
100411
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -99211,6 +100491,17 @@ instruments?: (Object | URL)[];}
|
|
|
99211
100491
|
}
|
|
99212
100492
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
99213
100493
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
100494
|
+
|
|
100495
|
+
if (options.context == null) {
|
|
100496
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
100497
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
100498
|
+
context => !currentContexts.includes(context)
|
|
100499
|
+
);
|
|
100500
|
+
if (additionalContexts.length > 0) {
|
|
100501
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
100502
|
+
}
|
|
100503
|
+
}
|
|
100504
|
+
|
|
99214
100505
|
let compacted = await jsonld.compact(
|
|
99215
100506
|
values,
|
|
99216
100507
|
docContext,
|
|
@@ -99474,7 +100765,7 @@ export class Mention extends Link {
|
|
|
99474
100765
|
id?: URL | null;
|
|
99475
100766
|
href?: URL | null;rel?: string | null;
|
|
99476
100767
|
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
99477
|
-
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
100768
|
+
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];licenses?: (URL)[];}
|
|
99478
100769
|
,
|
|
99479
100770
|
options: {
|
|
99480
100771
|
documentLoader?: DocumentLoader,
|
|
@@ -99505,7 +100796,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
99505
100796
|
id?: URL | null;
|
|
99506
100797
|
href?: URL | null;rel?: string | null;
|
|
99507
100798
|
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
99508
|
-
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
100799
|
+
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];licenses?: (URL)[];}
|
|
99509
100800
|
|
|
99510
100801
|
= {},
|
|
99511
100802
|
options: {
|
|
@@ -99604,6 +100895,17 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
99604
100895
|
}
|
|
99605
100896
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
99606
100897
|
\\"https://www.w3.org/ns/activitystreams\\";
|
|
100898
|
+
|
|
100899
|
+
if (options.context == null) {
|
|
100900
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
100901
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
100902
|
+
context => !currentContexts.includes(context)
|
|
100903
|
+
);
|
|
100904
|
+
if (additionalContexts.length > 0) {
|
|
100905
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
100906
|
+
}
|
|
100907
|
+
}
|
|
100908
|
+
|
|
99607
100909
|
let compacted = await jsonld.compact(
|
|
99608
100910
|
values,
|
|
99609
100911
|
docContext,
|
|
@@ -99873,7 +101175,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
99873
101175
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
99874
101176
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
99875
101177
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
99876
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
101178
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
99877
101179
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
99878
101180
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
99879
101181
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -99924,7 +101226,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
99924
101226
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
99925
101227
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
99926
101228
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
99927
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
101229
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
99928
101230
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
99929
101231
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
99930
101232
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -100010,6 +101312,17 @@ instruments?: (Object | URL)[];}
|
|
|
100010
101312
|
}
|
|
100011
101313
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
100012
101314
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
101315
|
+
|
|
101316
|
+
if (options.context == null) {
|
|
101317
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
101318
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
101319
|
+
context => !currentContexts.includes(context)
|
|
101320
|
+
);
|
|
101321
|
+
if (additionalContexts.length > 0) {
|
|
101322
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
101323
|
+
}
|
|
101324
|
+
}
|
|
101325
|
+
|
|
100013
101326
|
let compacted = await jsonld.compact(
|
|
100014
101327
|
values,
|
|
100015
101328
|
docContext,
|
|
@@ -100296,7 +101609,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
100296
101609
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
100297
101610
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
100298
101611
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
100299
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];quote?: Object | URL | null;quoteUrl?: URL | null;quoteAuthorization?: QuoteAuthorization | URL | null;}
|
|
101612
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];quote?: Object | URL | null;quoteUrl?: URL | null;quoteAuthorization?: QuoteAuthorization | URL | null;}
|
|
100300
101613
|
,
|
|
100301
101614
|
options: {
|
|
100302
101615
|
documentLoader?: DocumentLoader,
|
|
@@ -100380,7 +101693,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
100380
101693
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
100381
101694
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
100382
101695
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
100383
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];quote?: Object | URL | null;quoteUrl?: URL | null;quoteAuthorization?: QuoteAuthorization | URL | null;}
|
|
101696
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];quote?: Object | URL | null;quoteUrl?: URL | null;quoteAuthorization?: QuoteAuthorization | URL | null;}
|
|
100384
101697
|
|
|
100385
101698
|
= {},
|
|
100386
101699
|
options: {
|
|
@@ -101510,6 +102823,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
101510
102823
|
}
|
|
101511
102824
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
101512
102825
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"Emoji\\":\\"toot:Emoji\\",\\"Hashtag\\":\\"as:Hashtag\\",\\"quote\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quote\\",\\"@type\\":\\"@id\\"},\\"quoteUrl\\":\\"as:quoteUrl\\",\\"_misskey_quote\\":\\"misskey:_misskey_quote\\",\\"quoteUri\\":\\"fedibird:quoteUri\\",\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"quoteAuthorization\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"@type\\":\\"@id\\"},\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
102826
|
+
|
|
102827
|
+
if (options.context == null) {
|
|
102828
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
102829
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
102830
|
+
context => !currentContexts.includes(context)
|
|
102831
|
+
);
|
|
102832
|
+
if (additionalContexts.length > 0) {
|
|
102833
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
102834
|
+
}
|
|
102835
|
+
}
|
|
102836
|
+
|
|
101513
102837
|
let compacted = await jsonld.compact(
|
|
101514
102838
|
values,
|
|
101515
102839
|
docContext,
|
|
@@ -101975,7 +103299,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
101975
103299
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
101976
103300
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
101977
103301
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
101978
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;partOf?: Collection | URL | null;next?: CollectionPage | URL | null;prev?: CollectionPage | URL | null;items?: (Object | Link | URL)[];startIndex?: number | null;}
|
|
103302
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;partOf?: Collection | URL | null;next?: CollectionPage | URL | null;prev?: CollectionPage | URL | null;items?: (Object | Link | URL)[];startIndex?: number | null;}
|
|
101979
103303
|
,
|
|
101980
103304
|
options: {
|
|
101981
103305
|
documentLoader?: DocumentLoader,
|
|
@@ -102052,7 +103376,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
102052
103376
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
102053
103377
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
102054
103378
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
102055
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;partOf?: Collection | URL | null;next?: CollectionPage | URL | null;prev?: CollectionPage | URL | null;items?: (Object | Link | URL)[];startIndex?: number | null;}
|
|
103379
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];totalItems?: number | null;current?: CollectionPage | URL | null;first?: CollectionPage | URL | null;last?: CollectionPage | URL | null;likesOf?: Object | URL | null;sharesOf?: Object | URL | null;repliesOf?: Object | URL | null;inboxOf?: Object | URL | null;outboxOf?: Object | URL | null;followersOf?: Object | URL | null;followingOf?: Object | URL | null;likedOf?: Object | URL | null;partOf?: Collection | URL | null;next?: CollectionPage | URL | null;prev?: CollectionPage | URL | null;items?: (Object | Link | URL)[];startIndex?: number | null;}
|
|
102056
103380
|
|
|
102057
103381
|
= {},
|
|
102058
103382
|
options: {
|
|
@@ -102718,6 +104042,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
102718
104042
|
}
|
|
102719
104043
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
102720
104044
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"ChatMessage\\":\\"http://litepub.social/ns#ChatMessage\\",\\"sensitive\\":\\"as:sensitive\\",\\"votersCount\\":\\"toot:votersCount\\",\\"Emoji\\":\\"toot:Emoji\\",\\"Hashtag\\":\\"as:Hashtag\\",\\"quote\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quote\\",\\"@type\\":\\"@id\\"},\\"quoteUrl\\":\\"as:quoteUrl\\",\\"_misskey_quote\\":\\"misskey:_misskey_quote\\",\\"quoteUri\\":\\"fedibird:quoteUri\\",\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"QuoteRequest\\":\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"quoteAuthorization\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"@type\\":\\"@id\\"},\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
104045
|
+
|
|
104046
|
+
if (options.context == null) {
|
|
104047
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
104048
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
104049
|
+
context => !currentContexts.includes(context)
|
|
104050
|
+
);
|
|
104051
|
+
if (additionalContexts.length > 0) {
|
|
104052
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
104053
|
+
}
|
|
104054
|
+
}
|
|
104055
|
+
|
|
102721
104056
|
let compacted = await jsonld.compact(
|
|
102722
104057
|
values,
|
|
102723
104058
|
docContext,
|
|
@@ -103140,6 +104475,7 @@ export class Organization extends Object {
|
|
|
103140
104475
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service: Set<number> = new Set();
|
|
103141
104476
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage: (string)[] = [];
|
|
103142
104477
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat: (boolean)[] = [];
|
|
104478
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
103143
104479
|
|
|
103144
104480
|
/**
|
|
103145
104481
|
* Constructs a new instance of Organization with the given values.
|
|
@@ -103166,13 +104502,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
103166
104502
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
103167
104503
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
103168
104504
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
103169
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];preferredUsername?: string | LanguageString | null;
|
|
104505
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];preferredUsername?: string | LanguageString | null;
|
|
103170
104506
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
103171
104507
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
103172
104508
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
103173
104509
|
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;
|
|
103174
104510
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
103175
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
104511
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
103176
104512
|
,
|
|
103177
104513
|
options: {
|
|
103178
104514
|
documentLoader?: DocumentLoader,
|
|
@@ -103653,6 +104989,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
103653
104989
|
);
|
|
103654
104990
|
}
|
|
103655
104991
|
}
|
|
104992
|
+
|
|
104993
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
104994
|
+
if (values.preferredLicense instanceof URL) {
|
|
104995
|
+
// @ts-ignore: type is checked above.
|
|
104996
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
104997
|
+
|
|
104998
|
+
} else {
|
|
104999
|
+
throw new TypeError(
|
|
105000
|
+
\\"The preferredLicense must be of type \\" +
|
|
105001
|
+
\\"URL\\" + \\".\\",
|
|
105002
|
+
);
|
|
105003
|
+
}
|
|
105004
|
+
}
|
|
103656
105005
|
}
|
|
103657
105006
|
|
|
103658
105007
|
/**
|
|
@@ -103689,13 +105038,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
103689
105038
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
103690
105039
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
103691
105040
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
103692
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];preferredUsername?: string | LanguageString | null;
|
|
105041
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];preferredUsername?: string | LanguageString | null;
|
|
103693
105042
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
103694
105043
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
103695
105044
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
103696
105045
|
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;
|
|
103697
105046
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
103698
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
105047
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
103699
105048
|
|
|
103700
105049
|
= {},
|
|
103701
105050
|
options: {
|
|
@@ -104189,6 +105538,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
104189
105538
|
);
|
|
104190
105539
|
}
|
|
104191
105540
|
}
|
|
105541
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
105542
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
105543
|
+
if (values.preferredLicense instanceof URL) {
|
|
105544
|
+
// @ts-ignore: type is checked above.
|
|
105545
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
105546
|
+
|
|
105547
|
+
} else {
|
|
105548
|
+
throw new TypeError(
|
|
105549
|
+
\\"The preferredLicense must be of type \\" +
|
|
105550
|
+
\\"URL\\" + \\".\\",
|
|
105551
|
+
);
|
|
105552
|
+
}
|
|
105553
|
+
}
|
|
104192
105554
|
|
|
104193
105555
|
return clone;
|
|
104194
105556
|
}
|
|
@@ -111077,6 +112439,25 @@ get gateways(): (URL)[] {
|
|
|
111077
112439
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
111078
112440
|
}
|
|
111079
112441
|
|
|
112442
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
112443
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
112444
|
+
* as the default \`license\` of a new object and let the user choose another.
|
|
112445
|
+
*
|
|
112446
|
+
* This is not a fallback license: an object without its own \`license\` is not
|
|
112447
|
+
* licensed under its author's preferred license.
|
|
112448
|
+
*
|
|
112449
|
+
*/
|
|
112450
|
+
get preferredLicense(): (URL | null) {
|
|
112451
|
+
if (this._warning != null) {
|
|
112452
|
+
getLogger(this._warning.category).warn(
|
|
112453
|
+
this._warning.message,
|
|
112454
|
+
this._warning.values
|
|
112455
|
+
);
|
|
112456
|
+
}
|
|
112457
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
112458
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
112459
|
+
}
|
|
112460
|
+
|
|
111080
112461
|
/**
|
|
111081
112462
|
* Converts this object to a JSON-LD structure.
|
|
111082
112463
|
* @param options The options to use.
|
|
@@ -111605,6 +112986,22 @@ get gateways(): (URL)[] {
|
|
|
111605
112986
|
|
|
111606
112987
|
}
|
|
111607
112988
|
|
|
112989
|
+
compactItems = [];
|
|
112990
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
112991
|
+
const item = (
|
|
112992
|
+
formatIri(v)
|
|
112993
|
+
);
|
|
112994
|
+
compactItems.push(item);
|
|
112995
|
+
}
|
|
112996
|
+
if (compactItems.length > 0) {
|
|
112997
|
+
|
|
112998
|
+
result[\\"preferredLicense\\"]
|
|
112999
|
+
= compactItems.length > 1
|
|
113000
|
+
? compactItems
|
|
113001
|
+
: compactItems[0];
|
|
113002
|
+
|
|
113003
|
+
}
|
|
113004
|
+
|
|
111608
113005
|
result[\\"type\\"] = \\"Organization\\";
|
|
111609
113006
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
111610
113007
|
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\\"}];
|
|
@@ -112109,6 +113506,26 @@ get gateways(): (URL)[] {
|
|
|
112109
113506
|
|
|
112110
113507
|
}
|
|
112111
113508
|
|
|
113509
|
+
array = [];
|
|
113510
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
113511
|
+
let element = (
|
|
113512
|
+
{ \\"@id\\": formatIri(v) }
|
|
113513
|
+
);
|
|
113514
|
+
if (Array.isArray(element)) {
|
|
113515
|
+
if (element.length < 1) continue;
|
|
113516
|
+
if (element.length == 1) element = element[0];
|
|
113517
|
+
}
|
|
113518
|
+
if (typeof element === \\"undefined\\") continue;
|
|
113519
|
+
array.push(element);;
|
|
113520
|
+
}
|
|
113521
|
+
if (array.length > 0) {
|
|
113522
|
+
const propValue = (
|
|
113523
|
+
array
|
|
113524
|
+
);
|
|
113525
|
+
values[\\"https://w3id.org/fep/6757#preferredLicense\\"] = propValue;
|
|
113526
|
+
|
|
113527
|
+
}
|
|
113528
|
+
|
|
112112
113529
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Organization\\"];
|
|
112113
113530
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
112114
113531
|
if (options.format === \\"expand\\") {
|
|
@@ -112122,6 +113539,17 @@ get gateways(): (URL)[] {
|
|
|
112122
113539
|
}
|
|
112123
113540
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
112124
113541
|
[\\"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\\"}];
|
|
113542
|
+
|
|
113543
|
+
if (options.context == null) {
|
|
113544
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
113545
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
113546
|
+
context => !currentContexts.includes(context)
|
|
113547
|
+
);
|
|
113548
|
+
if (additionalContexts.length > 0) {
|
|
113549
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
113550
|
+
}
|
|
113551
|
+
}
|
|
113552
|
+
|
|
112125
113553
|
let compacted = await jsonld.compact(
|
|
112126
113554
|
values,
|
|
112127
113555
|
docContext,
|
|
@@ -112173,6 +113601,11 @@ get gateways(): (URL)[] {
|
|
|
112173
113601
|
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0
|
|
112174
113602
|
) return false;
|
|
112175
113603
|
|
|
113604
|
+
if (
|
|
113605
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null &&
|
|
113606
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0
|
|
113607
|
+
) return false;
|
|
113608
|
+
|
|
112176
113609
|
return super.isCompactable();
|
|
112177
113610
|
}
|
|
112178
113611
|
|
|
@@ -113231,6 +114664,35 @@ get gateways(): (URL)[] {
|
|
|
113231
114664
|
|
|
113232
114665
|
}
|
|
113233
114666
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
114667
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
114668
|
+
|
|
114669
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values[\\"https://w3id.org/fep/6757#preferredLicense\\"];
|
|
114670
|
+
|
|
114671
|
+
for (
|
|
114672
|
+
const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null
|
|
114673
|
+
? []
|
|
114674
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && \\"@list\\" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]
|
|
114675
|
+
? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0][\\"@list\\"]
|
|
114676
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array
|
|
114677
|
+
) {
|
|
114678
|
+
if (v == null) continue;
|
|
114679
|
+
|
|
114680
|
+
const decoded =
|
|
114681
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
114682
|
+
;
|
|
114683
|
+
|
|
114684
|
+
if (typeof decoded === \\"undefined\\") {
|
|
114685
|
+
shouldCacheJsonLd = false;
|
|
114686
|
+
continue;
|
|
114687
|
+
}
|
|
114688
|
+
|
|
114689
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
114690
|
+
shouldCacheJsonLd = false;
|
|
114691
|
+
}
|
|
114692
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
114693
|
+
|
|
114694
|
+
}
|
|
114695
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
113234
114696
|
|
|
113235
114697
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
113236
114698
|
if (
|
|
@@ -113781,6 +115243,26 @@ get gateways(): (URL)[] {
|
|
|
113781
115243
|
proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
113782
115244
|
}
|
|
113783
115245
|
|
|
115246
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense
|
|
115247
|
+
// deno-lint-ignore no-explicit-any
|
|
115248
|
+
.map((v: any) => v instanceof URL
|
|
115249
|
+
? {
|
|
115250
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
115251
|
+
inspect: typeof Deno.inspect,
|
|
115252
|
+
options: Deno.InspectOptions,
|
|
115253
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
115254
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
115255
|
+
_depth: number,
|
|
115256
|
+
options: unknown,
|
|
115257
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
115258
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
115259
|
+
}
|
|
115260
|
+
: v);
|
|
115261
|
+
|
|
115262
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) {
|
|
115263
|
+
proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
115264
|
+
}
|
|
115265
|
+
|
|
113784
115266
|
return proxy;
|
|
113785
115267
|
}
|
|
113786
115268
|
}
|
|
@@ -113844,7 +115326,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
113844
115326
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
113845
115327
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
113846
115328
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
113847
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
115329
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
113848
115330
|
,
|
|
113849
115331
|
options: {
|
|
113850
115332
|
documentLoader?: DocumentLoader,
|
|
@@ -113889,7 +115371,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
113889
115371
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
113890
115372
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
113891
115373
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
113892
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
115374
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
113893
115375
|
|
|
113894
115376
|
= {},
|
|
113895
115377
|
options: {
|
|
@@ -113988,6 +115470,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
113988
115470
|
}
|
|
113989
115471
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
113990
115472
|
[\\"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\\"];
|
|
115473
|
+
|
|
115474
|
+
if (options.context == null) {
|
|
115475
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
115476
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
115477
|
+
context => !currentContexts.includes(context)
|
|
115478
|
+
);
|
|
115479
|
+
if (additionalContexts.length > 0) {
|
|
115480
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
115481
|
+
}
|
|
115482
|
+
}
|
|
115483
|
+
|
|
113991
115484
|
let compacted = await jsonld.compact(
|
|
113992
115485
|
values,
|
|
113993
115486
|
docContext,
|
|
@@ -114291,6 +115784,7 @@ export class Person extends Object {
|
|
|
114291
115784
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service: Set<number> = new Set();
|
|
114292
115785
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage: (string)[] = [];
|
|
114293
115786
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat: (boolean)[] = [];
|
|
115787
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
114294
115788
|
|
|
114295
115789
|
/**
|
|
114296
115790
|
* Constructs a new instance of Person with the given values.
|
|
@@ -114317,13 +115811,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
114317
115811
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
114318
115812
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
114319
115813
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
114320
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];preferredUsername?: string | LanguageString | null;
|
|
115814
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];preferredUsername?: string | LanguageString | null;
|
|
114321
115815
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
114322
115816
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
114323
115817
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
114324
115818
|
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;
|
|
114325
115819
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
114326
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
115820
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
114327
115821
|
,
|
|
114328
115822
|
options: {
|
|
114329
115823
|
documentLoader?: DocumentLoader,
|
|
@@ -114804,6 +116298,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
114804
116298
|
);
|
|
114805
116299
|
}
|
|
114806
116300
|
}
|
|
116301
|
+
|
|
116302
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
116303
|
+
if (values.preferredLicense instanceof URL) {
|
|
116304
|
+
// @ts-ignore: type is checked above.
|
|
116305
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
116306
|
+
|
|
116307
|
+
} else {
|
|
116308
|
+
throw new TypeError(
|
|
116309
|
+
\\"The preferredLicense must be of type \\" +
|
|
116310
|
+
\\"URL\\" + \\".\\",
|
|
116311
|
+
);
|
|
116312
|
+
}
|
|
116313
|
+
}
|
|
114807
116314
|
}
|
|
114808
116315
|
|
|
114809
116316
|
/**
|
|
@@ -114840,13 +116347,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
114840
116347
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
114841
116348
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
114842
116349
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
114843
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];preferredUsername?: string | LanguageString | null;
|
|
116350
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];preferredUsername?: string | LanguageString | null;
|
|
114844
116351
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
114845
116352
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
114846
116353
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
114847
116354
|
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;
|
|
114848
116355
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
114849
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
116356
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
114850
116357
|
|
|
114851
116358
|
= {},
|
|
114852
116359
|
options: {
|
|
@@ -115340,6 +116847,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
115340
116847
|
);
|
|
115341
116848
|
}
|
|
115342
116849
|
}
|
|
116850
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
116851
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
116852
|
+
if (values.preferredLicense instanceof URL) {
|
|
116853
|
+
// @ts-ignore: type is checked above.
|
|
116854
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
116855
|
+
|
|
116856
|
+
} else {
|
|
116857
|
+
throw new TypeError(
|
|
116858
|
+
\\"The preferredLicense must be of type \\" +
|
|
116859
|
+
\\"URL\\" + \\".\\",
|
|
116860
|
+
);
|
|
116861
|
+
}
|
|
116862
|
+
}
|
|
115343
116863
|
|
|
115344
116864
|
return clone;
|
|
115345
116865
|
}
|
|
@@ -122228,6 +123748,25 @@ get gateways(): (URL)[] {
|
|
|
122228
123748
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
122229
123749
|
}
|
|
122230
123750
|
|
|
123751
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
123752
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
123753
|
+
* as the default \`license\` of a new object and let the user choose another.
|
|
123754
|
+
*
|
|
123755
|
+
* This is not a fallback license: an object without its own \`license\` is not
|
|
123756
|
+
* licensed under its author's preferred license.
|
|
123757
|
+
*
|
|
123758
|
+
*/
|
|
123759
|
+
get preferredLicense(): (URL | null) {
|
|
123760
|
+
if (this._warning != null) {
|
|
123761
|
+
getLogger(this._warning.category).warn(
|
|
123762
|
+
this._warning.message,
|
|
123763
|
+
this._warning.values
|
|
123764
|
+
);
|
|
123765
|
+
}
|
|
123766
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
123767
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
123768
|
+
}
|
|
123769
|
+
|
|
122231
123770
|
/**
|
|
122232
123771
|
* Converts this object to a JSON-LD structure.
|
|
122233
123772
|
* @param options The options to use.
|
|
@@ -122756,6 +124295,22 @@ get gateways(): (URL)[] {
|
|
|
122756
124295
|
|
|
122757
124296
|
}
|
|
122758
124297
|
|
|
124298
|
+
compactItems = [];
|
|
124299
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
124300
|
+
const item = (
|
|
124301
|
+
formatIri(v)
|
|
124302
|
+
);
|
|
124303
|
+
compactItems.push(item);
|
|
124304
|
+
}
|
|
124305
|
+
if (compactItems.length > 0) {
|
|
124306
|
+
|
|
124307
|
+
result[\\"preferredLicense\\"]
|
|
124308
|
+
= compactItems.length > 1
|
|
124309
|
+
? compactItems
|
|
124310
|
+
: compactItems[0];
|
|
124311
|
+
|
|
124312
|
+
}
|
|
124313
|
+
|
|
122759
124314
|
result[\\"type\\"] = \\"Person\\";
|
|
122760
124315
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
122761
124316
|
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\\"}];
|
|
@@ -123260,6 +124815,26 @@ get gateways(): (URL)[] {
|
|
|
123260
124815
|
|
|
123261
124816
|
}
|
|
123262
124817
|
|
|
124818
|
+
array = [];
|
|
124819
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
124820
|
+
let element = (
|
|
124821
|
+
{ \\"@id\\": formatIri(v) }
|
|
124822
|
+
);
|
|
124823
|
+
if (Array.isArray(element)) {
|
|
124824
|
+
if (element.length < 1) continue;
|
|
124825
|
+
if (element.length == 1) element = element[0];
|
|
124826
|
+
}
|
|
124827
|
+
if (typeof element === \\"undefined\\") continue;
|
|
124828
|
+
array.push(element);;
|
|
124829
|
+
}
|
|
124830
|
+
if (array.length > 0) {
|
|
124831
|
+
const propValue = (
|
|
124832
|
+
array
|
|
124833
|
+
);
|
|
124834
|
+
values[\\"https://w3id.org/fep/6757#preferredLicense\\"] = propValue;
|
|
124835
|
+
|
|
124836
|
+
}
|
|
124837
|
+
|
|
123263
124838
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Person\\"];
|
|
123264
124839
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
123265
124840
|
if (options.format === \\"expand\\") {
|
|
@@ -123273,6 +124848,17 @@ get gateways(): (URL)[] {
|
|
|
123273
124848
|
}
|
|
123274
124849
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
123275
124850
|
[\\"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\\"}];
|
|
124851
|
+
|
|
124852
|
+
if (options.context == null) {
|
|
124853
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
124854
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
124855
|
+
context => !currentContexts.includes(context)
|
|
124856
|
+
);
|
|
124857
|
+
if (additionalContexts.length > 0) {
|
|
124858
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
124859
|
+
}
|
|
124860
|
+
}
|
|
124861
|
+
|
|
123276
124862
|
let compacted = await jsonld.compact(
|
|
123277
124863
|
values,
|
|
123278
124864
|
docContext,
|
|
@@ -123324,6 +124910,11 @@ get gateways(): (URL)[] {
|
|
|
123324
124910
|
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0
|
|
123325
124911
|
) return false;
|
|
123326
124912
|
|
|
124913
|
+
if (
|
|
124914
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null &&
|
|
124915
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0
|
|
124916
|
+
) return false;
|
|
124917
|
+
|
|
123327
124918
|
return super.isCompactable();
|
|
123328
124919
|
}
|
|
123329
124920
|
|
|
@@ -124382,6 +125973,35 @@ get gateways(): (URL)[] {
|
|
|
124382
125973
|
|
|
124383
125974
|
}
|
|
124384
125975
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
125976
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
125977
|
+
|
|
125978
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values[\\"https://w3id.org/fep/6757#preferredLicense\\"];
|
|
125979
|
+
|
|
125980
|
+
for (
|
|
125981
|
+
const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null
|
|
125982
|
+
? []
|
|
125983
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && \\"@list\\" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]
|
|
125984
|
+
? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0][\\"@list\\"]
|
|
125985
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array
|
|
125986
|
+
) {
|
|
125987
|
+
if (v == null) continue;
|
|
125988
|
+
|
|
125989
|
+
const decoded =
|
|
125990
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
125991
|
+
;
|
|
125992
|
+
|
|
125993
|
+
if (typeof decoded === \\"undefined\\") {
|
|
125994
|
+
shouldCacheJsonLd = false;
|
|
125995
|
+
continue;
|
|
125996
|
+
}
|
|
125997
|
+
|
|
125998
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
125999
|
+
shouldCacheJsonLd = false;
|
|
126000
|
+
}
|
|
126001
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
126002
|
+
|
|
126003
|
+
}
|
|
126004
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
124385
126005
|
|
|
124386
126006
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
124387
126007
|
if (
|
|
@@ -124932,6 +126552,26 @@ get gateways(): (URL)[] {
|
|
|
124932
126552
|
proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
124933
126553
|
}
|
|
124934
126554
|
|
|
126555
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense
|
|
126556
|
+
// deno-lint-ignore no-explicit-any
|
|
126557
|
+
.map((v: any) => v instanceof URL
|
|
126558
|
+
? {
|
|
126559
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
126560
|
+
inspect: typeof Deno.inspect,
|
|
126561
|
+
options: Deno.InspectOptions,
|
|
126562
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
126563
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
126564
|
+
_depth: number,
|
|
126565
|
+
options: unknown,
|
|
126566
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
126567
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
126568
|
+
}
|
|
126569
|
+
: v);
|
|
126570
|
+
|
|
126571
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) {
|
|
126572
|
+
proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
126573
|
+
}
|
|
126574
|
+
|
|
124935
126575
|
return proxy;
|
|
124936
126576
|
}
|
|
124937
126577
|
}
|
|
@@ -125004,7 +126644,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
125004
126644
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
125005
126645
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
125006
126646
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
125007
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];accuracy?: number | null;altitude?: number | null;latitude?: number | null;longitude?: number | null;radius?: number | null;units?: \\"cm\\" | \\"feet\\" | \\"inches\\" | \\"km\\" | \\"m\\" | \\"miles\\" | URL | null;}
|
|
126647
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];accuracy?: number | null;altitude?: number | null;latitude?: number | null;longitude?: number | null;radius?: number | null;units?: \\"cm\\" | \\"feet\\" | \\"inches\\" | \\"km\\" | \\"m\\" | \\"miles\\" | URL | null;}
|
|
125008
126648
|
,
|
|
125009
126649
|
options: {
|
|
125010
126650
|
documentLoader?: DocumentLoader,
|
|
@@ -125127,7 +126767,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
125127
126767
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
125128
126768
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
125129
126769
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
125130
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];accuracy?: number | null;altitude?: number | null;latitude?: number | null;longitude?: number | null;radius?: number | null;units?: \\"cm\\" | \\"feet\\" | \\"inches\\" | \\"km\\" | \\"m\\" | \\"miles\\" | URL | null;}
|
|
126770
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];accuracy?: number | null;altitude?: number | null;latitude?: number | null;longitude?: number | null;radius?: number | null;units?: \\"cm\\" | \\"feet\\" | \\"inches\\" | \\"km\\" | \\"m\\" | \\"miles\\" | URL | null;}
|
|
125131
126771
|
|
|
125132
126772
|
= {},
|
|
125133
126773
|
options: {
|
|
@@ -125625,6 +127265,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
125625
127265
|
}
|
|
125626
127266
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
125627
127267
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
127268
|
+
|
|
127269
|
+
if (options.context == null) {
|
|
127270
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
127271
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
127272
|
+
context => !currentContexts.includes(context)
|
|
127273
|
+
);
|
|
127274
|
+
if (additionalContexts.length > 0) {
|
|
127275
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
127276
|
+
}
|
|
127277
|
+
}
|
|
127278
|
+
|
|
125628
127279
|
let compacted = await jsonld.compact(
|
|
125629
127280
|
values,
|
|
125630
127281
|
docContext,
|
|
@@ -126207,7 +127858,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
126207
127858
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
126208
127859
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
126209
127860
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
126210
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];describes?: Object | URL | null;}
|
|
127861
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];describes?: Object | URL | null;}
|
|
126211
127862
|
,
|
|
126212
127863
|
options: {
|
|
126213
127864
|
documentLoader?: DocumentLoader,
|
|
@@ -126265,7 +127916,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
126265
127916
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
126266
127917
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
126267
127918
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
126268
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];describes?: Object | URL | null;}
|
|
127919
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];describes?: Object | URL | null;}
|
|
126269
127920
|
|
|
126270
127921
|
= {},
|
|
126271
127922
|
options: {
|
|
@@ -126836,6 +128487,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
126836
128487
|
}
|
|
126837
128488
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
126838
128489
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
128490
|
+
|
|
128491
|
+
if (options.context == null) {
|
|
128492
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
128493
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
128494
|
+
context => !currentContexts.includes(context)
|
|
128495
|
+
);
|
|
128496
|
+
if (additionalContexts.length > 0) {
|
|
128497
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
128498
|
+
}
|
|
128499
|
+
}
|
|
128500
|
+
|
|
126839
128501
|
let compacted = await jsonld.compact(
|
|
126840
128502
|
values,
|
|
126841
128503
|
docContext,
|
|
@@ -127197,7 +128859,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
127197
128859
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
127198
128860
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
127199
128861
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
127200
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
128862
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
127201
128863
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
127202
128864
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
127203
128865
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -127351,7 +129013,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
127351
129013
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
127352
129014
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
127353
129015
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
127354
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
129016
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
127355
129017
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
127356
129018
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
127357
129019
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -129434,6 +131096,17 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
|
|
|
129434
131096
|
}
|
|
129435
131097
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
129436
131098
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"votersCount\\":{\\"@id\\":\\"toot:votersCount\\",\\"@type\\":\\"http://www.w3.org/2001/XMLSchema#nonNegativeInteger\\"},\\"Emoji\\":\\"toot:Emoji\\",\\"Hashtag\\":\\"as:Hashtag\\",\\"quote\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quote\\",\\"@type\\":\\"@id\\"},\\"quoteUrl\\":\\"as:quoteUrl\\",\\"_misskey_quote\\":\\"misskey:_misskey_quote\\",\\"quoteUri\\":\\"fedibird:quoteUri\\",\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"quoteAuthorization\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"@type\\":\\"@id\\"},\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
131099
|
+
|
|
131100
|
+
if (options.context == null) {
|
|
131101
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
131102
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
131103
|
+
context => !currentContexts.includes(context)
|
|
131104
|
+
);
|
|
131105
|
+
if (additionalContexts.length > 0) {
|
|
131106
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
131107
|
+
}
|
|
131108
|
+
}
|
|
131109
|
+
|
|
129437
131110
|
let compacted = await jsonld.compact(
|
|
129438
131111
|
values,
|
|
129439
131112
|
docContext,
|
|
@@ -130127,7 +131800,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
130127
131800
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
130128
131801
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
130129
131802
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
130130
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
131803
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
130131
131804
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
130132
131805
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
130133
131806
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -130178,7 +131851,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
130178
131851
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
130179
131852
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
130180
131853
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
130181
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
131854
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
130182
131855
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
130183
131856
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
130184
131857
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -130264,6 +131937,17 @@ instruments?: (Object | URL)[];}
|
|
|
130264
131937
|
}
|
|
130265
131938
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
130266
131939
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
131940
|
+
|
|
131941
|
+
if (options.context == null) {
|
|
131942
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
131943
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
131944
|
+
context => !currentContexts.includes(context)
|
|
131945
|
+
);
|
|
131946
|
+
if (additionalContexts.length > 0) {
|
|
131947
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
131948
|
+
}
|
|
131949
|
+
}
|
|
131950
|
+
|
|
130267
131951
|
let compacted = await jsonld.compact(
|
|
130268
131952
|
values,
|
|
130269
131953
|
docContext,
|
|
@@ -130543,7 +132227,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
130543
132227
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
130544
132228
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
130545
132229
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
130546
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
132230
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
130547
132231
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
130548
132232
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
130549
132233
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -130594,7 +132278,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
130594
132278
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
130595
132279
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
130596
132280
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
130597
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
132281
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
130598
132282
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
130599
132283
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
130600
132284
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -130680,6 +132364,17 @@ instruments?: (Object | URL)[];}
|
|
|
130680
132364
|
}
|
|
130681
132365
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
130682
132366
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
132367
|
+
|
|
132368
|
+
if (options.context == null) {
|
|
132369
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
132370
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
132371
|
+
context => !currentContexts.includes(context)
|
|
132372
|
+
);
|
|
132373
|
+
if (additionalContexts.length > 0) {
|
|
132374
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
132375
|
+
}
|
|
132376
|
+
}
|
|
132377
|
+
|
|
130683
132378
|
let compacted = await jsonld.compact(
|
|
130684
132379
|
values,
|
|
130685
132380
|
docContext,
|
|
@@ -130977,7 +132672,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
130977
132672
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
130978
132673
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
130979
132674
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
130980
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];subject?: Object | URL | null;object?: Object | URL | null;
|
|
132675
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];subject?: Object | URL | null;object?: Object | URL | null;
|
|
130981
132676
|
objects?: (Object | URL)[];relationship?: Object | URL | null;
|
|
130982
132677
|
relationships?: (Object | URL)[];}
|
|
130983
132678
|
,
|
|
@@ -131117,7 +132812,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
131117
132812
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
131118
132813
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
131119
132814
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
131120
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];subject?: Object | URL | null;object?: Object | URL | null;
|
|
132815
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];subject?: Object | URL | null;object?: Object | URL | null;
|
|
131121
132816
|
objects?: (Object | URL)[];relationship?: Object | URL | null;
|
|
131122
132817
|
relationships?: (Object | URL)[];}
|
|
131123
132818
|
|
|
@@ -133016,6 +134711,17 @@ relationships?: (Object | URL)[];}
|
|
|
133016
134711
|
}
|
|
133017
134712
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
133018
134713
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
134714
|
+
|
|
134715
|
+
if (options.context == null) {
|
|
134716
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
134717
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
134718
|
+
context => !currentContexts.includes(context)
|
|
134719
|
+
);
|
|
134720
|
+
if (additionalContexts.length > 0) {
|
|
134721
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
134722
|
+
}
|
|
134723
|
+
}
|
|
134724
|
+
|
|
133019
134725
|
let compacted = await jsonld.compact(
|
|
133020
134726
|
values,
|
|
133021
134727
|
docContext,
|
|
@@ -133490,7 +135196,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
133490
135196
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
133491
135197
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
133492
135198
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
133493
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
135199
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
133494
135200
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
133495
135201
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
133496
135202
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -133541,7 +135247,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
133541
135247
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
133542
135248
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
133543
135249
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
133544
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
135250
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
133545
135251
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
133546
135252
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
133547
135253
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -133627,6 +135333,17 @@ instruments?: (Object | URL)[];}
|
|
|
133627
135333
|
}
|
|
133628
135334
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
133629
135335
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
135336
|
+
|
|
135337
|
+
if (options.context == null) {
|
|
135338
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
135339
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
135340
|
+
context => !currentContexts.includes(context)
|
|
135341
|
+
);
|
|
135342
|
+
if (additionalContexts.length > 0) {
|
|
135343
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
135344
|
+
}
|
|
135345
|
+
}
|
|
135346
|
+
|
|
133630
135347
|
let compacted = await jsonld.compact(
|
|
133631
135348
|
values,
|
|
133632
135349
|
docContext,
|
|
@@ -133930,6 +135647,7 @@ export class Service extends Object {
|
|
|
133930
135647
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service: Set<number> = new Set();
|
|
133931
135648
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage: (string)[] = [];
|
|
133932
135649
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat: (boolean)[] = [];
|
|
135650
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
133933
135651
|
|
|
133934
135652
|
/**
|
|
133935
135653
|
* Constructs a new instance of Service with the given values.
|
|
@@ -133956,13 +135674,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
133956
135674
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
133957
135675
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
133958
135676
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
133959
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];preferredUsername?: string | LanguageString | null;
|
|
135677
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];preferredUsername?: string | LanguageString | null;
|
|
133960
135678
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
133961
135679
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
133962
135680
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
133963
135681
|
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;
|
|
133964
135682
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
133965
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
135683
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
133966
135684
|
,
|
|
133967
135685
|
options: {
|
|
133968
135686
|
documentLoader?: DocumentLoader,
|
|
@@ -134443,6 +136161,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
134443
136161
|
);
|
|
134444
136162
|
}
|
|
134445
136163
|
}
|
|
136164
|
+
|
|
136165
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
136166
|
+
if (values.preferredLicense instanceof URL) {
|
|
136167
|
+
// @ts-ignore: type is checked above.
|
|
136168
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
136169
|
+
|
|
136170
|
+
} else {
|
|
136171
|
+
throw new TypeError(
|
|
136172
|
+
\\"The preferredLicense must be of type \\" +
|
|
136173
|
+
\\"URL\\" + \\".\\",
|
|
136174
|
+
);
|
|
136175
|
+
}
|
|
136176
|
+
}
|
|
134446
136177
|
}
|
|
134447
136178
|
|
|
134448
136179
|
/**
|
|
@@ -134479,13 +136210,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
134479
136210
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
134480
136211
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
134481
136212
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
134482
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];preferredUsername?: string | LanguageString | null;
|
|
136213
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];preferredUsername?: string | LanguageString | null;
|
|
134483
136214
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
134484
136215
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
134485
136216
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
134486
136217
|
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;
|
|
134487
136218
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
134488
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
136219
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
134489
136220
|
|
|
134490
136221
|
= {},
|
|
134491
136222
|
options: {
|
|
@@ -134979,6 +136710,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
134979
136710
|
);
|
|
134980
136711
|
}
|
|
134981
136712
|
}
|
|
136713
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
136714
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
136715
|
+
if (values.preferredLicense instanceof URL) {
|
|
136716
|
+
// @ts-ignore: type is checked above.
|
|
136717
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
136718
|
+
|
|
136719
|
+
} else {
|
|
136720
|
+
throw new TypeError(
|
|
136721
|
+
\\"The preferredLicense must be of type \\" +
|
|
136722
|
+
\\"URL\\" + \\".\\",
|
|
136723
|
+
);
|
|
136724
|
+
}
|
|
136725
|
+
}
|
|
134982
136726
|
|
|
134983
136727
|
return clone;
|
|
134984
136728
|
}
|
|
@@ -141867,6 +143611,25 @@ get gateways(): (URL)[] {
|
|
|
141867
143611
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
141868
143612
|
}
|
|
141869
143613
|
|
|
143614
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
143615
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
143616
|
+
* as the default \`license\` of a new object and let the user choose another.
|
|
143617
|
+
*
|
|
143618
|
+
* This is not a fallback license: an object without its own \`license\` is not
|
|
143619
|
+
* licensed under its author's preferred license.
|
|
143620
|
+
*
|
|
143621
|
+
*/
|
|
143622
|
+
get preferredLicense(): (URL | null) {
|
|
143623
|
+
if (this._warning != null) {
|
|
143624
|
+
getLogger(this._warning.category).warn(
|
|
143625
|
+
this._warning.message,
|
|
143626
|
+
this._warning.values
|
|
143627
|
+
);
|
|
143628
|
+
}
|
|
143629
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
143630
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
143631
|
+
}
|
|
143632
|
+
|
|
141870
143633
|
/**
|
|
141871
143634
|
* Converts this object to a JSON-LD structure.
|
|
141872
143635
|
* @param options The options to use.
|
|
@@ -142395,6 +144158,22 @@ get gateways(): (URL)[] {
|
|
|
142395
144158
|
|
|
142396
144159
|
}
|
|
142397
144160
|
|
|
144161
|
+
compactItems = [];
|
|
144162
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
144163
|
+
const item = (
|
|
144164
|
+
formatIri(v)
|
|
144165
|
+
);
|
|
144166
|
+
compactItems.push(item);
|
|
144167
|
+
}
|
|
144168
|
+
if (compactItems.length > 0) {
|
|
144169
|
+
|
|
144170
|
+
result[\\"preferredLicense\\"]
|
|
144171
|
+
= compactItems.length > 1
|
|
144172
|
+
? compactItems
|
|
144173
|
+
: compactItems[0];
|
|
144174
|
+
|
|
144175
|
+
}
|
|
144176
|
+
|
|
142398
144177
|
result[\\"type\\"] = \\"Service\\";
|
|
142399
144178
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
142400
144179
|
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\\"}];
|
|
@@ -142899,6 +144678,26 @@ get gateways(): (URL)[] {
|
|
|
142899
144678
|
|
|
142900
144679
|
}
|
|
142901
144680
|
|
|
144681
|
+
array = [];
|
|
144682
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
144683
|
+
let element = (
|
|
144684
|
+
{ \\"@id\\": formatIri(v) }
|
|
144685
|
+
);
|
|
144686
|
+
if (Array.isArray(element)) {
|
|
144687
|
+
if (element.length < 1) continue;
|
|
144688
|
+
if (element.length == 1) element = element[0];
|
|
144689
|
+
}
|
|
144690
|
+
if (typeof element === \\"undefined\\") continue;
|
|
144691
|
+
array.push(element);;
|
|
144692
|
+
}
|
|
144693
|
+
if (array.length > 0) {
|
|
144694
|
+
const propValue = (
|
|
144695
|
+
array
|
|
144696
|
+
);
|
|
144697
|
+
values[\\"https://w3id.org/fep/6757#preferredLicense\\"] = propValue;
|
|
144698
|
+
|
|
144699
|
+
}
|
|
144700
|
+
|
|
142902
144701
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Service\\"];
|
|
142903
144702
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
142904
144703
|
if (options.format === \\"expand\\") {
|
|
@@ -142912,6 +144711,17 @@ get gateways(): (URL)[] {
|
|
|
142912
144711
|
}
|
|
142913
144712
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
142914
144713
|
[\\"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\\"}];
|
|
144714
|
+
|
|
144715
|
+
if (options.context == null) {
|
|
144716
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
144717
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
144718
|
+
context => !currentContexts.includes(context)
|
|
144719
|
+
);
|
|
144720
|
+
if (additionalContexts.length > 0) {
|
|
144721
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
144722
|
+
}
|
|
144723
|
+
}
|
|
144724
|
+
|
|
142915
144725
|
let compacted = await jsonld.compact(
|
|
142916
144726
|
values,
|
|
142917
144727
|
docContext,
|
|
@@ -142963,6 +144773,11 @@ get gateways(): (URL)[] {
|
|
|
142963
144773
|
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0
|
|
142964
144774
|
) return false;
|
|
142965
144775
|
|
|
144776
|
+
if (
|
|
144777
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null &&
|
|
144778
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0
|
|
144779
|
+
) return false;
|
|
144780
|
+
|
|
142966
144781
|
return super.isCompactable();
|
|
142967
144782
|
}
|
|
142968
144783
|
|
|
@@ -144021,6 +145836,35 @@ get gateways(): (URL)[] {
|
|
|
144021
145836
|
|
|
144022
145837
|
}
|
|
144023
145838
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
145839
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
145840
|
+
|
|
145841
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values[\\"https://w3id.org/fep/6757#preferredLicense\\"];
|
|
145842
|
+
|
|
145843
|
+
for (
|
|
145844
|
+
const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null
|
|
145845
|
+
? []
|
|
145846
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && \\"@list\\" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]
|
|
145847
|
+
? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0][\\"@list\\"]
|
|
145848
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array
|
|
145849
|
+
) {
|
|
145850
|
+
if (v == null) continue;
|
|
145851
|
+
|
|
145852
|
+
const decoded =
|
|
145853
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
145854
|
+
;
|
|
145855
|
+
|
|
145856
|
+
if (typeof decoded === \\"undefined\\") {
|
|
145857
|
+
shouldCacheJsonLd = false;
|
|
145858
|
+
continue;
|
|
145859
|
+
}
|
|
145860
|
+
|
|
145861
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
145862
|
+
shouldCacheJsonLd = false;
|
|
145863
|
+
}
|
|
145864
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
145865
|
+
|
|
145866
|
+
}
|
|
145867
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
144024
145868
|
|
|
144025
145869
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
144026
145870
|
if (
|
|
@@ -144571,6 +146415,26 @@ get gateways(): (URL)[] {
|
|
|
144571
146415
|
proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
144572
146416
|
}
|
|
144573
146417
|
|
|
146418
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense
|
|
146419
|
+
// deno-lint-ignore no-explicit-any
|
|
146420
|
+
.map((v: any) => v instanceof URL
|
|
146421
|
+
? {
|
|
146422
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
146423
|
+
inspect: typeof Deno.inspect,
|
|
146424
|
+
options: Deno.InspectOptions,
|
|
146425
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
146426
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
146427
|
+
_depth: number,
|
|
146428
|
+
options: unknown,
|
|
146429
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
146430
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
146431
|
+
}
|
|
146432
|
+
: v);
|
|
146433
|
+
|
|
146434
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) {
|
|
146435
|
+
proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
146436
|
+
}
|
|
146437
|
+
|
|
144574
146438
|
return proxy;
|
|
144575
146439
|
}
|
|
144576
146440
|
}
|
|
@@ -145032,6 +146896,17 @@ get contents(): ((string | LanguageString))[] {
|
|
|
145032
146896
|
}
|
|
145033
146897
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
145034
146898
|
\\"https://www.w3.org/ns/activitystreams\\";
|
|
146899
|
+
|
|
146900
|
+
if (options.context == null) {
|
|
146901
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
146902
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
146903
|
+
context => !currentContexts.includes(context)
|
|
146904
|
+
);
|
|
146905
|
+
if (additionalContexts.length > 0) {
|
|
146906
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
146907
|
+
}
|
|
146908
|
+
}
|
|
146909
|
+
|
|
145035
146910
|
let compacted = await jsonld.compact(
|
|
145036
146911
|
values,
|
|
145037
146912
|
docContext,
|
|
@@ -145424,7 +147299,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
145424
147299
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
145425
147300
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
145426
147301
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
145427
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
147302
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
145428
147303
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
145429
147304
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
145430
147305
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -145475,7 +147350,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
145475
147350
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
145476
147351
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
145477
147352
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
145478
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
147353
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
145479
147354
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
145480
147355
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
145481
147356
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -145561,6 +147436,17 @@ instruments?: (Object | URL)[];}
|
|
|
145561
147436
|
}
|
|
145562
147437
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
145563
147438
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
147439
|
+
|
|
147440
|
+
if (options.context == null) {
|
|
147441
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
147442
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
147443
|
+
context => !currentContexts.includes(context)
|
|
147444
|
+
);
|
|
147445
|
+
if (additionalContexts.length > 0) {
|
|
147446
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
147447
|
+
}
|
|
147448
|
+
}
|
|
147449
|
+
|
|
145564
147450
|
let compacted = await jsonld.compact(
|
|
145565
147451
|
values,
|
|
145566
147452
|
docContext,
|
|
@@ -145840,7 +147726,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
145840
147726
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
145841
147727
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
145842
147728
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
145843
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
147729
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
145844
147730
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
145845
147731
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
145846
147732
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -145891,7 +147777,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
145891
147777
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
145892
147778
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
145893
147779
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
145894
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
147780
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
145895
147781
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
145896
147782
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
145897
147783
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -145977,6 +147863,17 @@ instruments?: (Object | URL)[];}
|
|
|
145977
147863
|
}
|
|
145978
147864
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
145979
147865
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
147866
|
+
|
|
147867
|
+
if (options.context == null) {
|
|
147868
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
147869
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
147870
|
+
context => !currentContexts.includes(context)
|
|
147871
|
+
);
|
|
147872
|
+
if (additionalContexts.length > 0) {
|
|
147873
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
147874
|
+
}
|
|
147875
|
+
}
|
|
147876
|
+
|
|
145980
147877
|
let compacted = await jsonld.compact(
|
|
145981
147878
|
values,
|
|
145982
147879
|
docContext,
|
|
@@ -146259,7 +148156,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
146259
148156
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
146260
148157
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
146261
148158
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
146262
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];formerType?: $EntityType | null;
|
|
148159
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];formerType?: $EntityType | null;
|
|
146263
148160
|
formerTypes?: ($EntityType)[];deleted?: Temporal.Instant | null;}
|
|
146264
148161
|
,
|
|
146265
148162
|
options: {
|
|
@@ -146354,7 +148251,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
146354
148251
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
146355
148252
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
146356
148253
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
146357
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];formerType?: $EntityType | null;
|
|
148254
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];formerType?: $EntityType | null;
|
|
146358
148255
|
formerTypes?: ($EntityType)[];deleted?: Temporal.Instant | null;}
|
|
146359
148256
|
|
|
146360
148257
|
= {},
|
|
@@ -146616,6 +148513,17 @@ get formerTypes(): ($EntityType)[] {
|
|
|
146616
148513
|
}
|
|
146617
148514
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
146618
148515
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
148516
|
+
|
|
148517
|
+
if (options.context == null) {
|
|
148518
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
148519
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
148520
|
+
context => !currentContexts.includes(context)
|
|
148521
|
+
);
|
|
148522
|
+
if (additionalContexts.length > 0) {
|
|
148523
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
148524
|
+
}
|
|
148525
|
+
}
|
|
148526
|
+
|
|
146619
148527
|
let compacted = await jsonld.compact(
|
|
146620
148528
|
values,
|
|
146621
148529
|
docContext,
|
|
@@ -147023,7 +148931,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
147023
148931
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
147024
148932
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
147025
148933
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
147026
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
148934
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
147027
148935
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
147028
148936
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
147029
148937
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -147074,7 +148982,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
147074
148982
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
147075
148983
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
147076
148984
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
147077
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
148985
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
147078
148986
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
147079
148987
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
147080
148988
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -147160,6 +149068,17 @@ instruments?: (Object | URL)[];}
|
|
|
147160
149068
|
}
|
|
147161
149069
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
147162
149070
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
149071
|
+
|
|
149072
|
+
if (options.context == null) {
|
|
149073
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
149074
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
149075
|
+
context => !currentContexts.includes(context)
|
|
149076
|
+
);
|
|
149077
|
+
if (additionalContexts.length > 0) {
|
|
149078
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
149079
|
+
}
|
|
149080
|
+
}
|
|
149081
|
+
|
|
147163
149082
|
let compacted = await jsonld.compact(
|
|
147164
149083
|
values,
|
|
147165
149084
|
docContext,
|
|
@@ -147444,7 +149363,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
147444
149363
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
147445
149364
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
147446
149365
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
147447
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
149366
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
147448
149367
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
147449
149368
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
147450
149369
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -147495,7 +149414,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
147495
149414
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
147496
149415
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
147497
149416
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
147498
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
149417
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
147499
149418
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
147500
149419
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
147501
149420
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -147581,6 +149500,17 @@ instruments?: (Object | URL)[];}
|
|
|
147581
149500
|
}
|
|
147582
149501
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
147583
149502
|
[\\"https://w3id.org/identity/v1\\",\\"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\\",{\\"litepub\\":\\"http://litepub.social/ns#\\",\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"EmojiReact\\":\\"litepub:EmojiReact\\",\\"Emoji\\":\\"toot:Emoji\\"}];
|
|
149503
|
+
|
|
149504
|
+
if (options.context == null) {
|
|
149505
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
149506
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
149507
|
+
context => !currentContexts.includes(context)
|
|
149508
|
+
);
|
|
149509
|
+
if (additionalContexts.length > 0) {
|
|
149510
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
149511
|
+
}
|
|
149512
|
+
}
|
|
149513
|
+
|
|
147584
149514
|
let compacted = await jsonld.compact(
|
|
147585
149515
|
values,
|
|
147586
149516
|
docContext,
|
|
@@ -147863,7 +149793,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
147863
149793
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
147864
149794
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
147865
149795
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
147866
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
149796
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
147867
149797
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
147868
149798
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
147869
149799
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -147914,7 +149844,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
147914
149844
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
147915
149845
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
147916
149846
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
147917
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
149847
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
147918
149848
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
147919
149849
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
147920
149850
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -148000,6 +149930,17 @@ instruments?: (Object | URL)[];}
|
|
|
148000
149930
|
}
|
|
148001
149931
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
148002
149932
|
[\\"https://w3id.org/identity/v1\\",\\"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\\",{\\"alsoKnownAs\\":{\\"@id\\":\\"as:alsoKnownAs\\",\\"@type\\":\\"@id\\"},\\"manuallyApprovesFollowers\\":\\"as:manuallyApprovesFollowers\\",\\"sensitive\\":\\"as:sensitive\\",\\"movedTo\\":{\\"@id\\":\\"as:movedTo\\",\\"@type\\":\\"@id\\"},\\"quoteUrl\\":\\"as:quoteUrl\\",\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"featured\\":{\\"@id\\":\\"toot:featured\\",\\"@type\\":\\"@id\\"},\\"featuredTags\\":{\\"@id\\":\\"toot:featuredTags\\",\\"@type\\":\\"@id\\"},\\"discoverable\\":\\"toot:discoverable\\",\\"suspended\\":\\"toot:suspended\\",\\"memorial\\":\\"toot:memorial\\",\\"indexable\\":\\"toot:indexable\\",\\"votersCount\\":{\\"@id\\":\\"toot:votersCount\\",\\"@type\\":\\"http://www.w3.org/2001/XMLSchema#nonNegativeInteger\\"},\\"Emoji\\":\\"toot:Emoji\\",\\"Hashtag\\":\\"as:Hashtag\\",\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\",\\"ChatMessage\\":\\"http://litepub.social/ns#ChatMessage\\",\\"quote\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quote\\",\\"@type\\":\\"@id\\"},\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"quoteUri\\":\\"fedibird:quoteUri\\",\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\",\\"QuoteRequest\\":\\"https://w3id.org/fep/044f#QuoteRequest\\",\\"quoteAuthorization\\":{\\"@id\\":\\"https://w3id.org/fep/044f#quoteAuthorization\\",\\"@type\\":\\"@id\\"},\\"misskey\\":\\"https://misskey-hub.net/ns#\\",\\"_misskey_quote\\":\\"misskey:_misskey_quote\\",\\"_misskey_followedMessage\\":\\"misskey:_misskey_followedMessage\\",\\"isCat\\":\\"misskey:isCat\\",\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"}}];
|
|
149933
|
+
|
|
149934
|
+
if (options.context == null) {
|
|
149935
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
149936
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
149937
|
+
context => !currentContexts.includes(context)
|
|
149938
|
+
);
|
|
149939
|
+
if (additionalContexts.length > 0) {
|
|
149940
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
149941
|
+
}
|
|
149942
|
+
}
|
|
149943
|
+
|
|
148003
149944
|
let compacted = await jsonld.compact(
|
|
148004
149945
|
values,
|
|
148005
149946
|
docContext,
|
|
@@ -148277,7 +150218,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
148277
150218
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
148278
150219
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
148279
150220
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
148280
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
150221
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
148281
150222
|
,
|
|
148282
150223
|
options: {
|
|
148283
150224
|
documentLoader?: DocumentLoader,
|
|
@@ -148322,7 +150263,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
148322
150263
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
148323
150264
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
148324
150265
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
148325
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
150266
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];width?: number | null;height?: number | null;digestMultibase?: string | null;}
|
|
148326
150267
|
|
|
148327
150268
|
= {},
|
|
148328
150269
|
options: {
|
|
@@ -148421,6 +150362,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
148421
150362
|
}
|
|
148422
150363
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
148423
150364
|
[\\"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\\"];
|
|
150365
|
+
|
|
150366
|
+
if (options.context == null) {
|
|
150367
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
150368
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
150369
|
+
context => !currentContexts.includes(context)
|
|
150370
|
+
);
|
|
150371
|
+
if (additionalContexts.length > 0) {
|
|
150372
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
150373
|
+
}
|
|
150374
|
+
}
|
|
150375
|
+
|
|
148424
150376
|
let compacted = await jsonld.compact(
|
|
148425
150377
|
values,
|
|
148426
150378
|
docContext,
|
|
@@ -148699,7 +150651,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
148699
150651
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
148700
150652
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
148701
150653
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
148702
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
150654
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
148703
150655
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
148704
150656
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
148705
150657
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -148750,7 +150702,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
148750
150702
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
148751
150703
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
148752
150704
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
148753
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
150705
|
+
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];licenses?: (URL)[];actor?: Application | Group | Organization | Person | Service | URL | null;
|
|
148754
150706
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
148755
150707
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
148756
150708
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -148836,6 +150788,17 @@ instruments?: (Object | URL)[];}
|
|
|
148836
150788
|
}
|
|
148837
150789
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
148838
150790
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
150791
|
+
|
|
150792
|
+
if (options.context == null) {
|
|
150793
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
150794
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
150795
|
+
context => !currentContexts.includes(context)
|
|
150796
|
+
);
|
|
150797
|
+
if (additionalContexts.length > 0) {
|
|
150798
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
150799
|
+
}
|
|
150800
|
+
}
|
|
150801
|
+
|
|
148839
150802
|
let compacted = await jsonld.compact(
|
|
148840
150803
|
values,
|
|
148841
150804
|
docContext,
|