@fedify/vocab-tools 2.5.0-dev.2339 → 2.5.0-dev.2358
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
|
@@ -91,8 +91,33 @@ function isValidLanguageTag(language: string): boolean {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
function getAbsoluteIriValue(value: unknown): string | undefined {
|
|
95
|
+
if (value == null || typeof value !== \\"object\\") return undefined;
|
|
96
|
+
const node = value as Record<string, unknown>;
|
|
97
|
+
if (typeof node[\\"@id\\"] === \\"string\\") {
|
|
98
|
+
return node[\\"@id\\"].startsWith(\\"_:\\") ? undefined : node[\\"@id\\"];
|
|
99
|
+
}
|
|
100
|
+
// A language tag can come from a context's default language, so it does
|
|
101
|
+
// not make a literal any less of an IRI:
|
|
102
|
+
if (typeof node[\\"@value\\"] !== \\"string\\") return undefined;
|
|
103
|
+
const type = node[\\"@type\\"];
|
|
104
|
+
return type == null ||
|
|
105
|
+
type === \\"http://www.w3.org/2001/XMLSchema#string\\" ||
|
|
106
|
+
type === \\"http://www.w3.org/2001/XMLSchema#anyURI\\"
|
|
107
|
+
? node[\\"@value\\"]
|
|
108
|
+
: undefined;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function isAbsoluteIriValue(value: unknown): boolean {
|
|
112
|
+
const iri = getAbsoluteIriValue(value);
|
|
113
|
+
return iri != null && canDecodeIri(iri);
|
|
114
|
+
}
|
|
115
|
+
|
|
94
116
|
const extraPropertyContexts: Readonly<Record<string, string>> =
|
|
95
|
-
{\\"https://schema.org/translator\\":\\"https://w3id.org/fep/22cd\\",\\"https://w3id.org/fep/22cd#translations\\":\\"https://w3id.org/fep/22cd\\"};
|
|
117
|
+
{\\"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\\"};
|
|
118
|
+
|
|
119
|
+
const extraContextUrls: readonly string[] =
|
|
120
|
+
[\\"https://w3id.org/fep/22cd\\",\\"https://w3id.org/fep/6757\\"];
|
|
96
121
|
|
|
97
122
|
function getExtraContexts(document: unknown): string[] {
|
|
98
123
|
const contexts = new Set<string>();
|
|
@@ -106,7 +131,16 @@ function getExtraContexts(document: unknown): string[] {
|
|
|
106
131
|
}
|
|
107
132
|
if (\\"@value\\" in value) continue;
|
|
108
133
|
for (const [key, child] of globalThis.Object.entries(value)) {
|
|
109
|
-
if (key === \\"@context\\")
|
|
134
|
+
if (key === \\"@context\\") {
|
|
135
|
+
for (const context of Array.isArray(child) ? child : [child]) {
|
|
136
|
+
if (
|
|
137
|
+
typeof context === \\"string\\" && extraContextUrls.includes(context)
|
|
138
|
+
) {
|
|
139
|
+
contexts.add(context);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
110
144
|
if (globalThis.Object.hasOwn(extraPropertyContexts, key)) {
|
|
111
145
|
contexts.add(extraPropertyContexts[key]);
|
|
112
146
|
}
|
|
@@ -118,7 +152,7 @@ function getExtraContexts(document: unknown): string[] {
|
|
|
118
152
|
|
|
119
153
|
|
|
120
154
|
const PORTABLE_IRI_PATTERN = /^ap(?:\\\\+ef61)?:\\\\/\\\\//i;
|
|
121
|
-
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\\"]);
|
|
155
|
+
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\\"]);
|
|
122
156
|
|
|
123
157
|
import * as _ppM0 from \\"./preprocessors.ts\\";
|
|
124
158
|
|
|
@@ -285,6 +319,7 @@ export class Object {
|
|
|
285
319
|
#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization: (AnnounceAuthorization | URL)[] = [];
|
|
286
320
|
#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization: Set<number> = new Set();
|
|
287
321
|
#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations: (Translation)[] = [];
|
|
322
|
+
#_2rzkBRS4gNPrkJk9DohHAMUAxA2d: (URL)[] = [];
|
|
288
323
|
|
|
289
324
|
/**
|
|
290
325
|
* Constructs a new instance of Object with the given values.
|
|
@@ -311,7 +346,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
311
346
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
312
347
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
313
348
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
314
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];}
|
|
349
|
+
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)[];}
|
|
315
350
|
,
|
|
316
351
|
options: {
|
|
317
352
|
documentLoader?: DocumentLoader,
|
|
@@ -1275,6 +1310,21 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
1275
1310
|
);
|
|
1276
1311
|
}
|
|
1277
1312
|
}
|
|
1313
|
+
|
|
1314
|
+
if (\\"licenses\\" in values && values.licenses != null) {
|
|
1315
|
+
|
|
1316
|
+
if (Array.isArray(values.licenses) &&
|
|
1317
|
+
values.licenses.every(v => v instanceof URL)) {
|
|
1318
|
+
// @ts-ignore: type is checked above.
|
|
1319
|
+
this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = values.licenses.slice();
|
|
1320
|
+
|
|
1321
|
+
} else {
|
|
1322
|
+
throw new TypeError(
|
|
1323
|
+
\\"The licenses must be an array of type \\" +
|
|
1324
|
+
\\"URL\\" + \\".\\",
|
|
1325
|
+
);
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1278
1328
|
}
|
|
1279
1329
|
|
|
1280
1330
|
/**
|
|
@@ -1311,7 +1361,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
1311
1361
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
1312
1362
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
1313
1363
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
1314
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];}
|
|
1364
|
+
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)[];}
|
|
1315
1365
|
|
|
1316
1366
|
= {},
|
|
1317
1367
|
options: {
|
|
@@ -2287,6 +2337,21 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
2287
2337
|
);
|
|
2288
2338
|
}
|
|
2289
2339
|
}
|
|
2340
|
+
clone.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.slice();
|
|
2341
|
+
if (\\"licenses\\" in values && values.licenses != null) {
|
|
2342
|
+
|
|
2343
|
+
if (Array.isArray(values.licenses) &&
|
|
2344
|
+
values.licenses.every(v => v instanceof URL)) {
|
|
2345
|
+
// @ts-ignore: type is checked above.
|
|
2346
|
+
clone.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = values.licenses.slice();
|
|
2347
|
+
|
|
2348
|
+
} else {
|
|
2349
|
+
throw new TypeError(
|
|
2350
|
+
\\"The licenses must be an array of type \\" +
|
|
2351
|
+
\\"URL\\" + \\".\\",
|
|
2352
|
+
);
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2290
2355
|
|
|
2291
2356
|
return clone;
|
|
2292
2357
|
}
|
|
@@ -14410,6 +14475,29 @@ get translations(): (Translation)[] {
|
|
|
14410
14475
|
return this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations;
|
|
14411
14476
|
}
|
|
14412
14477
|
|
|
14478
|
+
/** The copyright licenses for this object, as defined by
|
|
14479
|
+
* [FEP-6757](https://w3id.org/fep/6757). Each license is identified by its
|
|
14480
|
+
* URI, such as <https://creativecommons.org/licenses/by/4.0/>; license names
|
|
14481
|
+
* and SPDX short identifiers are not license URIs. Multiple values are
|
|
14482
|
+
* alternatives that a consumer may choose from; their order has no meaning.
|
|
14483
|
+
*
|
|
14484
|
+
* An empty list means the object carries no license metadata. Fedify does
|
|
14485
|
+
* not synthesize a default license for it; FEP-6757 suggests that consumers
|
|
14486
|
+
* treat such content as “all rights reserved,” but that is a consumer policy,
|
|
14487
|
+
* not a value of this property. A license on an actor, activity, or
|
|
14488
|
+
* collection covers that object itself, not the objects the actor authored,
|
|
14489
|
+
* the activity's object, or the collection's items. An actor's
|
|
14490
|
+
* \`preferredLicense\` is not a fallback for this property either.
|
|
14491
|
+
*
|
|
14492
|
+
* The \`https://schema.org/license\` and
|
|
14493
|
+
* \`http://creativecommons.org/ns#license\` properties are read as synonyms
|
|
14494
|
+
* when this property is absent, but only this property is written.
|
|
14495
|
+
*
|
|
14496
|
+
*/
|
|
14497
|
+
get licenses(): (URL)[] {
|
|
14498
|
+
return this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
14499
|
+
}
|
|
14500
|
+
|
|
14413
14501
|
/**
|
|
14414
14502
|
* Converts this object to a JSON-LD structure.
|
|
14415
14503
|
* @param options The options to use.
|
|
@@ -15221,6 +15309,22 @@ get translations(): (Translation)[] {
|
|
|
15221
15309
|
|
|
15222
15310
|
}
|
|
15223
15311
|
|
|
15312
|
+
compactItems = [];
|
|
15313
|
+
for (const v of this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d) {
|
|
15314
|
+
const item = (
|
|
15315
|
+
formatIri(v)
|
|
15316
|
+
);
|
|
15317
|
+
compactItems.push(item);
|
|
15318
|
+
}
|
|
15319
|
+
if (compactItems.length > 0) {
|
|
15320
|
+
|
|
15321
|
+
result[\\"license\\"]
|
|
15322
|
+
= compactItems.length > 1
|
|
15323
|
+
? compactItems
|
|
15324
|
+
: compactItems[0];
|
|
15325
|
+
|
|
15326
|
+
}
|
|
15327
|
+
|
|
15224
15328
|
result[\\"type\\"] = \\"Object\\";
|
|
15225
15329
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
15226
15330
|
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\\"}}];
|
|
@@ -16016,6 +16120,26 @@ get translations(): (Translation)[] {
|
|
|
16016
16120
|
|
|
16017
16121
|
}
|
|
16018
16122
|
|
|
16123
|
+
array = [];
|
|
16124
|
+
for (const v of this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d) {
|
|
16125
|
+
let element = (
|
|
16126
|
+
{ \\"@id\\": formatIri(v) }
|
|
16127
|
+
);
|
|
16128
|
+
if (Array.isArray(element)) {
|
|
16129
|
+
if (element.length < 1) continue;
|
|
16130
|
+
if (element.length == 1) element = element[0];
|
|
16131
|
+
}
|
|
16132
|
+
if (typeof element === \\"undefined\\") continue;
|
|
16133
|
+
array.push(element);;
|
|
16134
|
+
}
|
|
16135
|
+
if (array.length > 0) {
|
|
16136
|
+
const propValue = (
|
|
16137
|
+
array
|
|
16138
|
+
);
|
|
16139
|
+
values[\\"http://purl.org/dc/terms/license\\"] = propValue;
|
|
16140
|
+
|
|
16141
|
+
}
|
|
16142
|
+
|
|
16019
16143
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Object\\"];
|
|
16020
16144
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
16021
16145
|
if (options.format === \\"expand\\") {
|
|
@@ -16029,6 +16153,17 @@ get translations(): (Translation)[] {
|
|
|
16029
16153
|
}
|
|
16030
16154
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
16031
16155
|
[\\"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\\"}}];
|
|
16156
|
+
|
|
16157
|
+
if (options.context == null) {
|
|
16158
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
16159
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
16160
|
+
context => !currentContexts.includes(context)
|
|
16161
|
+
);
|
|
16162
|
+
if (additionalContexts.length > 0) {
|
|
16163
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
16164
|
+
}
|
|
16165
|
+
}
|
|
16166
|
+
|
|
16032
16167
|
let compacted = await jsonld.compact(
|
|
16033
16168
|
values,
|
|
16034
16169
|
docContext,
|
|
@@ -16100,6 +16235,11 @@ get translations(): (Translation)[] {
|
|
|
16100
16235
|
this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations.length > 0
|
|
16101
16236
|
) return false;
|
|
16102
16237
|
|
|
16238
|
+
if (
|
|
16239
|
+
this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d != null &&
|
|
16240
|
+
this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 0
|
|
16241
|
+
) return false;
|
|
16242
|
+
|
|
16103
16243
|
return true;
|
|
16104
16244
|
}
|
|
16105
16245
|
|
|
@@ -18052,6 +18192,43 @@ get translations(): (Translation)[] {
|
|
|
18052
18192
|
|
|
18053
18193
|
}
|
|
18054
18194
|
instance.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = _a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations;
|
|
18195
|
+
const _2rzkBRS4gNPrkJk9DohHAMUAxA2d: (URL)[] = [];
|
|
18196
|
+
|
|
18197
|
+
let _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values[\\"http://purl.org/dc/terms/license\\"];
|
|
18198
|
+
|
|
18199
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null || _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length < 1) {
|
|
18200
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values[\\"https://schema.org/license\\"];
|
|
18201
|
+
}
|
|
18202
|
+
|
|
18203
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null || _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length < 1) {
|
|
18204
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values[\\"http://creativecommons.org/ns#license\\"];
|
|
18205
|
+
}
|
|
18206
|
+
|
|
18207
|
+
for (
|
|
18208
|
+
const v of _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null
|
|
18209
|
+
? []
|
|
18210
|
+
: _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length === 1 && \\"@list\\" in _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array[0]
|
|
18211
|
+
? _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array[0][\\"@list\\"]
|
|
18212
|
+
: _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array
|
|
18213
|
+
) {
|
|
18214
|
+
if (v == null) continue;
|
|
18215
|
+
|
|
18216
|
+
const decoded =
|
|
18217
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
18218
|
+
;
|
|
18219
|
+
|
|
18220
|
+
if (typeof decoded === \\"undefined\\") {
|
|
18221
|
+
shouldCacheJsonLd = false;
|
|
18222
|
+
continue;
|
|
18223
|
+
}
|
|
18224
|
+
|
|
18225
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
18226
|
+
shouldCacheJsonLd = false;
|
|
18227
|
+
}
|
|
18228
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d.push(decoded);
|
|
18229
|
+
|
|
18230
|
+
}
|
|
18231
|
+
instance.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = _2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
18055
18232
|
|
|
18056
18233
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
18057
18234
|
if (
|
|
@@ -18965,6 +19142,28 @@ get translations(): (Translation)[] {
|
|
|
18965
19142
|
proxy.translations = _a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations;
|
|
18966
19143
|
}
|
|
18967
19144
|
|
|
19145
|
+
const _2rzkBRS4gNPrkJk9DohHAMUAxA2d = this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d
|
|
19146
|
+
// deno-lint-ignore no-explicit-any
|
|
19147
|
+
.map((v: any) => v instanceof URL
|
|
19148
|
+
? {
|
|
19149
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
19150
|
+
inspect: typeof Deno.inspect,
|
|
19151
|
+
options: Deno.InspectOptions,
|
|
19152
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
19153
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
19154
|
+
_depth: number,
|
|
19155
|
+
options: unknown,
|
|
19156
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
19157
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
19158
|
+
}
|
|
19159
|
+
: v);
|
|
19160
|
+
|
|
19161
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 1
|
|
19162
|
+
|| !(\\"license\\" in proxy)
|
|
19163
|
+
&& _2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 0) {
|
|
19164
|
+
proxy.licenses = _2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
19165
|
+
}
|
|
19166
|
+
|
|
18968
19167
|
return proxy;
|
|
18969
19168
|
}
|
|
18970
19169
|
}
|
|
@@ -19028,7 +19227,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
19028
19227
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
19029
19228
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
19030
19229
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
19031
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];}
|
|
19230
|
+
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)[];}
|
|
19032
19231
|
,
|
|
19033
19232
|
options: {
|
|
19034
19233
|
documentLoader?: DocumentLoader,
|
|
@@ -19073,7 +19272,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
19073
19272
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
19074
19273
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
19075
19274
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
19076
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];}
|
|
19275
|
+
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)[];}
|
|
19077
19276
|
|
|
19078
19277
|
= {},
|
|
19079
19278
|
options: {
|
|
@@ -19172,6 +19371,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
19172
19371
|
}
|
|
19173
19372
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
19174
19373
|
[\\"https://www.w3.org/ns/activitystreams\\",{\\"toot\\":\\"http://joinmastodon.org/ns#\\",\\"Emoji\\":\\"toot:Emoji\\"}];
|
|
19374
|
+
|
|
19375
|
+
if (options.context == null) {
|
|
19376
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
19377
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
19378
|
+
context => !currentContexts.includes(context)
|
|
19379
|
+
);
|
|
19380
|
+
if (additionalContexts.length > 0) {
|
|
19381
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
19382
|
+
}
|
|
19383
|
+
}
|
|
19384
|
+
|
|
19175
19385
|
let compacted = await jsonld.compact(
|
|
19176
19386
|
values,
|
|
19177
19387
|
docContext,
|
|
@@ -19461,7 +19671,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
19461
19671
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
19462
19672
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
19463
19673
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
19464
|
-
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;}
|
|
19674
|
+
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;}
|
|
19465
19675
|
,
|
|
19466
19676
|
options: {
|
|
19467
19677
|
documentLoader?: DocumentLoader,
|
|
@@ -19545,7 +19755,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
19545
19755
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
19546
19756
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
19547
19757
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
19548
|
-
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;}
|
|
19758
|
+
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;}
|
|
19549
19759
|
|
|
19550
19760
|
= {},
|
|
19551
19761
|
options: {
|
|
@@ -20675,6 +20885,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
20675
20885
|
}
|
|
20676
20886
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
20677
20887
|
[\\"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\\"}}];
|
|
20888
|
+
|
|
20889
|
+
if (options.context == null) {
|
|
20890
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
20891
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
20892
|
+
context => !currentContexts.includes(context)
|
|
20893
|
+
);
|
|
20894
|
+
if (additionalContexts.length > 0) {
|
|
20895
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
20896
|
+
}
|
|
20897
|
+
}
|
|
20898
|
+
|
|
20678
20899
|
let compacted = await jsonld.compact(
|
|
20679
20900
|
values,
|
|
20680
20901
|
docContext,
|
|
@@ -21156,7 +21377,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
21156
21377
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
21157
21378
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
21158
21379
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
21159
|
-
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;
|
|
21380
|
+
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;
|
|
21160
21381
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
21161
21382
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
21162
21383
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -21447,7 +21668,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
21447
21668
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
21448
21669
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
21449
21670
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
21450
|
-
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;
|
|
21671
|
+
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;
|
|
21451
21672
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
21452
21673
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
21453
21674
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -25463,6 +25684,17 @@ instruments?: (Object | URL)[];}
|
|
|
25463
25684
|
}
|
|
25464
25685
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
25465
25686
|
[\\"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\\"];
|
|
25687
|
+
|
|
25688
|
+
if (options.context == null) {
|
|
25689
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
25690
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
25691
|
+
context => !currentContexts.includes(context)
|
|
25692
|
+
);
|
|
25693
|
+
if (additionalContexts.length > 0) {
|
|
25694
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
25695
|
+
}
|
|
25696
|
+
}
|
|
25697
|
+
|
|
25466
25698
|
let compacted = await jsonld.compact(
|
|
25467
25699
|
values,
|
|
25468
25700
|
docContext,
|
|
@@ -26300,7 +26532,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
26300
26532
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
26301
26533
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
26302
26534
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
26303
|
-
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;
|
|
26535
|
+
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;
|
|
26304
26536
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
26305
26537
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
26306
26538
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -26351,7 +26583,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
26351
26583
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
26352
26584
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
26353
26585
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
26354
|
-
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;
|
|
26586
|
+
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;
|
|
26355
26587
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
26356
26588
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
26357
26589
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -26437,6 +26669,17 @@ instruments?: (Object | URL)[];}
|
|
|
26437
26669
|
}
|
|
26438
26670
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
26439
26671
|
[\\"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\\"}];
|
|
26672
|
+
|
|
26673
|
+
if (options.context == null) {
|
|
26674
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
26675
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
26676
|
+
context => !currentContexts.includes(context)
|
|
26677
|
+
);
|
|
26678
|
+
if (additionalContexts.length > 0) {
|
|
26679
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
26680
|
+
}
|
|
26681
|
+
}
|
|
26682
|
+
|
|
26440
26683
|
let compacted = await jsonld.compact(
|
|
26441
26684
|
values,
|
|
26442
26685
|
docContext,
|
|
@@ -27064,6 +27307,17 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;}
|
|
|
27064
27307
|
}
|
|
27065
27308
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
27066
27309
|
[\\"https://www.w3.org/ns/activitystreams\\",{\\"schema\\":\\"http://schema.org#\\",\\"PropertyValue\\":\\"schema:PropertyValue\\",\\"value\\":\\"schema:value\\"}];
|
|
27310
|
+
|
|
27311
|
+
if (options.context == null) {
|
|
27312
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
27313
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
27314
|
+
context => !currentContexts.includes(context)
|
|
27315
|
+
);
|
|
27316
|
+
if (additionalContexts.length > 0) {
|
|
27317
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
27318
|
+
}
|
|
27319
|
+
}
|
|
27320
|
+
|
|
27067
27321
|
let compacted = await jsonld.compact(
|
|
27068
27322
|
values,
|
|
27069
27323
|
docContext,
|
|
@@ -27802,6 +28056,17 @@ unit?: string | null;numericalValue?: Decimal | null;}
|
|
|
27802
28056
|
}
|
|
27803
28057
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
27804
28058
|
[\\"https://www.w3.org/ns/activitystreams\\",{\\"om2\\":\\"http://www.ontology-of-units-of-measure.org/resource/om-2/\\",\\"hasUnit\\":\\"om2:hasUnit\\",\\"hasNumericalValue\\":\\"om2:hasNumericalValue\\"}];
|
|
28059
|
+
|
|
28060
|
+
if (options.context == null) {
|
|
28061
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
28062
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
28063
|
+
context => !currentContexts.includes(context)
|
|
28064
|
+
);
|
|
28065
|
+
if (additionalContexts.length > 0) {
|
|
28066
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
28067
|
+
}
|
|
28068
|
+
}
|
|
28069
|
+
|
|
27805
28070
|
let compacted = await jsonld.compact(
|
|
27806
28071
|
values,
|
|
27807
28072
|
docContext,
|
|
@@ -28192,7 +28457,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
28192
28457
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
28193
28458
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
28194
28459
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
28195
|
-
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;}
|
|
28460
|
+
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;}
|
|
28196
28461
|
,
|
|
28197
28462
|
options: {
|
|
28198
28463
|
documentLoader?: DocumentLoader,
|
|
@@ -28263,7 +28528,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
28263
28528
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
28264
28529
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
28265
28530
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
28266
|
-
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;}
|
|
28531
|
+
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;}
|
|
28267
28532
|
|
|
28268
28533
|
= {},
|
|
28269
28534
|
options: {
|
|
@@ -29305,6 +29570,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
29305
29570
|
}
|
|
29306
29571
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
29307
29572
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
29573
|
+
|
|
29574
|
+
if (options.context == null) {
|
|
29575
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
29576
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
29577
|
+
context => !currentContexts.includes(context)
|
|
29578
|
+
);
|
|
29579
|
+
if (additionalContexts.length > 0) {
|
|
29580
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
29581
|
+
}
|
|
29582
|
+
}
|
|
29583
|
+
|
|
29308
29584
|
let compacted = await jsonld.compact(
|
|
29309
29585
|
values,
|
|
29310
29586
|
docContext,
|
|
@@ -29715,7 +29991,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
29715
29991
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
29716
29992
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
29717
29993
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
29718
|
-
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;
|
|
29994
|
+
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;
|
|
29719
29995
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
29720
29996
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
29721
29997
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -29766,7 +30042,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
29766
30042
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
29767
30043
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
29768
30044
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
29769
|
-
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;
|
|
30045
|
+
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;
|
|
29770
30046
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
29771
30047
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
29772
30048
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -29852,6 +30128,17 @@ instruments?: (Object | URL)[];}
|
|
|
29852
30128
|
}
|
|
29853
30129
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
29854
30130
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
30131
|
+
|
|
30132
|
+
if (options.context == null) {
|
|
30133
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
30134
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
30135
|
+
context => !currentContexts.includes(context)
|
|
30136
|
+
);
|
|
30137
|
+
if (additionalContexts.length > 0) {
|
|
30138
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
30139
|
+
}
|
|
30140
|
+
}
|
|
30141
|
+
|
|
29855
30142
|
let compacted = await jsonld.compact(
|
|
29856
30143
|
values,
|
|
29857
30144
|
docContext,
|
|
@@ -30629,6 +30916,17 @@ canFeature?: InteractionRule | null;canLike?: InteractionRule | null;canReply?:
|
|
|
30629
30916
|
}
|
|
30630
30917
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
30631
30918
|
[\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\"];
|
|
30919
|
+
|
|
30920
|
+
if (options.context == null) {
|
|
30921
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
30922
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
30923
|
+
context => !currentContexts.includes(context)
|
|
30924
|
+
);
|
|
30925
|
+
if (additionalContexts.length > 0) {
|
|
30926
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
30927
|
+
}
|
|
30928
|
+
}
|
|
30929
|
+
|
|
30632
30930
|
let compacted = await jsonld.compact(
|
|
30633
30931
|
values,
|
|
30634
30932
|
docContext,
|
|
@@ -31620,6 +31918,17 @@ get manualApprovals(): (URL)[] {
|
|
|
31620
31918
|
}
|
|
31621
31919
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
31622
31920
|
\\"https://gotosocial.org/ns\\";
|
|
31921
|
+
|
|
31922
|
+
if (options.context == null) {
|
|
31923
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
31924
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
31925
|
+
context => !currentContexts.includes(context)
|
|
31926
|
+
);
|
|
31927
|
+
if (additionalContexts.length > 0) {
|
|
31928
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
31929
|
+
}
|
|
31930
|
+
}
|
|
31931
|
+
|
|
31623
31932
|
let compacted = await jsonld.compact(
|
|
31624
31933
|
values,
|
|
31625
31934
|
docContext,
|
|
@@ -32021,7 +32330,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
32021
32330
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
32022
32331
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
32023
32332
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
32024
|
-
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;}
|
|
32333
|
+
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;}
|
|
32025
32334
|
,
|
|
32026
32335
|
options: {
|
|
32027
32336
|
documentLoader?: DocumentLoader,
|
|
@@ -32092,7 +32401,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
32092
32401
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
32093
32402
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
32094
32403
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
32095
|
-
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;}
|
|
32404
|
+
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;}
|
|
32096
32405
|
|
|
32097
32406
|
= {},
|
|
32098
32407
|
options: {
|
|
@@ -33134,6 +33443,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
33134
33443
|
}
|
|
33135
33444
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
33136
33445
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
33446
|
+
|
|
33447
|
+
if (options.context == null) {
|
|
33448
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
33449
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
33450
|
+
context => !currentContexts.includes(context)
|
|
33451
|
+
);
|
|
33452
|
+
if (additionalContexts.length > 0) {
|
|
33453
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
33454
|
+
}
|
|
33455
|
+
}
|
|
33456
|
+
|
|
33137
33457
|
let compacted = await jsonld.compact(
|
|
33138
33458
|
values,
|
|
33139
33459
|
docContext,
|
|
@@ -33543,7 +33863,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
33543
33863
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
33544
33864
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
33545
33865
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
33546
|
-
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;
|
|
33866
|
+
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;
|
|
33547
33867
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
33548
33868
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
33549
33869
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -33594,7 +33914,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
33594
33914
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
33595
33915
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
33596
33916
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
33597
|
-
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;
|
|
33917
|
+
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;
|
|
33598
33918
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
33599
33919
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
33600
33920
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -33680,6 +34000,17 @@ instruments?: (Object | URL)[];}
|
|
|
33680
34000
|
}
|
|
33681
34001
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
33682
34002
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
34003
|
+
|
|
34004
|
+
if (options.context == null) {
|
|
34005
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
34006
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
34007
|
+
context => !currentContexts.includes(context)
|
|
34008
|
+
);
|
|
34009
|
+
if (additionalContexts.length > 0) {
|
|
34010
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
34011
|
+
}
|
|
34012
|
+
}
|
|
34013
|
+
|
|
33683
34014
|
let compacted = await jsonld.compact(
|
|
33684
34015
|
values,
|
|
33685
34016
|
docContext,
|
|
@@ -33971,7 +34302,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
33971
34302
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
33972
34303
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
33973
34304
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
33974
|
-
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;}
|
|
34305
|
+
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;}
|
|
33975
34306
|
,
|
|
33976
34307
|
options: {
|
|
33977
34308
|
documentLoader?: DocumentLoader,
|
|
@@ -34042,7 +34373,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
34042
34373
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
34043
34374
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
34044
34375
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
34045
|
-
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;}
|
|
34376
|
+
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;}
|
|
34046
34377
|
|
|
34047
34378
|
= {},
|
|
34048
34379
|
options: {
|
|
@@ -35084,6 +35415,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
35084
35415
|
}
|
|
35085
35416
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
35086
35417
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
35418
|
+
|
|
35419
|
+
if (options.context == null) {
|
|
35420
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
35421
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
35422
|
+
context => !currentContexts.includes(context)
|
|
35423
|
+
);
|
|
35424
|
+
if (additionalContexts.length > 0) {
|
|
35425
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
35426
|
+
}
|
|
35427
|
+
}
|
|
35428
|
+
|
|
35087
35429
|
let compacted = await jsonld.compact(
|
|
35088
35430
|
values,
|
|
35089
35431
|
docContext,
|
|
@@ -35493,7 +35835,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
35493
35835
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
35494
35836
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
35495
35837
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
35496
|
-
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;
|
|
35838
|
+
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;
|
|
35497
35839
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
35498
35840
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
35499
35841
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -35544,7 +35886,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
35544
35886
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
35545
35887
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
35546
35888
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
35547
|
-
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;
|
|
35889
|
+
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;
|
|
35548
35890
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
35549
35891
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
35550
35892
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -35630,6 +35972,17 @@ instruments?: (Object | URL)[];}
|
|
|
35630
35972
|
}
|
|
35631
35973
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
35632
35974
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
35975
|
+
|
|
35976
|
+
if (options.context == null) {
|
|
35977
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
35978
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
35979
|
+
context => !currentContexts.includes(context)
|
|
35980
|
+
);
|
|
35981
|
+
if (additionalContexts.length > 0) {
|
|
35982
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
35983
|
+
}
|
|
35984
|
+
}
|
|
35985
|
+
|
|
35633
35986
|
let compacted = await jsonld.compact(
|
|
35634
35987
|
values,
|
|
35635
35988
|
docContext,
|
|
@@ -35921,7 +36274,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
35921
36274
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
35922
36275
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
35923
36276
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
35924
|
-
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;}
|
|
36277
|
+
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;}
|
|
35925
36278
|
,
|
|
35926
36279
|
options: {
|
|
35927
36280
|
documentLoader?: DocumentLoader,
|
|
@@ -35992,7 +36345,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
35992
36345
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
35993
36346
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
35994
36347
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
35995
|
-
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;}
|
|
36348
|
+
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;}
|
|
35996
36349
|
|
|
35997
36350
|
= {},
|
|
35998
36351
|
options: {
|
|
@@ -37033,6 +37386,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
37033
37386
|
}
|
|
37034
37387
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
37035
37388
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"QuoteAuthorization\\":\\"https://w3id.org/fep/044f#QuoteAuthorization\\"}];
|
|
37389
|
+
|
|
37390
|
+
if (options.context == null) {
|
|
37391
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
37392
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
37393
|
+
context => !currentContexts.includes(context)
|
|
37394
|
+
);
|
|
37395
|
+
if (additionalContexts.length > 0) {
|
|
37396
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
37397
|
+
}
|
|
37398
|
+
}
|
|
37399
|
+
|
|
37036
37400
|
let compacted = await jsonld.compact(
|
|
37037
37401
|
values,
|
|
37038
37402
|
docContext,
|
|
@@ -37442,7 +37806,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
37442
37806
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
37443
37807
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
37444
37808
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
37445
|
-
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;
|
|
37809
|
+
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;
|
|
37446
37810
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
37447
37811
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
37448
37812
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -37493,7 +37857,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
37493
37857
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
37494
37858
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
37495
37859
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
37496
|
-
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;
|
|
37860
|
+
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;
|
|
37497
37861
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
37498
37862
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
37499
37863
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -37579,6 +37943,17 @@ instruments?: (Object | URL)[];}
|
|
|
37579
37943
|
}
|
|
37580
37944
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
37581
37945
|
[\\"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\\"}}];
|
|
37946
|
+
|
|
37947
|
+
if (options.context == null) {
|
|
37948
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
37949
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
37950
|
+
context => !currentContexts.includes(context)
|
|
37951
|
+
);
|
|
37952
|
+
if (additionalContexts.length > 0) {
|
|
37953
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
37954
|
+
}
|
|
37955
|
+
}
|
|
37956
|
+
|
|
37582
37957
|
let compacted = await jsonld.compact(
|
|
37583
37958
|
values,
|
|
37584
37959
|
docContext,
|
|
@@ -39293,6 +39668,17 @@ get urls(): ((URL | Link))[] {
|
|
|
39293
39668
|
}
|
|
39294
39669
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
39295
39670
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/22cd\\"];
|
|
39671
|
+
|
|
39672
|
+
if (options.context == null) {
|
|
39673
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
39674
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
39675
|
+
context => !currentContexts.includes(context)
|
|
39676
|
+
);
|
|
39677
|
+
if (additionalContexts.length > 0) {
|
|
39678
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
39679
|
+
}
|
|
39680
|
+
}
|
|
39681
|
+
|
|
39296
39682
|
let compacted = await jsonld.compact(
|
|
39297
39683
|
values,
|
|
39298
39684
|
docContext,
|
|
@@ -39931,7 +40317,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
39931
40317
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
39932
40318
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
39933
40319
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
39934
|
-
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;}
|
|
40320
|
+
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;}
|
|
39935
40321
|
,
|
|
39936
40322
|
options: {
|
|
39937
40323
|
documentLoader?: DocumentLoader,
|
|
@@ -40002,7 +40388,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
40002
40388
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
40003
40389
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
40004
40390
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
40005
|
-
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;}
|
|
40391
|
+
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;}
|
|
40006
40392
|
|
|
40007
40393
|
= {},
|
|
40008
40394
|
options: {
|
|
@@ -41041,6 +41427,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
41041
41427
|
}
|
|
41042
41428
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
41043
41429
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\"];
|
|
41430
|
+
|
|
41431
|
+
if (options.context == null) {
|
|
41432
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
41433
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
41434
|
+
context => !currentContexts.includes(context)
|
|
41435
|
+
);
|
|
41436
|
+
if (additionalContexts.length > 0) {
|
|
41437
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
41438
|
+
}
|
|
41439
|
+
}
|
|
41440
|
+
|
|
41044
41441
|
let compacted = await jsonld.compact(
|
|
41045
41442
|
values,
|
|
41046
41443
|
docContext,
|
|
@@ -41447,7 +41844,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
41447
41844
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
41448
41845
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
41449
41846
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
41450
|
-
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;
|
|
41847
|
+
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;
|
|
41451
41848
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
41452
41849
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
41453
41850
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -41498,7 +41895,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
41498
41895
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
41499
41896
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
41500
41897
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
41501
|
-
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;
|
|
41898
|
+
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;
|
|
41502
41899
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
41503
41900
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
41504
41901
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -41584,6 +41981,17 @@ instruments?: (Object | URL)[];}
|
|
|
41584
41981
|
}
|
|
41585
41982
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
41586
41983
|
[\\"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\\"];
|
|
41984
|
+
|
|
41985
|
+
if (options.context == null) {
|
|
41986
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
41987
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
41988
|
+
context => !currentContexts.includes(context)
|
|
41989
|
+
);
|
|
41990
|
+
if (additionalContexts.length > 0) {
|
|
41991
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
41992
|
+
}
|
|
41993
|
+
}
|
|
41994
|
+
|
|
41587
41995
|
let compacted = await jsonld.compact(
|
|
41588
41996
|
values,
|
|
41589
41997
|
docContext,
|
|
@@ -41903,7 +42311,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
41903
42311
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
41904
42312
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
41905
42313
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
41906
|
-
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;}
|
|
42314
|
+
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;}
|
|
41907
42315
|
,
|
|
41908
42316
|
options: {
|
|
41909
42317
|
documentLoader?: DocumentLoader,
|
|
@@ -42123,7 +42531,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
42123
42531
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
42124
42532
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
42125
42533
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
42126
|
-
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;}
|
|
42534
|
+
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;}
|
|
42127
42535
|
|
|
42128
42536
|
= {},
|
|
42129
42537
|
options: {
|
|
@@ -47977,6 +48385,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
47977
48385
|
}
|
|
47978
48386
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
47979
48387
|
[\\"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\\"}}];
|
|
48388
|
+
|
|
48389
|
+
if (options.context == null) {
|
|
48390
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
48391
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
48392
|
+
context => !currentContexts.includes(context)
|
|
48393
|
+
);
|
|
48394
|
+
if (additionalContexts.length > 0) {
|
|
48395
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
48396
|
+
}
|
|
48397
|
+
}
|
|
48398
|
+
|
|
47980
48399
|
let compacted = await jsonld.compact(
|
|
47981
48400
|
values,
|
|
47982
48401
|
docContext,
|
|
@@ -49065,7 +49484,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
49065
49484
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
49066
49485
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
49067
49486
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
49068
|
-
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)[];}
|
|
49487
|
+
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)[];}
|
|
49069
49488
|
,
|
|
49070
49489
|
options: {
|
|
49071
49490
|
documentLoader?: DocumentLoader,
|
|
@@ -49129,7 +49548,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
49129
49548
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
49130
49549
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
49131
49550
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
49132
|
-
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)[];}
|
|
49551
|
+
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)[];}
|
|
49133
49552
|
|
|
49134
49553
|
= {},
|
|
49135
49554
|
options: {
|
|
@@ -49728,6 +50147,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
49728
50147
|
}
|
|
49729
50148
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
49730
50149
|
[\\"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\\"}}];
|
|
50150
|
+
|
|
50151
|
+
if (options.context == null) {
|
|
50152
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
50153
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
50154
|
+
context => !currentContexts.includes(context)
|
|
50155
|
+
);
|
|
50156
|
+
if (additionalContexts.length > 0) {
|
|
50157
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
50158
|
+
}
|
|
50159
|
+
}
|
|
50160
|
+
|
|
49731
50161
|
let compacted = await jsonld.compact(
|
|
49732
50162
|
values,
|
|
49733
50163
|
docContext,
|
|
@@ -50084,7 +50514,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
50084
50514
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
50085
50515
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
50086
50516
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
50087
|
-
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;}
|
|
50517
|
+
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;}
|
|
50088
50518
|
,
|
|
50089
50519
|
options: {
|
|
50090
50520
|
documentLoader?: DocumentLoader,
|
|
@@ -50155,7 +50585,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
50155
50585
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
50156
50586
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
50157
50587
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
50158
|
-
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;}
|
|
50588
|
+
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;}
|
|
50159
50589
|
|
|
50160
50590
|
= {},
|
|
50161
50591
|
options: {
|
|
@@ -50387,6 +50817,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
50387
50817
|
}
|
|
50388
50818
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
50389
50819
|
[\\"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\\"}];
|
|
50820
|
+
|
|
50821
|
+
if (options.context == null) {
|
|
50822
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
50823
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
50824
|
+
context => !currentContexts.includes(context)
|
|
50825
|
+
);
|
|
50826
|
+
if (additionalContexts.length > 0) {
|
|
50827
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
50828
|
+
}
|
|
50829
|
+
}
|
|
50830
|
+
|
|
50390
50831
|
let compacted = await jsonld.compact(
|
|
50391
50832
|
values,
|
|
50392
50833
|
docContext,
|
|
@@ -50774,7 +51215,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
50774
51215
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
50775
51216
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
50776
51217
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
50777
|
-
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;}
|
|
51218
|
+
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;}
|
|
50778
51219
|
,
|
|
50779
51220
|
options: {
|
|
50780
51221
|
documentLoader?: DocumentLoader,
|
|
@@ -50845,7 +51286,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
50845
51286
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
50846
51287
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
50847
51288
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
50848
|
-
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;}
|
|
51289
|
+
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;}
|
|
50849
51290
|
|
|
50850
51291
|
= {},
|
|
50851
51292
|
options: {
|
|
@@ -51886,6 +52327,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
51886
52327
|
}
|
|
51887
52328
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
51888
52329
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",\\"https://w3id.org/fep/7aa9\\"];
|
|
52330
|
+
|
|
52331
|
+
if (options.context == null) {
|
|
52332
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
52333
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
52334
|
+
context => !currentContexts.includes(context)
|
|
52335
|
+
);
|
|
52336
|
+
if (additionalContexts.length > 0) {
|
|
52337
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
52338
|
+
}
|
|
52339
|
+
}
|
|
52340
|
+
|
|
51889
52341
|
let compacted = await jsonld.compact(
|
|
51890
52342
|
values,
|
|
51891
52343
|
docContext,
|
|
@@ -52580,6 +53032,17 @@ get endpoints(): (URL)[] {
|
|
|
52580
53032
|
}
|
|
52581
53033
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
52582
53034
|
\\"https://www.w3.org/ns/did/v1\\";
|
|
53035
|
+
|
|
53036
|
+
if (options.context == null) {
|
|
53037
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
53038
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
53039
|
+
context => !currentContexts.includes(context)
|
|
53040
|
+
);
|
|
53041
|
+
if (additionalContexts.length > 0) {
|
|
53042
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
53043
|
+
}
|
|
53044
|
+
}
|
|
53045
|
+
|
|
52583
53046
|
let compacted = await jsonld.compact(
|
|
52584
53047
|
values,
|
|
52585
53048
|
docContext,
|
|
@@ -53012,6 +53475,17 @@ endpoints?: (URL)[];}
|
|
|
53012
53475
|
}
|
|
53013
53476
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
53014
53477
|
\\"https://www.w3.org/ns/did/v1\\";
|
|
53478
|
+
|
|
53479
|
+
if (options.context == null) {
|
|
53480
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
53481
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
53482
|
+
context => !currentContexts.includes(context)
|
|
53483
|
+
);
|
|
53484
|
+
if (additionalContexts.length > 0) {
|
|
53485
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
53486
|
+
}
|
|
53487
|
+
}
|
|
53488
|
+
|
|
53015
53489
|
let compacted = await jsonld.compact(
|
|
53016
53490
|
values,
|
|
53017
53491
|
docContext,
|
|
@@ -54149,6 +54623,17 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL |
|
|
|
54149
54623
|
}
|
|
54150
54624
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
54151
54625
|
\\"https://w3id.org/security/data-integrity/v1\\";
|
|
54626
|
+
|
|
54627
|
+
if (options.context == null) {
|
|
54628
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
54629
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
54630
|
+
context => !currentContexts.includes(context)
|
|
54631
|
+
);
|
|
54632
|
+
if (additionalContexts.length > 0) {
|
|
54633
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
54634
|
+
}
|
|
54635
|
+
}
|
|
54636
|
+
|
|
54152
54637
|
let compacted = await jsonld.compact(
|
|
54153
54638
|
values,
|
|
54154
54639
|
docContext,
|
|
@@ -55517,6 +56002,17 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi
|
|
|
55517
56002
|
}
|
|
55518
56003
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
55519
56004
|
\\"https://w3id.org/security/v1\\";
|
|
56005
|
+
|
|
56006
|
+
if (options.context == null) {
|
|
56007
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
56008
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
56009
|
+
context => !currentContexts.includes(context)
|
|
56010
|
+
);
|
|
56011
|
+
if (additionalContexts.length > 0) {
|
|
56012
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
56013
|
+
}
|
|
56014
|
+
}
|
|
56015
|
+
|
|
55520
56016
|
let compacted = await jsonld.compact(
|
|
55521
56017
|
values,
|
|
55522
56018
|
docContext,
|
|
@@ -56762,6 +57258,17 @@ controller?: Application | Group | Organization | Person | Service | URL | null;
|
|
|
56762
57258
|
}
|
|
56763
57259
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
56764
57260
|
\\"https://w3id.org/security/multikey/v1\\";
|
|
57261
|
+
|
|
57262
|
+
if (options.context == null) {
|
|
57263
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
57264
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
57265
|
+
context => !currentContexts.includes(context)
|
|
57266
|
+
);
|
|
57267
|
+
if (additionalContexts.length > 0) {
|
|
57268
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
57269
|
+
}
|
|
57270
|
+
}
|
|
57271
|
+
|
|
56765
57272
|
let compacted = await jsonld.compact(
|
|
56766
57273
|
values,
|
|
56767
57274
|
docContext,
|
|
@@ -57180,7 +57687,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
57180
57687
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
57181
57688
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
57182
57689
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
57183
|
-
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;}
|
|
57690
|
+
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;}
|
|
57184
57691
|
,
|
|
57185
57692
|
options: {
|
|
57186
57693
|
documentLoader?: DocumentLoader,
|
|
@@ -57251,7 +57758,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
57251
57758
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
57252
57759
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
57253
57760
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
57254
|
-
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;}
|
|
57761
|
+
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;}
|
|
57255
57762
|
|
|
57256
57763
|
= {},
|
|
57257
57764
|
options: {
|
|
@@ -57488,6 +57995,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
57488
57995
|
}
|
|
57489
57996
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
57490
57997
|
[\\"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\\"}];
|
|
57998
|
+
|
|
57999
|
+
if (options.context == null) {
|
|
58000
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
58001
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
58002
|
+
context => !currentContexts.includes(context)
|
|
58003
|
+
);
|
|
58004
|
+
if (additionalContexts.length > 0) {
|
|
58005
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
58006
|
+
}
|
|
58007
|
+
}
|
|
58008
|
+
|
|
57491
58009
|
let compacted = await jsonld.compact(
|
|
57492
58010
|
values,
|
|
57493
58011
|
docContext,
|
|
@@ -58223,6 +58741,17 @@ satisfies?: URL | null;resourceQuantity?: Measure | null;}
|
|
|
58223
58741
|
}
|
|
58224
58742
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
58225
58743
|
[\\"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\\"}];
|
|
58744
|
+
|
|
58745
|
+
if (options.context == null) {
|
|
58746
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
58747
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
58748
|
+
context => !currentContexts.includes(context)
|
|
58749
|
+
);
|
|
58750
|
+
if (additionalContexts.length > 0) {
|
|
58751
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
58752
|
+
}
|
|
58753
|
+
}
|
|
58754
|
+
|
|
58226
58755
|
let compacted = await jsonld.compact(
|
|
58227
58756
|
values,
|
|
58228
58757
|
docContext,
|
|
@@ -59187,6 +59716,17 @@ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measur
|
|
|
59187
59716
|
}
|
|
59188
59717
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
59189
59718
|
[\\"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\\"}];
|
|
59719
|
+
|
|
59720
|
+
if (options.context == null) {
|
|
59721
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
59722
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
59723
|
+
context => !currentContexts.includes(context)
|
|
59724
|
+
);
|
|
59725
|
+
if (additionalContexts.length > 0) {
|
|
59726
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
59727
|
+
}
|
|
59728
|
+
}
|
|
59729
|
+
|
|
59190
59730
|
let compacted = await jsonld.compact(
|
|
59191
59731
|
values,
|
|
59192
59732
|
docContext,
|
|
@@ -59734,7 +60274,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
59734
60274
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
59735
60275
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
59736
60276
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
59737
|
-
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;}
|
|
60277
|
+
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;}
|
|
59738
60278
|
,
|
|
59739
60279
|
options: {
|
|
59740
60280
|
documentLoader?: DocumentLoader,
|
|
@@ -59831,7 +60371,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
59831
60371
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
59832
60372
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
59833
60373
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
59834
|
-
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;}
|
|
60374
|
+
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;}
|
|
59835
60375
|
|
|
59836
60376
|
= {},
|
|
59837
60377
|
options: {
|
|
@@ -60193,6 +60733,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
60193
60733
|
}
|
|
60194
60734
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
60195
60735
|
[\\"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\\"}];
|
|
60736
|
+
|
|
60737
|
+
if (options.context == null) {
|
|
60738
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
60739
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
60740
|
+
context => !currentContexts.includes(context)
|
|
60741
|
+
);
|
|
60742
|
+
if (additionalContexts.length > 0) {
|
|
60743
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
60744
|
+
}
|
|
60745
|
+
}
|
|
60746
|
+
|
|
60196
60747
|
let compacted = await jsonld.compact(
|
|
60197
60748
|
values,
|
|
60198
60749
|
docContext,
|
|
@@ -60675,7 +61226,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
60675
61226
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
60676
61227
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
60677
61228
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
60678
|
-
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;
|
|
61229
|
+
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;
|
|
60679
61230
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
60680
61231
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
60681
61232
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -60726,7 +61277,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
60726
61277
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
60727
61278
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
60728
61279
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
60729
|
-
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;
|
|
61280
|
+
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;
|
|
60730
61281
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
60731
61282
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
60732
61283
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -60812,6 +61363,17 @@ instruments?: (Object | URL)[];}
|
|
|
60812
61363
|
}
|
|
60813
61364
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
60814
61365
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
61366
|
+
|
|
61367
|
+
if (options.context == null) {
|
|
61368
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
61369
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
61370
|
+
context => !currentContexts.includes(context)
|
|
61371
|
+
);
|
|
61372
|
+
if (additionalContexts.length > 0) {
|
|
61373
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
61374
|
+
}
|
|
61375
|
+
}
|
|
61376
|
+
|
|
60815
61377
|
let compacted = await jsonld.compact(
|
|
60816
61378
|
values,
|
|
60817
61379
|
docContext,
|
|
@@ -61097,7 +61659,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
61097
61659
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
61098
61660
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
61099
61661
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
61100
|
-
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;
|
|
61662
|
+
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;
|
|
61101
61663
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
61102
61664
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
61103
61665
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -61148,7 +61710,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
61148
61710
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
61149
61711
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
61150
61712
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
61151
|
-
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;
|
|
61713
|
+
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;
|
|
61152
61714
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
61153
61715
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
61154
61716
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -61234,6 +61796,17 @@ instruments?: (Object | URL)[];}
|
|
|
61234
61796
|
}
|
|
61235
61797
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
61236
61798
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
61799
|
+
|
|
61800
|
+
if (options.context == null) {
|
|
61801
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
61802
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
61803
|
+
context => !currentContexts.includes(context)
|
|
61804
|
+
);
|
|
61805
|
+
if (additionalContexts.length > 0) {
|
|
61806
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
61807
|
+
}
|
|
61808
|
+
}
|
|
61809
|
+
|
|
61237
61810
|
let compacted = await jsonld.compact(
|
|
61238
61811
|
values,
|
|
61239
61812
|
docContext,
|
|
@@ -61514,7 +62087,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
61514
62087
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
61515
62088
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
61516
62089
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
61517
|
-
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;
|
|
62090
|
+
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;
|
|
61518
62091
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
61519
62092
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
61520
62093
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -61565,7 +62138,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
61565
62138
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
61566
62139
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
61567
62140
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
61568
|
-
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;
|
|
62141
|
+
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;
|
|
61569
62142
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
61570
62143
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
61571
62144
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -61651,6 +62224,17 @@ instruments?: (Object | URL)[];}
|
|
|
61651
62224
|
}
|
|
61652
62225
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
61653
62226
|
[\\"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\\"}}];
|
|
62227
|
+
|
|
62228
|
+
if (options.context == null) {
|
|
62229
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
62230
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
62231
|
+
context => !currentContexts.includes(context)
|
|
62232
|
+
);
|
|
62233
|
+
if (additionalContexts.length > 0) {
|
|
62234
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
62235
|
+
}
|
|
62236
|
+
}
|
|
62237
|
+
|
|
61654
62238
|
let compacted = await jsonld.compact(
|
|
61655
62239
|
values,
|
|
61656
62240
|
docContext,
|
|
@@ -61954,6 +62538,7 @@ export class Application extends Object {
|
|
|
61954
62538
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service: Set<number> = new Set();
|
|
61955
62539
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage: (string)[] = [];
|
|
61956
62540
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat: (boolean)[] = [];
|
|
62541
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
61957
62542
|
|
|
61958
62543
|
/**
|
|
61959
62544
|
* Constructs a new instance of Application with the given values.
|
|
@@ -61980,13 +62565,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
61980
62565
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
61981
62566
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
61982
62567
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
61983
|
-
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;
|
|
62568
|
+
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;
|
|
61984
62569
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
61985
62570
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
61986
62571
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
61987
62572
|
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;
|
|
61988
62573
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
61989
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
62574
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
61990
62575
|
,
|
|
61991
62576
|
options: {
|
|
61992
62577
|
documentLoader?: DocumentLoader,
|
|
@@ -62467,6 +63052,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
62467
63052
|
);
|
|
62468
63053
|
}
|
|
62469
63054
|
}
|
|
63055
|
+
|
|
63056
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
63057
|
+
if (values.preferredLicense instanceof URL) {
|
|
63058
|
+
// @ts-ignore: type is checked above.
|
|
63059
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
63060
|
+
|
|
63061
|
+
} else {
|
|
63062
|
+
throw new TypeError(
|
|
63063
|
+
\\"The preferredLicense must be of type \\" +
|
|
63064
|
+
\\"URL\\" + \\".\\",
|
|
63065
|
+
);
|
|
63066
|
+
}
|
|
63067
|
+
}
|
|
62470
63068
|
}
|
|
62471
63069
|
|
|
62472
63070
|
/**
|
|
@@ -62503,13 +63101,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
62503
63101
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
62504
63102
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
62505
63103
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
62506
|
-
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;
|
|
63104
|
+
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;
|
|
62507
63105
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
62508
63106
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
62509
63107
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
62510
63108
|
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;
|
|
62511
63109
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
62512
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
63110
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
62513
63111
|
|
|
62514
63112
|
= {},
|
|
62515
63113
|
options: {
|
|
@@ -63003,6 +63601,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
63003
63601
|
);
|
|
63004
63602
|
}
|
|
63005
63603
|
}
|
|
63604
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
63605
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
63606
|
+
if (values.preferredLicense instanceof URL) {
|
|
63607
|
+
// @ts-ignore: type is checked above.
|
|
63608
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
63609
|
+
|
|
63610
|
+
} else {
|
|
63611
|
+
throw new TypeError(
|
|
63612
|
+
\\"The preferredLicense must be of type \\" +
|
|
63613
|
+
\\"URL\\" + \\".\\",
|
|
63614
|
+
);
|
|
63615
|
+
}
|
|
63616
|
+
}
|
|
63006
63617
|
|
|
63007
63618
|
return clone;
|
|
63008
63619
|
}
|
|
@@ -69891,6 +70502,25 @@ get gateways(): (URL)[] {
|
|
|
69891
70502
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
69892
70503
|
}
|
|
69893
70504
|
|
|
70505
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
70506
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
70507
|
+
* as the default \`license\` of a new object and let the user choose another.
|
|
70508
|
+
*
|
|
70509
|
+
* This is not a fallback license: an object without its own \`license\` is not
|
|
70510
|
+
* licensed under its author's preferred license.
|
|
70511
|
+
*
|
|
70512
|
+
*/
|
|
70513
|
+
get preferredLicense(): (URL | null) {
|
|
70514
|
+
if (this._warning != null) {
|
|
70515
|
+
getLogger(this._warning.category).warn(
|
|
70516
|
+
this._warning.message,
|
|
70517
|
+
this._warning.values
|
|
70518
|
+
);
|
|
70519
|
+
}
|
|
70520
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
70521
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
70522
|
+
}
|
|
70523
|
+
|
|
69894
70524
|
/**
|
|
69895
70525
|
* Converts this object to a JSON-LD structure.
|
|
69896
70526
|
* @param options The options to use.
|
|
@@ -70419,6 +71049,22 @@ get gateways(): (URL)[] {
|
|
|
70419
71049
|
|
|
70420
71050
|
}
|
|
70421
71051
|
|
|
71052
|
+
compactItems = [];
|
|
71053
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
71054
|
+
const item = (
|
|
71055
|
+
formatIri(v)
|
|
71056
|
+
);
|
|
71057
|
+
compactItems.push(item);
|
|
71058
|
+
}
|
|
71059
|
+
if (compactItems.length > 0) {
|
|
71060
|
+
|
|
71061
|
+
result[\\"preferredLicense\\"]
|
|
71062
|
+
= compactItems.length > 1
|
|
71063
|
+
? compactItems
|
|
71064
|
+
: compactItems[0];
|
|
71065
|
+
|
|
71066
|
+
}
|
|
71067
|
+
|
|
70422
71068
|
result[\\"type\\"] = \\"Application\\";
|
|
70423
71069
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
70424
71070
|
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\\"}];
|
|
@@ -70923,6 +71569,26 @@ get gateways(): (URL)[] {
|
|
|
70923
71569
|
|
|
70924
71570
|
}
|
|
70925
71571
|
|
|
71572
|
+
array = [];
|
|
71573
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
71574
|
+
let element = (
|
|
71575
|
+
{ \\"@id\\": formatIri(v) }
|
|
71576
|
+
);
|
|
71577
|
+
if (Array.isArray(element)) {
|
|
71578
|
+
if (element.length < 1) continue;
|
|
71579
|
+
if (element.length == 1) element = element[0];
|
|
71580
|
+
}
|
|
71581
|
+
if (typeof element === \\"undefined\\") continue;
|
|
71582
|
+
array.push(element);;
|
|
71583
|
+
}
|
|
71584
|
+
if (array.length > 0) {
|
|
71585
|
+
const propValue = (
|
|
71586
|
+
array
|
|
71587
|
+
);
|
|
71588
|
+
values[\\"https://w3id.org/fep/6757#preferredLicense\\"] = propValue;
|
|
71589
|
+
|
|
71590
|
+
}
|
|
71591
|
+
|
|
70926
71592
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Application\\"];
|
|
70927
71593
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
70928
71594
|
if (options.format === \\"expand\\") {
|
|
@@ -70936,6 +71602,17 @@ get gateways(): (URL)[] {
|
|
|
70936
71602
|
}
|
|
70937
71603
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
70938
71604
|
[\\"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\\"}];
|
|
71605
|
+
|
|
71606
|
+
if (options.context == null) {
|
|
71607
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
71608
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
71609
|
+
context => !currentContexts.includes(context)
|
|
71610
|
+
);
|
|
71611
|
+
if (additionalContexts.length > 0) {
|
|
71612
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
71613
|
+
}
|
|
71614
|
+
}
|
|
71615
|
+
|
|
70939
71616
|
let compacted = await jsonld.compact(
|
|
70940
71617
|
values,
|
|
70941
71618
|
docContext,
|
|
@@ -70987,6 +71664,11 @@ get gateways(): (URL)[] {
|
|
|
70987
71664
|
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0
|
|
70988
71665
|
) return false;
|
|
70989
71666
|
|
|
71667
|
+
if (
|
|
71668
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null &&
|
|
71669
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0
|
|
71670
|
+
) return false;
|
|
71671
|
+
|
|
70990
71672
|
return super.isCompactable();
|
|
70991
71673
|
}
|
|
70992
71674
|
|
|
@@ -72045,6 +72727,35 @@ get gateways(): (URL)[] {
|
|
|
72045
72727
|
|
|
72046
72728
|
}
|
|
72047
72729
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
72730
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
72731
|
+
|
|
72732
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values[\\"https://w3id.org/fep/6757#preferredLicense\\"];
|
|
72733
|
+
|
|
72734
|
+
for (
|
|
72735
|
+
const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null
|
|
72736
|
+
? []
|
|
72737
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && \\"@list\\" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]
|
|
72738
|
+
? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0][\\"@list\\"]
|
|
72739
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array
|
|
72740
|
+
) {
|
|
72741
|
+
if (v == null) continue;
|
|
72742
|
+
|
|
72743
|
+
const decoded =
|
|
72744
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
72745
|
+
;
|
|
72746
|
+
|
|
72747
|
+
if (typeof decoded === \\"undefined\\") {
|
|
72748
|
+
shouldCacheJsonLd = false;
|
|
72749
|
+
continue;
|
|
72750
|
+
}
|
|
72751
|
+
|
|
72752
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
72753
|
+
shouldCacheJsonLd = false;
|
|
72754
|
+
}
|
|
72755
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
72756
|
+
|
|
72757
|
+
}
|
|
72758
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
72048
72759
|
|
|
72049
72760
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
72050
72761
|
if (
|
|
@@ -72595,6 +73306,26 @@ get gateways(): (URL)[] {
|
|
|
72595
73306
|
proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
72596
73307
|
}
|
|
72597
73308
|
|
|
73309
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense
|
|
73310
|
+
// deno-lint-ignore no-explicit-any
|
|
73311
|
+
.map((v: any) => v instanceof URL
|
|
73312
|
+
? {
|
|
73313
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
73314
|
+
inspect: typeof Deno.inspect,
|
|
73315
|
+
options: Deno.InspectOptions,
|
|
73316
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
73317
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
73318
|
+
_depth: number,
|
|
73319
|
+
options: unknown,
|
|
73320
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
73321
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
73322
|
+
}
|
|
73323
|
+
: v);
|
|
73324
|
+
|
|
73325
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) {
|
|
73326
|
+
proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
73327
|
+
}
|
|
73328
|
+
|
|
72598
73329
|
return proxy;
|
|
72599
73330
|
}
|
|
72600
73331
|
}
|
|
@@ -72661,7 +73392,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
72661
73392
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
72662
73393
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
72663
73394
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
72664
|
-
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;
|
|
73395
|
+
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;
|
|
72665
73396
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
72666
73397
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
72667
73398
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -72712,7 +73443,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
72712
73443
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
72713
73444
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
72714
73445
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
72715
|
-
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;
|
|
73446
|
+
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;
|
|
72716
73447
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
72717
73448
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
72718
73449
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -72798,6 +73529,17 @@ instruments?: (Object | URL)[];}
|
|
|
72798
73529
|
}
|
|
72799
73530
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
72800
73531
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
73532
|
+
|
|
73533
|
+
if (options.context == null) {
|
|
73534
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
73535
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
73536
|
+
context => !currentContexts.includes(context)
|
|
73537
|
+
);
|
|
73538
|
+
if (additionalContexts.length > 0) {
|
|
73539
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
73540
|
+
}
|
|
73541
|
+
}
|
|
73542
|
+
|
|
72801
73543
|
let compacted = await jsonld.compact(
|
|
72802
73544
|
values,
|
|
72803
73545
|
docContext,
|
|
@@ -73090,7 +73832,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
73090
73832
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
73091
73833
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
73092
73834
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
73093
|
-
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;
|
|
73835
|
+
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;
|
|
73094
73836
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
73095
73837
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
73096
73838
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -73141,7 +73883,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
73141
73883
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
73142
73884
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
73143
73885
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
73144
|
-
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;
|
|
73886
|
+
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;
|
|
73145
73887
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
73146
73888
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
73147
73889
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -73227,6 +73969,17 @@ instruments?: (Object | URL)[];}
|
|
|
73227
73969
|
}
|
|
73228
73970
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
73229
73971
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
73972
|
+
|
|
73973
|
+
if (options.context == null) {
|
|
73974
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
73975
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
73976
|
+
context => !currentContexts.includes(context)
|
|
73977
|
+
);
|
|
73978
|
+
if (additionalContexts.length > 0) {
|
|
73979
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
73980
|
+
}
|
|
73981
|
+
}
|
|
73982
|
+
|
|
73230
73983
|
let compacted = await jsonld.compact(
|
|
73231
73984
|
values,
|
|
73232
73985
|
docContext,
|
|
@@ -73511,7 +74264,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
73511
74264
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
73512
74265
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
73513
74266
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
73514
|
-
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;}
|
|
74267
|
+
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;}
|
|
73515
74268
|
,
|
|
73516
74269
|
options: {
|
|
73517
74270
|
documentLoader?: DocumentLoader,
|
|
@@ -73595,7 +74348,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
73595
74348
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
73596
74349
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
73597
74350
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
73598
|
-
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;}
|
|
74351
|
+
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;}
|
|
73599
74352
|
|
|
73600
74353
|
= {},
|
|
73601
74354
|
options: {
|
|
@@ -74725,6 +75478,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
74725
75478
|
}
|
|
74726
75479
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
74727
75480
|
[\\"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\\"}}];
|
|
75481
|
+
|
|
75482
|
+
if (options.context == null) {
|
|
75483
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
75484
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
75485
|
+
context => !currentContexts.includes(context)
|
|
75486
|
+
);
|
|
75487
|
+
if (additionalContexts.length > 0) {
|
|
75488
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
75489
|
+
}
|
|
75490
|
+
}
|
|
75491
|
+
|
|
74728
75492
|
let compacted = await jsonld.compact(
|
|
74729
75493
|
values,
|
|
74730
75494
|
docContext,
|
|
@@ -75186,7 +75950,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
75186
75950
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
75187
75951
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
75188
75952
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
75189
|
-
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;}
|
|
75953
|
+
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;}
|
|
75190
75954
|
,
|
|
75191
75955
|
options: {
|
|
75192
75956
|
documentLoader?: DocumentLoader,
|
|
@@ -75270,7 +76034,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
75270
76034
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
75271
76035
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
75272
76036
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
75273
|
-
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;}
|
|
76037
|
+
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;}
|
|
75274
76038
|
|
|
75275
76039
|
= {},
|
|
75276
76040
|
options: {
|
|
@@ -75569,6 +76333,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
75569
76333
|
}
|
|
75570
76334
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
75571
76335
|
[\\"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\\"];
|
|
76336
|
+
|
|
76337
|
+
if (options.context == null) {
|
|
76338
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
76339
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
76340
|
+
context => !currentContexts.includes(context)
|
|
76341
|
+
);
|
|
76342
|
+
if (additionalContexts.length > 0) {
|
|
76343
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
76344
|
+
}
|
|
76345
|
+
}
|
|
76346
|
+
|
|
75572
76347
|
let compacted = await jsonld.compact(
|
|
75573
76348
|
values,
|
|
75574
76349
|
docContext,
|
|
@@ -76009,7 +76784,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
76009
76784
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
76010
76785
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
76011
76786
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
76012
|
-
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;}
|
|
76787
|
+
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;}
|
|
76013
76788
|
,
|
|
76014
76789
|
options: {
|
|
76015
76790
|
documentLoader?: DocumentLoader,
|
|
@@ -76054,7 +76829,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
76054
76829
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
76055
76830
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
76056
76831
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
76057
|
-
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;}
|
|
76832
|
+
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;}
|
|
76058
76833
|
|
|
76059
76834
|
= {},
|
|
76060
76835
|
options: {
|
|
@@ -76153,6 +76928,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
76153
76928
|
}
|
|
76154
76929
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
76155
76930
|
[\\"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\\"];
|
|
76931
|
+
|
|
76932
|
+
if (options.context == null) {
|
|
76933
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
76934
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
76935
|
+
context => !currentContexts.includes(context)
|
|
76936
|
+
);
|
|
76937
|
+
if (additionalContexts.length > 0) {
|
|
76938
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
76939
|
+
}
|
|
76940
|
+
}
|
|
76941
|
+
|
|
76156
76942
|
let compacted = await jsonld.compact(
|
|
76157
76943
|
values,
|
|
76158
76944
|
docContext,
|
|
@@ -76432,7 +77218,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
76432
77218
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
76433
77219
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
76434
77220
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
76435
|
-
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;
|
|
77221
|
+
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;
|
|
76436
77222
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
76437
77223
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
76438
77224
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -76483,7 +77269,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
76483
77269
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
76484
77270
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
76485
77271
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
76486
|
-
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;
|
|
77272
|
+
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;
|
|
76487
77273
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
76488
77274
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
76489
77275
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -76569,6 +77355,17 @@ instruments?: (Object | URL)[];}
|
|
|
76569
77355
|
}
|
|
76570
77356
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
76571
77357
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
77358
|
+
|
|
77359
|
+
if (options.context == null) {
|
|
77360
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
77361
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
77362
|
+
context => !currentContexts.includes(context)
|
|
77363
|
+
);
|
|
77364
|
+
if (additionalContexts.length > 0) {
|
|
77365
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
77366
|
+
}
|
|
77367
|
+
}
|
|
77368
|
+
|
|
76572
77369
|
let compacted = await jsonld.compact(
|
|
76573
77370
|
values,
|
|
76574
77371
|
docContext,
|
|
@@ -76854,7 +77651,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
76854
77651
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
76855
77652
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
76856
77653
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
76857
|
-
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;
|
|
77654
|
+
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;
|
|
76858
77655
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
76859
77656
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
76860
77657
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -76905,7 +77702,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
76905
77702
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
76906
77703
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
76907
77704
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
76908
|
-
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;
|
|
77705
|
+
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;
|
|
76909
77706
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
76910
77707
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
76911
77708
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -76991,6 +77788,17 @@ instruments?: (Object | URL)[];}
|
|
|
76991
77788
|
}
|
|
76992
77789
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
76993
77790
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
77791
|
+
|
|
77792
|
+
if (options.context == null) {
|
|
77793
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
77794
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
77795
|
+
context => !currentContexts.includes(context)
|
|
77796
|
+
);
|
|
77797
|
+
if (additionalContexts.length > 0) {
|
|
77798
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
77799
|
+
}
|
|
77800
|
+
}
|
|
77801
|
+
|
|
76994
77802
|
let compacted = await jsonld.compact(
|
|
76995
77803
|
values,
|
|
76996
77804
|
docContext,
|
|
@@ -77280,7 +78088,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
77280
78088
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
77281
78089
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
77282
78090
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
77283
|
-
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;}
|
|
78091
|
+
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;}
|
|
77284
78092
|
,
|
|
77285
78093
|
options: {
|
|
77286
78094
|
documentLoader?: DocumentLoader,
|
|
@@ -77364,7 +78172,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
77364
78172
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
77365
78173
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
77366
78174
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
77367
|
-
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;}
|
|
78175
|
+
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;}
|
|
77368
78176
|
|
|
77369
78177
|
= {},
|
|
77370
78178
|
options: {
|
|
@@ -78876,6 +79684,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
78876
79684
|
}
|
|
78877
79685
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
78878
79686
|
[\\"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\\"}}];
|
|
79687
|
+
|
|
79688
|
+
if (options.context == null) {
|
|
79689
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
79690
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
79691
|
+
context => !currentContexts.includes(context)
|
|
79692
|
+
);
|
|
79693
|
+
if (additionalContexts.length > 0) {
|
|
79694
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
79695
|
+
}
|
|
79696
|
+
}
|
|
79697
|
+
|
|
78879
79698
|
let compacted = await jsonld.compact(
|
|
78880
79699
|
values,
|
|
78881
79700
|
docContext,
|
|
@@ -79340,7 +80159,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
79340
80159
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
79341
80160
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
79342
80161
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
79343
|
-
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;
|
|
80162
|
+
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;
|
|
79344
80163
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
79345
80164
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
79346
80165
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -79391,7 +80210,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
79391
80210
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
79392
80211
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
79393
80212
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
79394
|
-
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;
|
|
80213
|
+
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;
|
|
79395
80214
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
79396
80215
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
79397
80216
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -79477,6 +80296,17 @@ instruments?: (Object | URL)[];}
|
|
|
79477
80296
|
}
|
|
79478
80297
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
79479
80298
|
[\\"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\\"}}];
|
|
80299
|
+
|
|
80300
|
+
if (options.context == null) {
|
|
80301
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
80302
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
80303
|
+
context => !currentContexts.includes(context)
|
|
80304
|
+
);
|
|
80305
|
+
if (additionalContexts.length > 0) {
|
|
80306
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
80307
|
+
}
|
|
80308
|
+
}
|
|
80309
|
+
|
|
79480
80310
|
let compacted = await jsonld.compact(
|
|
79481
80311
|
values,
|
|
79482
80312
|
docContext,
|
|
@@ -79756,7 +80586,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
79756
80586
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
79757
80587
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
79758
80588
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
79759
|
-
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;
|
|
80589
|
+
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;
|
|
79760
80590
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
79761
80591
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
79762
80592
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -79807,7 +80637,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
79807
80637
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
79808
80638
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
79809
80639
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
79810
|
-
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;
|
|
80640
|
+
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;
|
|
79811
80641
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
79812
80642
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
79813
80643
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -79893,6 +80723,17 @@ instruments?: (Object | URL)[];}
|
|
|
79893
80723
|
}
|
|
79894
80724
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
79895
80725
|
[\\"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\\"}}];
|
|
80726
|
+
|
|
80727
|
+
if (options.context == null) {
|
|
80728
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
80729
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
80730
|
+
context => !currentContexts.includes(context)
|
|
80731
|
+
);
|
|
80732
|
+
if (additionalContexts.length > 0) {
|
|
80733
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
80734
|
+
}
|
|
80735
|
+
}
|
|
80736
|
+
|
|
79896
80737
|
let compacted = await jsonld.compact(
|
|
79897
80738
|
values,
|
|
79898
80739
|
docContext,
|
|
@@ -80170,7 +81011,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
80170
81011
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
80171
81012
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
80172
81013
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
80173
|
-
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;
|
|
81014
|
+
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;
|
|
80174
81015
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
80175
81016
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
80176
81017
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -80221,7 +81062,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
80221
81062
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
80222
81063
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
80223
81064
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
80224
|
-
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;
|
|
81065
|
+
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;
|
|
80225
81066
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
80226
81067
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
80227
81068
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -80307,6 +81148,17 @@ instruments?: (Object | URL)[];}
|
|
|
80307
81148
|
}
|
|
80308
81149
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
80309
81150
|
[\\"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\\"}];
|
|
81151
|
+
|
|
81152
|
+
if (options.context == null) {
|
|
81153
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
81154
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
81155
|
+
context => !currentContexts.includes(context)
|
|
81156
|
+
);
|
|
81157
|
+
if (additionalContexts.length > 0) {
|
|
81158
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
81159
|
+
}
|
|
81160
|
+
}
|
|
81161
|
+
|
|
80310
81162
|
let compacted = await jsonld.compact(
|
|
80311
81163
|
values,
|
|
80312
81164
|
docContext,
|
|
@@ -81337,6 +82189,17 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint
|
|
|
81337
82189
|
}
|
|
81338
82190
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
81339
82191
|
\\"https://www.w3.org/ns/activitystreams\\";
|
|
82192
|
+
|
|
82193
|
+
if (options.context == null) {
|
|
82194
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
82195
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
82196
|
+
context => !currentContexts.includes(context)
|
|
82197
|
+
);
|
|
82198
|
+
if (additionalContexts.length > 0) {
|
|
82199
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
82200
|
+
}
|
|
82201
|
+
}
|
|
82202
|
+
|
|
81340
82203
|
let compacted = await jsonld.compact(
|
|
81341
82204
|
values,
|
|
81342
82205
|
docContext,
|
|
@@ -81957,7 +82820,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
81957
82820
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
81958
82821
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
81959
82822
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
81960
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];}
|
|
82823
|
+
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)[];}
|
|
81961
82824
|
,
|
|
81962
82825
|
options: {
|
|
81963
82826
|
documentLoader?: DocumentLoader,
|
|
@@ -82002,7 +82865,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
82002
82865
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
82003
82866
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
82004
82867
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
82005
|
-
proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;translations?: (Translation)[];}
|
|
82868
|
+
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)[];}
|
|
82006
82869
|
|
|
82007
82870
|
= {},
|
|
82008
82871
|
options: {
|
|
@@ -82101,6 +82964,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
82101
82964
|
}
|
|
82102
82965
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
82103
82966
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
82967
|
+
|
|
82968
|
+
if (options.context == null) {
|
|
82969
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
82970
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
82971
|
+
context => !currentContexts.includes(context)
|
|
82972
|
+
);
|
|
82973
|
+
if (additionalContexts.length > 0) {
|
|
82974
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
82975
|
+
}
|
|
82976
|
+
}
|
|
82977
|
+
|
|
82104
82978
|
let compacted = await jsonld.compact(
|
|
82105
82979
|
values,
|
|
82106
82980
|
docContext,
|
|
@@ -82381,7 +83255,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
82381
83255
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
82382
83256
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
82383
83257
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
82384
|
-
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;
|
|
83258
|
+
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;
|
|
82385
83259
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
82386
83260
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
82387
83261
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -82432,7 +83306,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
82432
83306
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
82433
83307
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
82434
83308
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
82435
|
-
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;
|
|
83309
|
+
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;
|
|
82436
83310
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
82437
83311
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
82438
83312
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -82518,6 +83392,17 @@ instruments?: (Object | URL)[];}
|
|
|
82518
83392
|
}
|
|
82519
83393
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
82520
83394
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
83395
|
+
|
|
83396
|
+
if (options.context == null) {
|
|
83397
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
83398
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
83399
|
+
context => !currentContexts.includes(context)
|
|
83400
|
+
);
|
|
83401
|
+
if (additionalContexts.length > 0) {
|
|
83402
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
83403
|
+
}
|
|
83404
|
+
}
|
|
83405
|
+
|
|
82521
83406
|
let compacted = await jsonld.compact(
|
|
82522
83407
|
values,
|
|
82523
83408
|
docContext,
|
|
@@ -82799,7 +83684,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
82799
83684
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
82800
83685
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
82801
83686
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
82802
|
-
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;
|
|
83687
|
+
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;
|
|
82803
83688
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
82804
83689
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
82805
83690
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -82850,7 +83735,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
82850
83735
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
82851
83736
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
82852
83737
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
82853
|
-
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;
|
|
83738
|
+
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;
|
|
82854
83739
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
82855
83740
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
82856
83741
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -82936,6 +83821,17 @@ instruments?: (Object | URL)[];}
|
|
|
82936
83821
|
}
|
|
82937
83822
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
82938
83823
|
[\\"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\\"];
|
|
83824
|
+
|
|
83825
|
+
if (options.context == null) {
|
|
83826
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
83827
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
83828
|
+
context => !currentContexts.includes(context)
|
|
83829
|
+
);
|
|
83830
|
+
if (additionalContexts.length > 0) {
|
|
83831
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
83832
|
+
}
|
|
83833
|
+
}
|
|
83834
|
+
|
|
82939
83835
|
let compacted = await jsonld.compact(
|
|
82940
83836
|
values,
|
|
82941
83837
|
docContext,
|
|
@@ -83239,6 +84135,7 @@ export class Group extends Object {
|
|
|
83239
84135
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service: Set<number> = new Set();
|
|
83240
84136
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage: (string)[] = [];
|
|
83241
84137
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat: (boolean)[] = [];
|
|
84138
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
83242
84139
|
|
|
83243
84140
|
/**
|
|
83244
84141
|
* Constructs a new instance of Group with the given values.
|
|
@@ -83265,13 +84162,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
83265
84162
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
83266
84163
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
83267
84164
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
83268
|
-
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;
|
|
84165
|
+
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;
|
|
83269
84166
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
83270
84167
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
83271
84168
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
83272
84169
|
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;
|
|
83273
84170
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
83274
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
84171
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
83275
84172
|
,
|
|
83276
84173
|
options: {
|
|
83277
84174
|
documentLoader?: DocumentLoader,
|
|
@@ -83752,6 +84649,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
83752
84649
|
);
|
|
83753
84650
|
}
|
|
83754
84651
|
}
|
|
84652
|
+
|
|
84653
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
84654
|
+
if (values.preferredLicense instanceof URL) {
|
|
84655
|
+
// @ts-ignore: type is checked above.
|
|
84656
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
84657
|
+
|
|
84658
|
+
} else {
|
|
84659
|
+
throw new TypeError(
|
|
84660
|
+
\\"The preferredLicense must be of type \\" +
|
|
84661
|
+
\\"URL\\" + \\".\\",
|
|
84662
|
+
);
|
|
84663
|
+
}
|
|
84664
|
+
}
|
|
83755
84665
|
}
|
|
83756
84666
|
|
|
83757
84667
|
/**
|
|
@@ -83788,13 +84698,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
83788
84698
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
83789
84699
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
83790
84700
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
83791
|
-
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;
|
|
84701
|
+
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;
|
|
83792
84702
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
83793
84703
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
83794
84704
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
83795
84705
|
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;
|
|
83796
84706
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
83797
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
84707
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
83798
84708
|
|
|
83799
84709
|
= {},
|
|
83800
84710
|
options: {
|
|
@@ -84288,6 +85198,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
84288
85198
|
);
|
|
84289
85199
|
}
|
|
84290
85200
|
}
|
|
85201
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
85202
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
85203
|
+
if (values.preferredLicense instanceof URL) {
|
|
85204
|
+
// @ts-ignore: type is checked above.
|
|
85205
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
85206
|
+
|
|
85207
|
+
} else {
|
|
85208
|
+
throw new TypeError(
|
|
85209
|
+
\\"The preferredLicense must be of type \\" +
|
|
85210
|
+
\\"URL\\" + \\".\\",
|
|
85211
|
+
);
|
|
85212
|
+
}
|
|
85213
|
+
}
|
|
84291
85214
|
|
|
84292
85215
|
return clone;
|
|
84293
85216
|
}
|
|
@@ -91176,6 +92099,25 @@ get gateways(): (URL)[] {
|
|
|
91176
92099
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
91177
92100
|
}
|
|
91178
92101
|
|
|
92102
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
92103
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
92104
|
+
* as the default \`license\` of a new object and let the user choose another.
|
|
92105
|
+
*
|
|
92106
|
+
* This is not a fallback license: an object without its own \`license\` is not
|
|
92107
|
+
* licensed under its author's preferred license.
|
|
92108
|
+
*
|
|
92109
|
+
*/
|
|
92110
|
+
get preferredLicense(): (URL | null) {
|
|
92111
|
+
if (this._warning != null) {
|
|
92112
|
+
getLogger(this._warning.category).warn(
|
|
92113
|
+
this._warning.message,
|
|
92114
|
+
this._warning.values
|
|
92115
|
+
);
|
|
92116
|
+
}
|
|
92117
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
92118
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
92119
|
+
}
|
|
92120
|
+
|
|
91179
92121
|
/**
|
|
91180
92122
|
* Converts this object to a JSON-LD structure.
|
|
91181
92123
|
* @param options The options to use.
|
|
@@ -91704,6 +92646,22 @@ get gateways(): (URL)[] {
|
|
|
91704
92646
|
|
|
91705
92647
|
}
|
|
91706
92648
|
|
|
92649
|
+
compactItems = [];
|
|
92650
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
92651
|
+
const item = (
|
|
92652
|
+
formatIri(v)
|
|
92653
|
+
);
|
|
92654
|
+
compactItems.push(item);
|
|
92655
|
+
}
|
|
92656
|
+
if (compactItems.length > 0) {
|
|
92657
|
+
|
|
92658
|
+
result[\\"preferredLicense\\"]
|
|
92659
|
+
= compactItems.length > 1
|
|
92660
|
+
? compactItems
|
|
92661
|
+
: compactItems[0];
|
|
92662
|
+
|
|
92663
|
+
}
|
|
92664
|
+
|
|
91707
92665
|
result[\\"type\\"] = \\"Group\\";
|
|
91708
92666
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
91709
92667
|
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\\"}];
|
|
@@ -92208,6 +93166,26 @@ get gateways(): (URL)[] {
|
|
|
92208
93166
|
|
|
92209
93167
|
}
|
|
92210
93168
|
|
|
93169
|
+
array = [];
|
|
93170
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
93171
|
+
let element = (
|
|
93172
|
+
{ \\"@id\\": formatIri(v) }
|
|
93173
|
+
);
|
|
93174
|
+
if (Array.isArray(element)) {
|
|
93175
|
+
if (element.length < 1) continue;
|
|
93176
|
+
if (element.length == 1) element = element[0];
|
|
93177
|
+
}
|
|
93178
|
+
if (typeof element === \\"undefined\\") continue;
|
|
93179
|
+
array.push(element);;
|
|
93180
|
+
}
|
|
93181
|
+
if (array.length > 0) {
|
|
93182
|
+
const propValue = (
|
|
93183
|
+
array
|
|
93184
|
+
);
|
|
93185
|
+
values[\\"https://w3id.org/fep/6757#preferredLicense\\"] = propValue;
|
|
93186
|
+
|
|
93187
|
+
}
|
|
93188
|
+
|
|
92211
93189
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Group\\"];
|
|
92212
93190
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
92213
93191
|
if (options.format === \\"expand\\") {
|
|
@@ -92221,6 +93199,17 @@ get gateways(): (URL)[] {
|
|
|
92221
93199
|
}
|
|
92222
93200
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
92223
93201
|
[\\"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\\"}];
|
|
93202
|
+
|
|
93203
|
+
if (options.context == null) {
|
|
93204
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
93205
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
93206
|
+
context => !currentContexts.includes(context)
|
|
93207
|
+
);
|
|
93208
|
+
if (additionalContexts.length > 0) {
|
|
93209
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
93210
|
+
}
|
|
93211
|
+
}
|
|
93212
|
+
|
|
92224
93213
|
let compacted = await jsonld.compact(
|
|
92225
93214
|
values,
|
|
92226
93215
|
docContext,
|
|
@@ -92272,6 +93261,11 @@ get gateways(): (URL)[] {
|
|
|
92272
93261
|
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0
|
|
92273
93262
|
) return false;
|
|
92274
93263
|
|
|
93264
|
+
if (
|
|
93265
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null &&
|
|
93266
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0
|
|
93267
|
+
) return false;
|
|
93268
|
+
|
|
92275
93269
|
return super.isCompactable();
|
|
92276
93270
|
}
|
|
92277
93271
|
|
|
@@ -93330,6 +94324,35 @@ get gateways(): (URL)[] {
|
|
|
93330
94324
|
|
|
93331
94325
|
}
|
|
93332
94326
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
94327
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
94328
|
+
|
|
94329
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values[\\"https://w3id.org/fep/6757#preferredLicense\\"];
|
|
94330
|
+
|
|
94331
|
+
for (
|
|
94332
|
+
const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null
|
|
94333
|
+
? []
|
|
94334
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && \\"@list\\" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]
|
|
94335
|
+
? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0][\\"@list\\"]
|
|
94336
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array
|
|
94337
|
+
) {
|
|
94338
|
+
if (v == null) continue;
|
|
94339
|
+
|
|
94340
|
+
const decoded =
|
|
94341
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
94342
|
+
;
|
|
94343
|
+
|
|
94344
|
+
if (typeof decoded === \\"undefined\\") {
|
|
94345
|
+
shouldCacheJsonLd = false;
|
|
94346
|
+
continue;
|
|
94347
|
+
}
|
|
94348
|
+
|
|
94349
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
94350
|
+
shouldCacheJsonLd = false;
|
|
94351
|
+
}
|
|
94352
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
94353
|
+
|
|
94354
|
+
}
|
|
94355
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
93333
94356
|
|
|
93334
94357
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
93335
94358
|
if (
|
|
@@ -93880,6 +94903,26 @@ get gateways(): (URL)[] {
|
|
|
93880
94903
|
proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
93881
94904
|
}
|
|
93882
94905
|
|
|
94906
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense
|
|
94907
|
+
// deno-lint-ignore no-explicit-any
|
|
94908
|
+
.map((v: any) => v instanceof URL
|
|
94909
|
+
? {
|
|
94910
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
94911
|
+
inspect: typeof Deno.inspect,
|
|
94912
|
+
options: Deno.InspectOptions,
|
|
94913
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
94914
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
94915
|
+
_depth: number,
|
|
94916
|
+
options: unknown,
|
|
94917
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
94918
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
94919
|
+
}
|
|
94920
|
+
: v);
|
|
94921
|
+
|
|
94922
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) {
|
|
94923
|
+
proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
94924
|
+
}
|
|
94925
|
+
|
|
93883
94926
|
return proxy;
|
|
93884
94927
|
}
|
|
93885
94928
|
}
|
|
@@ -94000,7 +95043,8 @@ export class Link {
|
|
|
94000
95043
|
|
|
94001
95044
|
#_gCVTegXxWWCw6wWRxa1QF65zusg_preview: (Link | Object | URL)[] = [];
|
|
94002
95045
|
#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview: Set<number> = new Set();
|
|
94003
|
-
|
|
95046
|
+
#_2rzkBRS4gNPrkJk9DohHAMUAxA2d: (URL)[] = [];
|
|
95047
|
+
|
|
94004
95048
|
/**
|
|
94005
95049
|
* Constructs a new instance of Link with the given values.
|
|
94006
95050
|
* @param values The values to initialize the instance with.
|
|
@@ -94012,7 +95056,7 @@ export class Link {
|
|
|
94012
95056
|
id?: URL | null;
|
|
94013
95057
|
href?: URL | null;rel?: string | null;
|
|
94014
95058
|
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
94015
|
-
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
95059
|
+
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];licenses?: (URL)[];}
|
|
94016
95060
|
,
|
|
94017
95061
|
options: {
|
|
94018
95062
|
documentLoader?: DocumentLoader,
|
|
@@ -94209,6 +95253,21 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
94209
95253
|
);
|
|
94210
95254
|
}
|
|
94211
95255
|
}
|
|
95256
|
+
|
|
95257
|
+
if (\\"licenses\\" in values && values.licenses != null) {
|
|
95258
|
+
|
|
95259
|
+
if (Array.isArray(values.licenses) &&
|
|
95260
|
+
values.licenses.every(v => v instanceof URL)) {
|
|
95261
|
+
// @ts-ignore: type is checked above.
|
|
95262
|
+
this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = values.licenses.slice();
|
|
95263
|
+
|
|
95264
|
+
} else {
|
|
95265
|
+
throw new TypeError(
|
|
95266
|
+
\\"The licenses must be an array of type \\" +
|
|
95267
|
+
\\"URL\\" + \\".\\",
|
|
95268
|
+
);
|
|
95269
|
+
}
|
|
95270
|
+
}
|
|
94212
95271
|
}
|
|
94213
95272
|
|
|
94214
95273
|
/**
|
|
@@ -94231,7 +95290,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
94231
95290
|
id?: URL | null;
|
|
94232
95291
|
href?: URL | null;rel?: string | null;
|
|
94233
95292
|
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
94234
|
-
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
95293
|
+
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];licenses?: (URL)[];}
|
|
94235
95294
|
|
|
94236
95295
|
= {},
|
|
94237
95296
|
options: {
|
|
@@ -94425,6 +95484,21 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
94425
95484
|
);
|
|
94426
95485
|
}
|
|
94427
95486
|
}
|
|
95487
|
+
clone.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.slice();
|
|
95488
|
+
if (\\"licenses\\" in values && values.licenses != null) {
|
|
95489
|
+
|
|
95490
|
+
if (Array.isArray(values.licenses) &&
|
|
95491
|
+
values.licenses.every(v => v instanceof URL)) {
|
|
95492
|
+
// @ts-ignore: type is checked above.
|
|
95493
|
+
clone.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = values.licenses.slice();
|
|
95494
|
+
|
|
95495
|
+
} else {
|
|
95496
|
+
throw new TypeError(
|
|
95497
|
+
\\"The licenses must be an array of type \\" +
|
|
95498
|
+
\\"URL\\" + \\".\\",
|
|
95499
|
+
);
|
|
95500
|
+
}
|
|
95501
|
+
}
|
|
94428
95502
|
|
|
94429
95503
|
return clone;
|
|
94430
95504
|
}
|
|
@@ -95011,6 +96085,24 @@ get names(): ((string | LanguageString))[] {
|
|
|
95011
96085
|
}
|
|
95012
96086
|
}
|
|
95013
96087
|
|
|
96088
|
+
/** The copyright licenses for the linked resource, as defined by
|
|
96089
|
+
* [FEP-6757](https://w3id.org/fep/6757). Each license is identified by its
|
|
96090
|
+
* URI, such as <https://creativecommons.org/publicdomain/mark/1.0/>; license
|
|
96091
|
+
* names and SPDX short identifiers are not license URIs. Multiple values are
|
|
96092
|
+
* alternatives that a consumer may choose from; their order has no meaning.
|
|
96093
|
+
*
|
|
96094
|
+
* An empty list means the link carries no license metadata. Fedify does not
|
|
96095
|
+
* synthesize a default license for it.
|
|
96096
|
+
*
|
|
96097
|
+
* The \`https://schema.org/license\` and
|
|
96098
|
+
* \`http://creativecommons.org/ns#license\` properties are read as synonyms
|
|
96099
|
+
* when this property is absent, but only this property is written.
|
|
96100
|
+
*
|
|
96101
|
+
*/
|
|
96102
|
+
get licenses(): (URL)[] {
|
|
96103
|
+
return this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
96104
|
+
}
|
|
96105
|
+
|
|
95014
96106
|
/**
|
|
95015
96107
|
* Converts this object to a JSON-LD structure.
|
|
95016
96108
|
* @param options The options to use.
|
|
@@ -95204,6 +96296,22 @@ get names(): ((string | LanguageString))[] {
|
|
|
95204
96296
|
|
|
95205
96297
|
}
|
|
95206
96298
|
|
|
96299
|
+
compactItems = [];
|
|
96300
|
+
for (const v of this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d) {
|
|
96301
|
+
const item = (
|
|
96302
|
+
formatIri(v)
|
|
96303
|
+
);
|
|
96304
|
+
compactItems.push(item);
|
|
96305
|
+
}
|
|
96306
|
+
if (compactItems.length > 0) {
|
|
96307
|
+
|
|
96308
|
+
result[\\"license\\"]
|
|
96309
|
+
= compactItems.length > 1
|
|
96310
|
+
? compactItems
|
|
96311
|
+
: compactItems[0];
|
|
96312
|
+
|
|
96313
|
+
}
|
|
96314
|
+
|
|
95207
96315
|
result[\\"type\\"] = \\"Link\\";
|
|
95208
96316
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
95209
96317
|
result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\"];
|
|
@@ -95404,6 +96512,26 @@ get names(): ((string | LanguageString))[] {
|
|
|
95404
96512
|
|
|
95405
96513
|
}
|
|
95406
96514
|
|
|
96515
|
+
array = [];
|
|
96516
|
+
for (const v of this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d) {
|
|
96517
|
+
let element = (
|
|
96518
|
+
{ \\"@id\\": formatIri(v) }
|
|
96519
|
+
);
|
|
96520
|
+
if (Array.isArray(element)) {
|
|
96521
|
+
if (element.length < 1) continue;
|
|
96522
|
+
if (element.length == 1) element = element[0];
|
|
96523
|
+
}
|
|
96524
|
+
if (typeof element === \\"undefined\\") continue;
|
|
96525
|
+
array.push(element);;
|
|
96526
|
+
}
|
|
96527
|
+
if (array.length > 0) {
|
|
96528
|
+
const propValue = (
|
|
96529
|
+
array
|
|
96530
|
+
);
|
|
96531
|
+
values[\\"http://purl.org/dc/terms/license\\"] = propValue;
|
|
96532
|
+
|
|
96533
|
+
}
|
|
96534
|
+
|
|
95407
96535
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Link\\"];
|
|
95408
96536
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
95409
96537
|
if (options.format === \\"expand\\") {
|
|
@@ -95417,6 +96545,17 @@ get names(): ((string | LanguageString))[] {
|
|
|
95417
96545
|
}
|
|
95418
96546
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
95419
96547
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/fep/ef61\\"];
|
|
96548
|
+
|
|
96549
|
+
if (options.context == null) {
|
|
96550
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
96551
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
96552
|
+
context => !currentContexts.includes(context)
|
|
96553
|
+
);
|
|
96554
|
+
if (additionalContexts.length > 0) {
|
|
96555
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
96556
|
+
}
|
|
96557
|
+
}
|
|
96558
|
+
|
|
95420
96559
|
let compacted = await jsonld.compact(
|
|
95421
96560
|
values,
|
|
95422
96561
|
docContext,
|
|
@@ -95452,6 +96591,11 @@ get names(): ((string | LanguageString))[] {
|
|
|
95452
96591
|
this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.length > 0
|
|
95453
96592
|
) return false;
|
|
95454
96593
|
|
|
96594
|
+
if (
|
|
96595
|
+
this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d != null &&
|
|
96596
|
+
this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 0
|
|
96597
|
+
) return false;
|
|
96598
|
+
|
|
95455
96599
|
return true;
|
|
95456
96600
|
}
|
|
95457
96601
|
|
|
@@ -95881,6 +97025,43 @@ get names(): ((string | LanguageString))[] {
|
|
|
95881
97025
|
|
|
95882
97026
|
}
|
|
95883
97027
|
instance.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
97028
|
+
const _2rzkBRS4gNPrkJk9DohHAMUAxA2d: (URL)[] = [];
|
|
97029
|
+
|
|
97030
|
+
let _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values[\\"http://purl.org/dc/terms/license\\"];
|
|
97031
|
+
|
|
97032
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null || _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length < 1) {
|
|
97033
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values[\\"https://schema.org/license\\"];
|
|
97034
|
+
}
|
|
97035
|
+
|
|
97036
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null || _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length < 1) {
|
|
97037
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d__array = values[\\"http://creativecommons.org/ns#license\\"];
|
|
97038
|
+
}
|
|
97039
|
+
|
|
97040
|
+
for (
|
|
97041
|
+
const v of _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array == null
|
|
97042
|
+
? []
|
|
97043
|
+
: _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array.length === 1 && \\"@list\\" in _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array[0]
|
|
97044
|
+
? _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array[0][\\"@list\\"]
|
|
97045
|
+
: _2rzkBRS4gNPrkJk9DohHAMUAxA2d__array
|
|
97046
|
+
) {
|
|
97047
|
+
if (v == null) continue;
|
|
97048
|
+
|
|
97049
|
+
const decoded =
|
|
97050
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
97051
|
+
;
|
|
97052
|
+
|
|
97053
|
+
if (typeof decoded === \\"undefined\\") {
|
|
97054
|
+
shouldCacheJsonLd = false;
|
|
97055
|
+
continue;
|
|
97056
|
+
}
|
|
97057
|
+
|
|
97058
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
97059
|
+
shouldCacheJsonLd = false;
|
|
97060
|
+
}
|
|
97061
|
+
_2rzkBRS4gNPrkJk9DohHAMUAxA2d.push(decoded);
|
|
97062
|
+
|
|
97063
|
+
}
|
|
97064
|
+
instance.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d = _2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
95884
97065
|
|
|
95885
97066
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
95886
97067
|
if (
|
|
@@ -96122,6 +97303,28 @@ get names(): ((string | LanguageString))[] {
|
|
|
96122
97303
|
proxy.previews = _gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
96123
97304
|
}
|
|
96124
97305
|
|
|
97306
|
+
const _2rzkBRS4gNPrkJk9DohHAMUAxA2d = this.#_2rzkBRS4gNPrkJk9DohHAMUAxA2d
|
|
97307
|
+
// deno-lint-ignore no-explicit-any
|
|
97308
|
+
.map((v: any) => v instanceof URL
|
|
97309
|
+
? {
|
|
97310
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
97311
|
+
inspect: typeof Deno.inspect,
|
|
97312
|
+
options: Deno.InspectOptions,
|
|
97313
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
97314
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
97315
|
+
_depth: number,
|
|
97316
|
+
options: unknown,
|
|
97317
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
97318
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
97319
|
+
}
|
|
97320
|
+
: v);
|
|
97321
|
+
|
|
97322
|
+
if (_2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 1
|
|
97323
|
+
|| !(\\"license\\" in proxy)
|
|
97324
|
+
&& _2rzkBRS4gNPrkJk9DohHAMUAxA2d.length > 0) {
|
|
97325
|
+
proxy.licenses = _2rzkBRS4gNPrkJk9DohHAMUAxA2d;
|
|
97326
|
+
}
|
|
97327
|
+
|
|
96125
97328
|
return proxy;
|
|
96126
97329
|
}
|
|
96127
97330
|
}
|
|
@@ -96174,7 +97377,7 @@ export class Hashtag extends Link {
|
|
|
96174
97377
|
id?: URL | null;
|
|
96175
97378
|
href?: URL | null;rel?: string | null;
|
|
96176
97379
|
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
96177
|
-
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
97380
|
+
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];licenses?: (URL)[];}
|
|
96178
97381
|
,
|
|
96179
97382
|
options: {
|
|
96180
97383
|
documentLoader?: DocumentLoader,
|
|
@@ -96205,7 +97408,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
96205
97408
|
id?: URL | null;
|
|
96206
97409
|
href?: URL | null;rel?: string | null;
|
|
96207
97410
|
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
96208
|
-
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
97411
|
+
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];licenses?: (URL)[];}
|
|
96209
97412
|
|
|
96210
97413
|
= {},
|
|
96211
97414
|
options: {
|
|
@@ -96304,6 +97507,17 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
96304
97507
|
}
|
|
96305
97508
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
96306
97509
|
[\\"https://www.w3.org/ns/activitystreams\\",{\\"Hashtag\\":\\"as:Hashtag\\"}];
|
|
97510
|
+
|
|
97511
|
+
if (options.context == null) {
|
|
97512
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
97513
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
97514
|
+
context => !currentContexts.includes(context)
|
|
97515
|
+
);
|
|
97516
|
+
if (additionalContexts.length > 0) {
|
|
97517
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
97518
|
+
}
|
|
97519
|
+
}
|
|
97520
|
+
|
|
96307
97521
|
let compacted = await jsonld.compact(
|
|
96308
97522
|
values,
|
|
96309
97523
|
docContext,
|
|
@@ -96570,7 +97784,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
96570
97784
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
96571
97785
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
96572
97786
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
96573
|
-
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;}
|
|
97787
|
+
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;}
|
|
96574
97788
|
,
|
|
96575
97789
|
options: {
|
|
96576
97790
|
documentLoader?: DocumentLoader,
|
|
@@ -96615,7 +97829,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
96615
97829
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
96616
97830
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
96617
97831
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
96618
|
-
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;}
|
|
97832
|
+
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;}
|
|
96619
97833
|
|
|
96620
97834
|
= {},
|
|
96621
97835
|
options: {
|
|
@@ -96714,6 +97928,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
96714
97928
|
}
|
|
96715
97929
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
96716
97930
|
[\\"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\\"];
|
|
97931
|
+
|
|
97932
|
+
if (options.context == null) {
|
|
97933
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
97934
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
97935
|
+
context => !currentContexts.includes(context)
|
|
97936
|
+
);
|
|
97937
|
+
if (additionalContexts.length > 0) {
|
|
97938
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
97939
|
+
}
|
|
97940
|
+
}
|
|
97941
|
+
|
|
96717
97942
|
let compacted = await jsonld.compact(
|
|
96718
97943
|
values,
|
|
96719
97944
|
docContext,
|
|
@@ -96994,7 +98219,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
96994
98219
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
96995
98220
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
96996
98221
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
96997
|
-
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;
|
|
98222
|
+
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;
|
|
96998
98223
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
96999
98224
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
97000
98225
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -97045,7 +98270,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
97045
98270
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
97046
98271
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
97047
98272
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
97048
|
-
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;
|
|
98273
|
+
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;
|
|
97049
98274
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
97050
98275
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
97051
98276
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -97131,6 +98356,17 @@ instruments?: (Object | URL)[];}
|
|
|
97131
98356
|
}
|
|
97132
98357
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
97133
98358
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
98359
|
+
|
|
98360
|
+
if (options.context == null) {
|
|
98361
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
98362
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
98363
|
+
context => !currentContexts.includes(context)
|
|
98364
|
+
);
|
|
98365
|
+
if (additionalContexts.length > 0) {
|
|
98366
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
98367
|
+
}
|
|
98368
|
+
}
|
|
98369
|
+
|
|
97134
98370
|
let compacted = await jsonld.compact(
|
|
97135
98371
|
values,
|
|
97136
98372
|
docContext,
|
|
@@ -97414,7 +98650,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
97414
98650
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
97415
98651
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
97416
98652
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
97417
|
-
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;
|
|
98653
|
+
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;
|
|
97418
98654
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
97419
98655
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
97420
98656
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -97465,7 +98701,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
97465
98701
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
97466
98702
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
97467
98703
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
97468
|
-
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;
|
|
98704
|
+
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;
|
|
97469
98705
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
97470
98706
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
97471
98707
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -97551,6 +98787,17 @@ instruments?: (Object | URL)[];}
|
|
|
97551
98787
|
}
|
|
97552
98788
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
97553
98789
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
98790
|
+
|
|
98791
|
+
if (options.context == null) {
|
|
98792
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
98793
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
98794
|
+
context => !currentContexts.includes(context)
|
|
98795
|
+
);
|
|
98796
|
+
if (additionalContexts.length > 0) {
|
|
98797
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
98798
|
+
}
|
|
98799
|
+
}
|
|
98800
|
+
|
|
97554
98801
|
let compacted = await jsonld.compact(
|
|
97555
98802
|
values,
|
|
97556
98803
|
docContext,
|
|
@@ -97830,7 +99077,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
97830
99077
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
97831
99078
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
97832
99079
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
97833
|
-
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;
|
|
99080
|
+
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;
|
|
97834
99081
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
97835
99082
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
97836
99083
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -97881,7 +99128,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
97881
99128
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
97882
99129
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
97883
99130
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
97884
|
-
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;
|
|
99131
|
+
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;
|
|
97885
99132
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
97886
99133
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
97887
99134
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -97967,6 +99214,17 @@ instruments?: (Object | URL)[];}
|
|
|
97967
99214
|
}
|
|
97968
99215
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
97969
99216
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
99217
|
+
|
|
99218
|
+
if (options.context == null) {
|
|
99219
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
99220
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
99221
|
+
context => !currentContexts.includes(context)
|
|
99222
|
+
);
|
|
99223
|
+
if (additionalContexts.length > 0) {
|
|
99224
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
99225
|
+
}
|
|
99226
|
+
}
|
|
99227
|
+
|
|
97970
99228
|
let compacted = await jsonld.compact(
|
|
97971
99229
|
values,
|
|
97972
99230
|
docContext,
|
|
@@ -98246,7 +99504,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
98246
99504
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
98247
99505
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
98248
99506
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
98249
|
-
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;
|
|
99507
|
+
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;
|
|
98250
99508
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
98251
99509
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
98252
99510
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -98297,7 +99555,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
98297
99555
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
98298
99556
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
98299
99557
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
98300
|
-
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;
|
|
99558
|
+
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;
|
|
98301
99559
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
98302
99560
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
98303
99561
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -98383,6 +99641,17 @@ instruments?: (Object | URL)[];}
|
|
|
98383
99641
|
}
|
|
98384
99642
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
98385
99643
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
99644
|
+
|
|
99645
|
+
if (options.context == null) {
|
|
99646
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
99647
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
99648
|
+
context => !currentContexts.includes(context)
|
|
99649
|
+
);
|
|
99650
|
+
if (additionalContexts.length > 0) {
|
|
99651
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
99652
|
+
}
|
|
99653
|
+
}
|
|
99654
|
+
|
|
98386
99655
|
let compacted = await jsonld.compact(
|
|
98387
99656
|
values,
|
|
98388
99657
|
docContext,
|
|
@@ -98662,7 +99931,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
98662
99931
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
98663
99932
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
98664
99933
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
98665
|
-
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;
|
|
99934
|
+
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;
|
|
98666
99935
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
98667
99936
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
98668
99937
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -98713,7 +99982,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
98713
99982
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
98714
99983
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
98715
99984
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
98716
|
-
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;
|
|
99985
|
+
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;
|
|
98717
99986
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
98718
99987
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
98719
99988
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -98799,6 +100068,17 @@ instruments?: (Object | URL)[];}
|
|
|
98799
100068
|
}
|
|
98800
100069
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
98801
100070
|
[\\"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\\"}];
|
|
100071
|
+
|
|
100072
|
+
if (options.context == null) {
|
|
100073
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
100074
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
100075
|
+
context => !currentContexts.includes(context)
|
|
100076
|
+
);
|
|
100077
|
+
if (additionalContexts.length > 0) {
|
|
100078
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
100079
|
+
}
|
|
100080
|
+
}
|
|
100081
|
+
|
|
98802
100082
|
let compacted = await jsonld.compact(
|
|
98803
100083
|
values,
|
|
98804
100084
|
docContext,
|
|
@@ -99076,7 +100356,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
99076
100356
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
99077
100357
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
99078
100358
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
99079
|
-
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;
|
|
100359
|
+
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;
|
|
99080
100360
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
99081
100361
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
99082
100362
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -99127,7 +100407,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
99127
100407
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
99128
100408
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
99129
100409
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
99130
|
-
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;
|
|
100410
|
+
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;
|
|
99131
100411
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
99132
100412
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
99133
100413
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -99213,6 +100493,17 @@ instruments?: (Object | URL)[];}
|
|
|
99213
100493
|
}
|
|
99214
100494
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
99215
100495
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
100496
|
+
|
|
100497
|
+
if (options.context == null) {
|
|
100498
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
100499
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
100500
|
+
context => !currentContexts.includes(context)
|
|
100501
|
+
);
|
|
100502
|
+
if (additionalContexts.length > 0) {
|
|
100503
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
100504
|
+
}
|
|
100505
|
+
}
|
|
100506
|
+
|
|
99216
100507
|
let compacted = await jsonld.compact(
|
|
99217
100508
|
values,
|
|
99218
100509
|
docContext,
|
|
@@ -99476,7 +100767,7 @@ export class Mention extends Link {
|
|
|
99476
100767
|
id?: URL | null;
|
|
99477
100768
|
href?: URL | null;rel?: string | null;
|
|
99478
100769
|
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
99479
|
-
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
100770
|
+
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];licenses?: (URL)[];}
|
|
99480
100771
|
,
|
|
99481
100772
|
options: {
|
|
99482
100773
|
documentLoader?: DocumentLoader,
|
|
@@ -99507,7 +100798,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
99507
100798
|
id?: URL | null;
|
|
99508
100799
|
href?: URL | null;rel?: string | null;
|
|
99509
100800
|
rels?: (string)[];mediaType?: string | null;digestMultibase?: string | null;name?: string | LanguageString | null;
|
|
99510
|
-
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];}
|
|
100801
|
+
names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: number | null;width?: number | null;previews?: (Link | Object | URL)[];licenses?: (URL)[];}
|
|
99511
100802
|
|
|
99512
100803
|
= {},
|
|
99513
100804
|
options: {
|
|
@@ -99606,6 +100897,17 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num
|
|
|
99606
100897
|
}
|
|
99607
100898
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
99608
100899
|
\\"https://www.w3.org/ns/activitystreams\\";
|
|
100900
|
+
|
|
100901
|
+
if (options.context == null) {
|
|
100902
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
100903
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
100904
|
+
context => !currentContexts.includes(context)
|
|
100905
|
+
);
|
|
100906
|
+
if (additionalContexts.length > 0) {
|
|
100907
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
100908
|
+
}
|
|
100909
|
+
}
|
|
100910
|
+
|
|
99609
100911
|
let compacted = await jsonld.compact(
|
|
99610
100912
|
values,
|
|
99611
100913
|
docContext,
|
|
@@ -99875,7 +101177,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
99875
101177
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
99876
101178
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
99877
101179
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
99878
|
-
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;
|
|
101180
|
+
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;
|
|
99879
101181
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
99880
101182
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
99881
101183
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -99926,7 +101228,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
99926
101228
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
99927
101229
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
99928
101230
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
99929
|
-
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;
|
|
101231
|
+
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;
|
|
99930
101232
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
99931
101233
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
99932
101234
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -100012,6 +101314,17 @@ instruments?: (Object | URL)[];}
|
|
|
100012
101314
|
}
|
|
100013
101315
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
100014
101316
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
101317
|
+
|
|
101318
|
+
if (options.context == null) {
|
|
101319
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
101320
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
101321
|
+
context => !currentContexts.includes(context)
|
|
101322
|
+
);
|
|
101323
|
+
if (additionalContexts.length > 0) {
|
|
101324
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
101325
|
+
}
|
|
101326
|
+
}
|
|
101327
|
+
|
|
100015
101328
|
let compacted = await jsonld.compact(
|
|
100016
101329
|
values,
|
|
100017
101330
|
docContext,
|
|
@@ -100298,7 +101611,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
100298
101611
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
100299
101612
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
100300
101613
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
100301
|
-
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;}
|
|
101614
|
+
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;}
|
|
100302
101615
|
,
|
|
100303
101616
|
options: {
|
|
100304
101617
|
documentLoader?: DocumentLoader,
|
|
@@ -100382,7 +101695,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
100382
101695
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
100383
101696
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
100384
101697
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
100385
|
-
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;}
|
|
101698
|
+
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;}
|
|
100386
101699
|
|
|
100387
101700
|
= {},
|
|
100388
101701
|
options: {
|
|
@@ -101512,6 +102825,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
101512
102825
|
}
|
|
101513
102826
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
101514
102827
|
[\\"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\\"}}];
|
|
102828
|
+
|
|
102829
|
+
if (options.context == null) {
|
|
102830
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
102831
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
102832
|
+
context => !currentContexts.includes(context)
|
|
102833
|
+
);
|
|
102834
|
+
if (additionalContexts.length > 0) {
|
|
102835
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
102836
|
+
}
|
|
102837
|
+
}
|
|
102838
|
+
|
|
101515
102839
|
let compacted = await jsonld.compact(
|
|
101516
102840
|
values,
|
|
101517
102841
|
docContext,
|
|
@@ -101977,7 +103301,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
101977
103301
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
101978
103302
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
101979
103303
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
101980
|
-
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;}
|
|
103304
|
+
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;}
|
|
101981
103305
|
,
|
|
101982
103306
|
options: {
|
|
101983
103307
|
documentLoader?: DocumentLoader,
|
|
@@ -102054,7 +103378,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
102054
103378
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
102055
103379
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
102056
103380
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
102057
|
-
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;}
|
|
103381
|
+
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;}
|
|
102058
103382
|
|
|
102059
103383
|
= {},
|
|
102060
103384
|
options: {
|
|
@@ -102720,6 +104044,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
102720
104044
|
}
|
|
102721
104045
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
102722
104046
|
[\\"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\\"}}];
|
|
104047
|
+
|
|
104048
|
+
if (options.context == null) {
|
|
104049
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
104050
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
104051
|
+
context => !currentContexts.includes(context)
|
|
104052
|
+
);
|
|
104053
|
+
if (additionalContexts.length > 0) {
|
|
104054
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
104055
|
+
}
|
|
104056
|
+
}
|
|
104057
|
+
|
|
102723
104058
|
let compacted = await jsonld.compact(
|
|
102724
104059
|
values,
|
|
102725
104060
|
docContext,
|
|
@@ -103142,6 +104477,7 @@ export class Organization extends Object {
|
|
|
103142
104477
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service: Set<number> = new Set();
|
|
103143
104478
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage: (string)[] = [];
|
|
103144
104479
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat: (boolean)[] = [];
|
|
104480
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
103145
104481
|
|
|
103146
104482
|
/**
|
|
103147
104483
|
* Constructs a new instance of Organization with the given values.
|
|
@@ -103168,13 +104504,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
103168
104504
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
103169
104505
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
103170
104506
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
103171
|
-
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;
|
|
104507
|
+
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;
|
|
103172
104508
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
103173
104509
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
103174
104510
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
103175
104511
|
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;
|
|
103176
104512
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
103177
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
104513
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
103178
104514
|
,
|
|
103179
104515
|
options: {
|
|
103180
104516
|
documentLoader?: DocumentLoader,
|
|
@@ -103655,6 +104991,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
103655
104991
|
);
|
|
103656
104992
|
}
|
|
103657
104993
|
}
|
|
104994
|
+
|
|
104995
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
104996
|
+
if (values.preferredLicense instanceof URL) {
|
|
104997
|
+
// @ts-ignore: type is checked above.
|
|
104998
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
104999
|
+
|
|
105000
|
+
} else {
|
|
105001
|
+
throw new TypeError(
|
|
105002
|
+
\\"The preferredLicense must be of type \\" +
|
|
105003
|
+
\\"URL\\" + \\".\\",
|
|
105004
|
+
);
|
|
105005
|
+
}
|
|
105006
|
+
}
|
|
103658
105007
|
}
|
|
103659
105008
|
|
|
103660
105009
|
/**
|
|
@@ -103691,13 +105040,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
103691
105040
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
103692
105041
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
103693
105042
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
103694
|
-
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;
|
|
105043
|
+
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;
|
|
103695
105044
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
103696
105045
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
103697
105046
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
103698
105047
|
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;
|
|
103699
105048
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
103700
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
105049
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
103701
105050
|
|
|
103702
105051
|
= {},
|
|
103703
105052
|
options: {
|
|
@@ -104191,6 +105540,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
104191
105540
|
);
|
|
104192
105541
|
}
|
|
104193
105542
|
}
|
|
105543
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
105544
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
105545
|
+
if (values.preferredLicense instanceof URL) {
|
|
105546
|
+
// @ts-ignore: type is checked above.
|
|
105547
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
105548
|
+
|
|
105549
|
+
} else {
|
|
105550
|
+
throw new TypeError(
|
|
105551
|
+
\\"The preferredLicense must be of type \\" +
|
|
105552
|
+
\\"URL\\" + \\".\\",
|
|
105553
|
+
);
|
|
105554
|
+
}
|
|
105555
|
+
}
|
|
104194
105556
|
|
|
104195
105557
|
return clone;
|
|
104196
105558
|
}
|
|
@@ -111079,6 +112441,25 @@ get gateways(): (URL)[] {
|
|
|
111079
112441
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
111080
112442
|
}
|
|
111081
112443
|
|
|
112444
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
112445
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
112446
|
+
* as the default \`license\` of a new object and let the user choose another.
|
|
112447
|
+
*
|
|
112448
|
+
* This is not a fallback license: an object without its own \`license\` is not
|
|
112449
|
+
* licensed under its author's preferred license.
|
|
112450
|
+
*
|
|
112451
|
+
*/
|
|
112452
|
+
get preferredLicense(): (URL | null) {
|
|
112453
|
+
if (this._warning != null) {
|
|
112454
|
+
getLogger(this._warning.category).warn(
|
|
112455
|
+
this._warning.message,
|
|
112456
|
+
this._warning.values
|
|
112457
|
+
);
|
|
112458
|
+
}
|
|
112459
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
112460
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
112461
|
+
}
|
|
112462
|
+
|
|
111082
112463
|
/**
|
|
111083
112464
|
* Converts this object to a JSON-LD structure.
|
|
111084
112465
|
* @param options The options to use.
|
|
@@ -111607,6 +112988,22 @@ get gateways(): (URL)[] {
|
|
|
111607
112988
|
|
|
111608
112989
|
}
|
|
111609
112990
|
|
|
112991
|
+
compactItems = [];
|
|
112992
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
112993
|
+
const item = (
|
|
112994
|
+
formatIri(v)
|
|
112995
|
+
);
|
|
112996
|
+
compactItems.push(item);
|
|
112997
|
+
}
|
|
112998
|
+
if (compactItems.length > 0) {
|
|
112999
|
+
|
|
113000
|
+
result[\\"preferredLicense\\"]
|
|
113001
|
+
= compactItems.length > 1
|
|
113002
|
+
? compactItems
|
|
113003
|
+
: compactItems[0];
|
|
113004
|
+
|
|
113005
|
+
}
|
|
113006
|
+
|
|
111610
113007
|
result[\\"type\\"] = \\"Organization\\";
|
|
111611
113008
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
111612
113009
|
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\\"}];
|
|
@@ -112111,6 +113508,26 @@ get gateways(): (URL)[] {
|
|
|
112111
113508
|
|
|
112112
113509
|
}
|
|
112113
113510
|
|
|
113511
|
+
array = [];
|
|
113512
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
113513
|
+
let element = (
|
|
113514
|
+
{ \\"@id\\": formatIri(v) }
|
|
113515
|
+
);
|
|
113516
|
+
if (Array.isArray(element)) {
|
|
113517
|
+
if (element.length < 1) continue;
|
|
113518
|
+
if (element.length == 1) element = element[0];
|
|
113519
|
+
}
|
|
113520
|
+
if (typeof element === \\"undefined\\") continue;
|
|
113521
|
+
array.push(element);;
|
|
113522
|
+
}
|
|
113523
|
+
if (array.length > 0) {
|
|
113524
|
+
const propValue = (
|
|
113525
|
+
array
|
|
113526
|
+
);
|
|
113527
|
+
values[\\"https://w3id.org/fep/6757#preferredLicense\\"] = propValue;
|
|
113528
|
+
|
|
113529
|
+
}
|
|
113530
|
+
|
|
112114
113531
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Organization\\"];
|
|
112115
113532
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
112116
113533
|
if (options.format === \\"expand\\") {
|
|
@@ -112124,6 +113541,17 @@ get gateways(): (URL)[] {
|
|
|
112124
113541
|
}
|
|
112125
113542
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
112126
113543
|
[\\"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\\"}];
|
|
113544
|
+
|
|
113545
|
+
if (options.context == null) {
|
|
113546
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
113547
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
113548
|
+
context => !currentContexts.includes(context)
|
|
113549
|
+
);
|
|
113550
|
+
if (additionalContexts.length > 0) {
|
|
113551
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
113552
|
+
}
|
|
113553
|
+
}
|
|
113554
|
+
|
|
112127
113555
|
let compacted = await jsonld.compact(
|
|
112128
113556
|
values,
|
|
112129
113557
|
docContext,
|
|
@@ -112175,6 +113603,11 @@ get gateways(): (URL)[] {
|
|
|
112175
113603
|
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0
|
|
112176
113604
|
) return false;
|
|
112177
113605
|
|
|
113606
|
+
if (
|
|
113607
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null &&
|
|
113608
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0
|
|
113609
|
+
) return false;
|
|
113610
|
+
|
|
112178
113611
|
return super.isCompactable();
|
|
112179
113612
|
}
|
|
112180
113613
|
|
|
@@ -113233,6 +114666,35 @@ get gateways(): (URL)[] {
|
|
|
113233
114666
|
|
|
113234
114667
|
}
|
|
113235
114668
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
114669
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
114670
|
+
|
|
114671
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values[\\"https://w3id.org/fep/6757#preferredLicense\\"];
|
|
114672
|
+
|
|
114673
|
+
for (
|
|
114674
|
+
const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null
|
|
114675
|
+
? []
|
|
114676
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && \\"@list\\" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]
|
|
114677
|
+
? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0][\\"@list\\"]
|
|
114678
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array
|
|
114679
|
+
) {
|
|
114680
|
+
if (v == null) continue;
|
|
114681
|
+
|
|
114682
|
+
const decoded =
|
|
114683
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
114684
|
+
;
|
|
114685
|
+
|
|
114686
|
+
if (typeof decoded === \\"undefined\\") {
|
|
114687
|
+
shouldCacheJsonLd = false;
|
|
114688
|
+
continue;
|
|
114689
|
+
}
|
|
114690
|
+
|
|
114691
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
114692
|
+
shouldCacheJsonLd = false;
|
|
114693
|
+
}
|
|
114694
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
114695
|
+
|
|
114696
|
+
}
|
|
114697
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
113236
114698
|
|
|
113237
114699
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
113238
114700
|
if (
|
|
@@ -113783,6 +115245,26 @@ get gateways(): (URL)[] {
|
|
|
113783
115245
|
proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
113784
115246
|
}
|
|
113785
115247
|
|
|
115248
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense
|
|
115249
|
+
// deno-lint-ignore no-explicit-any
|
|
115250
|
+
.map((v: any) => v instanceof URL
|
|
115251
|
+
? {
|
|
115252
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
115253
|
+
inspect: typeof Deno.inspect,
|
|
115254
|
+
options: Deno.InspectOptions,
|
|
115255
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
115256
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
115257
|
+
_depth: number,
|
|
115258
|
+
options: unknown,
|
|
115259
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
115260
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
115261
|
+
}
|
|
115262
|
+
: v);
|
|
115263
|
+
|
|
115264
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) {
|
|
115265
|
+
proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
115266
|
+
}
|
|
115267
|
+
|
|
113786
115268
|
return proxy;
|
|
113787
115269
|
}
|
|
113788
115270
|
}
|
|
@@ -113846,7 +115328,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
113846
115328
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
113847
115329
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
113848
115330
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
113849
|
-
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;}
|
|
115331
|
+
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;}
|
|
113850
115332
|
,
|
|
113851
115333
|
options: {
|
|
113852
115334
|
documentLoader?: DocumentLoader,
|
|
@@ -113891,7 +115373,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
113891
115373
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
113892
115374
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
113893
115375
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
113894
|
-
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;}
|
|
115376
|
+
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;}
|
|
113895
115377
|
|
|
113896
115378
|
= {},
|
|
113897
115379
|
options: {
|
|
@@ -113990,6 +115472,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
113990
115472
|
}
|
|
113991
115473
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
113992
115474
|
[\\"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\\"];
|
|
115475
|
+
|
|
115476
|
+
if (options.context == null) {
|
|
115477
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
115478
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
115479
|
+
context => !currentContexts.includes(context)
|
|
115480
|
+
);
|
|
115481
|
+
if (additionalContexts.length > 0) {
|
|
115482
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
115483
|
+
}
|
|
115484
|
+
}
|
|
115485
|
+
|
|
113993
115486
|
let compacted = await jsonld.compact(
|
|
113994
115487
|
values,
|
|
113995
115488
|
docContext,
|
|
@@ -114293,6 +115786,7 @@ export class Person extends Object {
|
|
|
114293
115786
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service: Set<number> = new Set();
|
|
114294
115787
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage: (string)[] = [];
|
|
114295
115788
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat: (boolean)[] = [];
|
|
115789
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
114296
115790
|
|
|
114297
115791
|
/**
|
|
114298
115792
|
* Constructs a new instance of Person with the given values.
|
|
@@ -114319,13 +115813,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
114319
115813
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
114320
115814
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
114321
115815
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
114322
|
-
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;
|
|
115816
|
+
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;
|
|
114323
115817
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
114324
115818
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
114325
115819
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
114326
115820
|
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;
|
|
114327
115821
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
114328
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
115822
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
114329
115823
|
,
|
|
114330
115824
|
options: {
|
|
114331
115825
|
documentLoader?: DocumentLoader,
|
|
@@ -114806,6 +116300,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
114806
116300
|
);
|
|
114807
116301
|
}
|
|
114808
116302
|
}
|
|
116303
|
+
|
|
116304
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
116305
|
+
if (values.preferredLicense instanceof URL) {
|
|
116306
|
+
// @ts-ignore: type is checked above.
|
|
116307
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
116308
|
+
|
|
116309
|
+
} else {
|
|
116310
|
+
throw new TypeError(
|
|
116311
|
+
\\"The preferredLicense must be of type \\" +
|
|
116312
|
+
\\"URL\\" + \\".\\",
|
|
116313
|
+
);
|
|
116314
|
+
}
|
|
116315
|
+
}
|
|
114809
116316
|
}
|
|
114810
116317
|
|
|
114811
116318
|
/**
|
|
@@ -114842,13 +116349,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
114842
116349
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
114843
116350
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
114844
116351
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
114845
|
-
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;
|
|
116352
|
+
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;
|
|
114846
116353
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
114847
116354
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
114848
116355
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
114849
116356
|
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;
|
|
114850
116357
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
114851
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
116358
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
114852
116359
|
|
|
114853
116360
|
= {},
|
|
114854
116361
|
options: {
|
|
@@ -115342,6 +116849,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
115342
116849
|
);
|
|
115343
116850
|
}
|
|
115344
116851
|
}
|
|
116852
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
116853
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
116854
|
+
if (values.preferredLicense instanceof URL) {
|
|
116855
|
+
// @ts-ignore: type is checked above.
|
|
116856
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
116857
|
+
|
|
116858
|
+
} else {
|
|
116859
|
+
throw new TypeError(
|
|
116860
|
+
\\"The preferredLicense must be of type \\" +
|
|
116861
|
+
\\"URL\\" + \\".\\",
|
|
116862
|
+
);
|
|
116863
|
+
}
|
|
116864
|
+
}
|
|
115345
116865
|
|
|
115346
116866
|
return clone;
|
|
115347
116867
|
}
|
|
@@ -122230,6 +123750,25 @@ get gateways(): (URL)[] {
|
|
|
122230
123750
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
122231
123751
|
}
|
|
122232
123752
|
|
|
123753
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
123754
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
123755
|
+
* as the default \`license\` of a new object and let the user choose another.
|
|
123756
|
+
*
|
|
123757
|
+
* This is not a fallback license: an object without its own \`license\` is not
|
|
123758
|
+
* licensed under its author's preferred license.
|
|
123759
|
+
*
|
|
123760
|
+
*/
|
|
123761
|
+
get preferredLicense(): (URL | null) {
|
|
123762
|
+
if (this._warning != null) {
|
|
123763
|
+
getLogger(this._warning.category).warn(
|
|
123764
|
+
this._warning.message,
|
|
123765
|
+
this._warning.values
|
|
123766
|
+
);
|
|
123767
|
+
}
|
|
123768
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
123769
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
123770
|
+
}
|
|
123771
|
+
|
|
122233
123772
|
/**
|
|
122234
123773
|
* Converts this object to a JSON-LD structure.
|
|
122235
123774
|
* @param options The options to use.
|
|
@@ -122758,6 +124297,22 @@ get gateways(): (URL)[] {
|
|
|
122758
124297
|
|
|
122759
124298
|
}
|
|
122760
124299
|
|
|
124300
|
+
compactItems = [];
|
|
124301
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
124302
|
+
const item = (
|
|
124303
|
+
formatIri(v)
|
|
124304
|
+
);
|
|
124305
|
+
compactItems.push(item);
|
|
124306
|
+
}
|
|
124307
|
+
if (compactItems.length > 0) {
|
|
124308
|
+
|
|
124309
|
+
result[\\"preferredLicense\\"]
|
|
124310
|
+
= compactItems.length > 1
|
|
124311
|
+
? compactItems
|
|
124312
|
+
: compactItems[0];
|
|
124313
|
+
|
|
124314
|
+
}
|
|
124315
|
+
|
|
122761
124316
|
result[\\"type\\"] = \\"Person\\";
|
|
122762
124317
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
122763
124318
|
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\\"}];
|
|
@@ -123262,6 +124817,26 @@ get gateways(): (URL)[] {
|
|
|
123262
124817
|
|
|
123263
124818
|
}
|
|
123264
124819
|
|
|
124820
|
+
array = [];
|
|
124821
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
124822
|
+
let element = (
|
|
124823
|
+
{ \\"@id\\": formatIri(v) }
|
|
124824
|
+
);
|
|
124825
|
+
if (Array.isArray(element)) {
|
|
124826
|
+
if (element.length < 1) continue;
|
|
124827
|
+
if (element.length == 1) element = element[0];
|
|
124828
|
+
}
|
|
124829
|
+
if (typeof element === \\"undefined\\") continue;
|
|
124830
|
+
array.push(element);;
|
|
124831
|
+
}
|
|
124832
|
+
if (array.length > 0) {
|
|
124833
|
+
const propValue = (
|
|
124834
|
+
array
|
|
124835
|
+
);
|
|
124836
|
+
values[\\"https://w3id.org/fep/6757#preferredLicense\\"] = propValue;
|
|
124837
|
+
|
|
124838
|
+
}
|
|
124839
|
+
|
|
123265
124840
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Person\\"];
|
|
123266
124841
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
123267
124842
|
if (options.format === \\"expand\\") {
|
|
@@ -123275,6 +124850,17 @@ get gateways(): (URL)[] {
|
|
|
123275
124850
|
}
|
|
123276
124851
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
123277
124852
|
[\\"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\\"}];
|
|
124853
|
+
|
|
124854
|
+
if (options.context == null) {
|
|
124855
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
124856
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
124857
|
+
context => !currentContexts.includes(context)
|
|
124858
|
+
);
|
|
124859
|
+
if (additionalContexts.length > 0) {
|
|
124860
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
124861
|
+
}
|
|
124862
|
+
}
|
|
124863
|
+
|
|
123278
124864
|
let compacted = await jsonld.compact(
|
|
123279
124865
|
values,
|
|
123280
124866
|
docContext,
|
|
@@ -123326,6 +124912,11 @@ get gateways(): (URL)[] {
|
|
|
123326
124912
|
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0
|
|
123327
124913
|
) return false;
|
|
123328
124914
|
|
|
124915
|
+
if (
|
|
124916
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null &&
|
|
124917
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0
|
|
124918
|
+
) return false;
|
|
124919
|
+
|
|
123329
124920
|
return super.isCompactable();
|
|
123330
124921
|
}
|
|
123331
124922
|
|
|
@@ -124384,6 +125975,35 @@ get gateways(): (URL)[] {
|
|
|
124384
125975
|
|
|
124385
125976
|
}
|
|
124386
125977
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
125978
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
125979
|
+
|
|
125980
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values[\\"https://w3id.org/fep/6757#preferredLicense\\"];
|
|
125981
|
+
|
|
125982
|
+
for (
|
|
125983
|
+
const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null
|
|
125984
|
+
? []
|
|
125985
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && \\"@list\\" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]
|
|
125986
|
+
? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0][\\"@list\\"]
|
|
125987
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array
|
|
125988
|
+
) {
|
|
125989
|
+
if (v == null) continue;
|
|
125990
|
+
|
|
125991
|
+
const decoded =
|
|
125992
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
125993
|
+
;
|
|
125994
|
+
|
|
125995
|
+
if (typeof decoded === \\"undefined\\") {
|
|
125996
|
+
shouldCacheJsonLd = false;
|
|
125997
|
+
continue;
|
|
125998
|
+
}
|
|
125999
|
+
|
|
126000
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
126001
|
+
shouldCacheJsonLd = false;
|
|
126002
|
+
}
|
|
126003
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
126004
|
+
|
|
126005
|
+
}
|
|
126006
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
124387
126007
|
|
|
124388
126008
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
124389
126009
|
if (
|
|
@@ -124934,6 +126554,26 @@ get gateways(): (URL)[] {
|
|
|
124934
126554
|
proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
124935
126555
|
}
|
|
124936
126556
|
|
|
126557
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense
|
|
126558
|
+
// deno-lint-ignore no-explicit-any
|
|
126559
|
+
.map((v: any) => v instanceof URL
|
|
126560
|
+
? {
|
|
126561
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
126562
|
+
inspect: typeof Deno.inspect,
|
|
126563
|
+
options: Deno.InspectOptions,
|
|
126564
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
126565
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
126566
|
+
_depth: number,
|
|
126567
|
+
options: unknown,
|
|
126568
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
126569
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
126570
|
+
}
|
|
126571
|
+
: v);
|
|
126572
|
+
|
|
126573
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) {
|
|
126574
|
+
proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
126575
|
+
}
|
|
126576
|
+
|
|
124937
126577
|
return proxy;
|
|
124938
126578
|
}
|
|
124939
126579
|
}
|
|
@@ -125006,7 +126646,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
125006
126646
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
125007
126647
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
125008
126648
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
125009
|
-
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;}
|
|
126649
|
+
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;}
|
|
125010
126650
|
,
|
|
125011
126651
|
options: {
|
|
125012
126652
|
documentLoader?: DocumentLoader,
|
|
@@ -125129,7 +126769,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
125129
126769
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
125130
126770
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
125131
126771
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
125132
|
-
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;}
|
|
126772
|
+
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;}
|
|
125133
126773
|
|
|
125134
126774
|
= {},
|
|
125135
126775
|
options: {
|
|
@@ -125627,6 +127267,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
125627
127267
|
}
|
|
125628
127268
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
125629
127269
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
127270
|
+
|
|
127271
|
+
if (options.context == null) {
|
|
127272
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
127273
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
127274
|
+
context => !currentContexts.includes(context)
|
|
127275
|
+
);
|
|
127276
|
+
if (additionalContexts.length > 0) {
|
|
127277
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
127278
|
+
}
|
|
127279
|
+
}
|
|
127280
|
+
|
|
125630
127281
|
let compacted = await jsonld.compact(
|
|
125631
127282
|
values,
|
|
125632
127283
|
docContext,
|
|
@@ -126209,7 +127860,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
126209
127860
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
126210
127861
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
126211
127862
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
126212
|
-
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;}
|
|
127863
|
+
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;}
|
|
126213
127864
|
,
|
|
126214
127865
|
options: {
|
|
126215
127866
|
documentLoader?: DocumentLoader,
|
|
@@ -126267,7 +127918,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
126267
127918
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
126268
127919
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
126269
127920
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
126270
|
-
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;}
|
|
127921
|
+
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;}
|
|
126271
127922
|
|
|
126272
127923
|
= {},
|
|
126273
127924
|
options: {
|
|
@@ -126838,6 +128489,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
126838
128489
|
}
|
|
126839
128490
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
126840
128491
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
128492
|
+
|
|
128493
|
+
if (options.context == null) {
|
|
128494
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
128495
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
128496
|
+
context => !currentContexts.includes(context)
|
|
128497
|
+
);
|
|
128498
|
+
if (additionalContexts.length > 0) {
|
|
128499
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
128500
|
+
}
|
|
128501
|
+
}
|
|
128502
|
+
|
|
126841
128503
|
let compacted = await jsonld.compact(
|
|
126842
128504
|
values,
|
|
126843
128505
|
docContext,
|
|
@@ -127199,7 +128861,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
127199
128861
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
127200
128862
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
127201
128863
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
127202
|
-
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;
|
|
128864
|
+
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;
|
|
127203
128865
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
127204
128866
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
127205
128867
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -127353,7 +129015,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
127353
129015
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
127354
129016
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
127355
129017
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
127356
|
-
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;
|
|
129018
|
+
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;
|
|
127357
129019
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
127358
129020
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
127359
129021
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -129436,6 +131098,17 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
|
|
|
129436
131098
|
}
|
|
129437
131099
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
129438
131100
|
[\\"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\\"}}];
|
|
131101
|
+
|
|
131102
|
+
if (options.context == null) {
|
|
131103
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
131104
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
131105
|
+
context => !currentContexts.includes(context)
|
|
131106
|
+
);
|
|
131107
|
+
if (additionalContexts.length > 0) {
|
|
131108
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
131109
|
+
}
|
|
131110
|
+
}
|
|
131111
|
+
|
|
129439
131112
|
let compacted = await jsonld.compact(
|
|
129440
131113
|
values,
|
|
129441
131114
|
docContext,
|
|
@@ -130129,7 +131802,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
130129
131802
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
130130
131803
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
130131
131804
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
130132
|
-
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;
|
|
131805
|
+
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;
|
|
130133
131806
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
130134
131807
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
130135
131808
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -130180,7 +131853,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
130180
131853
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
130181
131854
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
130182
131855
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
130183
|
-
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;
|
|
131856
|
+
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;
|
|
130184
131857
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
130185
131858
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
130186
131859
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -130266,6 +131939,17 @@ instruments?: (Object | URL)[];}
|
|
|
130266
131939
|
}
|
|
130267
131940
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
130268
131941
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
131942
|
+
|
|
131943
|
+
if (options.context == null) {
|
|
131944
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
131945
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
131946
|
+
context => !currentContexts.includes(context)
|
|
131947
|
+
);
|
|
131948
|
+
if (additionalContexts.length > 0) {
|
|
131949
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
131950
|
+
}
|
|
131951
|
+
}
|
|
131952
|
+
|
|
130269
131953
|
let compacted = await jsonld.compact(
|
|
130270
131954
|
values,
|
|
130271
131955
|
docContext,
|
|
@@ -130545,7 +132229,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
130545
132229
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
130546
132230
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
130547
132231
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
130548
|
-
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;
|
|
132232
|
+
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;
|
|
130549
132233
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
130550
132234
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
130551
132235
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -130596,7 +132280,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
130596
132280
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
130597
132281
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
130598
132282
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
130599
|
-
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;
|
|
132283
|
+
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;
|
|
130600
132284
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
130601
132285
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
130602
132286
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -130682,6 +132366,17 @@ instruments?: (Object | URL)[];}
|
|
|
130682
132366
|
}
|
|
130683
132367
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
130684
132368
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
132369
|
+
|
|
132370
|
+
if (options.context == null) {
|
|
132371
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
132372
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
132373
|
+
context => !currentContexts.includes(context)
|
|
132374
|
+
);
|
|
132375
|
+
if (additionalContexts.length > 0) {
|
|
132376
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
132377
|
+
}
|
|
132378
|
+
}
|
|
132379
|
+
|
|
130685
132380
|
let compacted = await jsonld.compact(
|
|
130686
132381
|
values,
|
|
130687
132382
|
docContext,
|
|
@@ -130979,7 +132674,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
130979
132674
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
130980
132675
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
130981
132676
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
130982
|
-
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;
|
|
132677
|
+
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;
|
|
130983
132678
|
objects?: (Object | URL)[];relationship?: Object | URL | null;
|
|
130984
132679
|
relationships?: (Object | URL)[];}
|
|
130985
132680
|
,
|
|
@@ -131119,7 +132814,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
131119
132814
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
131120
132815
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
131121
132816
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
131122
|
-
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;
|
|
132817
|
+
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;
|
|
131123
132818
|
objects?: (Object | URL)[];relationship?: Object | URL | null;
|
|
131124
132819
|
relationships?: (Object | URL)[];}
|
|
131125
132820
|
|
|
@@ -133018,6 +134713,17 @@ relationships?: (Object | URL)[];}
|
|
|
133018
134713
|
}
|
|
133019
134714
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
133020
134715
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
134716
|
+
|
|
134717
|
+
if (options.context == null) {
|
|
134718
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
134719
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
134720
|
+
context => !currentContexts.includes(context)
|
|
134721
|
+
);
|
|
134722
|
+
if (additionalContexts.length > 0) {
|
|
134723
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
134724
|
+
}
|
|
134725
|
+
}
|
|
134726
|
+
|
|
133021
134727
|
let compacted = await jsonld.compact(
|
|
133022
134728
|
values,
|
|
133023
134729
|
docContext,
|
|
@@ -133492,7 +135198,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
133492
135198
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
133493
135199
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
133494
135200
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
133495
|
-
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;
|
|
135201
|
+
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;
|
|
133496
135202
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
133497
135203
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
133498
135204
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -133543,7 +135249,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
133543
135249
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
133544
135250
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
133545
135251
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
133546
|
-
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;
|
|
135252
|
+
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;
|
|
133547
135253
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
133548
135254
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
133549
135255
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -133629,6 +135335,17 @@ instruments?: (Object | URL)[];}
|
|
|
133629
135335
|
}
|
|
133630
135336
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
133631
135337
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
135338
|
+
|
|
135339
|
+
if (options.context == null) {
|
|
135340
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
135341
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
135342
|
+
context => !currentContexts.includes(context)
|
|
135343
|
+
);
|
|
135344
|
+
if (additionalContexts.length > 0) {
|
|
135345
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
135346
|
+
}
|
|
135347
|
+
}
|
|
135348
|
+
|
|
133632
135349
|
let compacted = await jsonld.compact(
|
|
133633
135350
|
values,
|
|
133634
135351
|
docContext,
|
|
@@ -133932,6 +135649,7 @@ export class Service extends Object {
|
|
|
133932
135649
|
#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service: Set<number> = new Set();
|
|
133933
135650
|
#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage: (string)[] = [];
|
|
133934
135651
|
#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat: (boolean)[] = [];
|
|
135652
|
+
#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
133935
135653
|
|
|
133936
135654
|
/**
|
|
133937
135655
|
* Constructs a new instance of Service with the given values.
|
|
@@ -133958,13 +135676,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
133958
135676
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
133959
135677
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
133960
135678
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
133961
|
-
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;
|
|
135679
|
+
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;
|
|
133962
135680
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
133963
135681
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
133964
135682
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
133965
135683
|
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;
|
|
133966
135684
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
133967
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
135685
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
133968
135686
|
,
|
|
133969
135687
|
options: {
|
|
133970
135688
|
documentLoader?: DocumentLoader,
|
|
@@ -134445,6 +136163,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
134445
136163
|
);
|
|
134446
136164
|
}
|
|
134447
136165
|
}
|
|
136166
|
+
|
|
136167
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
136168
|
+
if (values.preferredLicense instanceof URL) {
|
|
136169
|
+
// @ts-ignore: type is checked above.
|
|
136170
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
136171
|
+
|
|
136172
|
+
} else {
|
|
136173
|
+
throw new TypeError(
|
|
136174
|
+
\\"The preferredLicense must be of type \\" +
|
|
136175
|
+
\\"URL\\" + \\".\\",
|
|
136176
|
+
);
|
|
136177
|
+
}
|
|
136178
|
+
}
|
|
134448
136179
|
}
|
|
134449
136180
|
|
|
134450
136181
|
/**
|
|
@@ -134481,13 +136212,13 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
134481
136212
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
134482
136213
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
134483
136214
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
134484
|
-
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;
|
|
136215
|
+
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;
|
|
134485
136216
|
preferredUsernames?: ((string | LanguageString))[];publicKey?: CryptographicKey | URL | null;
|
|
134486
136217
|
publicKeys?: (CryptographicKey | URL)[];assertionMethod?: Multikey | URL | null;
|
|
134487
136218
|
assertionMethods?: (Multikey | URL)[];gateway?: URL | null;
|
|
134488
136219
|
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;
|
|
134489
136220
|
aliases?: (Application | Group | Organization | Person | Service | URL)[];service?: DidService | URL | null;
|
|
134490
|
-
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;}
|
|
136221
|
+
services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | null;preferredLicense?: URL | null;}
|
|
134491
136222
|
|
|
134492
136223
|
= {},
|
|
134493
136224
|
options: {
|
|
@@ -134981,6 +136712,19 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean |
|
|
|
134981
136712
|
);
|
|
134982
136713
|
}
|
|
134983
136714
|
}
|
|
136715
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.slice();
|
|
136716
|
+
if (\\"preferredLicense\\" in values && values.preferredLicense != null) {
|
|
136717
|
+
if (values.preferredLicense instanceof URL) {
|
|
136718
|
+
// @ts-ignore: type is checked above.
|
|
136719
|
+
clone.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = [values.preferredLicense];
|
|
136720
|
+
|
|
136721
|
+
} else {
|
|
136722
|
+
throw new TypeError(
|
|
136723
|
+
\\"The preferredLicense must be of type \\" +
|
|
136724
|
+
\\"URL\\" + \\".\\",
|
|
136725
|
+
);
|
|
136726
|
+
}
|
|
136727
|
+
}
|
|
134984
136728
|
|
|
134985
136729
|
return clone;
|
|
134986
136730
|
}
|
|
@@ -141869,6 +143613,25 @@ get gateways(): (URL)[] {
|
|
|
141869
143613
|
return this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
141870
143614
|
}
|
|
141871
143615
|
|
|
143616
|
+
/** The URI of the license this actor prefers for the new objects it creates,
|
|
143617
|
+
* as defined by [FEP-6757](https://w3id.org/fep/6757). A client can use it
|
|
143618
|
+
* as the default \`license\` of a new object and let the user choose another.
|
|
143619
|
+
*
|
|
143620
|
+
* This is not a fallback license: an object without its own \`license\` is not
|
|
143621
|
+
* licensed under its author's preferred license.
|
|
143622
|
+
*
|
|
143623
|
+
*/
|
|
143624
|
+
get preferredLicense(): (URL | null) {
|
|
143625
|
+
if (this._warning != null) {
|
|
143626
|
+
getLogger(this._warning.category).warn(
|
|
143627
|
+
this._warning.message,
|
|
143628
|
+
this._warning.values
|
|
143629
|
+
);
|
|
143630
|
+
}
|
|
143631
|
+
if (this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length < 1) return null;
|
|
143632
|
+
return this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
143633
|
+
}
|
|
143634
|
+
|
|
141872
143635
|
/**
|
|
141873
143636
|
* Converts this object to a JSON-LD structure.
|
|
141874
143637
|
* @param options The options to use.
|
|
@@ -142397,6 +144160,22 @@ get gateways(): (URL)[] {
|
|
|
142397
144160
|
|
|
142398
144161
|
}
|
|
142399
144162
|
|
|
144163
|
+
compactItems = [];
|
|
144164
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
144165
|
+
const item = (
|
|
144166
|
+
formatIri(v)
|
|
144167
|
+
);
|
|
144168
|
+
compactItems.push(item);
|
|
144169
|
+
}
|
|
144170
|
+
if (compactItems.length > 0) {
|
|
144171
|
+
|
|
144172
|
+
result[\\"preferredLicense\\"]
|
|
144173
|
+
= compactItems.length > 1
|
|
144174
|
+
? compactItems
|
|
144175
|
+
: compactItems[0];
|
|
144176
|
+
|
|
144177
|
+
}
|
|
144178
|
+
|
|
142400
144179
|
result[\\"type\\"] = \\"Service\\";
|
|
142401
144180
|
if (this.id != null) result[\\"id\\"] = formatIri(this.id);
|
|
142402
144181
|
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\\"}];
|
|
@@ -142901,6 +144680,26 @@ get gateways(): (URL)[] {
|
|
|
142901
144680
|
|
|
142902
144681
|
}
|
|
142903
144682
|
|
|
144683
|
+
array = [];
|
|
144684
|
+
for (const v of this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense) {
|
|
144685
|
+
let element = (
|
|
144686
|
+
{ \\"@id\\": formatIri(v) }
|
|
144687
|
+
);
|
|
144688
|
+
if (Array.isArray(element)) {
|
|
144689
|
+
if (element.length < 1) continue;
|
|
144690
|
+
if (element.length == 1) element = element[0];
|
|
144691
|
+
}
|
|
144692
|
+
if (typeof element === \\"undefined\\") continue;
|
|
144693
|
+
array.push(element);;
|
|
144694
|
+
}
|
|
144695
|
+
if (array.length > 0) {
|
|
144696
|
+
const propValue = (
|
|
144697
|
+
array
|
|
144698
|
+
);
|
|
144699
|
+
values[\\"https://w3id.org/fep/6757#preferredLicense\\"] = propValue;
|
|
144700
|
+
|
|
144701
|
+
}
|
|
144702
|
+
|
|
142904
144703
|
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Service\\"];
|
|
142905
144704
|
if (this.id != null) values[\\"@id\\"] = formatIri(this.id);
|
|
142906
144705
|
if (options.format === \\"expand\\") {
|
|
@@ -142914,6 +144713,17 @@ get gateways(): (URL)[] {
|
|
|
142914
144713
|
}
|
|
142915
144714
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
142916
144715
|
[\\"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\\"}];
|
|
144716
|
+
|
|
144717
|
+
if (options.context == null) {
|
|
144718
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
144719
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
144720
|
+
context => !currentContexts.includes(context)
|
|
144721
|
+
);
|
|
144722
|
+
if (additionalContexts.length > 0) {
|
|
144723
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
144724
|
+
}
|
|
144725
|
+
}
|
|
144726
|
+
|
|
142917
144727
|
let compacted = await jsonld.compact(
|
|
142918
144728
|
values,
|
|
142919
144729
|
docContext,
|
|
@@ -142965,6 +144775,11 @@ get gateways(): (URL)[] {
|
|
|
142965
144775
|
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.length > 0
|
|
142966
144776
|
) return false;
|
|
142967
144777
|
|
|
144778
|
+
if (
|
|
144779
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense != null &&
|
|
144780
|
+
this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length > 0
|
|
144781
|
+
) return false;
|
|
144782
|
+
|
|
142968
144783
|
return super.isCompactable();
|
|
142969
144784
|
}
|
|
142970
144785
|
|
|
@@ -144023,6 +145838,35 @@ get gateways(): (URL)[] {
|
|
|
144023
145838
|
|
|
144024
145839
|
}
|
|
144025
145840
|
instance.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
145841
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense: (URL)[] = [];
|
|
145842
|
+
|
|
145843
|
+
let _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array = values[\\"https://w3id.org/fep/6757#preferredLicense\\"];
|
|
145844
|
+
|
|
145845
|
+
for (
|
|
145846
|
+
const v of _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array == null
|
|
145847
|
+
? []
|
|
145848
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array.length === 1 && \\"@list\\" in _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0]
|
|
145849
|
+
? _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array[0][\\"@list\\"]
|
|
145850
|
+
: _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense__array
|
|
145851
|
+
) {
|
|
145852
|
+
if (v == null) continue;
|
|
145853
|
+
|
|
145854
|
+
const decoded =
|
|
145855
|
+
isAbsoluteIriValue(v) ? decodeIri(getAbsoluteIriValue(v)!) : undefined
|
|
145856
|
+
;
|
|
145857
|
+
|
|
145858
|
+
if (typeof decoded === \\"undefined\\") {
|
|
145859
|
+
shouldCacheJsonLd = false;
|
|
145860
|
+
continue;
|
|
145861
|
+
}
|
|
145862
|
+
|
|
145863
|
+
if (!this._shouldCacheDecodedJsonLd(decoded)) {
|
|
145864
|
+
shouldCacheJsonLd = false;
|
|
145865
|
+
}
|
|
145866
|
+
_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.push(decoded);
|
|
145867
|
+
|
|
145868
|
+
}
|
|
145869
|
+
instance.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense;
|
|
144026
145870
|
|
|
144027
145871
|
instance._shouldCacheJsonLd = shouldCacheJsonLd;
|
|
144028
145872
|
if (
|
|
@@ -144573,6 +146417,26 @@ get gateways(): (URL)[] {
|
|
|
144573
146417
|
proxy.cat = _2xEU4QtkC53RAun67T81Egqt9vmL_isCat[0];
|
|
144574
146418
|
}
|
|
144575
146419
|
|
|
146420
|
+
const _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense = this.#_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense
|
|
146421
|
+
// deno-lint-ignore no-explicit-any
|
|
146422
|
+
.map((v: any) => v instanceof URL
|
|
146423
|
+
? {
|
|
146424
|
+
[Symbol.for(\\"Deno.customInspect\\")]: (
|
|
146425
|
+
inspect: typeof Deno.inspect,
|
|
146426
|
+
options: Deno.InspectOptions,
|
|
146427
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
146428
|
+
[Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
|
|
146429
|
+
_depth: number,
|
|
146430
|
+
options: unknown,
|
|
146431
|
+
inspect: (value: unknown, options: unknown) => string,
|
|
146432
|
+
): string => \\"URL \\" + inspect(inspectIri(v), options),
|
|
146433
|
+
}
|
|
146434
|
+
: v);
|
|
146435
|
+
|
|
146436
|
+
if (_248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense.length == 1) {
|
|
146437
|
+
proxy.preferredLicense = _248SCMQLVt8i7L4vUstp5SmQQFH6_preferredLicense[0];
|
|
146438
|
+
}
|
|
146439
|
+
|
|
144576
146440
|
return proxy;
|
|
144577
146441
|
}
|
|
144578
146442
|
}
|
|
@@ -145034,6 +146898,17 @@ get contents(): ((string | LanguageString))[] {
|
|
|
145034
146898
|
}
|
|
145035
146899
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
145036
146900
|
\\"https://www.w3.org/ns/activitystreams\\";
|
|
146901
|
+
|
|
146902
|
+
if (options.context == null) {
|
|
146903
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
146904
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
146905
|
+
context => !currentContexts.includes(context)
|
|
146906
|
+
);
|
|
146907
|
+
if (additionalContexts.length > 0) {
|
|
146908
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
146909
|
+
}
|
|
146910
|
+
}
|
|
146911
|
+
|
|
145037
146912
|
let compacted = await jsonld.compact(
|
|
145038
146913
|
values,
|
|
145039
146914
|
docContext,
|
|
@@ -145426,7 +147301,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
145426
147301
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
145427
147302
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
145428
147303
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
145429
|
-
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;
|
|
147304
|
+
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;
|
|
145430
147305
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
145431
147306
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
145432
147307
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -145477,7 +147352,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
145477
147352
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
145478
147353
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
145479
147354
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
145480
|
-
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;
|
|
147355
|
+
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;
|
|
145481
147356
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
145482
147357
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
145483
147358
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -145563,6 +147438,17 @@ instruments?: (Object | URL)[];}
|
|
|
145563
147438
|
}
|
|
145564
147439
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
145565
147440
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
147441
|
+
|
|
147442
|
+
if (options.context == null) {
|
|
147443
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
147444
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
147445
|
+
context => !currentContexts.includes(context)
|
|
147446
|
+
);
|
|
147447
|
+
if (additionalContexts.length > 0) {
|
|
147448
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
147449
|
+
}
|
|
147450
|
+
}
|
|
147451
|
+
|
|
145566
147452
|
let compacted = await jsonld.compact(
|
|
145567
147453
|
values,
|
|
145568
147454
|
docContext,
|
|
@@ -145842,7 +147728,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
145842
147728
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
145843
147729
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
145844
147730
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
145845
|
-
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;
|
|
147731
|
+
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;
|
|
145846
147732
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
145847
147733
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
145848
147734
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -145893,7 +147779,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
145893
147779
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
145894
147780
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
145895
147781
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
145896
|
-
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;
|
|
147782
|
+
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;
|
|
145897
147783
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
145898
147784
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
145899
147785
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -145979,6 +147865,17 @@ instruments?: (Object | URL)[];}
|
|
|
145979
147865
|
}
|
|
145980
147866
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
145981
147867
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
147868
|
+
|
|
147869
|
+
if (options.context == null) {
|
|
147870
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
147871
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
147872
|
+
context => !currentContexts.includes(context)
|
|
147873
|
+
);
|
|
147874
|
+
if (additionalContexts.length > 0) {
|
|
147875
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
147876
|
+
}
|
|
147877
|
+
}
|
|
147878
|
+
|
|
145982
147879
|
let compacted = await jsonld.compact(
|
|
145983
147880
|
values,
|
|
145984
147881
|
docContext,
|
|
@@ -146261,7 +148158,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
146261
148158
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
146262
148159
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
146263
148160
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
146264
|
-
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;
|
|
148161
|
+
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;
|
|
146265
148162
|
formerTypes?: (\$EntityType)[];deleted?: Temporal.Instant | null;}
|
|
146266
148163
|
,
|
|
146267
148164
|
options: {
|
|
@@ -146356,7 +148253,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
146356
148253
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
146357
148254
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
146358
148255
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
146359
|
-
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;
|
|
148256
|
+
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;
|
|
146360
148257
|
formerTypes?: (\$EntityType)[];deleted?: Temporal.Instant | null;}
|
|
146361
148258
|
|
|
146362
148259
|
= {},
|
|
@@ -146618,6 +148515,17 @@ get formerTypes(): (\$EntityType)[] {
|
|
|
146618
148515
|
}
|
|
146619
148516
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
146620
148517
|
[\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
148518
|
+
|
|
148519
|
+
if (options.context == null) {
|
|
148520
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
148521
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
148522
|
+
context => !currentContexts.includes(context)
|
|
148523
|
+
);
|
|
148524
|
+
if (additionalContexts.length > 0) {
|
|
148525
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
148526
|
+
}
|
|
148527
|
+
}
|
|
148528
|
+
|
|
146621
148529
|
let compacted = await jsonld.compact(
|
|
146622
148530
|
values,
|
|
146623
148531
|
docContext,
|
|
@@ -147025,7 +148933,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
147025
148933
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
147026
148934
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
147027
148935
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
147028
|
-
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;
|
|
148936
|
+
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;
|
|
147029
148937
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
147030
148938
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
147031
148939
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -147076,7 +148984,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
147076
148984
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
147077
148985
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
147078
148986
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
147079
|
-
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;
|
|
148987
|
+
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;
|
|
147080
148988
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
147081
148989
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
147082
148990
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -147162,6 +149070,17 @@ instruments?: (Object | URL)[];}
|
|
|
147162
149070
|
}
|
|
147163
149071
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
147164
149072
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
149073
|
+
|
|
149074
|
+
if (options.context == null) {
|
|
149075
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
149076
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
149077
|
+
context => !currentContexts.includes(context)
|
|
149078
|
+
);
|
|
149079
|
+
if (additionalContexts.length > 0) {
|
|
149080
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
149081
|
+
}
|
|
149082
|
+
}
|
|
149083
|
+
|
|
147165
149084
|
let compacted = await jsonld.compact(
|
|
147166
149085
|
values,
|
|
147167
149086
|
docContext,
|
|
@@ -147446,7 +149365,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
147446
149365
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
147447
149366
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
147448
149367
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
147449
|
-
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;
|
|
149368
|
+
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;
|
|
147450
149369
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
147451
149370
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
147452
149371
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -147497,7 +149416,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
147497
149416
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
147498
149417
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
147499
149418
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
147500
|
-
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;
|
|
149419
|
+
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;
|
|
147501
149420
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
147502
149421
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
147503
149422
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -147583,6 +149502,17 @@ instruments?: (Object | URL)[];}
|
|
|
147583
149502
|
}
|
|
147584
149503
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
147585
149504
|
[\\"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\\"}];
|
|
149505
|
+
|
|
149506
|
+
if (options.context == null) {
|
|
149507
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
149508
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
149509
|
+
context => !currentContexts.includes(context)
|
|
149510
|
+
);
|
|
149511
|
+
if (additionalContexts.length > 0) {
|
|
149512
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
149513
|
+
}
|
|
149514
|
+
}
|
|
149515
|
+
|
|
147586
149516
|
let compacted = await jsonld.compact(
|
|
147587
149517
|
values,
|
|
147588
149518
|
docContext,
|
|
@@ -147865,7 +149795,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
147865
149795
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
147866
149796
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
147867
149797
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
147868
|
-
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;
|
|
149798
|
+
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;
|
|
147869
149799
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
147870
149800
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
147871
149801
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -147916,7 +149846,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
147916
149846
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
147917
149847
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
147918
149848
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
147919
|
-
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;
|
|
149849
|
+
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;
|
|
147920
149850
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
147921
149851
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
147922
149852
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -148002,6 +149932,17 @@ instruments?: (Object | URL)[];}
|
|
|
148002
149932
|
}
|
|
148003
149933
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
148004
149934
|
[\\"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\\"}}];
|
|
149935
|
+
|
|
149936
|
+
if (options.context == null) {
|
|
149937
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
149938
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
149939
|
+
context => !currentContexts.includes(context)
|
|
149940
|
+
);
|
|
149941
|
+
if (additionalContexts.length > 0) {
|
|
149942
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
149943
|
+
}
|
|
149944
|
+
}
|
|
149945
|
+
|
|
148005
149946
|
let compacted = await jsonld.compact(
|
|
148006
149947
|
values,
|
|
148007
149948
|
docContext,
|
|
@@ -148279,7 +150220,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
148279
150220
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
148280
150221
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
148281
150222
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
148282
|
-
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;}
|
|
150223
|
+
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;}
|
|
148283
150224
|
,
|
|
148284
150225
|
options: {
|
|
148285
150226
|
documentLoader?: DocumentLoader,
|
|
@@ -148324,7 +150265,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
148324
150265
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
148325
150266
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
148326
150267
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
148327
|
-
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;}
|
|
150268
|
+
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;}
|
|
148328
150269
|
|
|
148329
150270
|
= {},
|
|
148330
150271
|
options: {
|
|
@@ -148423,6 +150364,17 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
|
|
|
148423
150364
|
}
|
|
148424
150365
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
148425
150366
|
[\\"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\\"];
|
|
150367
|
+
|
|
150368
|
+
if (options.context == null) {
|
|
150369
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
150370
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
150371
|
+
context => !currentContexts.includes(context)
|
|
150372
|
+
);
|
|
150373
|
+
if (additionalContexts.length > 0) {
|
|
150374
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
150375
|
+
}
|
|
150376
|
+
}
|
|
150377
|
+
|
|
148426
150378
|
let compacted = await jsonld.compact(
|
|
148427
150379
|
values,
|
|
148428
150380
|
docContext,
|
|
@@ -148701,7 +150653,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
148701
150653
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
148702
150654
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
148703
150655
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
148704
|
-
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;
|
|
150656
|
+
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;
|
|
148705
150657
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
148706
150658
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
148707
150659
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -148752,7 +150704,7 @@ tos?: (Object | URL)[];bto?: Object | URL | null;
|
|
|
148752
150704
|
btos?: (Object | URL)[];cc?: Object | URL | null;
|
|
148753
150705
|
ccs?: (Object | URL)[];bcc?: Object | URL | null;
|
|
148754
150706
|
bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
|
|
148755
|
-
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;
|
|
150707
|
+
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;
|
|
148756
150708
|
actors?: (Application | Group | Organization | Person | Service | URL)[];object?: Object | URL | null;
|
|
148757
150709
|
objects?: (Object | URL)[];target?: Object | URL | null;
|
|
148758
150710
|
targets?: (Object | URL)[];result?: Object | URL | null;
|
|
@@ -148838,6 +150790,17 @@ instruments?: (Object | URL)[];}
|
|
|
148838
150790
|
}
|
|
148839
150791
|
let docContext: Parameters<typeof jsonld.compact>[1] = options.context ??
|
|
148840
150792
|
[\\"https://w3id.org/identity/v1\\",\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\"];
|
|
150793
|
+
|
|
150794
|
+
if (options.context == null) {
|
|
150795
|
+
const currentContexts = Array.isArray(docContext) ? docContext : [docContext];
|
|
150796
|
+
const additionalContexts = getExtraContexts(values).filter(
|
|
150797
|
+
context => !currentContexts.includes(context)
|
|
150798
|
+
);
|
|
150799
|
+
if (additionalContexts.length > 0) {
|
|
150800
|
+
docContext = [...currentContexts, ...additionalContexts];
|
|
150801
|
+
}
|
|
150802
|
+
}
|
|
150803
|
+
|
|
148841
150804
|
let compacted = await jsonld.compact(
|
|
148842
150805
|
values,
|
|
148843
150806
|
docContext,
|